Programmer: Flex 4.5 Pre seleting a Radio Button

I'm using an XML File and so far things are OK. But now I'm trying to pre-select a Radio button and I can find no where to give an example just ways to detect click event and thing like that. The selected value is a string coming from the XML file. There are five radio buttons How do I match the string to the radio button.

Thanks in advance and any help is greatly appreciated

Answers


RadioButtons need to be in same group to prevent multiple selection. There is property for that:

myRadioButton.group

For select, there is property:

myRadioButton.selected //true or false

And you can compare string from your xml if its equal with:

myRadioButton.value

Need Your Help

Select Element Not Working in IE7

html css drop-down-menu

I'm pulling a form into a site as an iframe. Everything works fine except there are two drop down select elements for the client in IE7 when they click it doesn't drop down but it highlights it and...

Skew one corner of image

css css3 transform perspective skew

I'm trying to skew one single corner of my div background as shown at the green checkmark in the image below:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.