# Number input text output (cs3 / as2)

**URL:** <https://forum.kirupa.com/t/number-input-text-output-cs3-as2/276004>\
**Category:** Uncategorized\
**Created:** [November 21, 2008, 6:08am UTC](https://forum.kirupa.com/t/number-input-text-output-cs3-as2/276004 "2008-11-21T06:08:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricia](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@ricia](https://forum.kirupa.com/u/ricia)\
**Post date:** [November 21, 2008, 6:08am UTC](https://forum.kirupa.com/t/number-input-text-output-cs3-as2/276004/1 "2008-11-21T06:08:07Z")

</div>

I’ve been muck’n around with this wee problem for  
so very many hours that I can’t recall what all I’ve  
changed along the way… It’s possible I’ve a hybrid  
of attempts left over at this point. I’m pretty new  
to flash.

Here is a link to the page (see upper left-hand objects):  
[http://hybrid.concordia.ca/~paduquette/dataproject\_socialengagement.html](http://hybrid.concordia.ca/~paduquette/dataproject_socialengagement.html)

Here is are the two sets of code I’ve arrived at, for  
the time being:

var input1:Number;  
var output1:Number;  
var text\_output3:String;

\_root.input1 = “”;  
\_root.output1 = “”;  
\_root.text\_output3 = “”;

// this code is working:

submit\_btn.onRelease = function(){  
output1 = 7\*input1;  
}

//this code is not working:

function text\_output3(text:String){  
if(output1 \>= 14){  
text\_output3 = “you are a heavy user”;  
}  
else if(output1 \< 14){  
text\_output3 = “you are a moderate user”;  
}  
else (text\_output3 = “your are a non-user”)  
}

display.text = text\_output3;

I’ll save pasting the second lump of code,  
as I suspect it’s not working for the same  
reasons this isn’t.

- School project and now running very  
short on time; insight, suggestions, help  
would be much muchly appreciated!
