> What can i do to override private methods in as3?

Nothing. Private methods can't be overridden. 
 
> 5 referring methods to mouseHandler
 
I'm not sure what you mean as there is no mouseHandler() method in
MenuBar. Are you talking about wanting to override mouseOverHandler(),
mouseDownHandler(), mouseUpHandler() and mouseOutHandler()? If so,
perhaps you can add additional handlers to do what you need to do
instead of subclassing these.
 
If all else fails, instead of subclassing you can always cut-and-paste
to create your own version of MenuBar.
 
But that's gross, so please file a bug so that we can expose the methods
that you need to override.
 
- Gordon
 
________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel Lopes
Sent: Thursday, August 02, 2007 9:14 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[email protected]
Subject: [flexcomponents] Override a private function



Hello...
I'm trying to create my own component derived by menubar component,
because menubar is horrible (don't have methods to get menu root item,
only show a submenu whe user clicked in menu... horrible!).

In menubar class exists 5 referring methods to mouseHandler, but all
these methods are private, and when I try override these methods I have
the following message: 1020: Method marked override must override to
another method.

What can i do to override private methos in as3?

-- 
www.areacriacoes.com.br <http://www.areacriacoes.com.br>  

 

Reply via email to