This could be solved in this way:

private var _div:Group = null;

public function get div():Group
        {
if(_div == null)
_div = new Group();
return _div;
}

COMPILE::JS
        override public function get positioner():WrappedHTMLElement
        {
return div.element;
        }

and

/**
* @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
* @royaleignorecoercion HTMLDivElement
* @royaleignorecoercion HTMLInputElement
* @royaleignorecoercion HTMLLabelElement
* @royaleignorecoercion Text
*/
COMPILE::JS
override protected function createElement():WrappedHTMLElement
{
input = addElementToWrapper(this,'input') as HTMLInputElement;
input.setAttribute('type', 'text');
goog.events.listen(input, 'input', textChangeHandler);
div.element.appendChild(input);
return element;
}

but seems more complex right?


-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to