# Photo gallery images to enlarge on rollover help!

**URL:** <https://forum.kirupa.com/t/photo-gallery-images-to-enlarge-on-rollover-help/228566>\
**Category:** Uncategorized\
**Created:** [June 8, 2007, 11:19pm UTC](https://forum.kirupa.com/t/photo-gallery-images-to-enlarge-on-rollover-help/228566 "2007-06-08T23:19:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charlene1](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@Charlene1](https://forum.kirupa.com/u/Charlene1)\
**Post date:** [June 8, 2007, 11:19pm UTC](https://forum.kirupa.com/t/photo-gallery-images-to-enlarge-on-rollover-help/228566/1 "2007-06-08T23:19:10Z")

</div>

Hi there! I’m sort of a flash newbie esp when it come to AS. Right now I have images dynamically loading in to a mc that I’m loading in at 60% and then enlarging to 100% on rollover. Here’s my code for that…

function thumbnails\_fn(k) {  
thumbnail\_mc.createEmptyMovieClip(“t”+k, thumbnail\_mc.getNextHighestDepth());  
tlistener = new Object();  
tlistener.onLoadInit = function(target\_mc) {  
target\_mc.\_xscale = target\_mc.\_yscale = 60;  
target\_mc.\_x = hit\_left.\_x+(target\_mc.\_width+5)\*k;  
target\_mc.pictureValue = k;  
target\_mc.onRelease = function() {  
p = this.pictureValue-1;  
nextImage();  
};  
target\_mc.onRollOver = function() {  
this.onEnterFrame = function() {  
this.\_xscale = this.\_yscale += 5;  
if (this.\_xscale\>101) {  
delete this.onEnterFrame;  
}  
}  
thumbNailScroller();  
};  
target\_mc.onRollOut = function() {  
this.onEnterFrame = function() {  
this.\_xscale = this.\_yscale -= 5;  
if (this.\_xscale\<61) {  
delete this.onEnterFrame;  
}  
}  
};  
};  
image\_mcl = new MovieClipLoader();  
image\_mcl.addListener(tlistener);  
image\_mcl.loadClip(thumbnails[k], “thumbnail\_mc.t”+k);  
}

The problem I’m having is the images when enlarged go behind the next image instead of in front. I read and tried the suggestions i found in the forum but it didn’t work. It’s quite possible I just don’t understand well enough. Can any of you help?

I also would love to be able to load the images at the center rather than the top left so when they blow up they would look more like the example [http://designarchives.aiga.org/](http://designarchives.aiga.org/), but I have a feeling I would have to go about this in a completely different way to make that happen??!

(-::wasted:
