Skip to main content
Participant
June 18, 2020
Question

1120: Access of undefined property p01.

  • June 18, 2020
  • 1 reply
  • 130 views

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?

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    June 18, 2020

    there's no object with instance name p01. 

     

    either create one or name an existing object.