ah! Thats what I was looking for, thanks for the tip!

On 3/19/08, Matthew Houliston <[EMAIL PROTECTED]> wrote:
>
> On 19/03/2008 20:28, Helmut Granda wrote:
> >
> >     I started testing the ApplicationDomain and
> > ApplicationDomain.currentDomain but that still turns undefined off line
> and
> > online...
> >
> >     // just for testing purposes:
> >     import flash.system.ApplicationDomain;
> >     this.applicationDomain = ApplicationDomain.currentDomain
> >     trace(this.currentDomain );
>
>
>
> ApplicationDomain isn't related to the server hostname - it's for
> managing classes in external swf files.
>
> You can get the current hosting address with
> trace(root.loaderInfo.loaderURL);
>
>
> Even better, IMO, you can check system.Capabilities.playerType to see
> if it's running locally:
>
> import flash.system.Capabilities;
>
> trace(Capabilities.playerType); // 'External', when running in the IDE
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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

Reply via email to