Since last week I'm reading articles/help on creating drop-down menus. In most of the cases they suggest creating instances of the button ( by dragging the instance of the button) and adding text to each button. This works fine. But what happens if need to add additional menus or modify text ? Today I was reading some book on Flash Action Scripting and noticed that we can build the menus using objects. Where each menu and submenu will be an object.
For example if we have 4 top level menus we can define an array of length 4.
mainmenu[0]= "Home"
mainmenu[1]= "About Us"
mainmenu[2]= "Contact Us"
mainmenu[3]= "Products"
If we want to change the caption "Home" to "Our Home" just change the value of mainmenu[0]. Since I'm new to Flash I couldn't understand the full procedure. If anybody has knowledge of this type of menu building I really appreciate some guidance.
Thanks
Dilip
For example if we have 4 top level menus we can define an array of length 4.
mainmenu[0]= "Home"
mainmenu[1]= "About Us"
mainmenu[2]= "Contact Us"
mainmenu[3]= "Products"
If we want to change the caption "Home" to "Our Home" just change the value of mainmenu[0]. Since I'm new to Flash I couldn't understand the full procedure. If anybody has knowledge of this type of menu building I really appreciate some guidance.
Thanks
Dilip