A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: AS help - quick(?) fix

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    128

    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);
    }
    }

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Posts
    128
    oh i lost the link to the flickr project:

    http://kelvinluck.com/projects/flash...pper-for-flash

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center