Tuesday, November 2, 2010

Creating A PLAY Button




Creating a Stop & Play button seemed difficult, but after doing it, it was relatively easy. It is all done in Action Script 2.0. First you had to create an actual animation before creating your button. After creating your animation, you create a new layer labeling it "Actions". You then bring up the "Action Script" and turn on the Script Assist. You then go to Global Functions>Timeline Control>then double click "stop". There should be an "a" over your blank keyframe on your Actions layer. After you complete all of this, you then create a play button by creating a shape, then right click>Convert to Symbol. You then select "Button" and name it. After creating that button, you go back to the Action Script and instead of clicking "stop", you double click "play". Now when you test it out, the button should start your animation. Now, for extra editing, you go to Edit then "Edit Symbols". This will then show you four things-Up, Over, Down, and Hit. The Up is when the button is just sitting on the stage, the Over is what the button will look like when the mouse is hovered over it, the Down is what it will look like when you click it, and the Hit defines an active area of the button. After editing your button, you should test your animation and see if everything works. I was very pleased with how mine came out. It was really enjoyable to be able to make something really simple, but extremely useful. I might just have to make another one later on.


No comments:

Post a Comment