|
-
multiple instance names!?
umm ive been experimenting on scripts that call out to instances with different names, but uses only one call script.
so ive done it like this, box1, box2, and box3 and so on and so forth
but what i cant do is to use, lets say box++?
is it possible to use a script that represents instance names with
accumilating numbers?
example:
box1, box2, box3, box4, box5...
_root.box++.do whatver
umm oh yeah....is this still a noob question?
haha tnx dudes!
"Are those gummy worms? Can I have some?"
"Nevermind, I just saw one move by itself..."
-
Registered User
Depends on what you want to use it for. A for loop will do something like that.
-
Senior Member
You can use a loop to perform some action with each of the clips,
Code:
for (var i = 1; i < howManyBoxes + 1; ++i) {
_root["box" + i].doSomething();
}
-
ohh thanks dudes! thx also for the sample file! Iv'e got a headstart one what to do,
oh yeah about your script catbert, i believe i saw the exact same thing in javascript, but i forgot the explanation on that...
can you ummm, enlighten me on this one?
thanks again dudes!!
"Are those gummy worms? Can I have some?"
"Nevermind, I just saw one move by itself..."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|