• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 15. ActionScripting Applications fo... > Task: Change the Alpha Property of a...

Task: Change the Alpha Property of a Clip Instance

This task changes the alpha of a Movie Clip when the user clicks a button. Here are the steps to follow:

1.
In a new file, place a button and a Movie Clip on the Stage. Select the Movie Clip onstage and use the Properties panel to name the instance of the clip “theClip.”

2.
In the button instance, insert the evaluate Action (plus button, Actions, Miscellaneous Actions) and type theClip._alpha=50 into the Expression parameter, as shown in Figure 15.11.

Figure 15.11. The evaluate Action attached to the button refers to the clip instance named “theClip” to change its alpha.


3.
Test the movie, and you'll see “theClip” instance change to 50% alpha when you click the button.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint