# Scale to fit

**URL:** <https://forum.kirupa.com/t/scale-to-fit/215743>\
**Category:** Uncategorized\
**Created:** [February 9, 2007, 11:52pm UTC](https://forum.kirupa.com/t/scale-to-fit/215743 "2007-02-09T23:52:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jc\_](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jc\_](https://forum.kirupa.com/u/jc_)\
**Post date:** [February 9, 2007, 11:52pm UTC](https://forum.kirupa.com/t/scale-to-fit/215743/1 "2007-02-09T23:52:17Z")

</div>

Hello all,

Just wondering if there is some AS or Class to do the following:

Scale a movieclip up to fit a certain size, but have it scale up at the right proportion/ratio?

I’ve looked into this one:  
[http://proto.layer51.com/d.aspx?f=636](http://proto.layer51.com/d.aspx?f=636)

But do not need all that extra functionality, just dynamically scale to fit predefined dimensions.

Any help or suggestions would be appreciated…

TIA!

Regards,  
jc\_
