My account
Shopping cart
Knowledge base
Support

Knowledge Base

Important! All new questions are usually answered within the next business day.

Accordion Panel V3

(views: 27853)

Accordion Panel V3 is a professional accordion component that loads movies and movieclips and supports both horizontal and vertical orientation, it supports customized tweens, states and visual styles. Here are all known issues for Accordion Panel V3. If you have any questions that you think we should discuss here please let us know.



Use the Accordion Panel without external XML file

(2007-11-27 - views: 14829)
Q: How can I add the xml file from Flash using actionscript. I don't want to have an external XML file on my server.
A: The Accordion Panel V3 needs the xml file to load the content of its panels. Also inside the XML file you define styles for the panel. If you want to insert the XML file inside your actionscript, you can use the setXML() method in order to add the xml file inside your actionscript.
See the code below:

var oXML:XML = new XML();
oXML.ignoreWhite = true;
oXML.parseXML("<?xml version='1.0' encoding='UTF-8'?>" +
                    "<component name='Accordion Panel V3'>" +   
                       "<data >" +
                            "<item contentSize='180' enabled='true' expanded='false' title='My First Panel' contentEvents='true' contentPath='images/img5.jpg' />" +
                            "<item contentSize='180' enabled='true' expanded='false' title='My Second Panel' contentEvents='true' contentPath='images/img6.jpg' headerSize='20'  />" +
                            "<item contentSize='180' enabled='true' expanded='false' title='My Third Panel' contentPath='images/img7.jpg' headerSize='20'  />" +
                            "<item contentSize='180' enabled='true' expanded='false' title='My Third Panel' contentPath='images/img8.jpg' headerSize='20'  />" +
                       "</data>" +
                    "</component>");
//accordionPanel is the instance name of your Accordion Panel component on stage.
accordionPanel.setXML(oXML);

You can also download the attached files in order to see a working example.

Files: AccPanel_XMLObject.zip 


Other questions in this item

Non Latin characters Accordion Panel communicates with a loader Open the accordion panels automatically Vertical title for horizontal accordion panel Installing the Accordion Panel V3 Accordion Panel slide show Stopping video content when changing the panel Open the Accordion Panel upwards the title isn't showing in the horizontal mode Access header title and panel content Auto open a panel on startup Use HandCursor on Accordion Panel's items Load different kind of data into AccordionPanelV3 Open panels upward for vertical accoirdion and to the left for horizontal accordion Get the size of panel's content Access accordion panel loaded with loadMovie inside container clip Dimensions Panel opens only after content is loaded, when loadExpandedItemsOnly is true Open panels from bottom to top and left to right Open Accordion panels automatically (slide show) Open URL from panel content, not from panel header Open URL from panel content, not from panel header Non Latin characters Load new content without XML Flv playback inside accordion Rotate the direction of the text on horizontal Accordion Panel opens only after content is loaded, when loadExpandedItemsOnly is true Getting accurate accordion height TEXTU appears in my file HyperLinking panels Accordion Panel communicates with a loader Acces accordion panel from content Acces accordion panel from content Panels with different sizes Graphics below the accordion panel Access header title and panel content Get selected panel and content Load new content without XML

Back