Font Embedding

I have a font in my library named ArialFont. It is set to export under that same name. The code for my text field is:


var textFormat:TextFormat=new TextFormat();
textFormat.font=new ArialFont().fontName
textFormat.size=18
var shuffling_tb:TextField=new TextField()
shuffling_tb.text="Shuffling"
shuffling_tb.autoSize=TextFieldAutoSize.CENTER
shuffling_tb.defaultTextFormat=textFormat;
shuffling_tb.embedFonts=true
shuffling_tb.x=card5.width/2
shuffling_tb.y=card5.height+30
addChild(shuffling_tb)

No text shows. If I set embedFonts to false, text shows. I have looked up several tutorials just to make sure I got all the code right, and it seems I do. Can anyone spot my error, or have any idea whats going wrong?

Edit: Problem solved; the default text format apparently has to go before any text has been set. However, the purpose of embedding the font was to do an alpha tween, and while the tween works, it is not working correctly.


var textSetupAlphaTween:Tween=new Tween(shuffling_tb,"alpha",None.easeNone,0,100,1,true)

even with the last arguement set to true, the actual tween goes much too fast, like its using milliseconds. I have to set it to at least 100 before it is even noticeable. There are a large number of other tweens going on at the same time; 48 to be exact. The others all look great though. I traced the alpha on the textfield with motion change tween event. The alpha trace is in line with what the alpha should be, but not with what is actually appearing on screen. What issues may cause this problem?

Edit #2 Silly late night error. Alpha goes from 0-1 not 0-100.