Skip to main content
aaaaaa5085719
Participant
January 15, 2016
Question

AS2 to AS3 rewrite - gotoAndStop and tellTarget

  • January 15, 2016
  • 1 reply
  • 395 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 has been closed for replies.

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

}