Sunday, 4 March 2012

How to produce a button in flash

The first step is to insert a new symbol which can be re-named by going to the symbol properties. This is always good to do as you need to organise your buttons properly. You will need to change the button functions such as up, over, down and hit. The first frame is up which is a blank frame. To create the up button image, you can either use the drawing tools, import a graphic or place another symbol on the stage. You could use a movie clip for your button if you wanted too. The second frame is labelled over and you have to insert a key frame and this shows the image from your first frame.

Now you change the button image for the over frame and you repeat the same process for the down and hit frame. The hit frame isn't visible on playback, but it defines the area of the button that responds when clicked. You have to make sure that the hit frame graphic is a area large enough to cover all of the graphic elements of the up, down and over frames. This can also be larger than the visible button. After you have defined the images of the four button stages, you choose edit, then edit movie to exit symbol edit mode.

Open the library window by choosing window then library. You can locate the button in the library window and then drag the button symbol out of the library onto a stage. This step creates an instance button in the movie.

No comments:

Post a Comment