Hi,
You can use the [Embed] Directive in a few places in Flex.
Inside your MXML code - create a new project - then you can add normal
actionscript by inserting
<mx:Script> tags - start typing "Scr..." and Flex Builder will try to
auto-complete.
Between your Script tags is ActionScript - same way as you would
write it anywhere else.
You can also create ActionScript only components as part of your
project and write your code as AS.
You can also embed your fonts in style sheets, which just contain
fancy CSS declarations. I have an example at home, so will post it this
evening if you don't get sorted - in about 3hours from now.
Keith Peters also wrote an article about Embed on his blog - a while
back so you might have to search for it
Glen
Mike Grunwald wrote:
I've been searching for the best way to handle fonts when localizing
Flash applications. Ideally I'm looking for a way that I can create
SWFs that have specific character ranges of specific fonts embedded in
them that I can load in to my applications as needed based on the
language that has been selected by the user.
I've come across many posts of people describing this approach, most
notably:
http://troyworks.com/blog/2008/09/12/flash-runtime-font-sharing-embedding-with-only-partial-character-sets-how-to/
The problem for me is I don't know Flex at all. I have Flex Builder 3
and use it almost everyday as my primary AS3 editor, but I don't know
the first thing about MXML or even creating Flex projects. The
previous post above describes this technique using FlashDevelop and
the Flex SDK. Since I have Flex builder I'm just looking for a little
guidance as to how to get similar code to compile a SWF in Flex Builder.
Any help would be greatly appreciated. Or if any or you have any
better methods of how to handle this that you would like to pass on,
I'm totally open to suggestion.
Thank in advance,
_mike
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders