# Image Border Tween

**URL:** <https://forum.kirupa.com/t/image-border-tween/243151>\
**Category:** flash\
**Created:** [November 3, 2007, 1:14pm UTC](https://forum.kirupa.com/t/image-border-tween/243151 "2007-11-03T13:14:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [November 3, 2007, 1:14pm UTC](https://forum.kirupa.com/t/image-border-tween/243151/1 "2007-11-03T13:14:54Z")

</div>

Hello,

I am trying to make one of those Resizing borders for an image gallery …

Is there an Actionscript 2.0 function that whilst Loading in an external jpeg, Flash can be told the dimensions of the picture it is currently loading \> before it has loaded it fully. … ?  
ie: getWidth (as a guess) …

Thus, preparing the size of the border, whilst the image is loading.

Or, does it have to initiate that once the jpeg has loaded 100% …

Thanks if there is some help out there 🙂
