1120: Access of undefined property p01.

New Here ,
Jun 18, 2020 Jun 18, 2020

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?

Views

40

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 18, 2020 Jun 18, 2020

Copy link to clipboard

Copied

LATEST

there's no object with instance name p01. 

 

either create one or name an existing object.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines