My account
Shopping cart
Knowledge base
Support


Usage and Code Samples for Accordion Panel Pro V1 Flash Component



Accordion Panel Pro V1 Usage

Simply drag and drop component to the stage.
Use the parameter panel to customize the behaviors and look of Accordion Panel Pro. In order to listen to the events broadcasted use a listener object.

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)
"title" is for title bar
"opened" is boolean, true if you want the component to open with this compartment opened. false for closed.
color optional attributes:
"upColor" , "middleColor" , "downColor"
values are in hexa like 0xCCCCCC


There are 4 event broadcasted: onLoadXML , onLoadContents , onOpenItem and onCloseItem.
In order to have the accordion rotated you have to rotate all the contents before importing them, also, you have to include the component into one Use a listener object attached to the accordion in order to retreive events. We also included a function for opening/closing an item without clicking 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();
container_mc.acordion1.addListener(_global.lis);
preloader.text = "loading XML";
container_mc.acordion1._visible = false;
lis.onLoadXML = function(message) {
trace("rotated accordion xml loaded");
preloader.text = "loading contents";
};
lis.onLoadContents = function(message) {
trace("rotated accordion contents loaded");
preloader.text = "";
};
lis.onCloseItem = function(message) {
trace("rotated accordion close "+message);
};
lis.onOpenItem = function(message) {
trace("rotated accordion open "+message);
};
button2.onRelease = function(){
container_mc.acordion1.openItem(2)
}