开发者

How to print out an object memory address at runtime? like this.toString() in java [duplicate]

开发者 https://www.devze.com 2022-12-20 15:32 出处:网络
This question already has answers here: How can I get an instance's "memory location" in ActionScript?
This question already has answers here: How can I get an instance's "memory location" in ActionScript? (6 answers) Closed 开发者_StackOverflow中文版9 years ago.

How to write an AS3 object's memory location for example to a label? I need it for debugging purposed. Thanx


Long answer: you can do it but it's a dirty, dirty hack: How can I get an instance's "memory location" in ActionScript?


NameUtil.createUniqueName() is pretty handy for this type of thing.


Short answer: there is no way to do that. However, you can search something in flash.sampler package.

0

精彩评论

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