|
|
Flash Button Tutorial - Animated buttonMaking an animated button is similar to making a simple button but instead of using graphic symbols instances we use Movie Clip symbols. Making a movie symbolA Movie Clip symbol is a self contain movie whose time line moves independently of the main movies' time line. Movie Clip symbols can contain animations and here we look at creating two simple movie symbols. The first symbol which we shall call fade-in consists of an animated rectangular graphic which is semi transparent at the start and then becomes clear. The second called fade-out, contains the same rectangular graphic which fades out. The first step in to make the rectangular Graphic symbol. This should not be difficult for you, now that you have gone through so many sessions. This movie will be used for mouse-over effect. Since we don't want it to play continuously, we would have to add a Stop Action to the last frame. Add another layer to fade-in movie, call it actions and insert a keyframe at frame 18 (the last frame). Right-click on this frame and select Properties from the menu. In the Actions tab click on the Plus (+) sign and select Stop from the menu. Click Edit - Edit Movie to go back to editing the main movie. Add another layer and insert a kerframe at frame 18. Add a Stop action to this keyframe just as you did before. The fade-out movie is used for mouse-out effect. Making the animated buttonYou would now have three symbols in the Library, one graphic and two movie clips. It is time to create an animated button. Enter the Movie editing mode and click on Insert - New Symbol. Name this symbol mybutton and set its Behavior to Button. The importance of the Stop actionWe introduced a Stop action at the last frame of both our movies. This tells the movie to stop playing once it reaches the end frame. If we skip this step, our movie plays continuously messing up our animated button.
Page contents: Flash button tutorial - animated button in flash - creating animated buttons in flash - flash tutorials - flash manual - flash reference
Page URL: http://www.webdevelopersnotes.com/tutorials/adflash/ flash_button_tutorial_animated_button.php3
|
|