View Full Version : Interactive Rotation
leoviale
06-01-2005, 01:32 PM
Hi, i have some animation of 90 frames, of a 360º rotation object. What i want to do is this: have some scroll bar in the bottom of the movie, and when i scroll the bar to the left it plays the animation backwards, and when i drag the scrollbar right, it plays the animation forward. Thx
Headshotz
09-01-2005, 08:30 AM
You can acheive this by scripting it instead.
For the scrollbar (and I am assuming you know how to make one) you will need 2 different states. Either using the _x coordinates or different frames.
For the _x coordinates use this something similar:
onClipEvent(enterFrame) {
if (_root.scrollblock._x<=225) {
this._rotation-= 4;
}else{
this._rotation+= 4;
}
}
For the state you may want to use something like:
onClipEvent(enterFrame) {
if (_root.scrollblock._currentframe == 2) {
this._rotation+= 4;
}else{
this._rotation-= 4;
}
Hope this helps.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.