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
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!