-
Hi...
I have multiple movie clips, named in numeric sequence-MC1, MC2, etc...I would like to use a loop counter to target these, but I don't know the correct F5 syntax for targeting movieclips by concatenating a string name and a variable number...
In F4 it would be:
Set Variable ("i"=1)
Loop While (i<=6)
Begin Tell Target ("/MC" & i)
Go To and Stop (5)
End Tell Target
Set Variable ("i"=i+1)
End Loop
Can someone help me translate this into F5? Gracias...
K.
-
Hi k,
I don't know if this is the correct syntax, but it works.
i ++
if (i<20) {
MC.duplicateMovieClip("MC"+i, i);
}
K:)
-
Hi...
Uh...thanks, but not quite what I'm looking for...I need to know how to target an existing clip by using part of the name plus a variable...
The target paths would be something like:
_root.parentclip.child1.gotoAndStop(1)
_root.parentclip.child2.gotoAndStop(1)
etc...
for about a half-dozen individual clips.
I've been trying to use something like:
i = 1;
while (i<=6) {
with (_root.parentclip.child add i) {
gotoAndStop (1);
}
i = i+1;
}
This doesn't work though...Can anyone help out? TIA...
K.
-
I think this would work:
Code:
for (i=1;i<6;i++) {
_root.parentclip[child +i].gotoAndStop(1);
}
that should work... but i havn't tested it out :)
-
Thanks!
The only change I had to make was putting quotes around the word "child"...
K.