A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Stopping 'Rotation Made EZ'

  1. #1
    .....<<>>>.....
    Join Date
    Apr 2000
    Posts
    120

    Wink

    Ok-
    I'm probably making this more complicated than it should be-Messing around with the tute "Rotation Made Easy", and what I want to do is place a button on one corner of the box that rotates with it and will stop the rotation when moused over

  2. #2
    Senior Member
    Join Date
    Apr 2000
    Location
    Minneapolis
    Posts
    2,127
    how about this, wrap the rotation code in an if statement like this

    if (_root.spin == 0) {
    setProperty ("box", _rotation, r);
    r = r+1;
    }

    so it only rotates if variable spin equals zero.

    then on your button

    on (rollOver) {
    _root.spin = 1;
    }
    on (rollOut) {
    _root.spin = 0;
    }

    spin will have a value of zero before the buton is touched the first time by default, so it will spin immediately.
    make sense?
    having trouble with my email post notification so if you need help let me know on [email protected] and I will post the answer here
    mark

  3. #3
    .....<<>>>.....
    Join Date
    Apr 2000
    Posts
    120
    Thanks!
    I'll give it a try!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center