I'm fairly new to Actionscript 3, and I am looking for advice
as to why this code doesn't work properly. I have created a custom
component that extends the text field component. I placed my
actionscript code in a file called SmarterSearching.as. The file is
located in the myComponents folder of my project (one level below
the main.mxml document). When I run the code, I do not receive any
errors. The page loads up, as expected. The problem that I am
running into is that my component is not displaying anything. Also,
can anyone explain the warning that I am getting in actionscript
stating that my 'variable key has no type declaration'. I have
attached my code for you to review.
I really appreciate your help. I hope someone can shed some
light on this for me.
You must either extend UIComponent (or some subclass) or
implement the IUIComponent interface in order for your component to
work in Flex. You can try subclassing mx.controls.Text instead of