Font properties return null in Flash Player 8
Issue
Macromedia Flash Player 8 returns œnull when attempting to get the TextFormat.font property of an embedded font. Flash Player 7 returned the font name being used.
Reason
This is a known issue with the Flash Player.
(Ref 140614)
Solution
To ensure you get the font name to display using the.font() property simply call the method on a particular character as opposed to the whole object (as seen below).
The code below will return "null":
var obj = fontField.getTextFormat();
The code that will return the correct text property is:
var obj = fontField.getTextFormat(0);
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
