PDA

View Full Version : Loading multiple movie clips into a scrollpane


chrisg101
06-27-2007, 08:41 AM
I am looking to create a scollpane that contains several movieclips in a list format. Using the example of a CD collection; I have an external movieclip that displays the album title, artist and perhaps image of front of album. Might name this 'album.swf'.

Then I have a movie with a scroll pane (eg. called 'library'). This movie loads an xml file with all the album information (say there are about 10 albums). Then loads a series of instance of the 'album.swf' underneath each other in the scroll pane.

Would this be the best way to display this? Also, what method would you use to load all the instances of the movie clip underneath each other (assuming say I didn't know the height of the album.swf file so this would need to calculate on the fly).

I had played with the datagrid component, however was very limited in the layout I could use (always looked like an excel table and couldn't use symbols or images etc). I figure just loading an instance of another movie clip would allow me to layout how I like.

My next issue would be telling those instances of album what their title and artist details are?

Any code for loading up the files underneath each other would be much appreciated as I am a little perplexed at how to do this. I am using AS3.

Cheers, Chris

panel
06-27-2007, 12:21 PM
It took me a while but i have created working example. It was cut off from my bigger project so there may be few unneccesery elements left.

No more to say, just study example and ask if you'll have more questions.