You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by gpi <gr...@inosa.no> on 2014/05/02 11:31:56 UTC

Creating HDividerGroup in AS

Hi,

I'm testing HDividerGroup (spark.containers) and I have problem with
initialize this component from ActionScript like this:

var _hDividerGroup:MyHDividerGroup  = new MyHDividerGroup();

for (var j:Number = 0; j < _cols; j++) {
  var _group:Group = new Group ();
  _hDividerGroup.addElement(_group);
}

Then I get error: atLeastTwoChildrenRequiredError.

Making the same in MXML working good.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Creating-HDividerGroup-in-AS-tp6349.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.