[flexcoders] Re: Shortcut for creating and dispatching events

2006-11-05 Thread boy_trike
Thanks for the answer Mike. I am curious why I need the STRING around my variable). Bruce --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, It needs to be; model.dispatchEvent( new TextEvent(SEARCH_MACHINES, false, false, String(

RE: [flexcoders] Re: Shortcut for creating and dispatching events

2006-11-05 Thread Gordon Smith
To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Shortcut for creating and dispatching events The signature for the TextEvent already HAS the text property. from LiveDocs: TextEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String = ) I am just looking

[flexcoders] Re: Shortcut for creating and dispatching events

2006-11-04 Thread boy_trike
The signature for the TextEvent already HAS the text property. from LiveDocs: TextEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String = ) I am just looking for the syntax for typing it on one line thanks bruce --- In flexcoders@yahoogroups.com, Ralf

Re: [flexcoders] Re: Shortcut for creating and dispatching events

2006-11-04 Thread Michael Schmalle
Hi,It needs to be;model.dispatchEvent( new TextEvent(SEARCH_MACHINES, false, false, String(dgItems.selectedItem.machine)));Peace, MikeOn 11/4/06, boy_trike [EMAIL PROTECTED] wrote: The signature for the TextEvent already HAS the text property. from

[flexcoders] Re: Shortcut for creating and dispatching events

2006-11-04 Thread Derrick Grigg
I'm assuming you are using Cairngorm. If so your model will also need to use the EventDispatcher or CairngormEventDispatcher class to dispatch the event since the Model does not have that built in natively. Derrick - Derrick Grigg www.dgrigg.com -- Flexcoders Mailing List FAQ: