# Resizing SWF (scaleX and scaleY) Maths problem

**URL:** <https://forum.kirupa.com/t/resizing-swf-scalex-and-scaley-maths-problem/267899>\
**Category:** flash\
**Created:** [August 7, 2008, 1:12am UTC](https://forum.kirupa.com/t/resizing-swf-scalex-and-scaley-maths-problem/267899 "2008-08-07T01:12:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [August 7, 2008, 1:12am UTC](https://forum.kirupa.com/t/resizing-swf-scalex-and-scaley-maths-problem/267899/1 "2008-08-07T01:12:48Z")

</div>

Hello

I need help of any mathematician out there cuz I am not good in it.

I have a swf file that I want to scale down to display inside a parent movie clip.

The parent movie clip dimensions are 425 \* 300.

Now if I want to scale down the swf file to half its size I can use this

swf.scaleX = 0.5;  
swf.scaleY = 0.5;

But now I want to calculate the value for the scaleX and scaleY so that it comes under the dimension of 425 \* 300

I hope I am making sense.

Its basically maths now which i am not good at:(

Thanks in advance.
