how can i add a radiobutton value from the number at resultTxt.text... here is
my code.. it wont do the math.. all it does is puts the value right beside the
numbers at resultTxt.text.. help..
stop();
var gRB:RadioButtonGroup = RadioButtonGroup.getGroup(genderGroup);
ok.. so again, its gave me this compiler error.. Warning: 3551: Appending text
to a TextField using += is many times slower than using the
TextField.appendText() method... i've been trying to get a value from a
radiobutton (depends on the users choice).. in a switch case statement.. this
is my
here is my converted textfield to number script.. credits to Juan Pablo
Califano and Steven Sacks.. much thanks for ur help.. (^_^)
stop();
ageField.addEventListener(TextEvent.TEXT_INPUT, convertAge);
function convertAge(event:TextEvent):void {
thid is the error.. Warning: 3551: Appending text to a TextField using += is
many times slower than using the TextField.appendText() method.
i've been trying to get the value (which is a number) from the radiobutton and
add it with the age thats been converted..
- Original Message
its giving me 1120 error on switch statement parameters..
switch(event.target.selection.name) { what am i missing on the code?...
import flash.events.Event;
import fl.events.ComponentEvent;
import fl.controls.RadioButtonGroup;
stop();
var gRB:RadioButtonGroup =
need to display number to the resultTxt but when i press the first number it
displays NaN.. when i enter the second number.. it display the number but with
the NaN.. :(
stop();
ageField.addEventListener(TextEvent.TEXT_INPUT, convertAge);
function convertAge (event:TextEvent):Number {
var
a carriage return will cause parseInt to break.
rlyn ben wrote:
need to display number to the resultTxt but when i press the first number
it displays NaN.. when i enter the second number.. it display the number but
with the NaN.. :(
stop();
ageField.addEventListener(TextEvent.TEXT_INPUT
radiobutton's value contains number data type..i need to get the value to add
it to another number value..
sorry hehe.. i'm a newbie here.. (^_^)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
need to capture the input in textfield which is restricted to numbers only...
and convert the string to number...
this is my code but it wont work.. when i trace it.. it displays.. object
[textfield].. or 0.. or NaN..
//stores age
var userAge:Number = Number(age);
var newAge:String =
9 matches
Mail list logo