Scale to fit

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

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_