Skip to main content
Participant
Jun 13, 2023 11:37 AM UTC
Question

gotoandplay action on button - propety access not defined

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 is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    kglad
    Community Expert
    Community Expert
    Jun 13, 2023 12:51 PM UTC

    is your project an html5/canvas project?

    Translate
    Participant
    Jun 13, 2023 1:58 PM UTC

    Hello kglad, no, Action Script 3.0

     

    Translate
    kglad
    Community Expert
    Community Expert
    Jun 13, 2023 2:00 PM UTC

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

    Translate