Symbol runtime sharing

first time using runtime sharing, and i found that the
sharing symbol are not load when the swf start,
it only load the symbol(swf) when required by next frame.
my questions is:
1. is there any way to get notice that the shared
library(swf) are being loading (AS3.0)?
2. how the runtime sharing actually work? as the Flex
external link which load the swf into same ApplicationDomain?
thankyou very much

You know, the way these RSLs are set up is a joke.  If I paste a RSL object in my library, I get errors in "tempInit, line 7" saying it can't find the definition of the RSL object, unless I also go into the AS3 settings and add the RSL's SWC file as a RSL reference, then it compiles.  Unfortunately, that has the nasty side effect of altering the base-type of my movie, so instead of using my defined base class, it becomes some kind of RSL Preloader.  What a hack.  If I use an RSL, it should not modify the base type of the movie, it should be loaded transparently by the player before the loaded movie's COMPLETE event is fired.  The behavior of this thing makes no sense at all.  When I use a Loader to load the content, I'm getting random errors now saying "not enough information downloaded yet" for example, to get the width of the movie, however, the movie's Loader's COMPLETE event has already fired.
If I change the linkage on the RSL to be "external", then it will compile without the tempInit error, however, when the lesson loads, it completely wipes out everything in the player.  If I right click on the player, it actually says "No movie loaded..." in the right click menu.  What is going on?

