hi guys,
I am creating this layout where texFields are dynamically placed according to some variable.
function displayHeadlines():void {
var j:Number =13;
var i:int;
var headlineText:TextField;
for (i= 0; i<3; i++) {
headlineText = new TextField();
headlineText.textColor = 0xFFFFFF;
headlineText.x = 420;
headlineText.y = j;
headlineText.width = 156;
headlineText.height = 68;
headlineText.text = "something";
trace("added button" + j);
j = j + headlineText.height+8;
addChild(headlineText);
}
}
function removeHeadlines():void{
//What would that be? I've tried everything I could find, didn't find much
//I've tried
// removeChild(headlineText);
// but this only removes the last child on the loop, how can i remove them all?
}
displayHeadlines();
}
Is there a way where I can actually add those textFields in a Sprite maybe, that I can add or clear()?
pls help,
thx