Copy link to clipboard
Copied
Here is the code I used:
import flash.events.MouseEvent;
stop();
var p01StartX: int = 56
var p01StartY: int = 112
var p01EndX: int = 368.15
var p01EndY: int = 162.05
p01.buttonMode = true;
function startDragging(e:MouseEvent):void
{
e.currentTarget.startDrag();
}
function stopDragging(e:MouseEvent):void {
e.currentTarget.stopDrag();
}
and thus I get the error stated as subject.Any suggestion please?
Copy link to clipboard
Copied
there's no object with instance name p01.
either create one or name an existing object.