Similar Messages

  • 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.

  • CS5.5 Import for runtime sharing and preview problem

    Hello
    I'm having a strange issue with CS5.5 and the import for runtime sharing settings. Here's what I'm doing: I create two .fla's, Export.fla and Import.fla. In Export.fla, I create a shape, select it, press F8 and tick export for runtime sharing, to create a really simple exported movie clip. I click the exported symbol in the library, press Ctrl-C, switch to Import.fla and press Ctrl-V. Everything ok so far, the symbol is imported for runtime sharing.
    The first problem I have at this stage is that changes I do to the exported symbol in Export.fla are not reflected in Import.fla, only in the final .swf's I can see the changes. Also, unlike in CS4 and CS5 I cannot "Update" the imported symbol in the library right-click menu, to make changes to Export.fla visible in Import.fla. The menu entry is just greyed out...
    So I tried to use Authortime sharing, in the Symbol Properties for the imported symbol in Import.fla. I link the source to the symbol in Export.fla, and once I do that, everything is completely borked. The previously imported symbol is no longer imported. Whenever it is changed in Export.fla, it gets an "Export for Runtime Sharing" tick in its Properties in Import.fla, and worst, it is not shared at runtime, like I need it to.
    Can anyone tell me how to get the "normal" CS/4/5 behaviour in CS5.5: a runtime shared symbol, that can be updated in Import.fla (I dont care if manually or auotmatically) when I change it in Export.fla, and which also is runtime shared?
    Cheers
    Ulf

    Hi, JonnyDiamond
    Thank you for reporting the issue for runtime sharing settings affected by authortime sharing. It is fixed for parent symbols in Flash Pro CS6, but we just recognized it is not for nested items.
    As an alternative to deleting and re-copying the symbol, we see the following steps restore the original settings of the nested bitmap symbol (png in your case) for importing runtime shared library. After you open Bitmap Properties dialog of the bitmap symbol, go to ActionScript section and:
    1. Uncheck Export for ActionScript
    2. Check Import for runtime sharing
    3. Input the path to Library.swf in URL
    4. Click OK twice
    Please try these steps to see if they work for you. If they do, the simalr steps can be processed via JSFL script. It would be something like this:
    //// To restore the settings to import runtime shared library //////
    // Get Library items
    var myItems = fl.getDocumentDOM().library.items;
    // Store an item from myItems
    var myItem;
    // Path to runtime shared library. Change this to your path
    var pathToRSL = "Library.swf";
    // Go through Library
    for (var i = 0; i < myItems.length; i++)
              myItem = myItems[i];
      // Change the condition to suit to your Library
              if(myItem.itemType == "bitmap" &&
                 myItem.name.split(".").pop() == "png" &&
                 myItem.linkageExportForRS == true )
        switchRSSettings(pathToRSL);
    // Disable Export for runtime sharing and
    // enable Import for runtime sharing
    function switchRSSettings(path)
              myItem.linkageExportForRS = false;
              myItem.linkageExportInFirstFrame = false;
              myItem.linkageExportForAS = false;
              myItem.linkageImportForRS = true;
              myItem.linkageURL = path;
    ///////////////////////// End of Script ////////////////////
    We hope this would help you workaround the issue. Again, thank you for your report!
    Thanks
    Toshi

  • Flash Runtime Sharing Challenge 2008

    Hi everyone!
    So I've been looking more into the "Import/Export for runtime
    sharing" of flash, and have run into some frustrating behavior. The
    problem I'm running into is that Flash's management of swf paths is
    confusing, and there is not a lot of documentation as to how the
    engine links files together.
    First some background; forgive me if it's verbose, I just
    want to make sure I supply enough information for this complex
    scenario.
    Basically, I'm trying to make a simple 2D fighting game like
    Street Fighter, so I'll use a character... Let's say... Ryu(cause
    he's the coolest!)
    I'm using external linking to try and reduce the sizes of the
    swfs from the FX in the game w/o having to create a complex dummy
    system. I've got most of the research completed, the final hitch
    that I've encountered is how Flash CS3 handles the linkage setup.
    Here's the setup I have with Ryu:
    /game/rsrc/characters/ryu/flash/Impact.fla
    /game/rsrc/characters/ryu/flash/
    Impact.swf
    /game/rsrc/fx/
    ImpactFX.fla
    /game/rsrc/fx/
    ImpactFX.swf
    /game/bin-debug/Game.swf
    So ImpactFX is the VFX that will be used in all character's
    animations. It's a dust cloud that appears when ryu hits the
    ground.
    Ryu's Impact file references ImpactFX's library. There will
    probably be others like WallImpact, etc.
    Game is the main game.
    So if I have 200 Impact animations with Ryu, w/o using
    runtime sharing, I have to take the size hit, roughly 200 * sizeof(
    ImpactFX.swf), since the assets are burnt into each
    individual Impact animation's swf. With runtime sharing, I only
    have to download
    ImpactFX.swf, so I get major savings over that VFX. Right?
    I've been able to get runtime sharing to work in specific
    instances, but not in a general system.
    So the first thing I did:
    I setup the shared symbols in
    ImpactFX.fla to 'Export for runtime sharing'. I used the
    default symbol names, and used the URL '
    ImpactFX.swf.'
    Dragged the folder that contained the shared symbols from
    ImpactFX.fla to
    Impact.fla. This setup all the symbol's correctly.
    Added them to my scene and ran(
    Impact.swf). No dice! I got this error:
    Error opening URL
    'file:///H|/flash/game/rsrc/characters/ryu/flash/ImpactFX.swf'
    From this, I ascertained that
    Impact.swf was looking for
    ImpactFX.swf in the same directory as it.
    As a quick test I copied the
    ImpactFX.swf to the same directory as
    Impact.swf. Re-ran, and success! The swf savings are there,
    but it's not ideal at all, I have to copy the swfs to the same
    directory???
    From there I changed the linkage up a bit. From the library
    in
    Impact.fla, I changed the Import URL to
    ../../../fx/ImpactFX.swf. Still success! But... Some more
    weirdness here, I only changed it on one symbol, and during runtime
    it worked for all symbols... Even though the other symbols still
    point to just
    ImpactFX.swf...
    So this works fine when I run and test the animation from the
    fla. However, when I try to run it from the
    Game.swf, DISASTER! This one was even more frustrating; the
    flash player doesn't seem to give the previous error message(even
    though it's the same issue.) I traced this problem down before and
    found that the
    Impact.swf would never return a 'loaded' event. Not cool. Of
    course, copying the
    ImpactFX.swf to the appropriate path fixes this and it runs
    beautifully.
    So where does that leave me? There's a way to get this to
    work, but it's not pretty at all, especially for artists. The ideal
    setup I would like to have the artist working is:
    1. Open the FX library fla, pin the library, and drag drop
    the appropriate symbols for the animation.
    2. Save and export.
    3. Run and confirm in the fla's test frame work.
    4. Run and confirm in the game.
    Unfortunately, with all the swf location copying and pathing
    this adds too much complexity for an art pipeline.
    So that's my dilemma. The main question I am trying to figure
    out now is, what's the best pipeline solution for this scenario? I
    want to be able to runtime share these files with multiple shell
    programs. A solution is forming, but I don't think it's the best.
    It seems like when you setup a symbol to 'export for run-time
    sharing', the URL defines the path the parent importing swf uses to
    find the runtime resources, which seems a little backwards...
    I tried loading
    ImpactFX.swf before
    Impact.swf. That didn't work, even though they are in the
    same security sandbox.
    Other questions:
    1. Is there a way to make loading swfs throw that 'Error
    opening URL' error?
    2. Is there a way to say 'hey flash player, the file you are
    looking to link is over here!'
    3. Or even better, 'hey load these runtime assets before you
    load the assets that reference them!'
    4. Is this necessary? I'm assuming this is a required
    savings, because if we have a lot of animations with FX, we're
    going to want to cut down on our download size. Figuring out this
    pipeline may also allow us to load one large library file for the
    game animations, and just load that.
    5. Does the security sandbox system have anything to do with
    this.
    Any thoughts or ideas? Feel free to point me towards
    documentation, I haven't had much luck finding any detailed
    documentation for this topic.

    Hi Legos,
    Did you ever solve this problem?  I'd like to organize my flash files similarly, but I too have had weird issues with runtime sharing.
    Also, how do you debug into the imported symbol?
    Aaron

  • Either components or runtime sharing?

    Hi,
    I've got problem with simultaneous using runtime library
    import and using
    components form User Interface group in Flash 8 Pro. What
    I've done:
    1. I have created library containing one MC with just simple
    circe. Next in
    linkage section of symbol I set up option "export for runtime
    sharing", gave
    name "circlesymbol" and typed in URL "blabla" (it seems that
    this field is
    not used but must be filled up). I tried to use proper URL
    address of this
    SWF but it has no influence on anything.
    2. Then I created second SWF with any UI component (e.g. list
    component). It
    works fine. Next I decided to create new symbol "Symbol 1" in
    library panel.
    In the linkage section, option "import for runtime sharing"
    has been
    selected and field "name" was filled up with "circlesymbol".
    SWF still works
    fine but when symbol "Symbol 1" was dragged and dropped into
    to the stage
    all UI components stopped working. I can see only its frames
    without any
    details, just rectangles surrounding white areas. Imported
    symbol looks fine
    in the stage. Since imported symbol was removed from the
    stage (not from the
    library), components started working properly again.
    Is any solution to this problem?
    Regards,
    Marek

    Hi Kelvin
    Please see: Crystal Reports 2008 (12.x) Updates & Runtime Downloads
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Runtime Sharing & Component Inspector Bug

    I'm not sure if this is a bug with Flash or me doing something wrong. Here are the steps to reproduce:
    1) Create "Source.fla"
    draw a box on the stage and convert it to a movie clip. Call it "Component"
    export Component for actionscript. Give make the class name "Component"
    also, check "Export for runtime sharing" and put "Source.swf" in the URL. Click OK.
    Next, right click the Component in the library and select "Component Definition..."
    click the "+" button to add a parameter, give it the name "label" with type "String". Click OK
    Save and test the movie so "Source.swf" is compiled out.
    2) Create "Destination.fla" in the same directory
    close Source.fla
    go to File > Import > Open External Library...
    select Source.fla. Click OK
    you should see another Library panel show up with the Component symbol in it.
    drag the Component symbol from that library onto the stage
    save and run it. Everything should be fine: you should see your Component symbol from Source.fla should up on Destination.fla's stage.
    3) The Bug!
    now, click the imported Component symbol on Destination.fla's stage. And go to the component inspector.
    you should see the "label" property we created earlier in step 1
    change the value to something other than the default
    save and run it.
    you should see this compile time error: "Scene 1    1046: Type was not found or was not a compile-time constant: Component."
    What's up with that eh? Seems like a Flash bug to me. Unless I'm missing something.
    FYI: I'm using Adobe Flash Professional CS5 (11.0.2.489)
    Message was edited by: RovertNnud

    Yep, the problem definitely still exists in CS6 12.0.2.529.   I have hundreds of source files for lessons being used by students from PA to TX, and this BUG is making it impossible to work with the files.
    First of all, if a library object is imported for runtime sharing, then it shoudl be loaded from that external source when the file is opened, and flash should keep a file system watcher on the source RSL file so that when it changes, it automatically updates the library definition.
    Furthermore, the "Authortime Sharing" seems to handle these updates automatically, but it requires a source FLA file, and once you set one, there's no way to unlink from it.  If you decide you don't want to use Authortime Sharing, and just use the "import for runtime sharing" option instead, you're screwed.  There is no way to unassociate a file from a source FLA once you choose one.  This needs to be fixed immediatly, or RSL and Authortime sharing are useless in Flash CS6.
    Did you guys somehow patch CS5.5, without carrying the fixes forward to CS6?  lol.  This is confusing.

  • Runtime Sharing = missing classes in debugger

    (Flash CS3 v9.0)
    I created three FLAs, Test1.fla, Test2.fla, and TestAll.fla.
    They are set for Player 8, ActionScript 2. Test1.fla has a symbol,
    Test1 which is exported for ActionScript, frame 1, runtime sharing,
    and using class Foo. Test2.fla has a smbol, Test2, which is
    exported for ActionScript, frame 1, runtime sharing, and using
    class Foo.TestAll.fla imports Test1 and Test2 and has them on the
    stage at frame 1.
    Foo extends MovieClip and has a constructor that traces a
    line of text and an onRelease that traces a line of text. When I
    run TestAll.swf, I see both objects. However, only one of the
    contrscutor trace lines is output, and only one of them interracts
    with the mouse. If I drag out another instance of each symbol, both
    new instances work (so three of four are working.) However, in the
    stand-alone flash player (ie if I double-click the swf), it works
    as I expect.
    It seems like, in the debugger, the first swf on a layer to
    import the shared class always loses.
    Am I doing something wrong? Is there an established
    work-around for this?

    Sounds like the project somehow does not use the flash debug player but the standard flash player; I'm not familar with FlashDevelop but you should check if you are really using a debug player. You can do this programatically, too: flash.system.Capabilities.isDebugger

  • CS3 Runtime shared library linkage

    I'm new to runtime shared libraries, so figured someone will
    see what obvious thing I'm doing wrong.
    Given:
    1. Created a Assets.swf with one exported MovieClip symbol
    with a linkage name called "Symbol1". "Export for actionScript",
    "Export for runtime sharing", and "Export in first frame" are all
    checked. URL: "Assets.swf"
    2. Created a Movie.swf that imports "Symbol1" from
    Assets.swf (using the Open External Library dialog).
    3. Attached a Document class to Movie.swf that contains the
    attached Movie.as code below.
    Result: Two compiler errors:
    Movie.as,Line 9 1046: Type was not found or was not a
    compile-time contant: Symbol1
    Movie.as,Line 9 1180: Call to a possibly undefined method
    Symbol1.
    Movie.as code:

    I wonder why Adobe even enables the "export for runtime
    sharing" checkbox if it doesn't do anything for AS3? This
    definately lead me down the wrong rabbit hole trying to get that
    approach to work.
    Anyway, I made the suggested code changes to Movie.as
    (attached). Unchecked the "export for runtime sharing" box on
    Symbol1 in Assets.fla. Removed the Symbol1 import from Movie.fla.
    And, sure enough, the Symbol1 import now works. Thanks, kglad.
    So in summary, the two points that I missed were:
    Every exported symbol must have as
    associated class definition in a corresponding .as file. so that
    symbol can in imported using the AS3 "import" directive.
    Ignore the "Export for runtime
    sharing" mechanism entirely and use the Loader class
    instead.

  • Import for runtime sharing issue - CS5.5 AS2.0

    I would like to use export/import for runtime sharing option so I can reuse assets form one swf library in another timeline.
    I found this tutorial that explains how to use it, there is also a download link to see the example working:
    http://www.flashkit.com/tutorials/Tips_And_Techniques/How_to_u-FreshLau-1000/
    I do I think exactly the same as it is there, but it doesn't work. Strange thing is that if you open main.swf from downloaded project, it works, but if you open the main.fla and publish it wothout any changes even, it will stop working.
    I have also discovered this problem with runtime sharing option. I have set up my movie clip runtime sharing option from library assets properties to import, as it showen in the picture below...
    but after I click "Ok" and wait apropriate time to proces it, and when I reopen the properties panel of that movie clip I noticed that it has changed "Import for runtime sharing" to "Export for runtime sharing"it self: In addition it also adds "Export for Action Script" which I definatelly haven't choose before.
    Any ideas anyone?
    I gues this is some sort of a problem of flash newer Publish Settings incompatiobility with Flash MX 2004, in which this tutorial was made. although when you open it, you can see it is already stage is set up as AS2.0 and flash player 7. But I have also noticed, that once you open main.fla it is tagged with * symbol as it has not been saved. Anyway, the same occures when I build it from scratch in CS5.5 AS2.0.
    I do not want to do it in AS3.0 because it apparantelly doesn't support attachMovie command.

    Hi Szymon,
    Our flash team and a few other flash clients have experienced this issue.
    It is detailed here in this thread:
    http://forums.adobe.com/message/4000804
    There is no fix however and Adobe have not commented on the issue (via twitter @adobe_care or on the forum).  I contacted adobe support, paid for a support contract, reported the issue and pointed them to the thread but they wanted a video of it after many frustrating conversations (Did I mention that adobe support is -horrible-).  Our flash team never generate a movie though regrettably, they still experience it/deal with it.  It's frustrating to say the least but I am determined to get Adobe to say something about it.
    Adobe make good products but getting support from them is like getting blood out of a stone.  I wonder how many people experience the issue but haven't reported it?
    Regards,
    M

  • Unable to unload external swf which is using runtime sharing

    Unable to unload external swf which is using runtime sharing of some symbols and classes.
    Due to this problem i am unable to load another swf or the same for the second time and getting errors at runtime.
    It works fine when the swf is opened in IE.
    Can anyone please help me in solving the issue.

    thank you
    i have tried to use   this.parent.Click_To_Close  but it gives compilation error
    i checked the tutorial about custom events i think its little complex for me now to understand the typeriter app.
    also i cheked the similer thread and tried to test that code myself..i found that the last block of main movie does not works and does not unload the loader2. however  all the trace are showing in the output windows that i added to check the code but last trace from the main movie is not showig...   
    trace("child removed from Main Movie") 
    so if this can work somehow i will use this method of event dispatch in my application that i am working...
    Thank you
    -----main movie ---------
    var loader1:Loader = new Loader();
    var loader2:Loader = new Loader();
    loader1.contentLoaderInfo.addEventListener(Event.COMPLETE, assignMovie1Listener);
    loader1.load(new URLRequest("movie_1.swf"));
    loader2.load(new URLRequest("movie_2.swf"));
    addChild(loader1);
    addChild(loader2);
    function assignMovie1Listener(evt:Event):void {
          MovieClip(evt.currentTarget.content).addEventListener("eventTriggered", removeLoader2);
                trace("listner is listning..")
    function removeLoader2(evt:Event):void {
          loader2.unloadAndStop();
          removeChild(loader2);
             loader2 = null;
                trace("child removed from Main Movie")
    //------------- movie_1.swf code:
    removeMovie2_btn.addEventListener(MouseEvent.CLICK , removeMovie2);
    function removeMovie2(event:MouseEvent):void
          dispatchEvent(new Event("eventTriggered"));
                trace("event triggered form Child Movie-1");
    as u can see when i click close button its triggering the trace from movie-1 but its not unloadign the movie2

  • How Do I Fix This Runtime Shared Library Preloading Error?

    Hello,
    I just finished up my site, and this is the only thing holding me back from publishing it. Whenever I "Test" my site, I get this error: " Your content will not stream. Runtime Shared Library (RSL) preloading will require all of your content to download before the first frame will play.
    To prevent this you can change the Runtime Shared Library Library Settings, in the Advanced ActionScript 3.0 Settings dialog which can be raised from the Publish Settings dialog.
    The Runtime Shared Libraries being preloaded are:
    textlayout_1.0.0.595.swz for TLF Text"
    Does anyone know how to correct this error? If you do, could you please walk me through it step-by-step. I am still very new to "Flash Professional (CS5)" & "ActionScript (3.0)"

    Reference error is because the default linkage for textLayout.swc is Runtime Shared Library (RSL) with preload swf option so the reference will always be “RSLPreloader” if TLF is used.
    There are 2 options that we can avoid the reference error:
    1. Change default linkage to “Merged to code” which will add around 150KB to child swf file size.
    2. Change preloader method to “Custom preloader loop”, move all contents and scripts to frame 2. And finally, in the Advance ActionScript 3.0 Settings, export classes in frame to 2.

  • Flash Runtime Sharing

    Hi there, i have a flash movie (main.swf) which loads shared
    resources from another flash movie (resources.swf) using 'import
    for runtime sharing'. The problem is that the flash movie which
    stores all the shared items (resources.swf) is in a subdirectory,
    and that subdirectory url sometimes changes. The problem is that if
    the directory URL changes, i have to then re-edit my main flash
    movie and specify the new URL to resources.swf. I was wondering if
    it is possible to change the
    import URL at runtime
    or to store it in a txt file , for example, so it can be
    easily changed in the future, other than re-editing it.
    I really hope someone can help or give me any alternatives as
    this is driving me crazy
    Thanks

    You have a couple of different options. You could pass the
    variable in on a query string in the by adding a query string to
    the program path in the object tag which calls the program in the
    first place. Here's how I get my current url:
    <param name="movie"
    value="<cfoutput>flash/navscroller/navscrollerl.swf?S1=#URL.S1#&S2=#URL.S2#</cfoutput>"
    />
    Or you can use LoadVaribles. Or perhaps even Load the data in
    from a database via ASP or Coldfusion or whatever.

  • Dynamic runtime shared libraries in Flash

    Runtime shared libraries in Flash only seem to work if there
    is a direct import link into the file that wishes to use the shared
    library item. Why can't the main swf dynamically load a shared.swf
    containing the shared library items into itself and therefore allow
    all child swf's that are loaded after that event to access the
    items? Or why can't you load the shared.swf containing the shared
    library items into the requesting file on the fly and grant access
    to the items from the requesting file that way? Creating direct
    import links to shared libraries in all child flash documents is
    very annoying in larger applications!
    Ideally it should work like this...
    All cross domain security issues have been dealt with.
    I have a main container.swf.
    The main container loads a remote shared library swf that
    contains the shared library items.
    After the load, the main container loads swf files that will
    need to access shared library items.
    One of the loaded child swf's contains a TextField with a style
    sheet attached. We need to have access to a shared font from the
    shared.swf library to enable us to set embedFonts to true and to
    have the TextField render correctly. Unless the import link to the
    shared library was created manually within the child swf containing
    the TextField, the TextField will not render the text with the
    embedFonts set to true.
    This also seems to be the case when dynamically attaching
    shared move clips with linkage id's to the stage. Unless a direct
    import link to the shared library was created within the requesting
    file or should I say the file that is running the script, the
    script fails. It seems that libraries are kept isolated from one
    another, probably to stop linkage id confliction etc. the same way
    as the _global scope isn't shared between swf's originating from
    different domains.
    Using something like, libraryName.linkageID could combat
    this, but I need to know if I'm wasting my time...
    I hope this makes sense. There wasn't a solution last time I
    checked, but it's been awhile and I was hoping someone out there
    has come up with a solution at this stage or even knows the
    official word on the subject.
    Is this possible Adobe?
    Cheers,
    Derek.

    I found the answer. So long as I keep the folder structure in
    my shared library exactly as I have it in my referencing projects,
    I don't need to change anything in the mxml code itself. After
    synchronizing the folder structure, I no longer receive the "1046:
    Type was not found or was not a compile-time constant" error that I
    was getting yesterday.
    France

  • Need to play a runtime shared sound in AS3

    I am having a hard time playing a sound that was imported from a shared library of a second SWF file.
    On the shared library FLA, I have my sound's linkage properties set to:
    Linkage Identifier: MySound
    Export for Actionscript
    Export in Frame 1
    export for runtime sharing
    The Linkage Identifier is a simple identifier (MySound) with no .wav at the end, and no spaces.
    On the destination fla, I went to File -> Import -> Open External Library.
    I browsed for the shared library FLA, clicked it, and dragged the shared sound into the destination FLA library.
    On the destination FLA, I have the sounds linkage properties set to:
    Import for Runtime Sharing
    Sounds.swf is in the URL field.
    Now, for the Code that plays the sound:
    var mySound:MySound = new MySound();
    var myChannel:SoundChannel = new SoundChannel();
    myChannel = mySound.play();
    Flash gives me an error that says:
    ArgumentError: Error #2068: Invalid sound.
        at flash.media::Sound/play()
        at Player_fla::MainTimeline/frame1()
    What am I doing wrong?  Please help me.

    I'm curious, what *should* the crossdomain file say, and
    where should it be. I am looking at it now, and it says:
    <cross-domain-policy>
    <allow-access-from domain="*.domain.ca" />
    <site-control
    permitted-cross-domain-policies="master-only" />
    </cross-domain-policy>
    and it is at
    http://video.domain.ca/crossdomain.xml
    Is this right, or did we miss something?
    As a side note...I'm wondering if somewhere in my code, I am
    calling this wrong (this is the first time I have tried doing
    this). My code is attached.
    Thanks!

  • AS3 & runtime sharing

    hi,
    i've made the following simple test:
    in a movie called 'sharedLib' i've crated a MC containg some
    graphics, and
    in its linkage dialog-box i've checked all the 3 'export'
    check-boxes, named
    the class 'myIcon', and in the url put 'sharedLib.swf' (the
    base-class was
    automaticaly set to 'MovieClip'). in another movie, called
    'destination'
    i've added an empty MC, placed it on the stage, and checked
    the 'import for
    runtime sharing' check-box in its 'linkage' dialog-box, named
    the class
    'myIcon' and in the url put 'sharedLib.swf'.
    when previewed the graphic from 'sharedLib' is seen in
    'destination'.
    however, when i add the following code to the 'destination'
    first frame -
    var newIcon:MovieClip = new myIcon();
    i got a compile error saying 'call to a possibly undefined
    method myIcon'.
    so how do i approach a runtime-shared clip?
    btw - when i turned both movies to AS2 and changed the code
    to
    'this.attachMovie(...)' it worked fine.
    thanks in advacne,
    eRez

    had to add the path to the sharedLib.swf in the class path
    inside the AS3
    setting in the 'destination.swf' publish settings.

Maybe you are looking for

  • How do I eliminate an extra user account i never wanted to create?

    I recently reformatted and reinstalled and re-set up my whole system, and even though I thought i was beng careful to set up as lean a system as possible, I somehow ended up with an extra, unidentified user account at my login screen. I normally log

  • How to set encoding in Apex Listener

    I have a problem conversion characters when using Apex listener The problem occurs in two different configurations: 1. APEX Listener 2.0 running on GlassFish Server Open Source Edition 4.0 Oracle Database 11g Release 11.2.0.3.0 (NLS_LANGUAGE: AMERICA

  • Adobe pdf printer save dialog box opens in the background - progress bar shows Not Responding

    I have two users who have Acrobat X Pro version 10.1.4 that are experiencing the same things.  First, one person just changed laptops and the new one has a fresh Windows 7 Enterprise X64 image and new installation of Adobe Acrobat X Pro.  When he use

  • Photos from recent event not appearing in photo library

    I have recently uploaded photos from a recent trip. I have named the event and it is listed and accessible through 'events'. The event is also listed under the 'recent' menu. However, the photos are not appearing in my 'photos' library! I want to sor

  • Cannot view table with spatial advisor

    I have loaded a table using SafeFME software. It did not populate SDO_GEOMETRY.SDO_SRID during the conversion from ArcInfo coverage to Oracle8i Spatial SDO_GEOMETRY. Since I could not view the spatial data with the spatial advisor, I ran the VALIDATE