blog.knym.net | I'm searching something to change my life.

オブジェクトが継承してるクラス名の取得

import flash.utils.describeType;


//itemという変数のクラス名をとるとき
var className:String = String(describeType(item).@name).match(/::(.*)/)[1];


flash.utilsはあなどれん。

Related Posts

Write a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

Essentials

Meta

Pages

Categories