Flash Gordon
04-17-2005, 02:38 AM
This is from here:
http://actionscripts.org/forums/showthread.php3?t=44432&page=1&highlight=mask+component
How to embed fonts into any V2 Component that can accept a font, such as the TextArea, TextInput, ProgressBar, etc.:
1) Add each font you want to embed to the Library via clicking on the Library menu - upper right corner of the Library panel and select New Font ...
Pick the font from the dropdown list. Give it a friendly name in the 'Name' field. If ... you are using pixel fonts, BE SURE to set the size to 8, and DO NOT check any of the other boxes.
2) Once you see the font in the Library, right click the font and select Linkage ...
Give the font an Identifier and check both 'Export for ActionScript' and 'Export in first frame'.
3) In your Actions layer ... in an appropriate location/frame, either of the following will work, depending on your situation:
_global.styles.TextArea.setStyle("embedFonts", true);
more general: _global.styles.SomeV2Component.setStyle("embedFonts", true);
OR
TextAreaInstanceName.setStyle(("embedFonts", true).
more general: SomeV2ComponentInstanceName.setStyle("embedFonts", true).
So does this really work??? I have been working with this for quite sometime and can't get it. Any help out there?
Link to sample zipped fla file (http://www.modernmusicians.com/help/myFonts.zip)
Thanks guys.
http://actionscripts.org/forums/showthread.php3?t=44432&page=1&highlight=mask+component
How to embed fonts into any V2 Component that can accept a font, such as the TextArea, TextInput, ProgressBar, etc.:
1) Add each font you want to embed to the Library via clicking on the Library menu - upper right corner of the Library panel and select New Font ...
Pick the font from the dropdown list. Give it a friendly name in the 'Name' field. If ... you are using pixel fonts, BE SURE to set the size to 8, and DO NOT check any of the other boxes.
2) Once you see the font in the Library, right click the font and select Linkage ...
Give the font an Identifier and check both 'Export for ActionScript' and 'Export in first frame'.
3) In your Actions layer ... in an appropriate location/frame, either of the following will work, depending on your situation:
_global.styles.TextArea.setStyle("embedFonts", true);
more general: _global.styles.SomeV2Component.setStyle("embedFonts", true);
OR
TextAreaInstanceName.setStyle(("embedFonts", true).
more general: SomeV2ComponentInstanceName.setStyle("embedFonts", true).
So does this really work??? I have been working with this for quite sometime and can't get it. Any help out there?
Link to sample zipped fla file (http://www.modernmusicians.com/help/myFonts.zip)
Thanks guys.