Re: [Flashcoders] problem with paths
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 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 McCormack wrote: 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;// Use the SWF path as a source temp=temp.replace(".swf","scores.txt"); // for the scores text file Also, you could email back to yourself the directories that you find. If they were prepared to run it, they could help by running Charles' web proxy from www.xk72.com/charles That would help them identify failed loading of files. John sebastian wrote: 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: flashcoders-boun...@chattyfig.figleaf.com 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.fi
RE: [Flashcoders] problem with paths
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 Fiddler2 and see where it is trying to locate the file as well. I think Safari has something like this built in. Forgot how to show that in Safari tho... http://www.fiddler2.com/fiddler2/ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [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 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;// Use the SWF path as a source temp=temp.replace(".swf","scores.txt"); // for the scores text file Also, you could email back to yourself the directories that you find. If they were prepared to run it, they could help by running Charles' web proxy from www.xk72.com/charles That would help them identify failed loading of files. John sebastian wrote: > 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: flashcoders-boun...@chattyfig.figleaf.com >> 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 >> &quo
RE: [Flashcoders] problem with paths
You could download Fiddler2 and see where it is trying to locate the file as well. I think Safari has something like this built in. Forgot how to show that in Safari tho... http://www.fiddler2.com/fiddler2/ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [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 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;// Use the SWF path as a source temp=temp.replace(".swf","scores.txt"); // for the scores text file Also, you could email back to yourself the directories that you find. If they were prepared to run it, they could help by running Charles' web proxy from www.xk72.com/charles That would help them identify failed loading of files. John sebastian wrote: > 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: flashcoders-boun...@chattyfig.figleaf.com >> 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
Re: [Flashcoders] problem with paths
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 McCormack wrote: 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;// Use the SWF path as a source temp=temp.replace(".swf","scores.txt"); // for the scores text file Also, you could email back to yourself the directories that you find. If they were prepared to run it, they could help by running Charles' web proxy from www.xk72.com/charles That would help them identify failed loading of files. John sebastian wrote: 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: flashcoders-boun...@chattyfig.figleaf.com 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/
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 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;// Use the SWF path as a source temp=temp.replace(".swf","scores.txt"); // for the scores text file Also, you could email back to yourself the directories that you find. If they were prepared to run it, they could help by running Charles' web proxy from www.xk72.com/charles That would help them identify failed loading of files. John sebastian wrote: 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: flashcoders-boun...@chattyfig.figleaf.com 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] problem with paths
> 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, where the Flash file was looking for an XML file in a specific location, and it was a big pain. > Which I would in-turn use as the prefix for all my assets that are being > loaded? Right. Assuming there's just the one XML file, you could just have the path include the file. Otherwise, you could have a flashvar containing a URL to which you append specific file names as needed. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] problem with paths
>> 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 solutions to this here. Logic dictates that you need to know where on that intranet, your HTML file ends up, where your .swf ends up, and where the media files ends up. If you don't know the answer to all three of those, then we really can't help you here. 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) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] problem with paths
Hi again, and thank you everyone. And yes, they are using PHP to drive content all together, and since it is an intranet blog... who knows where all the assets are being placed... 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? Which I would in-turn use as the prefix for all my assets that are being loaded? This is my assumption, but just want to make sure I get it right before I go down this path which I can't test as I develop... Thanks! Sebastian. *ex: http://blabla.com/foldername/subfolder/actual_file.php p.s. As for the carpenter analogy... I know, we keep asking them for access... I think if I can't solve it today, they may permit me to come to their office and login from there to access the files [but they wont give me remote xs... pfff] Nathan Mynarcik wrote: "I would recommend that you rewrite your Flash app so that you can specify a fully-qualified URL as an argument in flashvars, then have them specify the fully-qualified URL to the XML file." Now that is a really good idea... --Original Message-- From: Dave 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 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 URL. 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? I would recommend that you rewrite your Flash app so that you can specify a fully-qualified URL as an argument in flashvars, then have them specify the fully-qualified URL to the XML file. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] problem with paths
"I would recommend that you rewrite your Flash app so that you can specify a fully-qualified URL as an argument in flashvars, then have them specify the fully-qualified URL to the XML file." Now that is a really good idea... --Original Message-- From: Dave 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 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 URL. > 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? I would recommend that you rewrite your Flash app so that you can specify a fully-qualified URL as an argument in flashvars, then have them specify the fully-qualified URL to the XML file. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] problem with paths
Yeah I bet you are right. For testing purposes what if they put the flash and xml files in the same folder as the html page and change your links accordingly? It also depends on if they are using regular html or building the intranet on struts or php. Then you could have files scattered all over coming together to create the webpage. I understand them not wanting you to have access. But I wouldn't want a guy to come build cabinets for my kitchen without letting him in the house to measure. Good luck mayne! Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com -Original Message- From: sebastian Date: Fri, 22 Jan 2010 13:18:08 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: flashcoders-boun...@chattyfig.figleaf.com > 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 > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > Nathan Mynarcik > Interactive Web Developer > nat...@mynarcik.com > 254.749.2525 > www.mynarcik.com > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] problem with paths
> 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 URL. > 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? I would recommend that you rewrite your Flash app so that you can specify a fully-qualified URL as an argument in flashvars, then have them specify the fully-qualified URL to the XML file. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] problem with paths
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: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-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 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: flashcoders-boun...@chattyfig.figleaf.com > 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 > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > Nathan Mynarcik > Interactive Web Developer > nat...@mynarcik.com > 254.749.2525 > www.mynarcik.com > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/
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: flashcoders-boun...@chattyfig.figleaf.com 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] problem with paths
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: flashcoders-boun...@chattyfig.figleaf.com 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] problem with paths
> 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 client (Flash, in this case) to start from the web root and work down - in this case, that would be http://domainname.com/xml/data/xml. If you want to get the data from /flash/xml/data.xml, you need to use that path, or use a fully-qualified URL. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] problem with paths
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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders