Flex and Flickr and DisplayShelf

| | Comments (0) | TrackBacks (0)

I've been working with the fabulous DisplayShelf code from simplyscheming.com to try to make various types of browsers in Flex. Yesterday, I *just about* had it working to browse images from flickr, but I ran into the old 'checkpolicyfile' problem. Even though Flickr has been nice enough to put crossdomain.xml files on all their static servers, the DisplayShelf code needs to manipulate the image as a bitmap to make the groovy reflection underneath the picture.

I found places where people fixed this problem by changing LoadContext, and other places where people added trustContent to the Image, but I couldn't figure out how to make this work correctly in the context of DisplayShelf.

Fortunately, there in the code was a reference to someone I'd worked with a zillion years ago (ok, 13), and I pinged him to ask for help. He gave me the magic answer, which looks like this (you'll need to 'view source' to see it, I'm not sure how to get HTML-ish things to show up in MT).

Original DisplayShelf component in mxml:


New DisplayShelf component:







Seemed a little obscure, but it works and now my browser is happy.

Thanks to NJ for saving my sanity :-)

0 TrackBacks

Listed below are links to blogs that reference this entry: Flex and Flickr and DisplayShelf.

TrackBack URL for this entry: http://www.perlgoddess.com/cgi-bin/mt/mt-t.cgi/47

Leave a comment

About this Entry

This page contains a single entry by Synedra published on November 15, 2007 11:07 AM.

Working like Sheep was the previous entry in this blog.

Configurable FreeSpin is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.0