AS3 Flickr for the next release of MyStylez
Apr 30th, 2008 by Dave
Ughhh I'm right there, it works, it's alive....but I have a bug that's driving me to drink. I worked in the AS3 Flickr library with MyStylez to add some Flickr + AIR goodness like drag and drop photos for upload and to use in the MySpace layouts.
The first time I call service.photos.getSizes() (to get the original urls) works great, I fill up a tile list with all my photos. The only thing MyStylez is concerned about is grabbing all the original photos to use for a layout with simple drag and drop. Problem is, after I upload new photos and call photos.getSizes() again I don't get my newest upload.
I was convinced it was a timing issue, like I was making the server call to quickly, but even after slowing down the process I still don't get my nifty new picture ARGHHHhh!!! Tried wiping out the ArrayCollection after a new upload with AC.source = new Array(), tried setting it to null and populating it again, tried AC.refresh()....this bug is driving me batty.
Anyone have similar problems out there? I've read about a few Flex bugs with AC's not refreshing, and some issues with the Flickr API, but I can't put my finger on it yet. I'm still kind of convinced that it must be user error, I overlooked something because I didn't have any beer tonight.....that must be it.
Anyway, the new release will go live soon, it's pretty cool. Once you give MyStylez permission to access Flickr, it grabs and displays all photos and you can just drag and drop them while building (er, excuse me) while watching your 17 year old build her MySpace layout
Surprisingly though, most of the people using MyStylez so far are late twenties and older, so that's cool. I'll make sure not to put up any glitter graphics because that might make me cringe.


