i used a web page on how to craete button by following this step by stephttp://helpx.adobe.com/flash/kb/create-buttons-flash.html#
Choose Insert > New Symbol, or press Control+F8 (Windows) or Command+F8 (Mac OS).Note: In Flash 3 and earlier, deselect everything on the stage and choose Insert > Create Symbol.
In the Symbol Properties dialog box, enter a name for the new button symbol and choose Button as the Behavior option. Click OK. Flash switches to symbol-editing mode. The Timeline header changes to display four consecutive frames labeled Up, Over, Down, and Hit. The first frame, Up, is a blank keyframe.
To create the Up state button image, use the drawing tools, import a graphic, or place an instance of another symbol on the Stage. You can use either a movie clip or graphic symbol in a button. However you cannot use another button in a button. Use movie clip symbols if you want to create an animated button.
Select the second frame, labeled Over, and choose Insert > Keyframe. The button image from the first frame appears on the Stage.
Change the button image for the Over state. Repeat steps 4 and 5 for the Down frame and the Hit frame.Note: The Hit frame is not visible on the Stage on playback, but it defines the area of the button that responds when clicked. Make sure that the Hit frame graphic is a solid area large enough to encompass all the graphic elements of the Up, Down, and Over frames. It can also be larger than the visible button. If you do not specify a hit frame, the objects in the Up state are used as the hit frame.
After you define the images of the four button states, choose Edit > Edit Movie to exit Symbol Edit mode.
Open the Library window by choosing Window > Library. Locate the button in the Library window and then drag the button symbol out of the Library onto the Stage. This step creates an instance of the button in the movie.

No comments:
Post a Comment