PDA

View Full Version : Array?


Jazzy
03-01-2002, 01:23 AM
Hey guys... I was trying to simplify my work by creating an array (or something) of multiple movies so I don't have to do a "tell target" for each individual one...????? Anyone know how I can do that? thanx..
-Jazzy

Billy T
03-01-2002, 03:59 AM
umm not exactly sure what you are trying to do but this might help

try

for (i=1;i<20;i++){
_root["mc"+i].gotoAndPlay(5);
}

assuming that your movies are called mc1, mc2 etc

cheers

pixelwit
03-01-2002, 11:52 AM
Another option would look something like this:mcRefs = new Array();
mcRefs[0] = _root.SomeClip;
mcRefs[1] = _parent.SomeOtherClip;
mcRefs[2] = AClipOnThisTimeline;
for (i=0; i<mcRefs.length; i++) {
mcRefs[i].gotoandStop(5);
}Hope it helps,

-PiXELWiT
http://www.pixelwit.com