Help with embedding fonts in swf file

Hi, I am haviing a problem with my fonts displaying in my swf file. I created the flash site using CS4 on a mac. I thought the fonts were embedded but when I tested the swf in safari and firefox the fonts disappeared are all scrunched up in 1/2" on top of each other in several lines. Its a mess. It is displaying in times or some other font when viewed in on a pc browser.
What I did so far that did not work:
Made fonts static with animation
made fonts dynamic with animation
How can I fix this?
I am still a beginner using flash so the simpler the option the better.
Thanks!!!

there are quite a few ways you could mess this up but no one way that's typical.
create a new fla.  click on the text tool, select static in the combobox and add a textfield to the stage.  animate it.  test it.  any problems?
any other way (or ordering of steps) you use to create static text is prone to problems.

Similar Messages

  • Help with load and unload swf file.

    hello, just now i try, to  load my file using the code snippet 'load and unload' i manage to load the next file succesfully but why my recent file still appear in the background? how do i make it gone?

    When you load another SWF you're loading it 'inside' the current SWF but it appears that you want to replace the current SWF entirely with the new SWF, is that correct?
    If so you should make what's usually known as a 'stub' or a loader. Make an empty project that merely acts as a loader. It should load your first SWF and when you press a button on that first SWF to load a second SWF, it should signal the 'stub' it's loaded inside to unload the first SWF and then load the second.
    e.g. a stub.swf (just coding out of memory, not error checked, just to give a general idea):
    // make a new loader to do all the loading of SWFs
    var loader:Loader = new Loader();
    // and display
    addChild(loader);
    // a function to load a SWF into the loader (replacing any existing SWF)
    function loadSWF(path:String):void
         // assure path is defined or do nothing
         if (!path) return;
         // load requested SWF
         loader.load(new URLRequest(path));    
    // load initial SWF
    loadSWF('/path/to/1.swf');
    For your 1.swf to use the function, you're currently inside the .content property of a Loader so I believe you can just run a command like: Object(this.parent.parent).loadSWF('/path/to/2.swf');
    This example obviously lacks any error checking or transitions but you can add those and season to taste.

  • Embeding Fonts from TTF File

    Hi,
    I had a very basic question on using Embeded Fonts in SWF files.
    I have to use a Italic effect on a Arail Font text, for this should I use ARIAL.TTF and apply the italic effect on it or Should I go for ARIALI.TTF file?
    What is the difference and which is the correct way of doing it?
    I am acutally working on a PPT to SWF converter and I am not able to match the look at feel of the Italic or Bold fonts in PPT and SWF, any suggestions where I should look for help on understanding how fonts are used?

    Hi Peter,
         Thanks for your reply.
         I did some experimentation and found that I can embed the Arail.ttf file and apply FontStyle=Italic property in my MXML tag and it shows me a italic form of Arail font. But when I try to use the same embeded font using FontRange and specify FontStyle = Italic in font range the italic font is not shown on the UI. Why is there a difference in MXML and Font Range ?
         I understand that I should use ARIALI.TTF file for Italic fonts but the problem is that it increases the size of my SWF. And even if somebody has used a italic style for couple of words it increases the size significantly. I want to avoid that.
         Can you tell me why FontStyle on normal Embede font work from MXML and not from FontRange?
    -Saurabh.

  • Unable to get the same font in swf file

    Hi,
    I've created some swf files in which text was written using one particular font. When I run these swf files in other computers which don't have this font, The text gets displayed in different font.
    How to get the same font in other computers also without installing the font.
    I tried embedding font in fla file. But I commit mistake at somewhere. Could anyone help me to figure it out ?
    Thanks !

    Hi,
    Thanks for your assistance.
    I apologize for not explaining it properly. As you had suggested I just created one new file in which I kept only one text field. No actionscript or anything. The text will be displayed on the stage for 2 secs.
    As it is static I don't need to embed the text. So I didn't. Checked the swf file in different computers but no desired display. I then embedded the font. No desired display again in different computers. I then changed it from static to dynamic text, It is not necessary though. Still no desired display. I then tried with different font. But same thing happens.
    How did I embed the font ?
    Text --> Font Embedding --> Choosing correct font family and style --> Choosing character ranges as uppercase, lowercase, numbers, punctuation. Then clicked on + sign available at right top corner of the left area in which all embedded fonts are displayed. Click OK. Checked in Library and those fonts are available.
    I even didn't do anything with actionscript tab as I don't have any actionscript at all for this file.
    2 fonts I used:
    Font Family: Cooper Std
    Style: Black
    Font Family: DigifaceWide
    Style: Regular
    I don't really know Where I commit mistake. Please advice me.
    Awaiting your precious reply.
    Thanks.

  • Will someone help me open a cisco swf file

    I am trying to open a cisco swf file on my xp computer.I initially downloaded "IrFanView" which was a program internet explorer told me to download so I could open it. I downloaded the aforementioned program and when I try to open the file I get on the bottom of screen "unidentified error" then a popup box that sais "Internet Explorer can't open this file". Then I try to open it with Google Chrome and I don't get the popup but still the "unidentified error" at the bottom of the screen. I have heard that adobe flash will open it but here is the tricky part. In my add/remove programs it shows I have adobe flash 11 active x. However, when I right click on the file and click on "open with" the only adobe product that shows is Adobe Reader.I'm thinking if I could get the path to adobe flash then I might have the answer. Is my thinking along the right path or not. Lastly, can someone help me find the path to adobe flash 11 or help me to open this swf file.

    Ned,
    I tried opening it via Internet Explorer and got this error message:
    Invalid character
    index.js       Line: 1
    Invalid Character
    swfobject.js  Line:1
    Object expected
    index.html    Line:18
    'SWFObject' is undefined
    index.html
    code:0
    URI: file:///C:CISCO_CCNA/Exploration1_English/theme/index.html      Line: 51
                                                                                                          Char:1
    What does all of that above mean?

  • Help with embedding videos

    Hello,
    I please need help with embedding videos from youtube. I do this via the Web panel (not the video panel) and copied the embed code on Youtube and pasted it into my Indesign CS6 (autoplay activated). I did it according to that helpful video: http://blogs.adobe.com/jlockman/2013/06/04/embedding-youtube-videos-into-your-dps-project/
    However, when testing this on my iPad, only a white box appears and I cannot press a play button.

    Are you sure, that you changed code from youtube?
    Code from youtube is:
    src="//www.youtube.com/embed/KulFWmvbEu4
    but you need to change it to
    src="https://www.youtube.com/embed/KulFWmvbEu4
    For us, best result is to embed video via:
    menu Object > Include HTML (don't know exact english name of menu), paste iframe code with correct http link and then it works.

  • Textfield which accepts multilingual characters with embedded fonts

    Hi all,
    I have a textfield where I can paste text from different languages with device fonts. Now, I want to input multi-ligual text with embedded fonts.
    I have embedded set of fonts, where I can input only english alphabets but not other languages.
    Is there a way to input any language characters with embedded fonts?
    Thank you.

    Thanks for your reply.
    I have embedded font as follows,
    [Embed(source="myfont.ttf", fontName='myfont', mimeType='application/x-font',embedAsCFF="false")]
    With this, I was able to apply this font for english.
    I have tried to paste " मैं कौन हूँ? " on a textfield. But I have not shown मैं कौन हूँ? text.
    And setting text programmatically did not work at all as
    textField.text = "मैं कौन हूँ?";
    If I do this with device fonts, every thing work fine but not with embedded fonts.
    Is there any thing wrong with my code while embedding font?

  • Font in swf file changes with indesign

    Hi, I am creating an indesign presentation, and have included a swf movie I created in Flash Professional. The movie contains some text, which appears fine in Flash Pro and fine in the indesign preview tool, but once the indesign file is exported to a swf file itself, the font changes to something different. I have made the text field into a movie symbol in Flash after finding this issue the first time, but this has not corrected it. Is there anyway I can correct this please?
    Thanks

    Thanks. I'm going to have to find out the process behind that as I'm not sure how to do it - exporting the flash animation as a swf file is also creating a swz file that I assumed was all the text info needed, but it doesnt seem to help in this matter. In the mean time I have done the text parts in Photoshop, simplified the layers and then imported them as png images, and that has seemed to fix the issue.
    Thanks for your response!

  • Need help with embedded SWF Playing

    I have an embedded SWF file (A 4 photo slide show) created in Flash Professional CS5, Action script 3, flash player 10 selected.
    I have placed this into the flash catalyst CS5 file. The file previews in the browser perfectly.
    The problem is when published it will not start the slideshow until you refresh the browser (Safari and FireFox) the local version runs fine
    the published version does not even when uploaded to the web server. www.ngambaisland.com
    This site was woking properly before I made some changes to the slide show and rebuilt the file to optimize it for loading performance.
    Please help if you can,
    Many Thanks,
    Curtis

    Thanks for looking but I have tested the website on 5 different computers an the slide show only activates after you hit the screen refresh button.
    I am afraid I am a bit limited in flash. You mentioned to check access settings. I used the default action script 3 settings in the publish settings.
    Could you please be more descriptive as what to look for or what settings I would need to change?
    Thanks for your help.
    Curtis

  • Need help with embedded SWF in PDF as navigation

    Hi,
    I was wondering is there a way to have an embedded swf navigate to different pages of a pdf?
    Example:
    My swf is on page one. There are mulitple buttons in the swf, when clicked it will take you to page 3, or 5, or 7, etc.
    Currently, when I click on a button, it DOES take me to say page 4, but the content on page is the SWF file from page 1, and not the content that is suppose to be on page 4. Has anyone else experienced this problem?
    This is what I have in the flash action:
    btn_1994_1.addEventListener( MouseEvent.CLICK, p1994 );
    function p1994(e:MouseEvent):void{
         //addChild(pop_1994);
         doExternalInterfaceCall("gotoTarget", "pink");
    function doExternalInterfaceCall(myfncall, parm)
        flash.external.ExternalInterface.call(myfncall,parm);
    And this is what I have in the javascript of the pdf:
    function gotoTarget(name)
         this.gotoNamedDest(name);
    Please help me fix this problem.
    Thanks in advanced!
    ps. I am using Acrobat 9 Pro

    can anyone help?

  • Problems with embedded font on spark RichText control

    « Hide
    I have an embedded font that appears correctly when used with Halo components, but when associated with the spark RichText component, it is not recognized.
    The embedded font is defined in css file, my css file
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/halo";
    @font-face {
    src:url("assets/fonts.swf");
    fontFamily: "Helvetica Neue";
    @font-face {
    src:url("assets/fonts.swf");
    fontFamily:"Helvetica Neue";
    fontWeight: bold;
    global{
    color:#333333;
    fontFamily: "Helvetica Neue";
    fontSize:12px;
    The embedded font it used in the following manner:
    <mx:Label styleName="panelTitle" text="Hello There"  width="263" x="21" y="11"/>
    <s:Group width="410" x="38" y="52" height="50">
    <s:RichText styleName="panelTitle" text="Hello There" fontFamily="Helvetica Neue"  width="263" x="21" y="11"/>
    </s:Group>
    The Label shows the embedded font correctly while the RichText control does not. It does not matter if the fontFamily is specified explicitly on the control or not.
    I created a bug SDK-22137, but since I'd need to get this working soon any help would be appreciated.

    Just a friendly reminder. Many of the examples on that site are fairly old and havent been updated to use the latest APIs. For example, "cff" has recently been renamed to "embedAsCFF". In fact, here's a better example:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo">
        <s:layout>
            <s:VerticalLayout paddingLeft="20" paddingTop="20" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            /* DefineFont3 (embedAsCFF == false) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgia;
                fontWeight: normal;
                embedAsCFF: false;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgia;
                fontWeight: bold;
                embedAsCFF: false;
            /* DefineFont4 (embedAsCFF == true) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: normal;
                embedAsCFF: true;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: bold;
                embedAsCFF: true;
            mx|Label {
                fontFamily: embGeorgia;
            s|RichText {
                fontFamily: embGeorgiaCFF;
                fontLookup: embeddedCFF;
        </fx:Style>
        <mx:Label text="Halo Label" />
        <mx:Label text="Halo Label (bold)" fontWeight="bold" />
        <s:RichText text="Spark RichText" />
        <s:RichText text="Spark RichText (bold)" fontWeight="bold" />
    </s:Application>
    Also, depending on what you're trying to do, this may help you: http://blog.flexexamples.com/2009/06/14/using-a-cff-embedded-font-with-a-halo-label-contro l-in-flex-4/. Basically, you can set the textFieldClass style on certain Halo controls and have them use the mx.core.UITLFTextFieldClass (instead of the default mx.core.UITextFieldClass) so they can take advantage of the new CFF fonts.
    In fact, here's the same example as above, but with the single embedded font:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo">
        <s:layout>
            <s:VerticalLayout paddingLeft="20" paddingTop="20" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            /* DefineFont4 (embedAsCFF == true) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: normal;
                embedAsCFF: true;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: bold;
                embedAsCFF: true;
            mx|Label {
                fontFamily: embGeorgiaCFF;
                textFieldClass: ClassReference("mx.core.UITLFTextField");
            s|RichText {
                fontFamily: embGeorgiaCFF;
                fontLookup: embeddedCFF;
        </fx:Style>
        <mx:Label text="Halo Label" />
        <mx:Label text="Halo Label (bold)" fontWeight="bold" />
        <s:RichText text="Spark RichText" />
        <s:RichText text="Spark RichText (bold)" fontWeight="bold" />
    </s:Application>
    Peter

  • Problems in CS3 and AS3 with embedded fonts

    Hi. I recently downloaded the trial version of CS3 to test it
    out. I'm an experience AS2 developper, and have 10 years of C, C++,
    C#, Java, PHP ... programming experience on BIG projects before
    starting flash.
    I have been trying to use an embedded font in AS3 with a
    dynamically created textfield. I've tried all the examples in
    O'Reilly's ActionScript 3.0 Cookbook. They suggest using the
    [Embed] meta tag, but quite honestly it does nothing in CS3. I had
    the Size Report option selected, and it shows clearly by the file
    size the font isn't present in the SWF.
    Then I tried doing it the way I did in Flash 8. Again there
    no luck. My TextField exists, but there is simple no font being
    rendered.. Here is my bit of code.
    In my library I have a symbol called arialBold. In the
    linkage settings, I have "Export for ActionScript" checked, and
    "Export in first frame" checked. The class is "arialBold" but I
    wonder if that's right? and the Base class is "flash.text.Font"
    I tried every variation I could think of. I must be doing
    something wrong. You can find my file here :
    http://www.newcommerce.ca/as3/fonttest.fla
    Thanks for your help! If you can fix this, i'll be very
    happy!

    this code works
    var tf:TextField = new TextField();
    var tfor:TextFormat = new TextFormat();
    tfor.font = new _TrebushetMS().fontName;
    tfor.italic = true;
    tf.width = 300;
    tf.height = 200;
    tf.embedFonts = true;
    tf.border = true;
    tf.defaultTextFormat = tfor ;
    tf.text = "this is a test";
    this.addChild(tf);
    This code does not work
    var tf:TextField = new TextField();
    var tfor:TextFormat = new TextFormat();
    tfor.font = new _TrebushetMS().fontName;
    tfor.italic = true;
    tf.width = 300;
    tf.height = 200;
    tf.embedFonts = true;
    tf.border = true;
    tf.setTextFormat(tfor) ;
    tf.text = "this is a test";
    this.addChild(tf);
    i don't know why

  • Embedding fonts as SWF

    Hi all,
    I am working on a mobile actionsxcript project and am having trouble embedding some fonts. The fonts are embedded in SWF files as only a small subset is needed and I am trying to embed the SWF files in my AS build and then access the fonts via their linkage names.
    I am not having any luck but am not really sure of the exact approach here so if anyone can shed any light or provide a tutorial/example that would be great as I am about to start banging my head on stuff.
    I am embedding the font swf like this:
    [Embed(source="assets/newfonts/FontFile.swf", symbol="fontInstanceName")]
    public var FontBold:Class;
    I assume I need to construct an instance and cast it before I can use the font (maybe wrong about this) but am unsure of the details.
    Thanks in advance for any help.

    Turns out to be really (embarressingly) simple and I'm not sure how it took me so long to get working.
    Add a new font to the library in Flash.
    Give it a linkage name and set it to export for actionscript.
    Publish the SWF
    Embed the swf in the actionscript project using [Embed(source="assets/newfonts/FontLib.swf", symbol="TestFontBold")]public var TestFontBold:Class;
    Set the 'symbol' parameter in the embed tag to be the flash linkage name of the font.
    Create a TextFormat object
    Create a Font object - var newFont:Font = new TestFontBold();
    Set myTextFormat.font = TestFontBold.fontName;
    Apply the TextFormat as usual.
    No idea how I had so much trouble with this when it is so obvious and straighforward. Oh well, that's often the case (with me at least)
    Cheers

  • Why a pdf document with embedded fonts can be copied but is not searchable in pdf reader

    I am writing a pdf files with embedded subset fonts. As required, I am including the ToUnicode and CIDSet objects. To test, I created a simple PDF with two Hebrew characters. I can select the two characters and copy to the clipboard, and paste it properly into another application such as Word. But I am not able to search for a word containing these two characters. Adobe Reader (or Acrobat) displays the message that the word was not found. So in essence, I have created a PDF document which can be copied properly, but is not searchable. Any idea what I might be missing when creating the document?
    Additional information: 1. The file in question is a minimal file with just two characters. I have tested with many such files in many different languages including English. None of the files are searchable. 2. Curiously, if I search for the letter 'e', Adobe reader highlights an incorrect word, even if the letter 'e' does not exists in the file. 3. Adobe acrobat is also not able to search within this file, however when I save the file to another disk file, the saved file now is searchable. I confirmed that the major objects such as the font-file, ToUnicode object, CID object, and the font description objects are the same in the saved file. However, one of the font object is brought up closer to the top of the file. 4. FoxIt is able to search these files properly.
    5 0 obj
      <</Filter /FlateDecode /Length 115>>
      stream
            q 0.750000 0 0 0.750000 0.000000 792.000000 cm
            q q q 0.160000 0.000000 0.000000 0.160000 0.000000 0.000000 cm
            BT /F0 100.000000 Tf 0 g 750.000000 -690 Td[<02B0>] TJ 35.000000 0 Td[<02B9>] TJ ET Q
            Q
            Q
            Q
    endstream
    endobj
    10 0 obj
    <</FontName/AAAAAA+ArialUnicode/CIDSet 9 0 R /Ascent 905/CapHeight 905/Descent -212/FontFamily(Arial)/Flags 32/FontBBox [0 -212 1000 905]/ItalicAngle 0/StemV 0/FontFile2 7 0 R/Type/FontDescriptor>>
    endobj
    11 0 obj
    <</BaseFont/AAAAAA+ArialUnicode/CIDToGIDMap/Identity/CIDSystemInfo <</Ordering(Identity)/Registry(Adobe) /Supplement 0>> /FontDescriptor 10 0 R/Subtype/CIDFontType2/Type/Font>>
    endobj
    12 0 obj
    <</Subtype/Type0/BaseFont/AAAAAA+ArialUnicode/Encoding/Identity-H/DescendantFonts [11 0 R]/ToUnicode 8 0 R/Type/Font>>
    endobj
    8 0 obj
      <</Filter /FlateDecode /Length 252>>
      stream
            /CIDInit /ProcSet findresource begin
            12 dict begin
            begincmap
            /CIDSystemInfo
            << /Registry (Adobe)
            /Ordering (UCS) /Supplement 0 >> def
            /CMapName /Adobe-Identity-UCS def
            /CMapType 2 def
            1 begincodespacerange
            <0000> <FFFF>
            endcodespacerange
            3 beginbfchar
            <0000> <0000>
            <02B0> <05E0>
            <02B9> <05E9>
            endbfchar
            endcmap
            CMapName currentdict /CMap defineresource pop
            end
            end
    endstream
    endobj

    I figured the app might have that ability - considering you can add text, highlight, add a signature, annotate and draw - so my thought was why not delete a page, or rearrange for that matter?.. That should be an option, this way we don't have to export to one of the other apps to delete or rearrange..
    Thanks for the help, Bernd.
    BTW if anyone is looking - PDF Max can do all of the above and delete and rearrange. With PDF Splicer you can delete and rearrange as well, but it has no other features.
    And as for Steve Werner whose comment was deleted after it got to my inbox, it is much more than a Reader, as you can plainly see from the amount of tasks the Reader app can do above.

  • Problems with Embedded Font MS PGothic

    Hello,
    After editing a document in Japanese, some characters will not show up. Normally i would attribute this to a missing font pack, but after reinstalling the Japanese font pack on the computer, we strill get the error message:
    "Cannot extract the embedded font 'RNUQGV+MSPGothic-WinCharSetFFFF-H'"
      Some characters may not display or print correctly.
    We create the file with MS Word, and in word we have no problems. It is only after using PDF-Server to create the files does this become a problem. Other Japanese fonts do no seem to have this issue.
    Any help would be greatly appreciated.
    thanks in advance
    SB

    Hello,
    After editing a document in Japanese, some characters will not show up. Normally i would attribute this to a missing font pack, but after reinstalling the Japanese font pack on the computer, we strill get the error message:
    "Cannot extract the embedded font 'RNUQGV+MSPGothic-WinCharSetFFFF-H'"
      Some characters may not display or print correctly.
    We create the file with MS Word, and in word we have no problems. It is only after using PDF-Server to create the files does this become a problem. Other Japanese fonts do no seem to have this issue.
    Any help would be greatly appreciated.
    thanks in advance
    SB

Maybe you are looking for