There are two classes involved here: ComboBox and ComboBoxSuper.
1. check the namespace prefix for all your implementations in mxml of both classes
2. check the package names and class contructor names in both classes.
Hope this helps
All the namespace prefixes and package class names seem to be fine. I even added a manifest.xml to my library project. Still no joy.
The ComboBox and ComboBoxSuper are both in the same library project -- they are being referenced the same way. I am using the Flex 3.2 sdk
Have you tried isolating the problem: create a brand new project, add your comboBox
Super class and then add 2 simple mxml components, one for each class. Still messe
Good thought. I have a test application I tried it in. Works just fine in that one. But not in the application I'm designing. Just what I needed -- some sort of weird interaction.
Show us the MXML code template that is creating the instance of the ComboBoxSuper
OK. I stripped out a ton of code from the main application and attached it along with the test file. I am also attaching the myLibrary.swc that has the ComboBoxSuper code in it. The main application doesn't work but the test one does.
Keep in mind both these application are located under the same project -- they use the same compiler settings, etc.
I also made a brand new project and it too failed. My head is starting to hurt
ok -- I found what is causing the error but not the root cause. I found ComboBoxSuper failed to work is the arrowButtonWidth wasn't set. in the mxml. I never set it in my custom class. There must be some default parameters that the mx:Combobox pulls in and that my custom version of the combobox was inheriting without me knowing about it. ComboBoxSuper didn't inherit these values and fails silently.
Sigh. I wonder what other defaults I'm missing. Now I have to figure out where the ComboBox or ComboBoxBase classes get their default values from.
Well I've fought my way through the debugger and it is way beyond me. Something is setting the default styles and parameters for a combobox but I can't figure out where it is or how to force my ComboBoxSuper to pick them up. I hate relying on using the same class name but I don't have a choice. I'm reluctant to create an arrowButtonStyle in the ComboBoxSuper constructor -- that may fix that problem but I don't know what other defaults I'm missing because I can't extend the ComboBox.
Anyone have a suggestion?