Re: [Flashcoders] relative path issue

2006-06-08 Thread janosch
I don't know why, but this email cam to me like this: Hello all, Painful discovery. This technique works great on a PC, not on a MAC. Any ideas? -- Michael Michael A. Jordan schrieb: Hello all, Painful discovery. This technique works great on a PC, not on a MAC.

Re: [Flashcoders] relative path issue

2006-04-06 Thread elr
Yes, I finally see this approach: 1 - as you suggest, make child.swf detect its "running mode" (embedded or not) 2 - pass relative path to main.swf through a flashvar I 'll have a look at System.capabilities lib. Thx to all of you for your fast answers ;-) Eric At 2006-04-06 10:23, you wr

RE: [Flashcoders] relative path issue

2006-04-06 Thread Adrian Lynch
xternal") { 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

Re: [Flashcoders] relative path issue

2006-04-06 Thread elr
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 <

Re: [Flashcoders] relative path issue

2006-04-06 Thread Éric Thibault
OUPS... Change this line : MyXML.load(AppendPathFolder+ "/child.xml"); to this : MyXML.load(AppendPathFolder+ "child.xml"); and put the "/" inside the parent's PathToFolderXML variable! Éric Thibault wrote: I think he says that when testing the child.swf there is no error but when loaded ins

Re: [Flashcoders] relative path issue

2006-04-06 Thread Éric Thibault
I think he says that when testing the child.swf there is no error but when loaded inside the parent SWF the error shows... The only way I manage to come over this is to test inside the child.swf if it is embeded inside another swf... if so, I modify my path to the xml. You can also put inside

Re: [Flashcoders] relative path issue

2006-04-06 Thread Manuel Saint-Victor
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