My account
Shopping cart
Knowledge base
Support


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



Horizontal Accordion Panel Pro V2 Usage

Drag and drop the component to the stage, than 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 Accordion Panel Pro V2 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)
"titleBar" 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.
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

acordion._visible = false;
lis = new Object();
acordion.addListener(lis);
lis.onLoadXML = function(message) {
trace("xml loaded: ");
};
lis.onLoadContents = function(message) {
acordion._visible = true;
loading._visible = false;
trace("content loaded: ");
};
lis.onCloseItem = function(message) {
trace("item closed: "+message);
};
lis.onOpenItem = function(message) {
trace("item open: "+message);
};