A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Flash CS3 + Flash Lite 1.x + dynamic text + embedded fonts = broken?

  1. #1
    Member
    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    44

    Thumbs down Flash CS3 + Flash Lite 1.x + dynamic text + embedded fonts = broken?

    I've made a Flash Lite 1.1 movie in Flash 7 (Flash MX 2004) on the Mac. In it, I had a dynamic text field which I wanted to render as a particular font, so I embedded the font in the movie. This worked without problems previously.

    Now, opening up the same file in Flash CS3 (and not changing anything), when I test/publish the movie, the dynamic text with embedded fonts won't display.

    Similar to many people before, when I don't embed the font, the text field displays, but with a system font. When I do embed the font, the text doesn't render (even if the font is in the library).

    The key thing that seems to have changed here seem to be the version of Flash.

    The problem, I hope, is easy to recreate.

    1. Open Flash CS3
    2. Make a new Flash Lite 1.1 file.
    3. Make a text field on stage with some text in it.
    4. Set it to a font of your choice (something nice and distinctive... I used Babelfish in my case).
    5. Set it to "dynamic" and ensure that "Anti-alias for animation" is selected (everything else can be left default)
    6. Embed the need character set for the font for what you've typed.
    7. Test the movie.


    Did anybody get this to work (the text displayed)?

    My movies made in a previous version of Flash (7) DID work. Now it doesn't.
    If you change the publish settings from Flash Lite 1.1 to 2.x or higher, the problem goes away.

    However, as everybody who's worked with Flash Lite knows, the penetration rates for Flash Lite 1.x are faaaar higher than later versions of Flash Lite, so changing to Flash Lite 2.x isn't feasible. Having to revise the code doesn't appeal much either.
    But the look is important here as well so I don't want to have to resort to system fonts.

    Can anybody confirm this problem is happening with them and if possible, suggest a solution or workaround?

    Thanks!

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    I think you need to place the dynamic text box on the root timeline to get it to work. It will not work if in a movie clip.

  3. #3
    Member
    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    44
    Thanks for the reply hp3, but the text box was already on the root timeline.

    This is about as simple as a movie can get. I guess you didn't recreate the steps I mentioned above?

    I've included a sample .fla file showing exactly what I mean.
    It's a CS3 Flash Lite 1.1 file, that has two dynamic text boxes on the stage (root timeline). The font used is good ol' Times New Roman. The upper text (in green) doesn't have the font embedded. The lower text in red does have the font embedded (I've done the Latin set, so it should be comprehensive). When you publish the movie, if you see the same as me, the emulated device in the Adobe Device Central window will show/render only the green (not embedded) text.
    When viewing this same SWF on an actual phone, the same situation occurs, except the green text is of course now a system font of the phone, and not Times New Roman anymore.

    Any ideas?
    Attached Files Attached Files

  4. #4
    Member
    Join Date
    Nov 2000
    Location
    South East UK
    Posts
    91
    This is definately problematic, also in FL 2.1 too - I seem to remember solving this by creating text fields on the pasteboard area (off the app visible screen area) using the same font sizes and weights. This then makes the font available to the .swf as the embedding process during the compiling to .swf process forces the font into the file.

    The coding method (naming a font in the library and setting linkage etc) that should embed fonts in AS2 although the better theoretical approach, seems rather buggy (if it works at all!) with dynamically created font elements using code without my brute force stage text field approach.

  5. #5
    Senior Member
    Join Date
    May 2010
    Posts
    178

    Emulator Adobe Device Central

    The Handset I tested your flash file is Nokia N70 and the Emulator is also do the same.

    The result is OK.. works in both handset and emulator



    Poltuda
    Last edited by poltuda; 06-14-2010 at 06:32 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center