Hi, I'm having a problem with using SetEventHandler in Flex 2 beta. Maybe it doesn't do what I would like? Within a State tag I create a component and class. I'd like the class to listen for "connect" events from the component. I can do that in a few ways, but have not been able to set it up so that I receive the actual event from the component. A code snippet is below. In it I create an Event but that's not what I want. I want the event the signOnForm component is broadcasting... My apologies if I have missed the answer in the docs. I have tried things like <mx:SetEventHandler event="connect" target="{signOnForm}" handler="{connector}"/> and <mx:SetEventHandler event="connect" target="{signOnForm}" handler="{connector.connect}"/> without success. Yours truly, -Brian
<mx:states> <mx:State name="SignOn"> <mx:AddChild><uic:SignOnForm id="signOnForm"/></mx:AddChild> <mx:AddChild><fmsc:FMSConnector id="connector" /></mx:AddChild> <mx:SetEventHandler event="connect" target="{signOnForm}" handler="connector.connect(new Event('connect'))"/> </mx:State> <mx:State name="Main"> </mx:State> </mx:states> -- ______________________________________________________________________ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser ______________________________________________________________________ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/