Skip to main content
Inspiring
May 5, 2009
Question

Simple Radio Button Question

  • May 5, 2009
  • 1 reply
  • 378 views

Hi all,

using flash to sell via paypal (headache)...

Anyway, all is well actually but I need to use radio buttons (which I've never touched before) to populate a text field.

Simple question (I hope), two radio buttons, essentially a "yes/no" to populate a dynamic text field.

One is on by default and will fill the field with nothing, the other, if selected, will fill the field with "no numerals".

How do I do it with a listener on frame 1 of a timeline that has only one frame ?

Using Flash8 and AS2.

Best wishes

Tony

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 5, 2009
var rbLO:Object = new Object(); 
rbLO.click = function(eobj:Object){
   if(eobj.target.selection.label=="No"){
// yourtextfield.text = "no numerals";
} else {
// yourtextfield.text ="";
}
} yourradiogroup.addEventListener("click", rbLO);