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

Actionscript 2 help needed to limiting the degree of rotation movieclip

Community Beginner ,
Jul 23, 2015 Jul 23, 2015

i need help with the "limiting degree of rotation movie clip"

I have movieclip. I want to rotate my movieclip with button. I made a script on the button

on(release){

            _root.my_movieclip._rotation+=5;           

}

The script runs. every time I click on a button, movieclip will rotate +5. but I want to limit rotation.

for example, I limit only to 30 degrees rotation when clicked addition and subtraction rotation to 45 degrees.

is there that can help me?

TOPICS
ActionScript
416
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 ,
Jul 23, 2015 Jul 23, 2015

on(release){

            _root.my_movieclip._rotation+=5;    

_root.my_movieclip._rotation>30){

_root.my_movieclip._rotation=30;


}

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 Beginner ,
Jul 25, 2015 Jul 25, 2015

thank's kglad... its work... I hope someday when you get into trouble. you easy finish

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 ,
Jul 25, 2015 Jul 25, 2015
LATEST

you're welcome.

(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

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