radio button - flex add radiobutton child to VBox -


I'm having trouble adding a radio button to a VBox in Prospects.

  Var radio button: radio button = new radio button (); RadioButton.groupName = "source"; RadioButton.label = "label"; Radio button Selected = false; RadioButton.AdventListner (Event.ChANGE, Source ChangeHandler); VBox.addChild (radiobutton);  

For the first time I created these radio boots in MXML and it worked fine, but now it is necessary that the radioboots need to be dynamically generated in the action script which works.

The debugger receives the binding error (100 9) when the editor tries to execute the statement and does not appear in VBox, is there anything that I am doing wrong?

It looks fine that I can see that the only thing is that you might change Try

  radio button = new radio button ();  

to

  var radio button: radio button = new radio button ();  

If it is not that you may have something to do with making your VBox immediately.

Edit

According to our observations, it looks like a real problem that a property of approach should be changed.

This way VBox is present in memory when the radio button is being added.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -