Hi, 

Situation:

---------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">
        <mx:RadioButtonGroup id="group" change="test(event)" />
        <mx:RadioButton x="10" y="10" label="Radio" groupName="group" id="rb1"/>
        <mx:RadioButton x="10" y="40" label="Radio" groupName="group"/>
        <mx:RadioButton x="10" y="70" label="Radio" groupName="group" />
        
        <mx:Script>
                <![CDATA[
                        private function test(e:Event):void
                        {
                                trace("Yiha!");
                        }
                        
                        private function init():void
                        {
                                rb1.selected = true;
                        }
                ]]>
        </mx:Script>
        
</mx:Application>
------------------------
You get a nice trace when the user clicks a radiobutton. However, I
would like the 'change event' to be dispatched after I set the
rb1.selected to true.

Rephrase: Can you make Flex think that, when you change a radiobutton
group by code, the group was edited by the user itself? 

Greets!

Reply via email to