Re: [Flashcoders] Reccomended practices for overiding events dispatched with onEvent handlers

2006-03-22 Thread Johannes Nel
no you can use the same event, but then the handleing function need not be named the same as the eventname. i think thast what you want to acheive but am not certain i am 100% clear on that On 3/22/06, Manuel Saint-Victor <[EMAIL PROTECTED]> wrote: > > So would I want to use different events for m

Re: [Flashcoders] Reccomended practices for overiding events dispatched with onEvent handlers

2006-03-22 Thread Manuel Saint-Victor
So would I want to use different events for my own housekeeping to avoid colliding with them using those events? On 3/22/06, Johannes Nel <[EMAIL PROTECTED]> wrote: > > oh i understand > what you are doing is this: > > this.addEventListener("onScreenFaded ", this) > > private function onScreenFa

Re: [Flashcoders] Reccomended practices for overiding events dispatched with onEvent handlers

2006-03-22 Thread Johannes Nel
oh i understand what you are doing is this: this.addEventListener("onScreenFaded ", this) private function onScreenFaded (evtObj:Object):Void { } so if your user does this instance.onScreenFaded = function your code breaks. i would say don't use this in the event listener if this is the case, r

Re: [Flashcoders] Reccomended practices for overiding events dispatched with onEvent handlers

2006-03-22 Thread Johannes Nel
are you reffering to a hook? like this? create a function that is named like public function thisHappens():Void { } and then the user of the component would go instance.thisHappens = function() { ///some code } On 3/22/06, Manuel Saint-Victor <[EMAIL PROTECTED]> wrote: > > I tried that- but if t

Re: [Flashcoders] Reccomended practices for overiding events dispatched with onEvent handlers

2006-03-22 Thread Manuel Saint-Victor
I tried that- but if they write non addEventListener() type of statements to catch our events it seems to override the dispatched event. On 3/22/06, John Giotta <[EMAIL PROTECTED]> wrote: > > Use EventDispatcher. > ___ > Flashcoders@chattyfig.figleaf.co

Re: [Flashcoders] Reccomended practices for overiding events dispatched with onEvent handlers

2006-03-22 Thread John Giotta
Use EventDispatcher. ___ 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 Tr

[Flashcoders] Reccomended practices for overiding events dispatched with onEvent handlers

2006-03-22 Thread Manuel Saint-Victor
What is the reccomended way to handle using events that a user might also want to handle. Some of my components have an event like Screen.onScreenFaded that we expose to outside users. Does this mean that I should not use these events for my own component code in case a user just writes Screen.