Skip to main content
Participant
September 25, 2017
Question

Adobe Flash - Error, "Access of Undefined Property"

  • September 25, 2017
  • 2 replies
  • 2641 views

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

    This topic has been closed for replies.

    2 replies

    Inspiring
    September 25, 2017

    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?

    Participant
    September 25, 2017

    /* 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");

    }

    Inspiring
    September 25, 2017

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

    Participant
    September 25, 2017

    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");

    }