« Cross domain policy
» FDT - an other tool to develop flex projects

ActionScript

How to find the class name of an object instance?

Andrei Ionescu | 18.10.07 | 2 Comments

If you need to find the class name of an object instance you can use:

className = flash.utils.getQualifiedClassName(yourObject);

This will return a string containing the name of the class that is the base for yourObject. Is very helpful when you need to show errors in big applications.

The returned value is something like this: my.path.to.class::className.

Popularity: 15%

Share and Enjoy:
  • Technorati
  • StumbleUpon
  • del.icio.us
  • NewsVine
  • Reddit
  • Digg
  • Furl
  • co.mments
  • blogmarks
  • Slashdot
  • DZone
  • Taggly
  • YahooMyWeb
  • connotea
  • Webride




Tags: , , ,

This post was written by Andrei Ionescu

Views: 1622

related

popular

2 Comments

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

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>

:

:


« Cross domain policy
» FDT - an other tool to develop flex projects