# Having some trouble with as

**URL:** <https://forum.kirupa.com/t/having-some-trouble-with-as/174583>\
**Category:** flash\
**Created:** [January 6, 2006, 10:38pm UTC](https://forum.kirupa.com/t/having-some-trouble-with-as/174583 "2006-01-06T22:38:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hansybea](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@Hansybea](https://forum.kirupa.com/u/Hansybea)\
**Post date:** [January 6, 2006, 10:38pm UTC](https://forum.kirupa.com/t/having-some-trouble-with-as/174583/1 "2006-01-06T22:38:51Z")

</div>

Ok, I’m no pro so please no flaming.  
Take a look at my code:  
m = masse;  
s = stoffnr;  
b = (s+2);  
asd = (s \* 16);  
mm = (m / (s\*16+(s+2)));  
co2 = mm \* s \* 44;

What happens here is that “stoffnr” and “masse” is numbers inserted by user in an input-field.  
Say someone type in s=2. Flash now calculates that s+2=22 instead of 4, and this happens in all my variables here, so anyone feel like helping me here it would be awesome 😉

Thanks
