# Problem with this fonction

**URL:** <https://forum.kirupa.com/t/problem-with-this-fonction/179249>\
**Category:** flash\
**Created:** [February 18, 2006, 1:08am UTC](https://forum.kirupa.com/t/problem-with-this-fonction/179249 "2006-02-18T01:08:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phoenix68](https://avatars.discourse-cdn.com/v4/letter/p/ba9def/32.png) [@Phoenix68](https://forum.kirupa.com/u/Phoenix68)\
**Post date:** [February 18, 2006, 1:08am UTC](https://forum.kirupa.com/t/problem-with-this-fonction/179249/1 "2006-02-18T01:08:21Z")

</div>

here is the fonction  
[http://phoenix68.9online.fr/daeja2.swf](http://phoenix68.9online.fr/daeja2.swf)

```auto
function thumbnails_fn(k) { 
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth()); 
tlistener = new Object(); 
tlistener.onLoadInit = function(target_mc) { 
 **target_mc._y = hit_left._y+(eval("thumbnail_mc.t"+(k-1))._height+5)*k;** 
 target_mc.pictureValue = k-1; 
 target_mc.onRelease = function() { 
  p = this.pictureValue; 
  nextImage(); 
 }; 
 target_mc.onRollOver = function() { 
  this._alpha = 50; 
  thumbNailScroller(); 
 }; 
 target_mc.onRollOut = function() { 
  this._alpha = 100; 
 }; 
};
image_mcl = new MovieClipLoader(); 
image_mcl.addListener(tlistener); 
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k); 
} 

```

this fonction create thumbnails depending on k value

as you can see the lign in bold that places the new movie clip uses “eval” to get the height of the actual k then multiply it by k assuming that all the previous k had the same height(but they don’t).  
And i can t get the height of thumbnail\_mc since the movie aren t loaded in it yet  
i have been looking for so long to solve it  
i need help
