Throw away those Flickr proxies! They added an open crossdomain file on http://static.flickr.com. Fuck yeah! Read the blog post here. You can see the crossdomain file here: http://static.flickr.com/crossdomain.xml. Thank GOD. I no longer need to route every single Flickr image through my server just to get access to BitmapData for an image. This is one of those things that bugged me so much about Flickr. They gave us a nice open crossdomain file on their server we use for api calls, but not on the server that gives us images.
w00t!!
P.S. I usually don’t do these rehashing of blogosphere posts, but this one makes my life a helluva lot easier, so I wanted to share in case anyone missed it.
Entries (RSS)
August 29th, 2007 at 2:29 pm
I know the pain of crossdomain, this is huge for flickr and flash developers.
I’ll raise my glass of Sam Adams in light of your celebration!
August 30th, 2007 at 6:09 am
Hello Doug,
Thanks for reporting the news…However, I’m still seeing an error with my stuff:
SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://www.foo.com/beta/foo.swf cannot access http://farm2.static.flickr.com/1089/1265703777_284e402b37_m.jpg. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
Is there something I’m supposed to set with my code before loading the image? Also, the image I’m loading is from farm2.static.*, I assume that the crossdomain file at static.flickr.com would bubble up to farm2.static*?
August 30th, 2007 at 6:51 am
Ooops, nevermind. I forgot I commented out the code that would force the domain policy file to load.
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.checkPolicyFile = true;
daImage.loaderContext = loaderContext;
August 30th, 2007 at 6:54 am
Now we are waiting for another example of the tileUI with flickr search capabilities. I can hardly wait. I am beside myself with anticipation.
August 30th, 2007 at 7:08 am
Actually, I’m still struggling. I’ve enabled a loaderContext on my image, yet I’m still getting the following error, the code above, with the loaderContext.checkPolicyFile = true still yields the following error:
SecurityError: Error #2122: Security sandbox violation: Loader.content: http://www.foo.com/beta/foo.swf cannot access http://farm2.static.flickr.com/1038/1268531562_468c2e72f2_m.jpg. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
at flash.display::Loader/get content()
at mx.controls::SWFLoader/get content()
at TestWindow/::dupeImage()
at TestWindow/::dragIt()
Anything else I could be missing?
August 31st, 2007 at 3:16 am
It would surely save bandwidth and make things easier…
Great move by Yahoo! I hope, Google also starts having crossdomain.xml..
-abdul
November 13th, 2007 at 2:08 pm
hi I have solved this error. [SecurityError: Error #2122], please visit my blog at
http://theflashblog-bg.com/index.php?p=40 , make sure to change the language if is needed.
November 18th, 2007 at 3:09 pm
traceleltelt
April 22nd, 2009 at 4:50 am
hmm… good one..
March 10th, 2012 at 1:52 pm
Its like you read my thoughts! You appear to know so much about this, like you wrote the ebook in it or something. I feel that you just can do with a few p.c. to drive the message home a little bit, however instead of that, this is fantastic blog. A fantastic read. I’ll certainly be back. http://www.fengdao.com
March 11th, 2012 at 6:04 am
This is very fascinating, You are an overly skilled blogger. I have joined your feed and stay up for searching for more of your wonderful post. Also, I’ve shared your site in my social networks!
May 14th, 2012 at 7:08 pm
this remarkable website could be one of the really finest in its specialized niche. Exceptional blog site!