All pastes #188719 Raw Edit

illmatixx

public text v1 · immutable
·published 2006-10-02 13:03 UTC
rendered paste body
onClipEvent (load) {
	function dynamicTextField(boxName,PostitionX,PositionY,Width,Height,Content) {
		this.createTextField("txt"+boxName, 1, (PostitionX), (PositionY), (Width), (Height) ); //here it works i guess
		my_txt.multiline = true;
		my_txt.wordWrap = true;
		my_txt.border = true;
		var my_fmt:TextFormat = new TextFormat();
		my_fmt.color = 0xFF0000;
		my_fmt.underline = true;
		"txt"+boxName.text = Content; // error here it doesnt. i think i need just the right syntax
		my_txt.setTextFormat(my_fmt);
	}
	dynamicTextField("box1","10","10","200","50","Hallo")
}