Wednesday, 17 February 2016

PARENT ROOT MOVIE CLIP PLAY IN AS2


====================================================================== MOVIE PLAY IN AS2 WITH PARENT METHOD
https://youtu.be/ukXq25aPb_E
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001346.html
======================================================================
//FIRST METHOD //INSIDE BUTTON CODE YOU DON'T NEED BUTTON INSTANCE NAME on(release){ green._parent.play(); }

//OR USE THIS CODE
on(release){
this.gotoAndPlay(1);
}

//OR USE THIS CODE
on(release){
gotoAndPlay(1);
}

//OR USE THIS CODE WITH MOVIE INSTANCE NAME
on(release){
gotoAndPlay("mc1");

}
===================================================================== OR USE SECOND METHOD ===================================================================== //INSIDE TIMELINE FRAME CODE green._parent.stop(); my_btn.onRelease = function(){ green._parent.play(); };

====================================================================== MOVIE PLAY IN AS2 WITH ROOT METHOD ====================================================================== //FIRST METHOD //INSIDE BUTTON CODE YOU DON'T NEED BUTTON INSTANCE NAME on(release){ _root.green.play(); } ===================================================================== OR USE SECOND METHOD ===================================================================== //INSIDE TIMELINE FRAME CODE green.stop(); my_btn.onRelease = function(){ _root.green.play(); };



EmoticonEmoticon