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

http://forums.adobe.com/message/4615780#4615780

 

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)

http://forums.adobe.com/message/4615780#4615780

 

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support