开发者

Alternative for delete

In previous versions o开发者_如何学Pythonf Actionscript, you could use delete in conjunction with Object.registerClass('name', null) to delete class definitions at runtime. Now, according to Adobe documentation, delete will only remove any dynamically attached properties, leaving the core object or definition lingering in memory.

Is there a way to completely remove a class definition (not just an instance) at runtime in Actionscript 3?


Simply, no.

In AS3, you can only delete members of dynamic objects. You've probably already googled and found this, but: http://gskinner.com/blog/archives/2006/06/understanding_t.html.

You can segregate definitions by using multiple ApplicationDomains, but I guess this isn't quite what you're looking for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