It's ok to BE null, it just can't be set to null.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@206 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -13,7 +13,9 @@ public class FloatingTextAnimation extends TextField
|
||||
format :TextFormat = null) :FloatingTextAnimation
|
||||
{
|
||||
var fta :FloatingTextAnimation = new FloatingTextAnimation();
|
||||
fta.defaultTextFormat = format;
|
||||
if (format != null) {
|
||||
fta.defaultTextFormat = format;
|
||||
}
|
||||
fta.autoSize = TextFieldAutoSize.CENTER;
|
||||
fta.text = text;
|
||||
fta.width = fta.textWidth + 5;
|
||||
|
||||
Reference in New Issue
Block a user