Hi, I have a spark list control(id="Cclist") in one of my custom components() and a text input control. When a value is entered into the text input, I want to dynamically add the same into the list control. I tried doing the following :
protected function Cc_selectHandler(event:CustomEvent):void
var cctext:DisplayObject = event.data as DisplayObject
CcList.enabled = true;
CcListButton.enabled = true;
But I get an error saying "addChild() is not available in this class. Instead, use addElement() or modify the skin". So I tried using addElement, but apparently that isnt available at all. Any idea what im doing wrong ?