Posts: 184
Location: print_r($serbia);
|
Hello,
Is there a way to change frames back and forth with slider?
i've done it but it changes frames after the release of the mouse button.
Can this be done the other way?
I mean while im holding the mouse button.
Code:
function dragSlideDown(event:MouseEvent):void
{
mc_drag.startDrag(false, new Rectangle(mc_drag.x, 20, 0, mc_slide.height - mc_drag.height + 2));
gotoAndStop(this.currentFrame + 3);
stage.addEventListener(MouseEvent.MOUSE_UP, dragSlideUp);
}
function dragSlideUp(event:MouseEvent):void
{
mc_drag.stopDrag();
stage.removeEventListener(MouseEvent.MOUSE_UP, dragSlideUp);
}
|