You can create your own variable based on:

System.capabilities.playerType

It will be "External" when in the IDE. Other values include "ActiveX",
"PlugIn" and one other which I can't remember.

So something like:

if (System.capabilities.playerType == "External") {
        path = "../";
} else {
        path = "../../../../../../../";
}

Adrian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of elr
Sent: 06 April 2006 15:28
To: Flashcoders mailing list
Subject: Re: [Flashcoders] relative path issue


yes, Manuel,  ./dirB/"./dirB/child.xml" works but it prevents any
relocation of files without code update. :(
Can't we imagine a kind of  environment variable returning swf's
path? A kind of ?


Eric


At 2006-04-06   10:08, you wrote:
>did you try the path "./dirB/child.xml"?
>
>
>On 4/6/06, elr <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi all,
> >
> > As many before me, I can't get rid of a "Error opening URL "file:"
> > message...
> > I set up a small swf that locally access to an xml file ( these two
> > files are in the same dirB)
> >
> > Now using a loadMovie command,I try to load this small swf module
> > into a main one that is located in a parent dirA
> > //dirA/main.swf
> > //dirA/dirB/child.swf
> > //dirA/dirB/child.xml
> >
> >
> > I don't want any absolute path into child.swf  neither to relocate
> > child.xml into dirA.
> > Is there a clean (easy?) way to make child module recover access to its
> > xml ?
> >
> > Thank you !
> >
> > Eric
> >
> > _______________________________________________
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>_______________________________________________
>[email protected]
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>Brought to you by Fig Leaf Software
>Premier Authorized Adobe Consulting and Training
>http://www.figleaf.com
>http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to