Hi everyone, thanks for all the advice and suggestions. I'm going to try
John's replacement suggestion, as this seems very promising!
Thanks!
Sebastian.
John McCormack wrote:
Sorry,
In my application the scores file would have the same name as the SWF
program, and so progam.swf becomes
If I understand this correctly:
html is in directory1
SWF in directory2/flash
SWF is trying to load the XML from directory2/flash/xml/
A SWF knows the directory it was loaded from and so can find the xml
directory. For example I use this...
var temp:String;
temp=this.loaderInfo.url;
Sorry,
In my application the scores file would have the same name as the SWF
program, and so progam.swf becomes progamscores.txt
temp=this.loaderInfo.url;// Use the SWF path as
a source
temp=temp.replace(.swf,scores.txt); // for the scores text file
John
John
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John
McCormack
Sent: Saturday, January 23, 2010 4:45 AM
To: Flash Coders List
Subject: Re: [Flashcoders] problem with paths
If I understand this correctly:
html is in directory1
SWF in directory2/flash
SWF is trying to load the XML from
Found it:
(In Safari)Right click on page-inspect element-resources-enable resources
-Original Message-
From: Nathan Mynarcik [mailto:nat...@mynarcik.com]
Sent: Saturday, January 23, 2010 10:37 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] problem with paths
You could download
Am I right that I can replace: the load /xml/data.xml with
http://domainname.com/flash/xml/data.xml; and then load the SWF from a
directory like: http://domainname.com/somsubdirectory/index.html; and get
it all to load correctly?
Paths that begin with a slash, such as /xml/data.xml, tell the
Is it published on the web? Or is the intranet on a shared drive on an internal
network? If it is the ladder, your path has to be longer than it would be for a
webserver.
Best bet would be to trace your butt off until you find the exact string you
need for the path. Go back and forth about 20
Thanks Nathan and Dave,
The leading slash was just a typo in my email, but the code doesn't
start with a leading slash, so that can't be the problem.
It's on an intranet, so an internal website that people like me, who are
external, can't see or access [and they won't grant me access
-boun...@chattyfig.figleaf.com] On Behalf Of
sebastian
Sent: Friday, January 22, 2010 4:18 PM
To: Flash Coders List
Subject: Re: [Flashcoders] problem with paths
Thanks Nathan and Dave,
The leading slash was just a typo in my email, but the code doesn't
start with a leading slash, so that can't
The leading slash was just a typo in my email, but the code doesn't start
with a leading slash, so that can't be the problem.
Well, in that case, it's doing something completely different. It's
expecting to find the XML file in a subdirectory within the directory
containing the current page
www.mynarcik.com
-Original Message-
From: sebastian infora...@gmail.com
Date: Fri, 22 Jan 2010 13:18:08
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] problem with paths
Thanks Nathan and Dave,
The leading slash was just a typo in my email, but the code
...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: Re: [Flashcoders] problem with paths
Sent: Jan 22, 2010 3:27 PM
The leading slash was just a typo in my email, but the code doesn't start
with a leading slash, so that can't be the problem.
Well, in that case, it's
Watts
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: Re: [Flashcoders] problem with paths
Sent: Jan 22, 2010 3:27 PM
The leading slash was just a typo in my email, but the code doesn't start
with a leading slash, so that can't
and since it is an intranet blog... who knows where all the assets
are being placed...
Huh. Well please take no offense when I say this, but your problem is
not with code, but with the people and processes running your intranet.
I would circle back with them before trying any fancy code
Curious about this solution below, when you say specify a fully qualified
url in the flash vars do you mean that the URL should specify the CURRENT
FULL URL* of the page loaded?
I was suggesting that you specify the fully-qualified URL for the XML
file. I just worked through a similar issue,
15 matches
Mail list logo