Mega Code Archive
Scroll to a Specific Child in a Container
private function changeScrollToShowChild():void
{
vbox.verticalScrollPosition = (getChildrenHeight((comboBox.selectedItem as Number)+1)) - vbox.height + 40;
}
private function getChildrenHeight(index:int):Number
{
var i:int = 0;
var sumHeight:Number = 0;
while(i
1
2
3