[Flashcoders] adding value of radiobutton to number in resultTxt.text field.. help please

2008-05-19 Thread rlyn ben
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);

[Flashcoders] getting value from a radiobutton adding to converted textfield to number

2008-05-18 Thread rlyn ben
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

[Flashcoders] Re: getting value from a radiobutton adding to converted textfield to number part2

2008-05-18 Thread rlyn ben
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 {

Re: [Flashcoders] getting value from a radiobutton adding to converted textfield to numbe

2008-05-18 Thread rlyn ben
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

[Flashcoders] need help.. switch statement parameters

2008-05-17 Thread rlyn ben
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 =

[Flashcoders] help again.. NaN

2008-05-17 Thread rlyn ben
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

Re: [Flashcoders] help again.. NaN

2008-05-17 Thread rlyn ben
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

[Flashcoders] how do you get the value from radiobutton

2008-05-15 Thread rlyn ben
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

[Flashcoders] hi.. need help asap.. newbie here.. hehe

2008-05-14 Thread rlyn ben
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 =