Attached you’ll find a gif of what I’m trying to do.
I have a movie clip which will contain x amount of other movie clips. I have some items in a database that will be pulled from xml (the XML is built by a PHP script) and I need them to show up in flash. Thats where the dynamic movie clips come in.
The requirements are this:
Each item has a image and a description associated with it, and each must have a button that can be clicked so you can view more information on the item. I will have to use asfunction (i assume) to get that done.
According to my image, here’s what I’m trying to accomplish.
Each Item will have a container movie clip which will contain a image holder movie clip, a dynamic text box and a button.
They will tile vertically down the document and eventually I’ll have to build a scroller into this because I know there will be well over 40 items and the flash file is only 600px in height.
My questions are…
How do you dynamically create a movieclip with another movie clip in it? Do you have to make one first and then duplicate it?
How to you assign properties inside of another movie clip? For exmample, how do I set the image if the image movieclip is inside of another movie clip that is dynamically generated?
Is there another way to do this? Am I making this too hard?
I’m looking for some examples, and possibly alternative solutions.
Thanks!