# Constraint proportion problem

**URL:** https://forum.kirupa.com/t/constraint-proportion-problem/170226
**Category:** flash
**Created:** [November 23, 2005, 9:09pm UTC](https://forum.kirupa.com/t/constraint-proportion-problem/170226 "2005-11-23T21:09:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kolorvize](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kolorvize](https://forum.kirupa.com/u/kolorvize)
#### Post date: [November 23, 2005, 9:09pm UTC](https://forum.kirupa.com/t/constraint-proportion-problem/170226/1 "2005-11-23T21:09:05Z")

</div>

Greetings,

Im developing a full browser flash website for a photographer and I should make the pictures really big. Now my problem is that when you see the website in a smaller resolution than the one im using, images get too big. What i need is a function that resizes the image box according to the stage size, but I dont know how to constraint the image proportions.  
For instance I would make something that would do imageMc.\_width=Stage.width\*0.8 so I could have the image with 80% of the screen size… but how to make it proportional with height? You get the problem?

Ok, for you to help me out on this is better to check the development:  
[http://www.stevestoer.com/teste/](http://www.stevestoer.com/teste/)

Any ideas on the function?

Please help me out on this. Thanks…
