[Flashr] in development it works, online it still doesn't ...

Kelvin Luck kelvin at kelvinluck.com
Tue May 16 16:40:53 EDT 2006


Hmmm - strange, it worked for me in Firefox from work this morning (a 
load of photos loaded up from flickr under the flower)... But it isn't 
working for me now (from home) in Firefox or IE.

Just run it with Live HTTP Headers [1] which is a firefox plugin which 
is invaluable for debugging Flash / network stuff... And I noticed that 
a request comes up for:

http://127.0.0.1/crossdomain.xml

Is there anywhere in your actionscript where you are trying to call a 
script on 127.0.0.1? I think that the fact it is trying to find a 
crossdomain.xml file there and not managing too is breaking it...

Another thing I noticed as I looked through your code...

[quote]
try{
			_flashrResponse.onPhotosSearch = Delegate.create(this, onPhotosSearch);
			_flashr.photosSearch(s);
		} catch(err:Error) {
         	trace("problably no connection available >> " + 
err.toString(),Log.ERROR);
         	LogWrapper.getLog().error("problably no connection available 
 >> " + err.toString());
         }
[/quote]

You can't use try and catch like this unfortunately... The catch won't 
catch an error because the error happens asynchronously. You will have 
to override FlashrResponse.onError and do something with the error...

Hope this helps - please let us know if you figure out what the problem is,

Cheers,

Kelvin :)

[1] http://livehttpheaders.mozdev.org/

Joachim wrote:
> Hi,
> 
> I didn't resolve the problem, it is still there (the flower is a static
> one ;-) )
> I posted some images online (on the same page =>
> http://users.skynet.be/4d/eBaby/ )
> 1 image shows you what you should see (local development)
> 2 online in IE en MOZ (output to inspector is different)
> in the images i only show the start of inspector, when it starts loading
> you should see the loading of images from the flashr api
> 
> tnx :-p
> 
> Joachim



More information about the Flashr mailing list