Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

.rotation for several Mc

Contributor ,
Jan 31, 2017 Jan 31, 2017

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.

TOPICS
ActionScript
300
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 31, 2017 Jan 31, 2017

you can use:

mcA:Array = [mc1,mc2,etc]

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

mcA.rotation=whatever

}

Translate
Community Expert ,
Jan 31, 2017 Jan 31, 2017

you can use:

mcA:Array = [mc1,mc2,etc]

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

mcA.rotation=whatever

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 31, 2017 Jan 31, 2017

Thank you kglad!!!

This  works great;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2017 Feb 01, 2017
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines