# How can I do this calculation with actionscript 3.0?

**URL:** <https://forum.kirupa.com/t/how-can-i-do-this-calculation-with-actionscript-3-0/286435>\
**Category:** flash\
**Created:** [April 15, 2009, 1:26pm UTC](https://forum.kirupa.com/t/how-can-i-do-this-calculation-with-actionscript-3-0/286435 "2009-04-15T13:26:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fs\_tigre](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@fs\_tigre](https://forum.kirupa.com/u/fs_tigre)\
**Post date:** [April 15, 2009, 1:26pm UTC](https://forum.kirupa.com/t/how-can-i-do-this-calculation-with-actionscript-3-0/286435/1 "2009-04-15T13:26:29Z")

</div>

[FONT=Calibri][SIZE=3]Hi,[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]How hard would that be to calculate how many time will object “B” fit in object “A” using actionscript 3.0.[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]What I want to do is to calculate how many time rectangle “b” will fit in rectangle “a”. The dimension from rectangle “b” will be controlled (changed) by the user; dimension from rectangle “a” will not change. I also would like to see object “b” changed when user inputs its dimensions as well as to see a preview of how many will fit in object “a”. [/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]I know, I know I’m asking for something that may not be so easy but I know a lot people from here are very good at this type of things. Any help will be appreciated.[/SIZE][/FONT]

[FONT=Calibri][SIZE=3] ![](http://tu-design.com/Images/calculator.jpg)Thank you very much![/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]Fs\_tigre[/SIZE][/FONT]
