# Enlarge thumbnail with mouse over problem

**URL:** <https://forum.kirupa.com/t/enlarge-thumbnail-with-mouse-over-problem/242830>\
**Category:** Uncategorized\
**Created:** [October 30, 2007, 8:01pm UTC](https://forum.kirupa.com/t/enlarge-thumbnail-with-mouse-over-problem/242830 "2007-10-30T20:01:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ocrahm](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@ocrahm](https://forum.kirupa.com/u/ocrahm)\
**Post date:** [October 30, 2007, 8:01pm UTC](https://forum.kirupa.com/t/enlarge-thumbnail-with-mouse-over-problem/242830/1 "2007-10-30T20:01:53Z")

</div>

I’m using the following actionscript code to hover over a thumbnail and ease in and out with the mouse pointer to view the enlarged size of the picture. Right now it only happens on one picture but I would like to multiply this function to several small different thumbnails on the same flash platform. Can anyone give me some pointers?

hoverover.onRollOver = function() {  
this.onEnterFrame = function () {  
caption.\_alpha += (100-caption.\_alpha)/3;  
caption.\_x -= (caption.\_x-\_xmouse)/2;  
caption.\_y -= (caption.\_y-\_ymouse)/2;  
}  
};  
hoverover.onRollOut = function() {  
this.onEnterFrame = function() {  
caption.\_alpha += (0-caption.\_alpha)/3;  
};  
};
