My account
Shopping cart
Knowledge base
Support


Accordion Tree Menu V3 Properties



Overview | Properties | Methods | Events | Styles | XML

Most these properties can be set in the Component Inspector (Alt + F7), also be set from XML, using the xmlPath optional parameter.

Property Type /
Component Inspector
Description
autoSize Boolean
Yes
If true, the menu's width will be calculated automatically.

Default: false

Usage:
componentInstance.autoSize = true
closeFolderOnClick Boolean
Yes
If true, when a folder item is expanded and it gets clicked, the item will collapse, if false, the item will not collapse back until a different folder item is clicked and expands.

Default: false

Usage:
componentInstance.closeFolderOnClick = true
collapseSubMenuTree Boolean
Yes
If true, when a folder item is collapsed it will collapse its entire tree child folder items too, so when it is expanded again it will open without having the child folder items expanded.

Default: false

Usage:
componentInstance.collapseSubMenuTree = true
easeType String
Yes
Sets the ease type for the sliding transition tween. Values: [easeOut, easeIn, easeInOut, none]

Default: easeOut

Usage:
componentInstance.easeType ="easeOut"
embedFonts Boolean
Yes
If true, embed fonts will be used instead of device fonts.

Default: false

Usage:
componentInstance.embedFonts = true
expandMode String
Yes
The expand mode of the menu. To expand one folder item at a time, choose "one", to expand all (more than one) folder items at a time choose "all". Vaues: [one,all]

Default: one

Usage:
componentInstance.expandMode = "all"
indentStepSize Number
Yes
The dimension of the indent step size in pixels. This is used to left indent a child by its parent node.

Default: 10

Usage:
componentInstance.indentStepSize = 5
navigationMode String
Yes
The mode of navigation with the mouse. Values: [press, release, rollover, none]

Default: press

Usage:
componentInstance.navigationMode = "rollover"
selectedStateMode String
Yes
This variable is used to show the selected item (last clicked), with or without its parents, or not at all. Values: [None, Single, Tree]

Default: Single

Usage:
componentInstance.selectedStateMode = "Tree"
tweening Boolean
Yes
If false, the switching between the items will be done without sliding.

Default: true

Usage:
componentInstance.tweening = false
tweeningDuration Number
Yes
Sets the duration of the slide tweening in frames.

Default: 20

Usage:
componentInstance.tweeningDuration = 10
tweenType String
Yes
Sets the tweening type. Values: [Regular, Strong, Bounce, Back, Elastic, None]

Default: Strong

Usage:
componentInstance.tweenType = "Back"
width Number
No
Used to resize the component's width in runtime without affecting the _xscale/scaleX of the component. The component will than align and resize (if needed) the content in order to show the new size.

Usage:
componentInstance.width=200
xmlPath String
Yes
Optional parameter. Sets the path to a XML file that can configure the Accordion Tree Menu V3.

Parameters that are set from the <properties> node of the XML (xmlPath) will override parameters set from script or Component Inspector.
The <data> node will contain the menu data, entering this node is essential for the menu to display.
You don't need to use xmlPath param, you can set the XML using the setXML method.
The <styles> node will contain the styles for menu items, their movieclip states and how their text is rendered.

Usage:
componentInstance.xmlPath = "XMLMenuConfig.xml"

Overview | Properties | Methods | Events | Styles | XML