Hi there,
I am creating a dragging scrollbar movie of a timeline (the history kind, not the flash kind). I am using the actionscript to control the movement of the clip. The following code is placed on the dragging movie:
onClipEvent (enterFrame) {
if (dragging) {
this._x = _root._xmouse;
dxdrag = this._x - start_x;
start_x = this._x;
_root.timeline._x -= speed*dxdrag;
}
}
Now this all works great, and is pretty smooth. But I would like to smooth it out more and add some easing, both in and out.
Does anyone have any ideas how to do this? Do I need to use a tweening class like PennerEasing?
Thanks,
Steve
EDIT: I just realised i missed off a massive thing. Because this is a timeline, certain points on the scrolling area have to correspond exactly with points on the main content.
Had best add that “speed” is worked out as the difference between the widths of the two movieclips, the dragger and the content…