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:     [email protected]
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'" <[email protected]>
> 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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to