# AS3 "Unusual" Conversion Calculator?

**URL:** <https://forum.kirupa.com/t/as3-unusual-conversion-calculator/321150>\
**Category:** flash\
**Created:** [April 12, 2011, 4:09am UTC](https://forum.kirupa.com/t/as3-unusual-conversion-calculator/321150 "2011-04-12T04:09:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr\_John](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dr\_John](https://forum.kirupa.com/u/Dr_John)\
**Post date:** [April 12, 2011, 4:09am UTC](https://forum.kirupa.com/t/as3-unusual-conversion-calculator/321150/1 "2011-04-12T04:09:10Z")

</div>

Hi All !.. and thank you for reading this.

I have a project I am working on which requires many conversions. I am  
currently doing it manually and it’s starting to make me crazy. I was told  
this could be done in Flash, which would be great, but I have little skill  
with Flash, and I’m not really sure where to start. What I need to do is:

1. Convert unorthodox units of measure to conventional units (mm/cm  
and inches/feet). These “unorthodox” units of measure are based on  
conventional units, so it’s just a matter of saying a “widget” = 9.5mm  
(or) 0.3740063645"… etc. (just a simple example). There are 3 different  
unorthodox units in total, each with its own value.

2. To complicate things the unorthodox units are affected by “classes”.  
(Here is another basic example)… say there are four classes of widget,  
each with its own base value, such as:

Class 1 = 9.5mm  
Class 2 = 12mm  
Class 3 = 16mm  
Class 4 = 22mm

So basically you select a class, type a value to convert, and it converts  
based on the chosen class. Actually with the layout I planned, there are  
there are 5 text boxes (one for each “unorthodox” unit, and one each for  
metric and “standard”. I thought a combo box would work well for selecting  
the class.

Ideally I could type a measurement into any one of the five fields, and  
the conversions would show in all the other fields. So if I enter 3 inches  
into the “standard measure” field the corresponding coversions would show  
up in the other fields all at once.

1. If the above is not impossible, I would also like to add standard calculator  
functionality so further processing could be performed on a given conversion.

I am curious as to how difficult this would be to achieve. I’m sure it’s not  
impossible, but with limited Flash knowledge I imagine it will be fairly  
difficult. :h:

Either way I have to figure it out, so if anyone could point me in the right  
direction I would be more than appreciative. Thank you in advance for any  
assistance you might be able to offer.
