My account
Shopping cart
Knowledge base
Support


Usage and Code Samples for Vertical Accordion Panel Pro V2 Flash Component



Vertical Accordion Panel Pro V2 Usage

Drag and drop the component to the stage, then simply attach a unique identifier to the instance, and code along the component. Use the XML file in order to specify what movies have to be contained into the Vertical Accordion Panel Pro compartments.

The XML file that you need link in the parameter field for names and attributes of the title bars and content of the accordion's compartments has to be written as follows:

...
"path" is for external file (swf,jpg)
"titleMovie" is for external file (swf,jpg) that will load in the title bar
"opened" is Boolean, true if you want the component to open with this compartment opened. false for closed.
"height" a number witch specify the height of the content
"y" - on the y coordinate can be specified where to load the content

There are 4 event broadcasted: onLoadXML , onLoadContents , onOpenItem and onCloseItem.
Use a listener object attached to the accordion in order to retreive events. We also included a function for opening/closing an item without cliking over it: accordionInstance.openItem(itemNumber).
The use of any other attributes, functions and procedures that are not documented are specullative and NOT recommended.

Code Samples

_global.lis = new Object();
acordion.addListener(_global.lis);
lis.onLoadXML = function(message) {
trace("Xml loaded");
};

lis.onLoadContents = function(message) {
trace("Contents loaded");
};
lis.onCloseItem = function(message) {
trace("onCloseItem "+message);
};
lis.onOpenItem = function(message) {
trace("onOpenItem "+message);
};