zz={} zz.test="qwerty" trace(zz.test) trace(zz) zz.del=function(){ this.death=true for (var i in _root) { if (_root[i].death){ delete _root[i] } } } zz.del() trace(zz.test) trace(zz)