2nd Font WONT embed. Keep getting error: 1151 A conflict exist-HELP
I am trying to embed a font. It is the same font but, different sizes ( I dont know if that matters, one size is 11 the other is 15). I set up my actionscript as so (please see below), but I continue to get this error message: 1151 A conflict exist with definition dtText2 in namespace internal. WHAT I AM DOING WRONG? And do I need another set of code if I am using the same font but instead of size=15; I am using size=11;? PLEASE HELP.
var font3:Font=new Font3();
var dtFormat:TexFormat=new TextFormat();
var dtText2:TextField=new TextField();
dtFormat.Font=Font3.fontName;
dtFormat.size=15;
dtText2.autoSize=
TextFieldAutoSize.CENTER;
dtText2.defaultTextFormat=dtFormat;
dtText2.embedFonts=true;
Why is it giving me error 1151 A conflict exist.....? I have tried changeing the name of my var dtText2, and I even instance my dynamic Text, naming it myText2 but I continue to get errors. Can anybody help I have been working on embeding fonts for days now and continue to get stuck.
Thanks for anything that you can do.