multiple control

  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Posts: 143
  • Loc: Ukraine

Post 3+ Months Ago

If say I have 10 movie clips, a1,a2,a3...a10, how do I create a loop that does an action on them all. I've tried _root.a+1=._x+=1 but flash doesn't like the syntax.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Posts: 861
  • Loc: BKNY

Post 3+ Months Ago

Code: [ Select ]
for (n=1; n<11; n++;){
_root.a[n]=._x+=1;}
  1. for (n=1; n<11; n++;){
  2. _root.a[n]=._x+=1;}


might work... not sure what you're trying to do, though, with the actual script there... there might be something wonky there...

hope this is helpful...
  • yuriythebest
  • Banned
  • Banned
  • User avatar
  • Posts: 143
  • Loc: Ukraine

Post 3+ Months Ago

hmm, I've tried your suggestion in this:
_root.box[1]._visible=false;

however, the movie clip with the instance name box1 does not go invisible, what do I do?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.