Loading images from Facebook in Flash Builder

Posted by wannax on Stack Overflow See other posts from Stack Overflow or by wannax
Published on 2011-03-08T00:08:22Z Indexed on 2011/03/08 0:10 UTC
Read the original article Hit count: 212

Filed under:
|
|
|
|

Hi, I'm doing a Facebook App where I'd like to pull out all the possible images from a user's album.

What I'm trying to do at the moment is a fql query so that i can find all the images that belong to that specific user. it goes something like that:

        protected function loadFromFacebook(event:MouseEvent):void {

            var fql:String = "select src_small from photo where owner = me()";              
            Facebook.fqlQuery(fql, handleGetPhotosResponse);

        }


        private function handleGetPhotosResponse(event:Object, fail:Object):void {
            if (event != null){

                facebookPhotos = new ArrayCollection(event as Array);

            } 
        }

I store this images in an array collection but I don't know how to proceed after that. How can I load those images into, say, a Tile List or a Loader?

Any help would be much appreciated,

thanks

© Stack Overflow or respective owner

Related posts about flash

Related posts about image