# Gallery problem, need help

**URL:** <https://forum.kirupa.com/t/gallery-problem-need-help/172099>\
**Category:** flash\
**Created:** [December 11, 2005, 7:39am UTC](https://forum.kirupa.com/t/gallery-problem-need-help/172099 "2005-12-11T07:39:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dstort1](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@dstort1](https://forum.kirupa.com/u/dstort1)\
**Post date:** [December 11, 2005, 7:39am UTC](https://forum.kirupa.com/t/gallery-problem-need-help/172099/1 "2005-12-11T07:39:42Z")

</div>

i’m constructing a gallery in flash using 3 swf files.

main.swf  
thumbnails.swf  
largeview.swf

main.swf loads both thumbnails.swf and largeview.swf into seperate movie clip containers, and i have variables being passed from thumbnail.swf to largeview.swf to tell it which jpg file to load.

the big problem i’m having at the moment is when the first defualt image loads, it loads fine, but when i start clicking on other thumbnails, the image in largeview.swf stays on that first default image, like it doesnt update with the new image that is clicked on, hopefully this makes sense lol

anyways heres the script inside the largeview.swf file that reads which image to load, hopefully someone can help me

mc\_image.loadMovie(\_root.file\_name);

mc\_boundry\_box.onEnterFrame = function() {

//Calculates How Large to Resize  
new\_image\_width = \_root.image\_width - mc\_boundry\_box.\_width;  
new\_image\_height = \_root.image\_height - mc\_boundry\_box.\_height;

//Easing Motion Tween  
mc\_boundry\_box.\_width += new\_image\_width/10;  
mc\_boundry\_box.\_height += new\_image\_height/10;

testing = \_root.file\_name;

//Center The Loaded JPEG  
mc\_image.\_x = (500 - \_root.image\_width) / 2;  
mc\_image.\_y = (450 - \_root.image\_height) / 2;

}
