Time for action – creating a simple interactive menu
Follow the given steps:
First of all, we need a simple graphic for the buttons. As you already know my programming art style, I have created three very simple images in Adobe Photoshop.
Now, start Flash and create a new ActionScript 2.0 project. Import the three PNGs for the buttons. Create a new movieclip in the library (right-click in Library) and call it something like
MyButton
.Open the
MyButton
movieclip and create three keyframes. Placebutton_out.png
into the first keyframe,button_over.png
into the second keyframe, andbutton_down.png
into the third keyframe. Now click on each keyframe and type in the label names—out
for the first,over
for the second, anddown
for the third keyframe (you can define the label name in the PROPERTIES panel if you click on a keyframe).Create a new layer, and add a dynamic textbox to it. Give it the instance name
btnText
. Make sure you embed the font (Lowercase and Uppercase). It is also important to...