Skip to main content
Jhon Carlo
Inspiring
January 31, 2017
Answered

.rotation for several Mc

  • January 31, 2017
  • 1 reply
  • 353 views

Hello,

I have several Mc on stage.

I need to have diferent kind of rotation fo each one.

I supose to use the method .rotation in a list,

Can I use for example somethig like:

MyList[x,y,a,b,c ....].rotation

or whatever

Wich is the way to solve this?

Thank you.

This topic has been closed for replies.
Correct answer kglad

you can use:

mcA:Array = [mc1,mc2,etc]

for(var i:int=0;i<mcA.length;i++){

mcA.rotation=whatever

}

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 31, 2017

you can use:

mcA:Array = [mc1,mc2,etc]

for(var i:int=0;i<mcA.length;i++){

mcA.rotation=whatever

}

Jhon Carlo
Inspiring
February 1, 2017

Thank you kglad!!!

This  works great;

kglad
Community Expert
Community Expert
February 1, 2017

you're welcome.