Answered
detect font style in text field
Hello. I wonder if there is any way (in AS3) to detect font style of the text loaded into dynamic text field (via PHP).
Any ideas?
Regards
Hello. I wonder if there is any way (in AS3) to detect font style of the text loaded into dynamic text field (via PHP).
Any ideas?
Regards
It's not clear what you intend when you say style, but you can use the TextField's getTextFormat() method to determine different properties of the text. If you have a TextField with an instance name "tf", then you can use the following to output the font...
trace(tf.getTextFormat(0).font);
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.