Skip to main content
Participant
June 13, 2023
Question

gotoandplay action on button - propety access not defined

  • June 13, 2023
  • 1 reply
  • 181 views

Hello,

I used to play with Adobe Flash since Action Script 2.0 (looong time ago) and now I'm doing an interactive video with Animate 23.0.2.

I did a Button and called his istance "TRADIZIONALE_inst".
When i try to insert an action (gotoAndStop) and play the movie the debug tell something similar:
"property not defined TRADIZIONALE_inst".

This is the code in the action panel:

TRADIZIONALE_inst.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_3);
function fl_ClickToGoToAndStopAtFrame_3(event:MouseEvent):void
{
gotoAndStop(5);
}


Can you help me please?

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    June 13, 2023

    is your project an html5/canvas project?

    Participant
    June 13, 2023

    Hello kglad, no, Action Script 3.0

     

    kglad
    Community Expert
    Community Expert
    June 13, 2023

    then there's no TRADIZIONALE_inst existing when your problematic code executes.