# Load Big Image

**URL:** <https://forum.kirupa.com/t/load-big-image/285209>\
**Category:** Uncategorized\
**Created:** [March 28, 2009, 5:30pm UTC](https://forum.kirupa.com/t/load-big-image/285209 "2009-03-28T17:30:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgauche](https://avatars.discourse-cdn.com/v4/letter/j/8e7dd6/32.png) [@jgauche](https://forum.kirupa.com/u/jgauche)\
**Post date:** [March 28, 2009, 5:30pm UTC](https://forum.kirupa.com/t/load-big-image/285209/1 "2009-03-28T17:30:05Z")

</div>

Hello!, I have a code for loading images from a directory and when user clicks in the thumb, opens the BIG Image. Here’s my code:  
import caurina.transitions.Tweener;  
/\*  
//  
\*/  
var qtFotos:Number = 10;  
for(var i=0; i\<qtFotos; i++) {  
var thumb:MovieClip = this[“thumb\_”+i];  
thumb.id = i+1;

new LoadImage(“img/acasa/”+thumb.id+“p.jpg”, thumb);

thumb.onRollOver = function() {  
Tweener.addTween(this, {\_xscale:90, \_yscale:90, time:0.5, transition:“easeOutQuint”});  
}  
thumb.onRollOut = function() {  
Tweener.addTween(this, {\_xscale:60, \_yscale:60, time:0.5, transition:“easeOutQuint”});  
}  
thumb.onRelease = function() {  
var arquivo:String = “img/acasa/”+thumb.id+".jpg";  
trace(arquivo);  
new ImageViewer("", “Clique para fechar”, arquivo);  
}  
}

Whit that code, the thumb load but when I click the thumb always open the sampe BIG Image for all thumbs.  
There’s something wrong?  
Thanks.
