-
1. Re: setTextFormat(format1);
kglad Apr 30, 2012 1:01 PM (in response to Ron Colmen)i don't see any text assigned to newszlatest. if there is none assigned until after you assign formatting, use setNewTextFormat(format1);
-
2. Re: setTextFormat(format1);
Ron Colmen Apr 30, 2012 1:12 PM (in response to kglad)Thanks Kglad.
Also I tried to have newszlatest on the stage and remove _root.contents.createTextField("newszlatest", as per below code. Any idea why this didn't work?
_root.contents.newszlatest.multiline = true;
_root.contents.newszlatest.wordWrap = true;
_root.contents.newszlatest.textColor = 0xFF6600;
_root.contents.txtool_mc.droFonts_mc.font_mc.addText1.onRelease=function(){
_root.contents.newszlatest.html=true;
//trace ("Test...");
_root.contents.newszlatest.setNewTextFormat(format1);
_root.contents.newszlatest.embedFonts = true;
createTF(scrollup._x+tl.scrollup._width/2,scrollup._y,"");
ft1.textColor = "0x666666"
for (k=1; k<13; k++) {
_root.contents.txtool_mc["ftI"+k]._visible=false;
}
}
-
3. Re: setTextFormat(format1);
kglad Apr 30, 2012 2:22 PM (in response to Ron Colmen)if you're going to embed fonts for a dynamically created textfield, you need to assign a font (that's in your library and marked for export with actionscript).



