Thanks Zeh!
I understand the concept of what you're saying to do, but don't understand
how to apply it.
Right now I'm doing this:
onClipEvent (enterFrame) {
framePos = int(_xmouse / 200 *( _parent._totalframes));
if (framePos<0) {
_parent.gotoAndStop(_parent._totalframes + ((framePos + 1) %
_parent._totalframes));
} else {
_parent.gotoAndStop(1 + (framePos % _parent._totalframes));
}
}
I thought I could change my clip event to an onPress event, but that
doesn't work at all.
Right now this code is on the MC itself.
Thanks for the help!
Paul
When the user clicks the area, you save the main stage _xmouse to any
other
auxiliary variable. Then, when the user moves the mouse, if you subtract
the
saved/original _xmouse from the current new _xmouse, you will get the
ammount of 'pixels' it should move (then you have to translate that to how
many frames you want your animation to skip forward/backward).
Zeh
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com