movieclip array on click of each button


hi all,

 

i have browse button on stage. when click uploading image movieclip. movieclip added stage. issue when click browse button 2nd time need select image , add movieclip , display it  stage.

any idea of incrementing movieclip array on click of button.

 

thanks in adv help

krsmk

you need create new instance of movieclip, each time image loaded. go this:

 

private function oncomplete(event:event):void {      var mc:movieclip = new movieclip();      mc.addchild(yourimage);     // add uploaded image mc      myarr.push(mc);     // keep reference of mcs } 


More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support