• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Radio Buttons

Start with three radio button components dragged to the Stage. Call them red_radio, green_radio, and blue_radio. Put this code in the beginning, not inside the button event handler (that's the onRelease function).

// Set radio buttons
red_radio.groupName = "tintGroup";
green_radio.groupName = "tintGroup";
blue_radio.groupName = "tintGroup";

red_radio.data = "red";
red_radio.label = "Red";
green_radio.data = "green";
green_radio.label = "Green";
blue_radio.data = "blue";
blue_radio.label = "Blue";


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint