Re: [Flashcoders] AS3 URL existence validation

2010-05-07 Thread Henrik Andersson

Eric E. Dolecki wrote:

Hey all,

I am trying to validate whether or not a file exists on a server. Normally
this is easy peasy.



Did you get the memo about http servign resources and not files? It 
doesn't matter what the path is, the reply can still be any of the reply 
codes.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 URL existence validation

2010-05-07 Thread Eric E. Dolecki
Hey all,

I am trying to validate whether or not a file exists on a server. Normally
this is easy peasy.

urlLoader = new Loader();
urlLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, urlLoaded );
urlLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
onUrlLoadError );
urlLoader.load( new URLRequest( xml.projects.project[nwhichprojec...@url ));

However, I have URLs that appear like so: http://www.somelocation.com/foo/

The index exists but of course* I can't test for that* since one isn't
actually supplied in the URL. Is there any way to test for this, or do I
need to push on the XML supplier to specify the actual index file in that
attribute?

Eric
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders