Jump to content

Recommended Posts

I am trying to modify a flash/actionscript template with about 0 knowledge of actionscript. I have identified the problem, but don't know enough to fix it. I will try to explain.  There are 4 photo galleries with thumbnails and the paths to the images are identified in an xml file.  The problem is that when the user selects a new photo gallery that does not have as many images as the prior gallery they viewed, the thumbnails from the prior gallery are not removed. For example, if they view a gallery with 10 images and then view a gallery with 8 images, the last 2 thumbnail images(which are technically movie clips) from the first gallery remain on the screen.

 

var createThumb = function(num:Number){
var path:MovieClip = gallery.bigIm.thumb;
var mask:MovieClip = gallery.bigIm.thumb.mask;
var bgr:MovieClip = gallery.bigIm.thumb.bgr;
var pathMove:MovieClip = gallery.bigIm.thumb.cont;
var thArr:Array = _root.getThPath(num);

    pathMove._x = 0;
_root.numberImages = thArr.length;

for (var j:String in path.gall){
	path.cont[j].removeMovieClip();
}

(function continues....)

 

So, I don't know how the for(var:String in path.gall){ path.cont[j].removeMovieClip();}  loop works, it doesn't look like any for loop i'm used to seeing....Let me what other information is necessary to solve my issue.....Thanks!

 

 

Link to comment
https://forums.phpfreaks.com/topic/163421-actionscript-20-clueless/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.