We Recommend

Essential ActionScript 3.0 Essential ActionScript 3.0
The book focuses on the core language and object-oriented programming, but also adds a deep look at the centerpiece of Flash Player's new API: display programming. Enjoy hundreds of brand new pages covering exciting new language features, such as the DOM-based event architecture, E4X, and namespaces--all brimming with real-world sample code.


Posted By

lzyy on 06/26/08


Tagged


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

visuallyspun


removeChild


Published in: ActionScript 3 


  1. //removeChild只是将对象从显示列表中移除,并没有从内存中移除
  2.  
  3. //要把对象从内存中去掉,最好的办法是弱引用,并且在removeChild后,加一句mc=null,取消之前的引用

Report this snippet 

You need to login to post a comment.