Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-19 Thread Michael William Ypes
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 v

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread allandt bik-elliott (thefieldcomic.com)
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 < [EM

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
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

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Glen Pike
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 b

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Ian Thomas
Michael, You can do this with the Flex SDK, which is free. HTH, Ian On Mon, Aug 18, 2008 at 3:07 PM, Michael William Ypes <[EMAIL PROTECTED]> 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 g

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
I can access the fonts but do not know how to cast them as a class to regsiterfont. Here is what I have so far with that route in mind. Embed the fonts on the timeline: Use the following code but I need to register the fonts to make them globally available. var embeddedFonts:Arra

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
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 purc

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Cedric Muller
As a precision: This technique works perfectly with AS3 (I was also using the great zarate's shared library hack with AS2). The only big drawback, with AS3, is that you have to be sure that NO single textfield with the embedded font you want to use is in the loading SWF (means: don't put te

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Cedric Muller
Hello Michael, try the following: 1) create a FLA, blank, empty timeline, empty stage 2) show the Library, then from the menu on the top right click on 'New font ...' 3) select the font you want to embed, give it a 'Name' with no spaces. For example: Arial Narrow (actual font name) would be

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread jonathan howe
Sorry, I realized the syntaxt is wrong - would need to first cast as a Class then instantiate... On Mon, Aug 18, 2008 at 2:27 PM, jonathan howe <[EMAIL PROTECTED]>wrote: > I haven't tried this myself but have you used my old bff > getDefinitionByName > > var fontClass:Font = getDefinitionByName(

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Glen Pike
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 wor

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread jonathan howe
I haven't tried this myself but have you used my old bff getDefinitionByName var fontClass:Font = getDefinitionByName("fontClassNameWithinTheSwf") as Font; and then use the font via the Font class? -jonathan On Mon, Aug 18, 2008 at 1:40 PM, Michael William Ypes < [EMAIL PROTECTED]> wrote: > I

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
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 add

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Ian Thomas
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 k

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Geografiek
Hi Michael, I agree embedding fonts in Flash is a pain. I don't think you can define a range of characters in an exported font symbol in the Flash IDE. (as stated in www.betriebsraum.de). developer.yahoo.com describes the flex approach. You might try the following: Define 2 dynamic text field o

[Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
Something that should be sooo easy always seems to be a real struggle in flash. I had finally worked out how to do it in as2 and now all the parameters have changed again in as3. I have read various articles on the subject and get most of it. I have one swf with two font symbols exported in