AS3 go to main timeline


i have movieclip in movieclip button, when clicked should go main timeline have done as2, script below. how can accomplish in as3.

 

 

on (release) {
     _root.gotoandstop(785);
}

 

 

thanks in advance

yourbutton.addeventlistener(mouseevent.click,f);


function f(e:event){

movieclip(root).gotoandstop(785);

}



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO