Few interesting methods I have never come across. How about trying to instantiate it?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bart Wttewaall Sent: Thursday, 2 February 2006 8:38 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] can I know if I class/package has been imported ina swf? or how about: var exists:Boolean = classExists("your.class.path"); trace(exists); function classExists(path):Boolean { return (mx.utils.ClassFinder.findClass(path)); } 2006/2/1, Scott Hyndman <[EMAIL PROTECTED]>: > if (_global.path.to.class.Class != null > && typeof(_global.path.to.class.Class) == "function")) { > trace("CLASS EXISTS!"); > } > > -----Original Message----- > From: [EMAIL PROTECTED] on behalf of Jason Rayles > Sent: Wed 2/1/2006 11:33 AM > To: flashcoders@chattyfig.figleaf.com > Cc: > Subject: RE: [Flashcoders] can I know if I class/package has been imported in a swf? > > No. Is there a way for my code in my class to figure out if another > class that I am not writing but whose name I know is being used in a > swf. > > > > From: "Steven Sacks" <[EMAIL PROTECTED]> > > Subject: RE: [Flashcoders] can I know if I class/package has been > > imported in aswf? > > To: "'Flashcoders mailing list'" <flashcoders@chattyfig.figleaf.com> > > Message-ID: > > <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset="us-ascii" > > > >> Is it possible to know if a class is being used in a flash movie? If > >> so, how? > > > > Put a trace statement in the constructor of the class: > > > > class foo { > > function foo() { > > trace("new foo"); > > } > > } > > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders