You can't have an object of a type that's not part of the VM at runtime, but it doesn't include any classes into the swf of the class making that call. It returns a String, which you can then use with getDefinitionByName() without ever knowing (or referencing) the Class object.
-Josh On Wed, Sep 24, 2008 at 5:52 PM, Ralf Bokelberg <[EMAIL PROTECTED]>wrote: > Hi Josh > > Does it work without the class beeing linked to the project? Is it a > compiler instruction? > > Cheers > Ralf. > > > On Wed, Sep 24, 2008 at 9:19 AM, Josh McDonald <[EMAIL PROTECTED]> wrote: > > getFullyQualifiedClassName(instance); > > > > -Josh > > > > On Wed, Sep 24, 2008 at 5:11 PM, Ralf Bokelberg < > [EMAIL PROTECTED]> > > wrote: > >> > >> I don't think this is possible, unless you put the class name in a > >> string property of your object. If you want to use introspection (eg. > >> is, instanceof, describeType), the class itself has to be available, > >> otherwise there is nothing to introspect really. > >> > >> Cheers > >> Ralf. > >> > >> On Wed, Sep 24, 2008 at 12:53 AM, pratikshah83 <[EMAIL PROTECTED]> > >> wrote: > >> > Hi Guys, > >> > > >> > I would like to know if there is any other way to find out if the > >> > object is of a particular type. > >> > > >> > I am currently using the "IS" keyword to check if the object is of a > >> > particular type. (Object is Type) > >> > > >> > But doing that is loading the complete class in the swf file which if > >> > increasing the size of the swf to a great extend and affecting the > >> > performance of the application. > >> > > >> > Can you suggest me any way to check for an object is of some type > >> > which would not increase the swf size of than (Object is Type). > >> > > >> > Thanks > >> > Pratik > >> > > >> > > >> > >> ------------------------------------ > >> > >> -- > >> Flexcoders Mailing List > >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > >> Alternative FAQ location: > >> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > >> Search Archives: > >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > >> > >> > >> > > > > > > > > -- > > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > > > http://flex.joshmcdonald.info/ > > > > :: Josh 'G-Funk' McDonald > > :: 0437 221 380 :: [EMAIL PROTECTED] > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

