1){ // is not a heading firstName.text = theDataString.split(" ")[0]; lastName.text = theDataString.split(" ")[1]; lastName.visible = true; headerBG.includeInLayout = headerBG.visible = false; firstName.top = firstName.bottom = 20; lastName.top = lastName.bottom = 20; } else { // is a heading firstName.text = theDataString; lastName.visible = false; headerBG.includeInLayout = headerBG.visible = true; firstName.top = firstName.bottom = 5; lastName.top = lastName.bottom = 5; } } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); // move the lastName label into place rather than using an HGroup lastName.setLayoutBoundsPosition(firstName.x + firstName.width + 6, firstName.y); } ]]>