Be a Supporter!

help with flash menu

  • 350 Views
  • 4 Replies
New Topic Respond to this Topic
krysxvi
krysxvi
  • Member since: Dec. 10, 2009
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
help with flash menu 2009-12-10 09:10:18 Reply

I'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

killbillandwill
killbillandwill
  • Member since: Nov. 10, 2008
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to help with flash menu 2009-12-10 10:24:10 Reply

you shuold ask programing instead

Inkovic
Inkovic
  • Member since: Oct. 6, 2007
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to help with flash menu 2009-12-10 11:17:39 Reply

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.

krysxvi
krysxvi
  • Member since: Dec. 10, 2009
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to help with flash menu 2009-12-10 20:41:50 Reply

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?

zlix12
zlix12
  • Member since: Jul. 28, 2009
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to help with flash menu 2009-12-10 21:14:34 Reply

You should put your menue on a frame before your animation. Then it won't overlap.