Loading external Font

Hi,
I'm working on big site localized in 27 Europeans countries.
I'm looking a way to dynamically load font(different fonts
for each country's) at runtime and set then in Textfield.
Maybe something like set a kind of class "Title_font" as
Textfield font and then by countries load the appropriate font for
displaying specific character of this particular country.
Really appreciate if someone can share his knowledge with me,
per advance thank you.
Julien Terraz

Hm, yes, I remember there being some challenges in this regards, with Modules loading fonts at runtime.
If you take a look at the section "Using run-time style sheets with modules," they describe the basic approach where everything has to be loaded and registered in the primary application domain.
I think it should work fine the way you have it, provided you are registering both the font and the loaded SWF in the primary application domain. If not, you may need to push the font registration down into the application domain being used by the loaded SWF.
Something like this perhaps:
childApplicatonDomain.getDefinition('flash.text.Font').registerFont(fontClass);
Where childApplicatonDomain is the application domain of the loaded SWF.

Similar Messages

  • Solution for load external FONT sf file to iOS application

    Hi,
    i follow this instruction to load externalHosted sf files to iOS application.
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/#comments
    I need to load external swf files (Font only) on runtime and embed it runtime.
    But I always got the uncompilled action script error on adhoc or release build.
    how can I solve this problem? The Font is not an asset, and I can't load it on runtime on iOS?
    thanks

    Did you try this doc? Packaging and loading multiple SWFs in AIR apps on iOS

  • Loading external fonts in midp apps

    hello every body
    my question is can i add external fonts to my midp apps? say for example i want to add andulas.ttf font and want my application to show text in to that font?
    please provide a sample code if you can on how to do that....

    yes i need the font for display purpose. basically i am developing an application that receives an unicode character string upon request and display the content in bengali language. i have installed the Arial Unicode Ms to my machine and edited the .properties file of the default phone from sun wireless toolkit accordingly. Arial Unicode Ms supports my language. i am using StringItem to output my content. but when i am output the content it doesnt change the outcome. it just simpley outputing the unicode string as if it has been passed!!!!
    here goes my code..
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class UnicodeTest extends MIDlet
         private Display display = null;
         private Form fm = null;
         private StringItem si = null;
         private Command exit = null;
         public UnicodeTest()
              display = Display.getDisplay(this);
         public void startApp()
              fm = new Form("My form");
              si = new StringItem("in bengali: ","KixeDUw�k gwvlw hwnwk BxZpwo L�g �gxm xb�dk dt");
              fm.append(si);
              display.setCurrent(fm);
         public void pauseApp()
         public void destroyApp(boolean unconditional)
              notifyDestroyed();
    }the following goes my properties files font part...
    font.default=Arial Unicode MS-plain-10
    font.softButton=Arial Unicode MS-plain-11
    font.system.plain.small: Arial Unicode MS-plain-9
    font.system.plain.medium: Arial Unicode MS-plain-11
    font.system.plain.large: Arial Unicode MS-plain-14
    font.system.bold.small: Arial Unicode MS-bold-9
    font.system.bold.medium: Arial Unicode MS-bold-11
    font.system.bold.large: Arial Unicode MS-bold-14
    font.system.italic.small: Arial Unicode MS-italic-9
    font.system.italic.medium: Arial Unicode MS-italic-11
    font.system.italic.large: Arial Unicode MS-italic-14
    font.system.bold.italic.small: Arial Unicode MS-bolditalic-9
    font.system.bold.italic.medium: Arial Unicode MS-bolditalic-11
    font.system.bold.italic.large: Arial Unicode MS-bolditalic-14
    font.monospace.plain.small: Arial Unicode MS-plain-9
    font.monospace.plain.medium: Arial Unicode MS-plain-11
    font.monospace.plain.large: Arial Unicode MS-plain-14
    font.monospace.bold.small: Arial Unicode MS-bold-9
    font.monospace.bold.medium: Arial Unicode MS-bold-11
    font.monospace.bold.large: Arial Unicode MS-bold-14
    font.monospace.italic.small: Arial Unicode MS-italic-9
    font.monospace.italic.medium: Arial Unicode MS-italic-11
    font.monospace.italic.large: Arial Unicode MS-italic-14
    font.monospace.bold.italic.small: Arial Unicode MS-bolditalic-9
    font.monospace.bold.italic.medium: Arial Unicode MS-bolditalic-11
    font.monospace.bold.italic.large: Arial Unicode MS-bolditalic-14

  • How to load external fonts loading in single file

    I am load multiple swf files in single root swf file. Is it possible multilple fonts  embeding in single file. If it is possible can help any one.

    Heya,
    I believe you can embed the .swf file using flex code in flex builder. I just did a quick google search and came up with a few articles. I don't think there is a way to do this in Catalyst yet, but please correct me if I am wrong.
    I am also building my portfolio in Catalyst as a little project and although there are some bugs I am really enjoying the Beta
    Hope this helps!
    Chris

  • Loading external fonts

    I'm stuck with this problem:
    I have a specific font installed on my computer.
    I putted the ttf file of that font in the jar of my project and it works fine.
    But logically when I run the jar on another computer it won't load the ttf file
    How do i solve this problem?
    This is the specific code that i use now...
    InputStream in = this.getClass().getResourceAsStream("/Fonts/Digir___.ttf");
    Font font = Font.createFont(Font.TRUETYPE_FONT, in);
    Font font2 = new Font(font.getName(),font.getStyle(),30);Thanks in advance,
    Simon
    Edited by: SimonDS on Apr 20, 2008 6:35 AM

    I have a Swing application reading an inputStream to load a ttf file from the application's jar-file to create a font via createFont().
    It works fine when compiled and run in SDK/JRE "1.6.0_07" and below; runs fine on 1.5.
    I installed SDK/JRE "1.6.0_10-rc"; it fails now, with java.security.AccessController.doPrivileged(Native Method),
    Jars previously compiled with "1.6.0_07" work fine using "1.6.0_10-rc" run-time.
    Please advice; my concern is the long-term compatibility since I distribute the application and needs operation across Windows, Mac and Linux, until now this has not been a problem; please advice; the resolution and/or correct usage to load a ttf-file from a distribution jar-file.
    Thanks;
    java.io.IOException
    at java.awt.Font$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Font.createFont(Unknown Source)
    java -version
    java version "1.6.0_10-rc"
    Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28)
    Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
    String fontFile = "packagename/afont.ttf";
    InputStream is = ClassLoader.getSystemResourceAsStream(fontFile);
    Font nfont = Font.createFont(Font.TRUETYPE_FONT, is);
    is.close();
    This code works fine in when compiled using SDK/JRE "1.6.0_07"
    java -version
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

  • Loading external swf fonts created with fontswf, loaded with a Loader, compatible with iOS

    Let me immediately start out by saying that I do in fact have a current working solution for using embedded fonts, generated by fontswf and working in an AIR ActionScript mobile application, and also currently working fine with iOS.
    My current app needs CFF fonts, so I currently use the fontswf tool to pre-generate the .swfs using:
    fontswf -4 -a [SomeAlias] -o [SomeFont.swf] [SomeFont.ttf]
    and then I am currently embedding them in my app source code .as for compilation using:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    I then have no problem registering them using Font.registerFont(SomeFontClass) and everything works fine.
    However, I would prefer to take the use of these swf fonts one step further and load them dynamically using a Loader so that I do not have to take the hit of having multiple CFF font swfs embedded in the main compiled SWF and so that I could even load an unknown future set of fonts without having to supply them as part of the app build.
    Now I have seen and read many blogs and tutorials where people have exported font swf from Flash Builder where you add an explicit 'Class' name or even made standalone .as static files compiled into standalone swfs only including the two lines:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    so that you also have a 'Class' involved. Then people use some form of appropriate applicationDomain.getDefinition("className") as Class
    to pull out the class for the font registration.
    My question is, how does one perform the same font loading and registration of fonts using a Loader only loading the .swfs produced directly from fontswf?
    It seems only a DefineFont4 is tagged in the swf, there doesn't seem to be a 'Class' per se to call on.
    More importantly, iOS apps cannot load external swfs with code in them, so my understanding is any extra wrapped swf that would contain a custom Class technique would fail the iOS requirement of only having one main SWF with any ActionScript compiled code.
    Is there an alternative to the 'Class' technique by grabbing the DefineFont4 tagged resource from the swf and instantiating a proper working Font class from that? One that would still be compatible with the restrictions placed on AIR mobile apps running on iOS?

    Ironically, just after posting this, Adobe released AIR 3.5 beta onto labs, and added multiple SWF support for iOS.
    While this new support makes it easier to manage your content across multiple SWFs and technically allows you to use the class based separate .swfs for each font if desired, the system still requires that all these SWFs be present at compile time when making the final app .ipa for iOS.
    So this still doesn't solve trying to load fonts after the app is already built. For example, as part of a downloaded in-app purchase mechanism.

  • External Fonts not loading properly in panels & buttons, works fine in labels / edits - help!

    Hey guys,
    I'm new to developing in Flex, so please excuse any
    ignorance.
    I followed the basic tutorial to use Flex to import external
    fonts... here's my CSS code:
    @font-face {
    src: url(components/fonts.swf);
    fontFamily: "Blue Moon";
    global
    color: #000000;
    fontFamily: "Blue Moon";
    fontSize:20px;
    Here's what's happening:
    1) On my development machine, I have the "Blue Moon" font
    installed. Everything works fine here - I see the Blue Moon font on
    everything in my project, from the titles of Panels to Buttons, and
    so on. Everything's great.
    2) On all other machines, which do NOT have the Blue Moon
    font installed, I see the Blue Moon font properly on the labels and
    edit boxes, but NOT on the buttons or on the title areas of panels.
    Here is my site, so you can see what I mean:
    http://thedemenscycle.com/
    Assuming you don't own the Blue Moon font, you should notice
    that the panel titles are a default font, where the "Username" and
    "Password" and edit box fields are the Blue Moon font.
    I am forced to conclude that for whatever reason my code is
    not applying the externally imported font to the panels and buttons
    for whatever reason. But it DOES apply the local font on the
    machine, if availible. I'm really quite confused.
    Any insight / help would be greatly appreciated!
    Thanks,

    I had this same problem, ended up just droping the fonts,
    would be nice to see an official response to this issue.

  • Context: Error loading external library

    Oracle 8.1.5EE, Solaris 8 (x86)
    create index quick_text on quick ( text )
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: ConText error:
    ORA-06520: PL/SQL: Error loading external library
    ORA-06522: ld.so.1: extprocPLSExtProc: fatal: relocation error: file
    /oracle/app/oracle/product/8.1.5/ctx/lib/libctxx8.so: symbol ociepgoe:
    referenced symbol not found
    ORA-06512: at "CTXSYS.DRUE", line 122
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 34
    ORA-06512: at line 1
    whats the problem ?!
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Omar Alonso ([email protected]):
    Make sure that the Net8 listener is running and is configured to invoke external procedures.<HR></BLOCKQUOTE>
    Of cause its running and configured as follows:
    listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM=extproc) (ORACLE_HOME=/oracle/app/oracle/product/8.1.5)
    (SID_NAME=PLSExtProc)
    tnsnames.ora:
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    LD_LIBRARY_PATH - ok to lib and lib/ctx
    + /var/ld/ld.conf - correct
    + ENVS=LD_LIBRARY_PATH=... - set
    I dont understand whats the problem ;-(
    services looks like this:
    PHNET3 has 5 service handler(s)
    DEDICATED SERVER established:0 refused:0
    LOCAL SERVER
    DISPATCHER established:94 refused:0 current:13 max:254 state:ready
    D000 <machine: phnet3, pid: 19391>
    (ADDRESS=(PROTOCOL=tcp)(HOST=195.133.235.229)(PORT=34087))
    DISPATCHER established:162 refused:0 current:13 max:254 state:ready
    D001 <machine: phnet3, pid: 19393>
    (ADDRESS=(PROTOCOL=tcp)(HOST=195.133.235.229)(PORT=34088))
    DISPATCHER established:132 refused:0 current:13 max:254 state:ready
    D002 <machine: phnet3, pid: 19395>
    (ADDRESS=(PROTOCOL=tcp)(HOST=195.133.235.229)(PORT=34089))
    DEDICATED SERVER established:0 refused:0
    LOCAL SERVER
    PLSExtProc has 1 service handler(s)
    DEDICATED SERVER established:0 refused:0
    LOCAL SERVER
    null

  • Load TTF font ???

    hi,
    i'am trying to distribute with my application an external font.it's loading correctly but nothing appear on screen :/
    JLabel label = new JLabel("Hello World");
    FileInputStream stream = new FileInputStream("c:\\LED.ttf");
    Font f = Font.createFont(Font.TRUETYPE_FONT,stream);
    label.setFont(f);
    does it's possible to set a font that is not in normal system path ?
    vincent.

    I once did it like that for a special font used via a label. It works for both file system and jar files:
    public class CSpecialFontLabel extends JLabel {
         private static final String URL_FONT = "appl/gui/font/ariblk.ttf";
         private static Font m_font;
         public CSpecialFontLabel(int style, int size) {
              loadFont();
                  setFont(m_font.deriveFont(style, size));
          * Draws the version info.
         public void paint(Graphics g) {
              Graphics2D g2d = (Graphics2D) g;
              g2d.setRenderingHint(
                   RenderingHints.KEY_ANTIALIASING,
                   RenderingHints.VALUE_ANTIALIAS_ON);
              super.paint(g);
          * Loads the font for the version info
         private void loadFont() {
              if(m_font == null) {
                try {
                        InputStream is = this.getClass().getClassLoader().getResourceAsStream(URL_FONT);
                        m_font = Font.createFont(Font.TRUETYPE_FONT, is);
                        is.close();
                   } catch (Exception e) {
                        // loading font failed -> use std. Font
                          m_font = new Font("Arial", Font.ITALIC | Font.BOLD, 60);
    }

  • Embedding and using external fonts.

    I'm using Flash CS4.  I'm trying to load and embed an external font.  The main problem I'm having is that I need to import more than just latin 1.  I need many special characters imported as well.  Because of this, using Flash CS4's create new font from the library is not an option.  I'm using Verdana, so I know the font has all the characters I need.
    So what I need to do is create an external swf that holds the font.  Then I need to import and use the font.  Unfortunately, I've found way too many ways online that work but don't fit my needs.
    Any help is appreciated.

    1. Embedding
    a. You can embed font in Flash IDE by creating Font as a library asset and then compile this swf. There are tons of help available on Internet.
    b. If you use Flash CS5 or compilers that utilizes Flex SDK, you can create class like below and compile it into a swf:
    package 
         import flash.display.Sprite;
         public class FontLibrary extends Sprite
              [Embed(systemFont="Verdana", fontName="_verdana", mimeType="application/x-font", advancedAntiAliasing="true", fontStyle="normal",unicodeRange="U+0020-U+007E")]
              public static var Normal:Class;
              [Embed(systemFont="Verdana", fontName="_verdana", mimeType="application/x-font", advancedAntiAliasing="true", fontStyle="normal", fontWeight="bold",unicodeRange="U+0020-U+007E")]
              public static var Bold:Class;
              [Embed(systemFont="Verdana", fontName="_verdana", mimeType="application/x-font", advancedAntiAliasing="true", fontStyle="italic", fontWeight="normal",unicodeRange="U+0020-U+007E")]
              public static var Italic:Class;
              [Embed(systemFont="Verdana", fontName="_verdana", mimeType="application/x-font", advancedAntiAliasing="true", fontStyle="italic", fontWeight="bold",unicodeRange="U+0020-U+007E")]
              public static var ItalicBold:Class;
    No matter what way you choose - you will have font available the external swf.
    Try to load external swf into current domain. When you load the swf there is no much to do. Once swf is loaded - fonts should be available throughout application.
    To use the font - just pass its name into TextFiled instance's TextFormat. WIth the example above:
    myTextFormat.font = "_verdana";
    Documentation for TextFormat:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextFormat.html
    To see available fonts you can use the following:
    var allFonts:Array = Font.enumerateFonts(false);
    allFonts.sortOn("fontName", Array.CASEINSENSITIVE);     
    for (var i:int = 0; i < allFonts.length; i++)
         trace(allFonts[i].fontName);

  • NaN with loading external flv

    Hi all
    I'm having some strange diffulties which I can't solve.
    I'm starting off with a website.swf which loads different
    external swf's depending on the button that has been pressed.
    One of those swf's is a file with different buttons to load
    different external flv's.
    While loading a flv a progressbar shows the percentage of the
    loaded part of the flv
    Now: If I play the first video file everything works fine
    While switching to another button to load another flv during
    the loading of the first flv, My percentage says NaN. and stops
    loading.
    On each button I say:
    on (press) {
    stream_ns.close();
    connection_nc.close();
    _parent.videoloader_mc.unloadMovie();
    on (release) {
    _parent.videoloader_mc.loadMovie("movies/binnenkomers01.swf");
    This is the part I use for loading a flv in f.ex
    binnenkomers01.swf.
    stop();
    delete _global.loaded_interval;
    delete _global.connection_nc;
    delete _global.stream_ns;
    delete _global.pctLoaded;
    // video URL
    video1_url = "movies/binnenkomer06_Floriane.flv";
    _global.connection_nc = new NetConnection();
    connection_nc.connect(null);
    _global.stream_ns = new NetStream(connection_nc);
    videoholder_mc.video.attachVideo(stream_ns);
    stream_ns.play(video1_url);
    stream_ns.seek(0);
    // Zet de video op stop om te wachten tot hij volledig is
    ingeladen
    stream_ns.pause();
    _global.playstatus = "pauze";
    play_pauze_mc.gotoAndStop("pauze_lb");
    this.createEmptyMovieClip("progressBar_mc",
    this.getNextHighestDepth());
    progressBar_mc.createEmptyMovieClip("bar_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.bar_mc) {
    beginFill(0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    endFill();
    _xscale = 0;
    progressBar_mc.createEmptyMovieClip("stroke_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.stroke_mc) {
    lineStyle(0, 0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    progressBar_mc._x = 640;
    progressBar_mc._y = 400;
    this.createTextField("loaded_txt",
    this.getNextHighestDepth(), 0, 0, 200, 22);
    loaded_txt._x = 645;
    loaded_txt._y = 405;
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.color = 0x333333;
    my_fmt.font = "Verdana";
    my_fmt.size = 9;
    my_fmt.align = "left";
    _global.loaded_interval = setInterval(checkBytesLoaded, 500,
    stream_ns);
    function checkBytesLoaded(stream_ns) {
    trace("my_ns.bytesLoaded: "+stream_ns.bytesLoaded);
    trace("my_ns.bytesTotal: "+stream_ns.bytesTotal);
    _global.pctLoaded =
    Math.round(stream_ns.bytesLoaded/stream_ns.bytesTotal*100);
    trace("_global.pctLoaded: "+_global.pctLoaded);
    loaded_txt.text = "loading... "+pctLoaded+"%";
    loaded_txt.setTextFormat(my_fmt);
    progressBar_mc.bar_mc._xscale = pctLoaded;
    if (isNaN(pctLoaded)) {
    clearInterval(loaded_interval);
    } else {
    trace("OK");
    if (pctLoaded>=100) {
    clearInterval(loaded_interval);
    Hope you guys can help me....

    Maybe they have hotlink protection enabled
    "indierockmedia" <[email protected]> wrote
    in message
    news:f3c4mo$ddn$[email protected]..
    > Hi, I am having trouble with some loading issues. I
    design ecards for
    > bands and
    > their tour dates, bio, and video files all load external
    files (text files
    > for
    > bio/tour, flv files for the video, and an swf skin file
    for the video).
    > Its
    > only a problem when I have to embed those ecards into
    sites that don't
    > host the
    > ecard. I have used crossdomain.xml and every fix ive
    read about, and still
    > have
    > issues. Let me detail below:
    >
    > For example, I have an ecard for a band at
    >
    http://bandwebsite.com/ecard/ecard.swf
    > The tour and bio and video files load simply "tour.txt,
    bio.txt,
    > video.flv,
    > skin.swf"). Works great because no external servers are
    being called.
    >
    >
    But when I want to embed the file elsewhere, or use different
    domains,
    > I
    > have issues:
    > I want to embed the ecard on to
    http://www.otherwebsite.com,
    so I can't
    > have
    > it simply call "tour.txt" for example, the ecard will
    think the tour file
    > comes
    > from www.otherwebsite.com/tour.txt. So I call the full
    path
    >
    http://bandwebsite.com/ecard/tour.txt
    > I go to the ecard and click the button to load the tour
    dates. The text
    > box
    > that worked before says "undefined". So I put a cross
    domain file at the
    > root
    > of
    http://bandwebsite.com that
    allows access to files from
    > www.otherwebsite.com. Still getting undefined. I go to
    the embed code for
    > flashobject and have allowscript access to "always".
    Still undefined. I go
    > and
    > add System.security.allowDomain to my timeline and
    specify
    > www.otherwebsite.com. Still undefined. Still won't load
    my video or video
    > skin
    > and text files.
    >
    > Am I missing something?
    >
    > mikey
    >

  • Unable to load external swf which has runtime sharing with another swf.

    Hi,
    I am getting issues on loading external swf say "importer.swf" file into another swf file say "loader.swf" for second time like
    ReferenceError: Error #1065: Variable testSymbol is not defined. VerifyError: Error #1014: Class testClass could not be found.
    at global$init()
    In the external swf "importer.swf", i am trying to import the symbol "testSymbol" from another swf file say "exporter.swf", which exports through runtime sharing option for the symbols.
    I am having some buttons in loader.swf file and on each button click i am loading different swf files into the loader.swf after unloading the previous one.
    I am able to load and unload different swf files but unable to load the importer.swf file which is sharing symbols from external swf and that too for the second time i.e., when i click the button twice.
    When trying to debug with flash debugger, all the other swf files are being unloaded before loading of another swf but the swf which is sharing symbols/classes with another swf is not getting unloaded.
    Output when i am trying to load two files example and importer files into loader.swf file on two different button clicks. On first button click example.swf is loaded. On second button click , example.swf is unloaded and importer.swf is loaded which is successful. On first button click again importer.swf is unloaded and example.swf is loaded. On second button click again, example.swf is unloaded and importer.swf is loaded, here i am getting issues shown above.
    Attemping to launch and connect to Player using URL D:\runtime issue\loader.swf
    [SWF] D:\runtime issue\ loader.swf - 8181 bytes after decompression
    [SWF] D:\runtime issue\example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    [SWF] D:\runtime issue\importer.swf - 441708 bytes after decompression
    [SWF] D:\runtime issue\ example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\ example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    ReferenceError: Error #1065: Variable xxxxxx is not defined.
    Debug session terminated.
    Code i am using
    b1.addEventListener(MouseEvent.CLICK, b1Clicked);
    b2.addEventListener(MouseEvent.CLICK, b2Clicked);
    var ldr:Loader;
    function b2Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("importer.swf"));
        addChild(ldr);
    function b1Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("example.swf"));
        addChild(ldr);
    If i try to open the swf using IE, i am not getting any issues at all. But i need to open this loader.swf in a air application. Also when i use loaderContext for the loader instance i am able to get rid of this issue but i cant use it in my application.
    So, please help me in resolving this issue.
    Thanks

    I got my answer. I had to append the photo url to the 'movie' value of the javascript embed method. Like this:
    <script language="JavaScript" type="text/javascript">
       AC_FL_RunContent(
          'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
          'width', '550',
          'height', '400',
          'src', 'lesson2',
          'quality', 'high',
          'pluginspage', 'http://www.adobe.com/go/getflashplayer',
          'align', 'middle',
          'play', 'true',
          'loop', 'true',
          'scale', 'showall',
          'wmode', 'window',
          'devicefont', 'false',
          'id', 'lesson2',
          'bgcolor', '#ffffff',
          'name', 'lesson2',
          'menu', 'true',
          'allowFullScreen', 'false',
          'allowScriptAccess','always',
          'movie', 'lesson2?photo=http://www.flash-mx.com/images/image1.jpg',
          'salign', ''
          ); //end AC code
    </script>
    Thanks,
    srb.

  • How to load external subtitles in mov files (in QT)?

    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks

    cowpox wrote:
    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks
    You might do better reposting this in the QuickTime forum here:
    http://discussions.apple.com/forum.jspa?forumID=932

  • How to load a font as resource in javafx ?

    Hi,
    I am trying to load a font as a resource as supposed of installing the font on the system.
    Is there a way in javafx to load font from a file at runtime?
    Thanks.

    Yes, there is a way, and there's a tutorial for this on javafx.com: www.javafx.com/docs/techtips/custom_fonts/

  • As3 loaded external jpgs

    developing a ui in flash for photo gallery which I am loading
    into dreamweaver.
    using as3 in flash to load external photo files so not all
    having to download on opening.
    have had no problem in dreamweaver with swfs with embedded
    jpgs.
    ui comes up in dreamweaver but not external files. even
    though when I open swf movie or the flash created html of same
    file, on its own, no prob.
    anyone run across this problem, jpgs are in same file as
    flash media, also dropped them into image file just in case that
    might work---no go
    any ideas ?

    your isse begins here ..
    loadSection()
    you use the same loader to not only load files but you are tyring to use it to target the movieClip you also want to play.
    The issue is loader.  The loader can only reference one load at a time.. otherwise you screw up your listeners and the ability to unload files properly.
    You should load all files in Your current system as its own variable so that while one loads you can still control a movie.
    So what type of end transitions do your files have?
    What exactly with this seems like youre getting an issue.. looking at it looks alright aside from the fact that some methods are not used at all by your class

Maybe you are looking for

  • IPod Touch cannot update beyond ios1.1.5

    I want to add apps to my iPod but cant do so as the Applications tab doesnt appear among the tabs when I access my iPod in iTunes.  Have updated both my iTune and iPod software.  when I click update software in iTunes (Devices/Summary/Check for Updat

  • Error while trying to setup waterfall Chart in OBIEE 11.1.1.6.7

    Hi All, I am working on the OBIEE 11.1.1.6.7 version. This upgrade to 11.1.1.6.7 was done recently from 11.1.1.6.2 version by running the latest patch downloads using Opatch functionality. Recently we had a requirement and I am trying to set up water

  • How to get the usage of SSRS reports in project server 2010

    Hi Can any body tell me how to get the usage of the SSRS reports in Project Server 2010. Thanks Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

  • What's this Help

    I am switching my appl in VC++ 2005 from winhelp to chm. winhelp works fine with .hlp file. Now, with html, context sensitive (F1) works fine, but What's this help doesn't work. In my CMainFrame class, he is my code tha takes care of that. void CMain

  • JDev 10g r3: Problems with migrationg

    Hi, All! There is a situation: i have a project made in JDev 10g R2. By unknown the project file (jpr) cannot be converted to new project format. Because i need to create new project and add all files (web.xml, faces-config.xml, JSPs, .java) to new e