| With the new FlashR CS3 and ActionScript 3, we no longer are limited to programming along the Timeline with Frames. Now we can use ActionScript. In this tutorial, our goal is to "call" or run a movie clip with ActionScript. But, the movie clip is not on the stage when the website is loaded. It is stored in the Flash Library. As with most things in Flash, there are many ways to do this. In this tutorial, we will use the addEventListener to listen for the mouse click that will tell Flash that we want to display the movie clip. Then, we will use addChild to add the movie clip to the Display List. Start a new Flash ActionScript 3 project and set the Document settings as you wish. Also, you should already have a button created on the stage which we will program to open the movie clip from the Library and an Actions layer in the Timeline to hold our ActionScript. In the example, I have already created an invisible button, called "AboutButton", that will display the movie clip and added a tool tip to the button that says "Author/Artist Bio". (You can find tutorials for invisible buttons and tool tips in the Special Effects section of the Site Map.) Now. I am ready to create the movie clip and add the ActionScript to my button to make it work.
|

