free package
Fully functional, no restrictions
Easy to install on any website
XML customizable
GPL Licensed
Watermarked :
paid package
NO watermark:
plus a Flash component (AS3) which can be used in Flash projects
Features
- customizable width & height
- unlimited number of images
- advanced text effects, zoom image effects
- auto play options
- resizable to the extent of 1680 x 1050 pixels
- HTML/CSS formatted text
- supports images (JPG, GIF, PNG, BMP) and SWFs
- external PNGs (changeable) for play/pause and next/previous buttons
Installation instructions for:
How to install this Accordion on your website
Step 1. SWF embedding
Download the accordion.zip package and put all the files from this package into the same folder with the HTML file in which you want the component to be embedded.
You should know first of all that the SWF file is the one that actually represents the component, while the other files (settings.xml, images.xml and JPGs in the images folder) are the assets that the SWF file uses.
A short explanation on how SWFs and XMLs interacts you will find here.
Open your HTML file with a text editor and insert somewhere between the <head> </head> tags the following lines:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("accordion.swf", "AccordionDiv", "600", "300", "9.0.0", false, flashvars, params, attributes);
</script>
For a fast and easy publishing, the best thing to do is to have the SWF file, the HTML file which embeds the SWF, the swfobject.js file, and the assets that the SWF uses (XMLs, JPGs folder) in the same folder.
If that is not possible, please read this detailed article on how to specify the paths correctly.
The above code itself isn’t enough to publish the SWF file on your webpage. You just need to add a div somewhere in the body section of your page (between the tags of your HTML file).
So, in a specific location of your HTML body section insert this div:
<div id="AccordionDiv"></div>
Step 2. Customization
You’ll be able to define a maximum size of 1680 in width and 1050 in height in the 3rd and 4th arguments of the swfobject.embedSWF() function above. Usually the same values as for width and height (which you will set below).
Now you will have to define the properties of your Accordion.
You can do that by editing the settings.xml file, or much simpler, set your values on the Live Demo above and press Generate button, then select all (Ctrl+A) and copy-paste over the existing content of settings.xml file.
If you intend to have multiple Accordions on the same page, for the same accordion.swf file you’ll need to have different settings. Please read here how publish a component twice on the same page.
Now all you have to do is to put your own images, add the text and add the behavior for when clicking each image. All these through the images XML file. Open the XML file with a text editor and define in each row the image path, the URL to go to when clicking the image, the target (_self for the same browser window, or _blank for a new browser window), and the text in CDATA tags.
You can have as many images as you like. To add a new image add a new row in the XML file.
To add Lightbox functionality (showing a bigger image and a description when clicking on an image) please read this article.
If you’ll want to use the Accordion in Flash projects (FLA files), the Accordion is available as a Flash component (MXP file) in the paid package
Instructions on how to use the Accordion component in Flash you will find here.
To be able to remove the FlashXML.net label from the top-left corner you will need to purchase the paid package
Make sure your Wordpress version is greater than 2.8 and your hosting provider is using PHP5.
1. There are two files to download:
a. WordPress Plugin that you have to install and activate
b. Free package
2. Create a new folder inside your wp-content folder called flashxml, inside this folder create a new one called accordion-fx and copy the content of the free package there
3. If you copied the free package to a location different than the one above, go to Accordion FX from the Settings tab from your WordPress Dashboard and update the path accordingly
4. Add [accordion-fx][/accordion-fx] where you want the Flash to show up in your post/page.
5. If you want to make the Accordion FX part of your theme, edit the template files and add <?php accordionfx_echo_embed_code(); ?> where you want it to show up
6. Customize your Accordion FX using the Live Demo from the top of this page. Generate the settings.xml text and use it to overwrite wp-content/flashxml/accordion-fx/settings.xml
7. To use your own images, upload them to wp-content/flashxml/accordion-fx/images and update the wp-content/flashxml/accordion-fx/images.xml file accordingly
Additional settings file
To embed the Accordion FX more than once, you will need another settings file and (probably) another set of images. Let's assume your new file is called settings2.xml. Add [accordion-fx settings="settings2.xml"][/accordion-fx] where you want the Flash to show up in your post/page. If you made the Flash part of your theme, add the file name as the first argument of the accordionfx_echo_embed_code() function call (for example <?php accordionfx_echo_embed_code("settings2.xml"); ?>).
No Flash support text
To support visitors without Adobe Flash Player, you can provide alternative content by adding the text between [accordion-fx] and [/accordion-fx]. If you made the Flash part of your theme, add the text as the second argument of the accordionfx_echo_embed_code() function call (for example <?php accordionfx_echo_embed_code("","Alternative content"); ?>).
If you have PHP4
To make it work with PHP4, add [accordion-fx width="600" height="300"][/accordion-fx] where you want the Flash to show up in your post/page. If you made the Flash part of your theme, add the width and height as the third and fourth argument of the accordionfx_echo_embed_code() function call. Don't forget to provide your own width and height values, since 600 and 300 are just examples.
Getting rid of the FlashXML.net label
To remove the FlashXML.net label from the top-left corner you'll need to buy the paid package. Once you'll do that, simply use the SWF file from the paid package to overwrite the SWF file from the wp-content/flashxml/accordion-fx/ folder.
Make sure your Joomla version is 1.5 and your hosting provider is using PHP5.
Joomla Module Instructions:
1. There are two files to download (both under GPL License):
a. Joomla Module that you have to install and enable
b. Free package
2. Create a new folder inside your Joomla folder called flashxml, inside this folder create a new one called accordionfx and copy the content of the free package there
3. If you copied the free package to a location different than the one above, update the Path from module's parameters accordingly
4. Customize your Accordion FX using the Live Demo from the top of this page. Generate the settings.xml text and use it to overwrite flashxml/accordionfx/settings.xml
Joomla Plugin Instructions:
1. There are two files to download (both under GPL License):
a. Joomla Plugin that you have to install and enable
b. Free package
2. Create a new folder inside your Joomla folder called flashxml, inside this folder create a new one called accordionfx and copy the content of the free package there
3. If you copied the free package to a location different from the one above, update the Path from module's parameters accordingly
4. Add {accordionfx}{/accordionfx} where you want the Flash to show up in your article
5. Customize your Accordion FX using the Live Demo from the top of this page. Generate the settings.xml text and use it to overwrite flashxml/accordionfx/settings.xml
6. The default name for the settings file is settings.xml, but if you want to use another file (for example settings2.xml), specify the name like this: {accordionfx settings="settings2.xml"}{/accordionfx} where you want the component to show up in your article
7. In some cases the width and height will not be read from the settings.xml file but you can specify them like this: {accordionfx width="400" height="300"}{/accordionfx}. Don't forget to provide your own width and height values, since 400 and 300 are just examples.
Getting rid of the FlashXML.net label
To remove the FlashXML.net label from the top-left corner you'll need to buy the paid package.
Once you will do that, simply use the SWF file from the paid package to overwrite the SWF file from the flashxml/accordionfx/ folder.
Below you will see instructions on how to install and use the Accordion Component in Flash (available for Flash CS3, CS4, and Flash Player 9 or later).
For basic instructions on how to integrate the Accordion's SWF file into HTML/PHP, click here.
You can watch an installation video tutorial of a very similar component in Flash (3D Carousel Menu FX) by clicking here.
In this video you will see:
- how to create an instance of the component on the stage: from the Components panel (Ctrl+F7) drag & drop the component on the stage
- how to give a name to that instance for further use in ActionScript: click on the component instance on the stage and from the Properties panel (Ctrl+F3) enter a name in the text input
- how to access the properties of the component (read or modify) during different moments of your Flash application
Any property of the Component could be accessed that way. The names of the properties are identical with the ones from the settings.xml file.
The properties of the component can be of any of the three types: Number, String, Boolean. We assume it’s intuitive of which type each property is.
Warning! Setting the parameters of the component in the Component Inspector window (Shift+F7) and in the same time having a settings.xml file populated with different values for each property, the properties from the settings.xml file will have priority (meaning that a parameter set in the Component Inspector will be ignored if that parameter is also defined in the XML file)
For now, this component doesn't dispatch events, but stay tuned for an update.
Similar products
Do you have a question?
you will get an answer in 24 hours, tops.





