Copy link to clipboard
Copied
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
}
Copy link to clipboard
Copied
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');
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now