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
Printable View
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
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
Thanks!
I'll give it a try!