Zath
09-17-2005, 08:26 PM
How would the font size be changed using this code...
var test_mc:MovieClip = this.createEmptyMovieClip( "test_mc", this.getNextHighestDepth() );
test_mc._x = 500;
test_mc._y = 45;
var test_mc:MovieClip = eval( this + ".test_mc" );
var verticalOffset:Number = 0;
test_mc.createTextField( "text_txt", test_mc.getNextHighestDepth(), 0, verticalOffset, 290, 180 );
var text_txt:TextField = eval( test_mc + ".text_txt" );
text_txt.autoSize = false;
text_txt.wordWrap = true;
text_txt.selectable = false;
text_txt.border = true;
text_txt.html = false;
text_txt.textColor = 0xFF0000;
text_txt.text = "TEST";
I have tried to do it with .html = true and .htmlText, but problem with that way is my background is black and I can't seem to get the font color to change using that method.
Thanks,
Thanks,
var test_mc:MovieClip = this.createEmptyMovieClip( "test_mc", this.getNextHighestDepth() );
test_mc._x = 500;
test_mc._y = 45;
var test_mc:MovieClip = eval( this + ".test_mc" );
var verticalOffset:Number = 0;
test_mc.createTextField( "text_txt", test_mc.getNextHighestDepth(), 0, verticalOffset, 290, 180 );
var text_txt:TextField = eval( test_mc + ".text_txt" );
text_txt.autoSize = false;
text_txt.wordWrap = true;
text_txt.selectable = false;
text_txt.border = true;
text_txt.html = false;
text_txt.textColor = 0xFF0000;
text_txt.text = "TEST";
I have tried to do it with .html = true and .htmlText, but problem with that way is my background is black and I can't seem to get the font color to change using that method.
Thanks,
Thanks,