and I wanted to put the next one in the array (_mc1) on the stage @ _x=200, _y=200, how does that work?
does the movie clip already have to be on the stage somewhere, or can it just be in the library? if I wanted now to be the counter for the array, does this look right?
if so, what does the "new_name" and my_depth refer to? are those variables I'll have to refer to somewhere else in my code - sorry for being ignorant, but thanks for your help
the thing is though, I don't want to attach every movie at 200,200 - depending on the name of the movie clip, the y coordinate is different...
Yes - a couple of looks, but given my inexperience with actionscript, very little of it made sense to me - I'm the type of person who needs to analyze working code and play with all the parts rather than trying to build code like from an instruction manual, memorizing all the proper names and all that at this point is a little overwhelming
I've thought this through logically though - I know the proper sequence of actions that need to take place - I just don't know how to translate that from English to Actionscript
so my question is, if I have an a randomized array of 12 movie clips in the library, and each individual clip, when loaded on stage must be loaded at a specific y-coordinate, but the x-coordinate for all 12 is the same, I know I have to have some kind of a set of instructions for what the y-coordinates are for each of them, and have flash be able to, before placing the movie clips, refer to it and place the clips accordingly
I don't know how to properly build the list other than maybe:
function placeButton(){ _y._mc1=20 _y._mcblah=25 //...
or something - which I'm sure is pretty ridiculously wrong, and even if I have the right idea, I wouldn't know where to put 'placeButton' in the code you provided above that I tried to add to
setproperty(mc1,_x,200); can also be like setproperty(mymcarray[0],_x,200); setproperty(mc1,_y,200);
2. also remember that setproperty can also take string as the name of movie clip, like if you have "mc1" (string) as name of the movie clip in the array then setproperty will be use as:
setproperty("mc1",_x,200);
otherwise the above one is going to work too, as the names are exact and movieclips are on the stage.
3. store the exact name of the movieclips in the array not as string and movieclips should be on the stage or you can attach them from the liberary. then you can write:
mymcarray[0]._x = 200; mymcarray[0]._y = 200;
in short array should have the exact name of movieclips and if storing names as string then setproperty method should be used.