Knowledge Base |
Important! All new questions are usually answered within the next business day.
Drop Down (Tree) Menu V3
(views: 4582)
Drop Down Menu V3 and Drop Down Tree Menu V3 are xml flash accordion menus featuring customized states, customized transitions and tweens. Here are all known issues for Drop Down Menu V3 and Drop Down Tree Menu V3, they should be similar, since basically it is the same component. If you have any questions that you think we should discuss here please let us know.
Initiate Drop Down Tree Menu V3 through ActionScript
(2007-07-12 - views: 2375)
Q: I have the new Drop Down Tree Menu component v3. I want to know how to instantiate it through ActionScript.
A: In this case you must have the Drop Down (Tree) Menu component installed. Then, drag the component from Components panel to your Library (not on stage).
This is how you attach the component:
attachMovie("DropDownTreeMenuV3", "componentInstance", 500); //for Drop Down Tree Menu
attachMovie("DropDownTreeV3", "componentInstance", 500); //for Drop Down Menu
Then you have to set its properties:
componentInstance.xmlPath = "menu_easy.xml";
componentInstance.orientation = "horizontal";
componentInstance.easeTypeIn ="easeIn";
componentInstance.easeTypeOut ="easeOut";
componentInstance.embedFonts = false;
componentInstance.navigationMode = "rollover";
componentInstance.tweening = true;
componentInstance.tweeningDurationIn = 10;
componentInstance.tweeningDurationOut = 10;
componentInstance.tweenTypeIn = "Strong";
componentInstance.tweenTypeOut = "Strong";
componentInstance.width=150;
The attached file is implemented with the trial version of the component so this file it will work only inside your Flash IDE.
Files: AttachDDTM_usingAS.zip
This is how you attach the component:
attachMovie("DropDownTreeMenuV3", "componentInstance", 500); //for Drop Down Tree Menu
attachMovie("DropDownTreeV3", "componentInstance", 500); //for Drop Down Menu
Then you have to set its properties:
componentInstance.xmlPath = "menu_easy.xml";
componentInstance.orientation = "horizontal";
componentInstance.easeTypeIn ="easeIn";
componentInstance.easeTypeOut ="easeOut";
componentInstance.embedFonts = false;
componentInstance.navigationMode = "rollover";
componentInstance.tweening = true;
componentInstance.tweeningDurationIn = 10;
componentInstance.tweeningDurationOut = 10;
componentInstance.tweenTypeIn = "Strong";
componentInstance.tweenTypeOut = "Strong";
componentInstance.width=150;
The attached file is implemented with the trial version of the component so this file it will work only inside your Flash IDE.
Files: AttachDDTM_usingAS.zip
User Comments
Instantiation
When you instantiate the component by code, you need to have it inside the Library. In order to have the component placed inside the Library, you have to drag it from the Components panel onto the Library.
When you instantiate the component directly on the stage, you just need to drag it from the Library onto the stage. If you drag it from the Components panel onto the stage, the component will automatically be placed in the Library too.
posted by negush on 2008-05-26
When you instantiate the component by code, you need to have it inside the Library. In order to have the component placed inside the Library, you have to drag it from the Components panel onto the Library.
When you instantiate the component directly on the stage, you just need to drag it from the Library onto the stage. If you drag it from the Components panel onto the stage, the component will automatically be placed in the Library too.
Login to post your comment
Other questions in this item:
Drop over HTML content Call JavaScript from XML Open menu item pages into target - "_self" Item description from XML Disable-Enable Drop Down (Tree) Menu Navigate through scenes Displaying the submenu horizontally instead of vertical Hand cursor Adding a checkbox to a menu Referencing item's textfield in Drop Down (Tree) Menu V3 Centering the titles on the Drop Down (Tree) Menu V3 Load movies on item select Go to different frames by pressing a menu item Changing Design Autoexpand on start Different text formats and anti alias Adding a separating gap between menu items setXML() generates error message Open menu items upwardsMenu |
|
|


The component will not drag directly to the library as your answer instructs. In addition, the example in the zip file shows instantiation by dragging to the stage. Which is it?