# Calling all OOP Geniuses out there :-)

**URL:** https://forum.kirupa.com/t/calling-all-oop-geniuses-out-there/231648
**Category:** flash
**Created:** [July 6, 2007, 12:35pm UTC](https://forum.kirupa.com/t/calling-all-oop-geniuses-out-there/231648 "2007-07-06T12:35:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Shard](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Shard](https://forum.kirupa.com/u/Shard)
#### Post date: [July 6, 2007, 12:35pm UTC](https://forum.kirupa.com/t/calling-all-oop-geniuses-out-there/231648/1 "2007-07-06T12:35:51Z")

</div>

This has got me stumped! I am using the awesome image gallery carousel script (and tutorials) to make an xml fed image thumbnail carousel. My problem is that not all images are the same height and width - but at least one side will be 92 pixels wide or tall. I can center the image by subtraction of containing heights but only if I can tell what the height of the loaded image is, and I can’t for the life of me figure out which call to make.  
Please help …

```auto
for (var i = 0; i<numOfItems; i++) {
        var t = home.attachMovie("item", "item"+i, i+1);
        t.angle = i*((Math.PI*2)/numOfItems);
        t.onEnterFrame = mover;
        t.icon.inner.loadMovie(nodes*.attributes.image);
}

```

t.icon.inner.\_height returns the dimensions of the pre-image holder, but what returns the actual image height/width after its loaded???

thanks
