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.

9 Responses to “Yes!! Thank you Flickr for crossdomain.xml”

  1. Rob Abbott says:

    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!

  2. Todd says:

    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*?

  3. Todd says:

    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;

  4. Tony says:

    Now we are waiting for another example of the tileUI with flickr search capabilities. I can hardly wait. I am beside myself with anticipation.

  5. Todd says:

    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?

  6. Abdul Qabiz says:

    It would surely save bandwidth and make things easier…

    Great move by Yahoo! I hope, Google also starts having crossdomain.xml..

    -abdul

  7. dfm says:

    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.

  8. darrocnavi says:

    traceleltelt

  9. Prearycle says:

    hmm… good one..

Leave a Reply