Jump to content


Components


  • You cannot reply to this topic
2 replies to this topic

#1 Hip Hop Artist

    Young Padawan

  • Members
  • Pip
  • 152 posts
  • Gender:Male
  • Location:Canada

Posted 02 August 2006 - 11:52 PM

I have looked through the tutorials on flash and searched many times on how to add the menu to the menu bar using the components in flash from the components menu. If someone could help me it would be greatly appreciated. Add me on msn if you wish.

youkickmydog1@hotmail.com

#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 03 August 2006 - 01:59 AM

not completely sure about it, but the menu & menu bar components must be added throug actionscript, there is a quite neat book about components called
"Actionscript 2.0 Garage" which explains how to use all of the components.

Alternatively if you can spend 2$ you can access the menubar tutorial over at http://www.communitymx.com

#3 bezz

    Young Padawan

  • Members
  • Pip
  • 23 posts
  • Gender:Male
  • Location:Berlin, NJ
  • Interests:Flash, Snowboarding, Paintball, Learning Guitar

Posted 03 August 2006 - 01:34 PM

Actionscript is the way to go.
You can code the menu list within your flash file, or load the menu in from an xml file.
This should help you get started:
Attached File  menuhelp.gif   55.81K   153 downloads
If you select the stage, then type that first line of actionscript into the Actions box, you can right click the word Menu and View Help.
Help for the Menu component will come up, which gives you guidance on what you can do with Menus.
Here is the code so you don't have to retype it:
import mx.controls.Menu;
// Create the Menu objects.
var myMenu:Menu = Menu.createMenu();
myMenu.addMenuItem({label:"1st Item"});
myMenu.addMenuItem({label:"second Item"});
myMenu.show(22, 150);

Edited by bezz, 03 August 2006 - 01:35 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users