I'm trying to embed a font in Flex and the code I'm using looks the same as the example, but throws an error. This is the code I've written:
[Embed(source="data/posca_mad_thrasherz/posca_mad_thrasherz.ttf",
fontName = "fontGraffiti",
fontWeight = "bold",
mimeType="application/x-font")];
private var funFont:Class;
But I get the error, "Metadata requires an associated definition." I can't seem to get rid of it. Any ideas?
Get rid of the semicolon at the end of your Embed statement: http://www.flash-db.com/Board/index.php?topic=17500.0;wap2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With