On 10/29/06, Michael Labriola <[EMAIL PROTECTED]> wrote:
> It is the way you are approaching the problem... To make things more
> reusable, you should consider passing bubbles and cancelable to your
> custom event as well:
>
> your constructor should (ideally) look a little more like this:
>
> public function
> GroupsEvent(id:Number,isEnabled:Boolean=false,type:String,
> bubbles:Boolean=false, cancelable:Boolean=false){
> this.isEnabled = isEnabled;
> this.id=id;
> super(type, bubbles, cancelable);
> }
...and don't forget to override the clone method otherwise you'll have
problems when bubbling your custom event.
See
http://www.tink.ws/blog/custom-events-in-as-30-dont-forget-to-override-the-clone-method/
for more information.
Steve
--
Steve Webster
http://dynamicflash.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcomponents/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcomponents/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/