Hi,
Below is a sample of my code
function startScroll(e:MouseEvent):void {
e.currentTarget.startDrag(false,0,0,500,0)
}
I need to limit my drag only to x axis so I have used the rectangle dimensions above to constrain. However every time I try to drag something I get the following error.
ArgumentError: Error #1063: Argument count mismatch on flash.display::Sprite/startDrag(). Expected 0, got 5.
at homev_fla::MainTimeline/startScroll()
Can someone please tell me what I am doing wrong. Have been struggling with this for a really long time now.