Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AS2 to AS3 rewrite - gotoAndStop and tellTarget

New Here ,
Jan 15, 2016 Jan 15, 2016

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

}

TOPICS
ActionScript
378
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 15, 2016 Jan 15, 2016
LATEST

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

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines