Knowledge Base |
Important! All new questions are usually answered within the next business day.
Drop Down (Tree) Menu V3
(views: 11474)
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: 5415)
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



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?