Loop every Movie Clip on the stage
- Petwoip
-
Petwoip
- Member since: Jan. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
The stage has a bunch of movie clips scattered around, and they each have different symbol names and instance names. Is there any conceivable way to create a loop that detects each movie clip on the stage and moves them all by 10 pixels to the right?
.
- TheSongSalad
-
TheSongSalad
- Member since: Jan. 17, 2009
- Offline.
-
- Forum Stats
- Member
- Level 19
- Audiophile
if you're looking to do this over time. tween the whole stage.
- Denvish
-
Denvish
- Member since: Apr. 25, 2003
- Offline.
-
- Send Private Message
- Browse All Posts (15,977)
- Block
-
- Forum Stats
- Member
- Level 46
- Blank Slate
At 2/18/09 01:59 PM, Petwoip wrote: The stage has a bunch of movie clips scattered around, and they each have different symbol names and instance names. Is there any conceivable way to create a loop that detects each movie clip on the stage and moves them all by 10 pixels to the right?
for(var i in _root){
if(_root[i]._x!=undefined){
_root[i]._x+=10;
}
}
- Petwoip
-
Petwoip
- Member since: Jan. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 04
- Blank Slate
Hey, thanks a lot Denvish! It works!
.


