What is the most common way to change the font in a TextField, within a package? I read a little bit about styling the text in the TextField with CSS, or possibly embedding the fonts, but I know little about accomplishing either. If someone could find it in their heart to help a noob, I would be grateful. Or at least point me in a reliable direction.
Thanks.
Ex:
package {
import flash.text.TextField;
import flash.display.MovieClip;
public class Example extends MovieClip {
private var example:TextField;
public function Example() {
example = new TextField;
example.text = "This is an example.";
addChild(example);
}
}
}
Using this example, I want to change the default font used (in the swf file) for “This is an example” to something I set it to (Arial perhaps). Hopefully I’m making sense.