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

Adobe Flash - Error, "Access of Undefined Property"

New Here ,
Sep 25, 2017 Sep 25, 2017

Copy link to clipboard

Copied

How to fix an undefined property compiler error in Adobe Flash CS6?

Views

2.2K

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
New Here ,
Sep 25, 2017 Sep 25, 2017

Copy link to clipboard

Copied

Also, need to know how to create a Mouse Click Event.

Ex:

Master.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_131);

function fl_MouseClickHandler_131(event:MouseEvent):void

{

  fscommand("exec", "Master_Supply_List.app");

}

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
Contributor ,
Sep 25, 2017 Sep 25, 2017

Copy link to clipboard

Copied

Something that is undefined, does not exist. So your code is trying to access something that doesn't exist. Could you paste the code you're using?

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
New Here ,
Sep 25, 2017 Sep 25, 2017

Copy link to clipboard

Copied

/* Stop at This Frame

The Flash timeline will stop/pause at the frame where you insert this code.

Can also be used to stop/pause the timeline of movieclips.

*/

stop()

/* Mouse Click Event

Clicking on the specified symbol instance executes a function in which you can add your own custom code.

Instructions:

1. Add your custom code on a new line after the line that says "// Start your custom code" below.

The code will execute when the symbol instance is clicked.

*/

MainMenu.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_100);

function fl_MouseClickHandler_100(event:MouseEvent):void

{

  gotoAndStop(1);

}

/* Mouse Click Event

Clicking on the specified symbol instance executes a function in which you can add your own custom code.

Instructions:

1. Add your custom code on a new line after the line that says "// Start your custom code" below.

The code will execute when the symbol instance is clicked.

*/

Song_1.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_101);

function fl_MouseClickHandler_101(event:MouseEvent):void

{

  fscommand("exec", "Song_1.app");

}

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
Contributor ,
Sep 25, 2017 Sep 25, 2017

Copy link to clipboard

Copied

For the error, does it say what line is causing it?

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
LEGEND ,
Sep 25, 2017 Sep 25, 2017

Copy link to clipboard

Copied

LATEST

The error is trying to tell you that something in the code can't be found. The problem may not be a property, it may be an object. If you, for instance, put your code in frame 1 of the timeline and some object that is referenced, Song_1, for instance, doesn't appear in frame 1, then the Actionscript can't resolve the object with the code. Another common problem is a simple typo: Song_1 is not the same as song_1, to Actionscript for instance.

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