David
Posted 3 Months AgoI’m still having trouble with the width and height settings. I have set the settings.xml to W1678 H250 and the embeding code to the same properties.
</head>
<body bgcolor=”#FFFFFF” leftmargin=“0” topmargin=“0” marginwidth=“0” marginheight=“0”>
<div id=“Layer1” style=“position:absolute; width:200px; height:262px; z-index:1; left: 0px; top: 664px;”> <object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0” width=“1678” height=“250”> <param name=“movie” value=“accordion.swf”> <param name=“quality” value=“high”> <embed src=“accordion.swf” quality=“high” pluginspage=“http://www.macromedia.com/go/getflashplayer” type=“application/x-shockwave-flash” width=“1678” height=“250”></embed> </object>
</div>
</body>
However, when viewed in a web browser the accordion appears very small in the middle of a large white area that it should be filling. Any help on how to resolve this would be appreciated.
Hi,
Replace your code from above with this:
alhitary
Posted 3 Months Agohow to change the test to arabic language ?
I change it from the images file but it doesn’t appear
How to can i write arabic lang ?
wish some one help
Hi,
You have to change the value of embedFont to false in your settings.xml file.
George
Posted 3 Months AgoHello! Thanks in advance.
I would like to ask if it possible to set the shortText position. I have the commercial license for accordionFX
Hi,
I’m sorry but this possibility is not implemented.
MattG
Posted 3 Months AgoHi there,
I bought the commercial license for all applications and working on accordion now. I had no problems embedding the application when all the files are in the same folder (which is root to keep the home page-the page I am trying to embed in to- intact). It is hard to manage the files this way, so I put all files in a root folder I created and I think I cant specify the paths correctly although I have read the tutorial and have been trying for a long time now.
All accordion files are under “accordion”, which is a root file. I am trying to embed the application to home page (index.html), which is root again. I would appreciate if you can help me out. Thank you
Hi,
Use the steps from this tutorial.
Jorge
Posted 3 Months Agohello and bought the version of the accordion and has no code to enter text, not a lot of code but in the demo version is easy to change if this payment is many files what should I do?
Hi,
You need to add this code between the <photo> </photo> tags:
!<![CDATA[<head>Your text here</head><body>Your text here</body>]]>@ in your images.xml file.
drew
Posted 3 Months Agohi, i see the wordpress plugin has been updated to use videos, and now has the FlashXML logo on it. If I were to purchase the commercial archive to get the label removed, would that SWF work with the wordpress plugin?
Hi,
It would work to replace the SWF from the plugin with the one from the commercial archive.
franketh
Posted 3 Months AgoIs there a way to change the border color for each image?
Hi,
I’m sorry but this feature is not implemented.
Jolie
Posted 3 Months AgoHow to set absolut position? I tried to set it on the smaple page with style=“position:absolute;top:200px”, but it doesn’t work. I found there are tons of style settings in js file. It overwrites the position style, I guess.
Hi,
You need to create a css file with these settings and use it in your html file.
ww
Posted 3 Months AgoHi,
We updated this component. Please redownload it from our website and it will work.
————————————————
Yup, I’ve tried, the accordion.swf in the WP zip couldn’t support this feature, but the one in the common zip could, could you please amend the WP one also? (of course, I mean, still without your logo on it)
Hi,
We’ll update the WordPress plugin in a couple of days.
ww
Posted 3 Months AgoHello,
<photo image=“images/02.jpg” bigimage = “images/02.jpg” url=“http://www.flashxml.net/accordion.html” target=”_blank” lightboxinfo = “Description for image 2” time=“4” shortText=“This is a picture”>
/shortText/ doesn’t work for me, here is my link, what’s wrong?
http://www.ccttours.com/eng/our-presents/special-interests-tours/
Hi,
We updated this component. Please redownload it from our website and it will work.