Knowledge Base |
Drop Down (Tree) Menu V3
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
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 ?
// 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);