thanks. i realize my mistake. --- In flexcoders@yahoogroups.com, Manish Jethani <[EMAIL PROTECTED]> wrote: > > On 2/10/06, bhaq1972 <[EMAIL PROTECTED]> wrote: > > > > > > > > > <mx:DataGrid cellPress="cellPressEvt(event);"> > > > > > > event is of type DataGridEvent. > > > > i tried > > <mx:DataGrid cellPress="cellPressEvt (event:mx.events.DataGridEvent)"> > > > > but flexbuilder 2 comes up with a compile error > > "Expecting right parenthesis after colon" > > "event" *is* of type DataGridEvent already. See the generated AS > code. What you want instead is to type the argument to the > cellPressEvt method as DataGridEvent: > > <mx:DataGrid cellPress="cellPressEvt(event)"> > > private function cellPressEvt(event:DataGridEvent):void > { > ... > } >
-- 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/