I've got that already although its vmware but I just prefer working in
the mac environment now - most times anyway.
I have got the embedding working but am trying to slim down the code
and I am having a problem with the unicode. I want to put the unicode
into a variable and then use those variables instead. The compiler is
saying that it is an invalid unicode range. How do you cast a unicode
string? This is what I have so far
private var UppercaseAZ:String = "U+0020-U+0020,U+0041-U+005A";
private var LowercaseAZ:String = "U+0020-U+0020,U+0061-U+007A";
private var Numerals:String = "U+0030-U+0039,U+002E-U+002E";
private var LatinLanguage:String = UppercaseAZ + "," + LowercaseAZ +
"," + Numerals;
private var defaultLanguage:String = LatinLanguage;
[Embed(source='arial.ttf', fontName='Arial',
unicodeRange=defaultLanguage)] //Invalid Unicode Range
public static var _Arial:Class;
/* THIS WORKS
[Embed(source='arial.ttf', fontName='Arial', unicodeRange='U+0020-U
+0020,U+0041-U+005A')] //Valid Unicode Range
public static var _Arial:Class;
*/
trace(defaultLanguage) // OUTPUTS U+0020-U+0020,U+0041-U+005A,U+0020-
U+0020,U+0061-U+007A,U+0030-U+0039,U+002E-U+002E
I take it I need to cast the unicode as a different type and not as a
string?
Cheers
M
On 18 Aug 2008, at 18:41, allandt bik-elliott (thefieldcomic.com) wrote:
get parallels and a copy of windows xp (vista is too chunky to use in
virtualization)
then go to http://www.flashdevelop.org/community/viewtopic.php?
t=2463 and
set it up as instructed - i barely notice the jump between the two
apps now
On Mon, Aug 18, 2008 at 6:03 PM, Michael William Ypes <
[EMAIL PROTECTED]> wrote:
Thanks Glen,
I made the move to mac a few months ago and alas I cannot use Flash
Develop
anymore as it was definitely my preferred choice as editor. However
the mac
system has proved to be much better for my development now than the
pc ever
was so not really grumbling.
Anyhow after a very annoying day I have found the solution that I was
looking for. Although it requires flex and flash in order to create
the
solution. Flex to require the font library and then flash to load the
library into. I must admit it is quite a sweet solution however I
didn't
really find any good documentation on it anywhere which is a shame.
The key
aspect was to limit the libraries to the glyphs required and to
load at
runtime depending on which language was required. Thanks for the
point into
the right direction. I might blog it if I ever get my blog up and
running...
Thanks or the help guys.
Cheers
M
On 18 Aug 2008, at 15:29, Glen Pike wrote:
Hi,
You can do the AS3 Embed test with FlashDevelop = £0, so download
the
FlexSDK, install it, then FD, then maybe try the example on
ScottMorgan's
blog -
You should be able to create a simple FD project (AS3 "default")
paste in
the code for the font from the blog, and click the build / run
button to
compile.
One thing to note with embedding is the path to the font, you may
want to
copy a version into a directory in the project folder rather than
rely on
the System or file based "C:\.." fonts as I sometimes had problems
with the
compiler and this mde them go away.
http://www.adobe.com/products/flex/flexdownloads/#sdk
http://www.flashdevelop.org/community/viewforum.php?f=11&sid=1ef39000400abfd888216f8b507a9901
<
http://www.flashdevelop.org/community/viewforum.php?f=11&sid=1ef39000400abfd888216f8b507a9901
>
FD releases
If you like FD and want to do a lot of compiling with it, I
recommend
getting the flex compiler shell "fcsh" installed too.
http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell
Flash Develop is really nice too if you do a lot of coding for
AS3. For
what you want to do, you should not have a huge hassle making it
work it
either, the learning can come later when you have some breathing
space.
Glen
Michael William Ypes wrote:
I was thinking of this route but my flex 3 trial has run out. I am
assuming then that I can load that into a normal flash
application and get
it via the class name as per normal.
Has anyone got an example font file (made from flex) that I can
test it
with. If not I shall have to go and purchase flex.
On 18 Aug 2008, at 13:37, Glen Pike wrote:
Hi,
You should still be able to load a separarte SWF with a font
embedded
then use this on the stage:
http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/
A workaround for the "[Embed] does not work in Flash" issue is
to use
another program, like Flash Develop if you ain't got Flex, to
create your
font based SWF, then load this from your Flash built application.
HTH
Glen
Michael William Ypes wrote:
I know the offstage technique but what I want is to load an
external
swf with the specific font in it. Then use that font in all
other swfs. You
could do this in as2 by loading in a swf that had a shared
library font in
it. Bit of a hack but it worked.
I cant quite believe Adobe has not addressed this in cs3 as
fonts do
add a huge amount to file sizes. There has got to be a fix for
this
surely...
Any more ideas...
Cheers
M
On 18 Aug 2008, at 12:08, Ian Thomas wrote:
On Mon, Aug 18, 2008 at 12:01 PM, Geografiek <
[EMAIL PROTECTED]> wrote:
Define 2 dynamic text field off stage (one for each font) and
define
the
character range there.
These characters should now be available to all text fields
in the
.swf
*Should* work, but with Flash and font you never know :(
Offstage will do it.
So will exporting in a text field within a MovieClip symbol in
the
library, providing that MovieClip symbol is marked for export
in first
frame.
HTH,
Ian
_______________________________________________
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
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
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
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
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
_______________________________________________
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