-
AS help - quick(?) fix
Hi I'm, erm, a bit behind on my actionscript, hopefully this is a quick fix, I just can't get my head round it... I'm using code from this hrather excellent project for flickr by the way.
I just want to change the code below so that it uses a MovieClipLoader and load clip. Then I can monitor the image loading and add a photo frame behind it. But I can't quite get it right, perhaps because it's in a for loop...
Any help would be greatly appreciated. Thanks!
function onPeopleGetPublicPhotos(p:Person):Void
{
var photosArray:Array = p.getPhotos();
var userNsid:String = p.nsid;
for (var i:Number=0; i<photosArray.length; i++) {
var thisPhoto:Photo = Photo(photosArray[i]);
var mc:MovieClip = _target.createEmptyMovieClip("photo"+i, i);
mc._x = 1 + (i%3) * 76;
mc._y = 1 + Math.floor(i/3) * 76;
mc.createEmptyMovieClip("jpgHolder", 1);
mc.jpgHolder.loadMovie(thisPhoto.smallUrl);
}
}
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|