My account
Shopping cart
Knowledge base
Support

Knowledge Base

Important! All new questions are usually answered within the next business day.

Drop Down (Tree) Menu V3

(views: 16610)

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.



setXML() generates error message

(2008-04-02 - views: 5320)
Q: When I try to assign using the setXML method a XML object generated by code, there's an error message in the Output Panel and the menu doesn't show up:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at com.jumpeye.menu::JDropDownMainMenuV3/setXML()
at Untitled_fla::MainTimeline/cbMenu()
at Untitled_fla::MainTimeline/frame1()

How can I assign a XML object to the drop down menu ?

A: The workaround for this problem is to create a child object just before you use the setXML() method. Usually this is only necessary when populating the menu with items for the first time, but it's ok if it gets called each time.

// Import the class for the child object.
import com.jumpeye.menu.JDropDownMenu;

// Create the XML object.
var xmlData:XML =  <component
                         ....
                   </component>;

// This is the workaround for the problem.
// "mainMenu" is the instance name of the menu.

if (mainMenu.child == null) {
        mainMenu.child  = new JDropDownMenu();
        mainMenu.addChild(mainMenu.child);
}
// Now, you can call the setXML method.
mainMenu.setXML(componentV3);



User Comments

embeding fonts in as3
posted by assman13 on 2008-05-21
im embeding the fonts following the tutorial on the page and all i get when i publish the movie is a blank menu the tutorial is for as2 im not sure if its any different but can i get it to work do i have to define anything in the xml file to embed fonts?
embedding fonts in as3
posted by negush on 2008-05-22
Embedding fonts in AS3 is similar to AS2, except that in AS3 you need to specify a class name instead of a linkage id. But the class name in AS3 is the same as the linkage id in AS2.


Login to post your comment login to post your comment

Back