|
-
For loop and incrementing object names
I'm trying to loop through some objects, and I'm doing something wrong.
I'd like to do the following to some sound channel objects.
for (var n:Number = 0; n<5; n++) {
_root["sc" + n].stop();
}
Obviously, I can't do that in AS3, but that's what I want to do. The _root path is not important. I only added it because that syntax used to work in AS2. How can I loop through incrementing object names?
Thanks.
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
|