calmchess
09-15-2009, 12:27 PM
I'm using the following code to try and change the font size of a textfield dynamically using a varaible but I can't get size to use the variable as a value however all the other variables I combine with the string works as intended just not size .....can somebody spot the trouble plz.
var chSize = 50;
trace(msg);
insID.htmlText += "<font size="+chSize.toString(16)+" fontFamily='Tahoma' color=\"#"+newColor.toString(16)+"\">"+msg+"</font>";
insID.wordWrap=true;
stage.focus = msgOut;
scrollBar.update();
var chSize = 50;
trace(msg);
insID.htmlText += "<font size="+chSize.toString(16)+" fontFamily='Tahoma' color=\"#"+newColor.toString(16)+"\">"+msg+"</font>";
insID.wordWrap=true;
stage.focus = msgOut;
scrollBar.update();