basic as3 question
basic as3 question
Out of context: Reply #2
- Started
- Last post
- 3 Responses
- ElectroLAX30000
Yep I think it's the lack of semi-colon'ness as the following worked fine. I substituted your navClip for an empty sprite and the asset_navbut() method for a textfield constructor and it worked fine.
var navClip:Sprite = new Sprite();
for(var i:int; i<5; i++)
{
var item = navClip.addChild(new TextField);
item.textColor = 0xFF0000;
item.text = "Y HELO THAR" + i;
item.x = i*150;
trace(i);
}this.addChild(navClip);