It’s been quite a while since i have started trying to inherit a cs3 component to build a custom component for my applications. And all the attempts had ended with building the components based on composition rather than inheritance. I have achieved quite satisfactory results with composition technique, but I’m still not sure whether it’s possible to customize the cs3 component using inheritance rather than composition.
My code for the futile attempts start with
package script.primitives{
import fl.core.UIComponent;
import fl.controls.ComboBox;
public dynamic class DropDown extends ComboBox {
public function DropDown() {
super();
}
override protected function configUI():void {
super.configUI();
}
}
}
Is it right? And if yes how could i successfully put my dropdown instance on to stage???
Thanks a ton