dumdumsareyum Posted June 23, 2009 Share Posted June 23, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.