The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.36 / 5.00 33,851 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 12,195 ViewsI've just started using flash and I've created an animation. I want to know how to make a menu so that I can make a start button and stuff in the beginning. thanks
At 12/10/09 10:24 AM, killbillandwill wrote: you shuold ask programing instead
on the contrary, it states actionscript related questions go here.
Now to answer the question, since you aren't overly familiar with the Flash environment in terms of scripting I suggest using AS2 since it'll be easier for you.
For the frames with the actual buttons etc, be sure to put a stop action on the frame itself. This stops the flash timeline during runtime until the code from the button executes. Create a new layer, call it action or whatever you feel like then create a blank keyframe on the frame you have the buttons on. The hit F9 and put a stop action.
stop();
For the button, create your button/movieclip symbol (it can be either), make sure its selected then hit F9 to open the actions panel and simply type in:
on(release)
{
_root.gotoAndPlay(#);
}
_root states that the action occurs on the root timeline and the # represents the frame number/label you are going to. If the stop action was on frame 2 for example the the code would be gotoAndPlay(3); for it to play.
thanks man. to be more specific i have a looping animation and i want to create a menu with several options before it plays. one being "play" another "website" and just one other to do whatever. I don't know how to set up the menu so it doesn't overlap with my animation. Do i create it as a movie clip?
You should put your menue on a frame before your animation. Then it won't overlap.
Interactive Gun 2.0! http://hazmatproductions.blogsp ot.c om/