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 code.. i also tried this one "    resultTxt.text += 
event.target.selection.value;" replacing "resultTxt.text += maleRB.value;".. 
but its giving me the same error.. help pls.. :(



import flash.events.Event;
import fl.events.ComponentEvent;
import fl.controls.RadioButtonGroup;

stop();

var gRB:RadioButtonGroup = RadioButtonGroup.getGroup("genderGroup");
gRB.addEventListener(MouseEvent.CLICK, genderHandler);

function genderHandler(event:MouseEvent):void {
    switch(event.target.selection.name) {
        case "maleRB":
            maleRB.value = 1;
            break;
        case "femaleRB":
            femaleRB.value = 0;
            break;
    }
    resultTxt.text += maleRB.value;
}



      
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to