so…here’s a toughie. i have an xml file
<xmlfile>
<file name="numero1" />
<file name="numero2" />
<file name="numero3" />
<file name="numero4" />
</xmlfile>
they can have any names, this is just an example. so…and in my actionscript panel, i have the code:
the var bit…
myxml.ignorewhite = true;
max = 40
myxml.onLoad = function() {
var nodes:Array = this.firstChild.childNodes;
for(i=0;i<nodes.length;i++) {
myarray.push(nodes*.attributes.name);
following this code, still in the for loop, i tried to create an empty movie clip, which loads a secondary swf, called “button.swf”. as follows
this.createEmptyMovieClip(“myMC”,i) // “i” being the depth
myMC._x = 40;
myMC._y = max;
max += 45 //so as the swfs don’t overlap
myMC.loadMovie(“button.swf”);
}}
so…when i run the movie, it all appears blank. just for your information, if i take the whole ‘‘movie clip creation’’ bit out of the whole loop, it works fine. just once, but fine:D
you got the idea what i’m trying to do here… it’s a list of buttons… because i don’t want to use the list component. anyway, continuing. i don’t know how to make it work.
i’ve been guessing the problems might be with the same instance myMC bit, and i don’t know how to create a different one each time(i’ve been trying though:D ) or with the depth…which still i can’t figure it out.
so…help is very welcomed.
thanks for reading so far
cheers