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

1120: Access of undefined property p01.

New Here ,
Jun 18, 2020 Jun 18, 2020

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?

116
Translate
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
LATEST

there's no object with instance name p01. 

 

either create one or name an existing object.

Translate
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