createTextField() Input formating

hey,

I’m trying to format an input field that I have created with ActionScript with - createTextField.

I have managed to create one, but i’m currently unable to format it i.e. change font and colour etc.

here is the code i’m working with:


sMenu.createTextField("nTxt", getNextHighestDepth(), 10, 10, 150, 20);
	
	var myf:TextFormat = new TextFormat(); 
	myf.color = 0xFF0000;
	myf.font = "Arial";
	
	sMenu.nTxt.border = true;
	sMenu.nTxt.type = "input";
	sMenu.nTxt.tabEnabled = true
	
	sMenu.nTxt.setTextFormat(myf);

I’m just playing with it at the moment, I’ve never done this before.

Cheers!