Skip to content

Instantly share code, notes, and snippets.

@mtabini
Created September 30, 2010 13:59
Show Gist options
  • Save mtabini/604608 to your computer and use it in GitHub Desktop.
Save mtabini/604608 to your computer and use it in GitHub Desktop.
protected var binContainer:Array = [];
protected function getBinContainerAtIndex(index:int):HBox {
while (index >= binContainer.length) {
var hbox:HBox = new HBox();
hbox.percentWidth = 100;
hbox.height = 150;
addChild(hbox);
hbox.addChild(safeSpacer());
binContainer.push(hbox);
}
return binContainer[index];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment