Flash cs 5.5 Tutorial : formatting text with actionscript 3.0

preview_player
Показать описание
here we see how we can use the textFormat class to perform text formatting.

Mohit Manuja ( Trainer for Adobe Products Dreamweaver and Flash cs 5.5 with actionscript 3.0 )
phone: +91-9022995952 (Mumbai, India )
Рекомендации по теме
Комментарии
Автор

@blueskylazer yes yr fears are not unfounded..this method works well only with regular fonts ..it assumes u have Ravie...and u also answered yrself in the question . That should be a fail -safe method .It surely bumps up the size of the swf many times ..though im yet to test it

MohitManuja
Автор

@blueskylazer : this could be the perfect answer ..il chk it..if u get time pls do ..
to make the text field actually display the custom font, we need to manually activate the option to use embedded fonts and then set the .antiAlias to use the advanced settings:

like so

myText.embedFonts = true;
myText.antiAliasType = AntiAliasType.ADVANCED;

MohitManuja
Автор

I have a question about the font "ravie." If the user does not have the font available on their system, will they have a problem? I assume this method does "not" imbed the font in the .swf. Otherwise, would you also imbed this font and refer to it as a link in the library, instead of the font name, "ravie?" How can you insure that the font will be available to the user? Thanks.

blueskylazer
visit shbcf.ru