| In the first tutorial, we programmed FlashR to move our Bio movie clip from the Flash Library and place it on the stage. It's time to work on the ActionScript that will close this movie clip. If you remember in the first tutorial, we added ActionScript to a button on the stage which told Flash to place an instance of our movie clip on the stage when the button was clicked. The easiest way to remove this movie clip when we are finished with it is to create a "Close" button and write some ActionScript to go with it that will remove our Bio movie clip from the stage. But we don't want this button to be visible unless our Bio movie clip is visible. So we need to draw this button on the stage at the same time that we place our Bio movie clip there. We can either place this Close button on top of the movie clip or just next to it. To draw this button, you will probably need a copy of the movie clip on the stage for reference. On Frame 1 of the Bio layer, drag a copy from the Library and set the correct X and Y positions in the Property Inspector. Now that the movie clip is in the same location that it will be when it goes live, we can draw our button. I decided to create a rectangular button with rounded corners and put the button on top of the movie clip.
|



Save to Del.icio.us




