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

Accordion Panel V3

(views: 4789)

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: 1381)

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 


User Comments

accordian panel v2
posted by freeroz on 2008-07-11

can we add text instead of pics, and if yes then how?
text instead of pics
posted by negush on 2008-07-14

Yes, you can display text instead of pictures. The solution for you would be to create movie clips that contain text fields with the text you want and place them in the Library (don't leave them on stage), giving them linkage ids (AS2) or class names (AS3). Then, you can specify those linkage ids or class names in the .xml file (or XML data created by code) as values of the contentPath (AS2) or source (AS3) attribute.


Login to post your comment login to post your comment



Back

Knowledge Base Search

Enter keywords bellow:
Advanced Search

Menu

Special Offer

Special Offer - All in one Jumpeye Components bundle!

Get the JC Master Collection Now!

Free Trial Versions

The trial versions do have a major limitation. They will ONLY run into debugger flash player versions, such as the Flash IDE player and the activeX FP used by developers.

Switch from Free Trial version to Full version.

You can switch from Trial to Full versions in a blink of an eye.
See this tutorial in order to find out how.

We accept Google Checkout

Google Checkout Acceptance Mark

Secured by VeriSign