Must resist...the crack...habbit... .... and if you want to point that dispatched to a custom method not named the same as the event:
obj.addEventListener("onWhatever", Delegate.create(this, myCustomMethod)); private function myCustomMethod(evtObj:Object):Void { // code } Also, you don't need to include "target" in your dispatch, EventDispatcher includes that for you. On 2/17/06, Aaron Smith <[EMAIL PROTECTED]> wrote: > > Just make sure int he constructor you initialize it:: > EventDispatcher.initialize(this).. > > also you ned to have these var definititions: > > public var addEventListener:Function > public var removeEventListener:Function; > private var dispatchEvent:Function > > > then to dispatch: > > dispatchEvent( { type:'whatever', target:this, > someOtherProp:'somothervalue' } ) > > all those props in the dispatchEvent call are just properties in a > basic Object. you must have type though. > > > SMITH > > > > On Feb 17, 2006, at 12:44 PM, Jamie Alpers wrote: > > > This may be a "duh" question, but when you use dispatchEvent in a > > custom > > created component, can I use my own event name or do i have to use > > one of > > the built in ones of an object. For example, I am creating custom > > quiz > > component (the built in ones dont have the flexibility we need) and > > would > > like to add a 'QuestionCompleted' event. Is this possible? > > > > -Jamie > > _______________________________________________ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- John Grden - Blitz _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com