i am a newbie yes.. but can i get some help with why i dont get anything when i klikk the button?
on (release) {
sum = a;
enhet1 = b;
enhet2 = c;
a = (b + c);
}
whats wrong?
thanx:smoov:
Printable View
i am a newbie yes.. but can i get some help with why i dont get anything when i klikk the button?
on (release) {
sum = a;
enhet1 = b;
enhet2 = c;
a = (b + c);
}
whats wrong?
thanx:smoov:
what do you expect to get?
you have not specified what ehnet1 or 2 are
and "a" returns 0 which is true cos you dont have anything.
so what do you want to do?
gary
enhet1 = an input textbox
enhet2 = an input textbox
sum = a dynamic textbox
i want enhet1 + enhet2 to show at sum when i push the button where
the action are placed
on (release) {
sum = a;
enhet1 = b;
enhet2 = c;
a = (b + c);
}
hi man, check out the attached (rather rough) fla.
put something in enhet1 and enhet 2 and click the blue button.
sum then shows the "addition" of the 2 boxes.
(it is a text addition, remember. you can add a space by putting
enhet1+" "+enhet2
on the button.
if you are looking for numbers then it gets even more fun, as the input box returns a text value. so you have to turn the text into a number then add them. (or 1+2=12 and not 3)
hope this has helped a little
gary