[Flashr] simple tag search
gloria kao
gloriakao at gmail.com
Tue Dec 19 11:56:49 EST 2006
>
> Message: 1
>
> Another thing with the "local content can't access internet content" flash
> security restriction problem is,
> >
> > I already went to the Adobe website to trust file in my local location,
> why it still doesnot work?
> >
> >
> > Sorry to ask so many question!
> >
>
> This restriction isn't normally a problem. It doesn't apply when you are
> testing within the Flash IDE or when the swf is on a web server and
> these tend to be the places where you see an swf...
==> oh...I got a file from brendandawes's website, who used Flashr to write
a sample for showing Flickr photos.
And while I put this .swf (which also tries to communicate with
api.flickr.com) on my web server,
it works (after I went to the Adobe to trust this file)! Strange...
I am sort of newbie in actionscript, so I have taken some time to check your
sample http://kelvinluck.com/article/flashr-code-example,
and I have two tiny questions:
a. you wrote " function onPeopleGetPublicPhotos(p:Person):Void ... " in the
sample, which means you override this function
function onPeopleGetPublicPhotos(person: Person,
resultsSet: ResultsSet)because you don't want to bother with the resultsSet?
b. why you need to write " mc.photo = thisPhoto; " after you have called
the "loadMovie" to load the picture onto the movie clip (mc.jpgHolder) ?
mc.jpgHolder.loadMovie(thisPhoto.thumbnailUrl);
And since mc is a movie clip, but there is no property called photo belong
to a movie clip while I searched the help menu.
c. I saw you create a nested movieclip, but you don't increase the level of
the jpgHolder as you increase the level of the parent mc, why?
My rough guess is the parent mc is based on the whole stage and the
jpgHolder is based on their parent mc?
var mc:MovieClip = _target.createEmptyMovieClip("photo"+i, i);
mc.createEmptyMovieClip("jpgHolder", 1);
Thank you for all the answers. Merry Christmas!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/flashr_osflash.org/attachments/20061219/20c84f5d/attachment.htm
More information about the Flashr
mailing list