Just a followup. I got the combobox re-written to optionally force direction of the dropdown menu. I ended up following Tracy Spratt's suggestion by copying the code directly into a new component class (along with the inclusions).
Thank you to all that replied! ----- Original Message ----- From: Warren To: flexcoders@yahoogroups.com Sent: Monday, January 11, 2010 9:34 AM Subject: Re: [flexcoders] Override private ComboBox function Well, I gave it a go with no luck. Too many inaccessible properties (like _showingDropdown ). Sigh ----- Original Message ----- From: Tibor Ballai To: flexcoders@yahoogroups.com Sent: Monday, January 11, 2010 8:50 AM Subject: Re: [flexcoders] Override private ComboBox function You can simply override the open and close functions as well. (public override function open():void{ ... ). Tibor. www.tiborballai.com Warren wrote: Very good idea. I didn't think to look for the calling functions. How do I handle the two public functions (Open and Close)? Can I simply create new functions for them in my class? ----- Original Message ----- From: Tibor Ballai To: flexcoders@yahoogroups.com Sent: Monday, January 11, 2010 8:29 AM Subject: Re: [flexcoders] Override private ComboBox function Hi Warren, While the displayDropdown method is private, the methods which call it (downArrowButton_buttonDownHandler & keyDownHandler) are both protected. You can override these 2 methods and have them call a new private method which can mimic the behaviour of displayDropdown along with the new functionality you want to add. Hope this helps, Tibor. www.tiborballai.com Warren wrote: I'm want to make a ComboBox on which I can force the dropdown menu to go up or down. It should be a simple matter of adding a variable and changing the way the displayDropdown method works. I tried extending the ComboBox and overriding the displayDropdown method but I can't do that since the method is private. How can I do this with my own class ? I feel like I'm missing something basic here..... I'm using Flex 3.2.0 SDK Thanks!