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

delete


Versions (?)


About delete


Published in: ActionScript 3 


  1. //delete will not delete the content,but the variable container,so the content will still survives in memory until all reference are removed and it is collected by the garbage collect.
  2.  
  3. var foo = bar = new Object();
  4. delete(foo);
  5. trace(bar);//Object object

Report this snippet 

You need to login to post a comment.