Skip to main content
aaaaaa5085719
Participant
January 15, 2016
Question

AS2 to AS3 rewrite - gotoAndStop and tellTarget

  • January 15, 2016
  • 1 reply
  • 397 views

Hello guys.

I am looking to redo some code AS2 and AS3. How to rewrite in AS3 the code below:

on (release)

{

    gotoAndStop(5);

    tellTarget("/teste")

    {

        gotoAndStop("off");

        tellTarget("")

        {

        } // End of TellTarget

    } // End of TellTarget

}

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

kglad
Community Expert
Community Expert
January 15, 2016

in the properties panel assign the object that has that code attached to it an instance name, eg obj1.

in the properties panel use

obj1.addEventListener(MouseEvent.CLICK,f);

function f(e:MouseEvent):void{

gotoAndStop(5);

teste.gotoAndStop('off');

}