yeah ok, I did a search and found some posts that talk about addChild(). But heck, im still confused as to how it works so I’m asking for help
Basically I’m tryin to do like an xml img gallery. So I’ve been following the tutorials here on kirupa, thanks to Kirupa and the community, its been very helpful. But AS3 is kinda messing with my head.
Anyways, I got the loop extrating the info of my xml file:
for(i=0; i<image; i++){
var img_width = externalXML.image.link*.@width;
var img_height = externalXML.image.link*.@height;
var img_link = externalXML.image.link*;
var img_title = externalXML.image.title*;
var img_desc = externalXML.image.desc*;
}
all the stuff traces and I get the correct output.
Now, before I would use createEmptyMovieClip to load img_link (theURL where the image is) and do something like this:
container.createEmptyMovieClip("name"+i, getNextHighestDepth());
conainer.["name"+i].loadMovie(img_link);
right?
So I guess my question is how do I create a new movie clip for the length of the xmlfile and the load every img_link from the loop to the newly created movie clip.
Maybe once I understand how to use addChild() and the new way of loading files into the MC I won’t miss createEmptyMovieClip.
Thanks,
oh and also, if you know a better way to do it. like more efficient or something, let me know, I’m open for new ideas.