• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

88

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
Community Expert ,
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.

Votes

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