the deffrent between children and visibles objects
hi
i have problem here because iam confusing between these things , know visible property has values true , false , , addchild thing because when have 2 objects
then put object 2 in object1 , have own x,y postion depend on object , , object 1 child main stage , here problem
i.ve opened discuss before this
and when remove child , effect there ?? on stage !! hiding object
? iam confuse , if removechild doesn,t remove object existing how can remove it??
thank , hope guys imean in question
please check link (my old discuss)
thank
if want destroy display object, remove display list, remove listeners , object references , null object. example,
bat1.parent.removechild(bat1); // if bat1 in display list
bat1.removeeventlistener(event.enter_frame,f); // if listener added
batarray.splice(batarray.indexof(bat1),1); // if bat1 in array batarray
bat1=null;
More discussions in ActionScript 3
adobe
Comments
Post a Comment