Well, if the HTML that embeds the .swf when they load it in their site
is in a different location than the .swf, and that's not how you did it
when you programmed it,  then you'll definitely have path issues.  The
path to the XML and other media assets is relative to the HTML that
embeds the .swf, not where the .swf actually is.  You would have to
republish with the paths changed relative to where their HTML file is
when they post your site, or tell them to set up the site like you did
when you built it (say the HTML and the .swf in the same folder)


Jason Merrill 

 Bank of  America  Global Learning 
Learning & Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)





-----Original Message-----
From: [email protected]
[mailto:[email protected]] 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 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 either]. 
We can't just tell them "sorry" because they are some huge multinational

company, and we are a small local agency...

They sent me the path names of where they put the file, and where it is 
being loaded from, so I tried hardcoding the exact path into my AS file 
for the XML file, but it still wont load it.

I know that if I make them test my HTML file that I used, which sits in 
the same folder as the resources, it works for them JUST FINE...

So it is when they try and load it from a different directory on the 
same server that it doesn't.

Something like:

http://theirsite.com/flash

Is being read from:

http://theirsite.com/someotherplace/somesubfolder

Is there something else I need to set, it loads the SWF from:


http://theirsite.com/flash

just fine, but it won't load the XML from:


http://theirsite.com/flash/xml/data.xml

Any other ideas?

Thanks!

Seb.

Nathan Mynarcik wrote:
> 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 to 30 times
with them on file versions until they get fed up. Having you do it
without being able to test is like having you code blindfolded with
yours hands tied. 
> 
> 
> ------Original Message------
> From: sebastian
> Sender: [email protected]
> To: Flash Coders List
> ReplyTo: Flash Coders List
> Subject: [Flashcoders] problem with paths
> Sent: Jan 22, 2010 2:16 PM
> 
> Hello flash coders,
> 
> Simple question I believe, but I'm having problems with a delivery of
a 
> flash file.
> 
> My flash file loads an external XML and then from the external XML it 
> loads images, videos text etc.
> 
> It works fine locally and on our test server, however at the client's 
> server, which is on an intranet so I can't test or see what they see,
it 
> doesn't load the XML...
> 
> I tried hard coding the paths that they tell me the XML resides in,
and 
> they promise me that they have kept the file structure intact, and
they 
> have also informed me that there is no cross domain going on...
meaning 
> that the flash is being loaded from the same domain where the data is 
> being kept.
> 
> My question is: how could this not be working? My only guess is that
the 
> file is being embeded in an HTML file that is NOT in the path of where

> the files are being kept, but then my hardcoded full-paths should (?) 
> have resolved this...?
> 
> 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?
> 
> Thanks for any insight or thoughts you can offer!
> 
> Best,
> 
> Seb.
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> 
> Nathan Mynarcik
> Interactive Web Developer
> [email protected]
> 254.749.2525
> www.mynarcik.com
> 
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
_______________________________________________
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