Internet Cross Logo
Internet Cross your one stop web tutorial website
Your Ad Here

Using the accordion component in Flash MX

by Anand


The accordion component let's you organize or divide content in multiple sections using the same space in a very intuitive way.
Create a new document in flash.
Create three movie clips of size 300 x 140 Give each movie clip a name of clip1,clip2,clip3.
Delete the movie clips from the stage.
Open the library panel and select clip1 right-click and select Linkage, then select Export for ActionScript and click OK. In the same way do it for clip2 and clip3.
We will be accesing this clips from the library using the Identifier name.
Now drag an instance of the accordion component on the stage.
Now select the accordion component and open the properties panel
Double click on childLabels on the + sign three times, and then edit the default names on each line to read: Clip1, Clip2 and Clip3.
In the same way for the childNames and childSymbols field give clip1,clip2,clip3.
That's it test the movie you will get something like as shown above.


[Page 1]
Visit our forums to discuss / post your problems.