Hello everybody
With reference to the subject, I am using the following statement to embed the font within my custom class:
[Embed(systemFont = "Verdana",
fontName = "VerdanaReg",
mimeType = "application/x-font-truetype")
]
If I use the same code within my FLA, it works fine, but using inside my custom class, it reports error:
“The definition of base class FontAsset was not found.”
I have added the following references in the Library path:
** $(AppConfig)/ActionScript 3.0/libs
$(FlexSDK)/frameworks/libs/flex.swc**
I have even tried adding;
$(AppConfig)/ActionScript 3.0/libs/framework.swc
But, nothing helps. It seems I have to Import something in my class; but I don’t know what to import or do something alike.
Please help.