Why plugin/addon concept for Runtime Shared Libraries not implemented in Flex?

Hi All,
I am posting my refined query here in continuation to my post Fundamental and crucial drawback with Flex in Flex India Community as my last refined query was left unanswered though I feel there is a definite sense of purpose to it.
Why plugin/addon concept for Runtime Shared Libraries not implemented in Flex?
Here is why I feel it should be implemented in Flex.
Though Runtime Shared Libraries SWF file can be cached in the client browser and just need to be loaded only once when the user access a Flex application for the first time,
"40-60% of daily visitors to your site come in with an empty cache. Making your page fast for these first time visitors is key to a better user experience."
Qouting from 'Best Practices for Speeding Up Your Web Site' as described in Tenni Theurer's blog post Browser Cache Usage - Exposed!
While still retaining the cacheability of RSL's for compatibility reasons, flex should give the flexibility and thereby enhance performance by offering RSL's as a plugin/addon.
Looking for your comments and insigts on the same.
Thanks,
Ram Manoj Kongara.

I finally skimmed through the links you posted.  The terms plugin and addon
are not in either of the articles so I'm unclear what you are suggesting.
The topic seems to be about application performance.  The Flash Player
supports a cross-domain cache of actionscript libraries separate from the
browser cache.  Each official release of Flex contains a set of these
libraries.  As new Flash Player versions or new Flex versions are released,
and users visit sites utilizing those new versions, the browser picks up the
latest Flash Player and the Flash Player picks up the latest Flex libraries.
These days, it only takes a few months for a new Flash Player to achieve
major saturation in browsers although it still takes a bit longer for Flex
libraries to achieve saturation.
Adobe will soon be hosting these libraries so if you build your application
to leverage these libraries, you will find that the total download from your
server will be minimized, limited to only your application code and assets,
although you might want to serve the libraries in case they are not already
in the cache if you see high latency to the Adobe servers on a cache miss.
The SWF or SWFs you do serve off your servers should be optimized through
normal good application development practices.  Flex provides features such
as deferred instantiation in its ViewStack and Accordion containers to defer
the creation of objects until viewed.  Flex has a ModuleManager to allow you
to not download parts of your application until they are needed.  A
model-view or MVC architecture will make it easier to create modular
boundaries within your application and leverage these features.
If I have not addressed your concerns please describe your issue in more
detail.
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Similar Messages

  • 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

  • "Import for runtime sharing" and dynamic loading of MC

    Hello to everyone :)
    I have a question that possibly is a bit strange, but I
    really didn't found any info about it (that's why I'm writing a
    post here).
    So, I have five .swf files with different sections of one
    project. I'm loading these movies only when they are needed. So far
    nothing really special. The big question is: is there a way to
    import a visual snapshot of them, or import them into the main .fla
    so I can see them and align them without going to xx.fla and move
    the MC i want.
    I know that importing for runtime sharing, make the things
    appear in the main movie, but how can I import them dynamically
    only when I need them?
    In other words I want to see the other movies in edit mode in my
    main movie (this will be a HUGE facilitation for designing the
    project) and to import them dynamically... if it's possible!
    I hope this explanation is clear enough :) If it's not I'll
    do my best to clarify it!
    And I want to apology if this post is not in the right place!
    Thank you for your time and attention in advance!!!
    Best Regards,
    Lyubomir Kirilov

    Hi Frowin Keiser
    I think the problema is the extension of file.
    In the Internet Explorer (any browser you are using), go to the Save as...
    Check if the extension is .xml

  • 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

  • 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

  • SDK swc files and runtime shared libraries

    Hi,
    Can someone tell me what effect setting the swc files in the sdk folder as runtime shared libraries in a project via the Library Path in the Flex Build Path. Does setting these as runtime libraries have an effect on a project or is it just setting the framework as a runtime library amend the final movies file size?
    Thanks
    Stephen

    It will make your SWF size smaller which should reduce load time and bandwidth costs.  You may need to change your code as using RSLs may find places where you need to specify a ContextualClassFactory instead of plain old ClassFactory.  Those usually show up if you use embedded fonts and find they aren't working properly.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Importing for runtime sharing

    Hi,
    I'm working on a project that involves having two swf files, one for a shared assets library and the other being the project swf, to allow the assets to be changed independently of the project and code.
    The assets get exported for actionscript in the assets swf, and then 'imported for runtime sharing' into the project swf. I want to place the assets on the stage in the project swf and then access them in actionscript using their instance names (rather than doing getDefinitionByName(asset) as Class; )
    This works fine for most of what I'm doing. However I run into trouble when I import a MovieClip asset that contains other MovieClip(s), as I can't seem to access the contained clips - it complains that they are null. Is there a way around this problem?
    Thanks,

    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

  • AIR crashes on loading swf with 'Imported for runtime sharing' fonts

    Hello everybody,
    I have a trouble with an AIR application developped with Flex but the error seems to come from the Flash/AIR, after some searches a staff member (Flex harUI) said me that I could find more help for my trouble here.
    I'm developping an AIR application which loads an external swf. This swf contains 'Imported for runtime sharing' fonts from another swf to reduce its size.
    When the AIR application has finished to load (see message below) the whole application crashes without giving any error message except the usual "Process terminated unexpectedly" error message.
    End Loading: [SWF] C:\Users\dev02\myProject\index.swf - 83,930 bytes after decompression
    Error Message:
    Process terminated unexpectedly.
    Launch command details:  "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\bin\adl.exe" -runtime "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\runtimes\air\win" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug\Language_Editor-app.xml" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug"
    I use Flash Builder 4 (build 272416) with sdk 4.6.
    Full discussion here.
    I tried to load the external swf with the most basics codes, it works with a Flash web app but not with a Flex/AIR app or a Flash/AIR app.
    Thanks for the help !

    Thanks for the anwser.
    In fact, I cannot specify a swc because my main application is an editor of sub-applications where each one has its own library.
    The bug remains when sharing a simple MovieClip too.
    Maybe, if I explain my project it will be a little more clear.
    I'm developping a multi-languages module / application.
    For each module, I have an external xml for texts. So in order to add a new language we don't need to recompile, just to change texts in the xml. But, I had to externalize my fonts, (imagine if each swf contains the whole characters set like latin, cyrillic, etc.).
    And then, I have my main text editor application above the module, which loads texts xmls and a preview of the page where we need to change the text. (This is where it crashes, during the process of loading the preview).
    My editor works great for translating, changing texts, modify images but without the preview, what is really frustrating.
    (not so ergonomic, I know...)
    I hope it will help you to understand my trouble.
    regards

  • Why are the options for "When Firefox starts" NOT clickable in Firefox 5? I want to choose "Windows and tabs that where opened last time you accessed the net" but Firefox won't let me.

    In the previous version of Firefox one could choose to save tabs so that when Firefox opened, all the tabs from the previous sessions appeared. This was done in Settings > Options > General > Startup. In the menu for the "When Firefox Starts" one had the option for "Windows and tabs that where opened last time you accessed the net." in Firefox 5.0, this menu is gray and not clickable. Help, please?

    ''Why are the options for "When Firefox starts" NOT clickable in Firefox 5?"
    Possibly you are not saving your "browsing history" which is what the session history is tied into.
    '''Not saving History''' -- check your settings for '''Tools > options > Privacy'''', make sure you are not clearing more than just cache in "Settings for Clearing History"
    * http://img232.imageshack.us/img232/4928/clearcachew.png
    * clearing your history at end of session, cache is the only one you would want to clear at end of session, if you don't want to lose things
    There are several things that are related to private browsing and not saving History
    * Private Browsing Ctrl+Shift+P
    * You selected "Never remember history" in first drop-down of Tools > Options Privacy and all of the check marks disappear (See picture above)
    * "Permanent private browsing mode" was check-marked under "Use custom settings for history" in the first drop-down of Tools > options > Privacy (see picture above)

  • Shared Libraries Not Working

    This problem has just come up recently and for no apparent reason as far as I can tell.
    I'm at college and a lot of people in the dorm, including myself, have our iTunes libraries set to share. This has worked fine for months now until a few days ago. For whatever reason I can no longer see shared libraries and mine isn't being shared.
    Topics I've seen before talk about the iTunes store, and that works fine with me. I do have the proper boxes checked. It isn't being blocked by the firewall, and the problem occurs even with the firewall off.
    I haven't done anything to my iTunes recently other than adding a few cd's and syncing my iPod. I haven't done anything major to my comp. at all either. Can't figure out why it isn't working recently.

    Quite possible it could be a firewall issue maybe? I've had firewall software update itself and then start blocking things that had previously been allowed. Just a thought...
    HTH

  • ITunes shared libraries not showing in Mac OS Lion (but OK in Win7!)

    I have recently bought my first Mac and so far everything is great.  Except iTunes.
    I'm still using iTunes on a Windows PC and I now have my iTunes Media all on a D-Link DNS-323 NAS.
    I want to be able to listen to the same music (stored on the NAS) either on my PC, or my MacBook, or anywhere else in the home.  So I'm using the NAS iTunes Server.
    iTunes on Windows can see and access the NAS iTunes server no problem, but the MacBook (Lion) cannot even see it.
    I also tried sharing my both my libraries on Windows (where my main iTunes Music Library was made over the years - now referencing media stored on the NAS) and on my Mac (the library is empty even though I've told it all my media is on the mounted NAS!).  However, whilst Windows iTunes can see the (empty!!) Macbook iTunes library, the Mac again cannot see the Windows Shared Library.
    So it seems my Macbook has a problem seeing shared libraries, regardless of whether they are on my Windows PC or the NAS drive.
    Both the PC and the Macbook are running latest iTunes (10.6 on the Mac) and for the sake of testing, I have disabled ALL firewalls on the router (Huawei), Mac and Windows.  So there should be nothing blocking the IP traffic across my home network (which is very simple!).
    Any ideas on:
    1) How I can get iTunes 10.6 on Lion to see my DNS-323 iTunes server
    2) Or how I can get all my media in my Macbook's library without it fighting for control over my library with my PC
    many thanks

    I have the same problem. REading some other threads, there is no obvious solution, other than perhaps that apple silently is suppressing Windows to enable more mac sales? I know, a bit rude to say, but that is the impression one gets if there is no simple/obvious solution despite the  "Mac just works" reputation. If am wrong, I apologize, please direct me to the thread or faq that gives the solution, thanks.

  • Why does wireless work for one laptop and not the other?

    I have two laptops:
    1) MacBook: 10.4.8, Airport Exteme (Firmware 1.0.46)
    2) G4: 10.3.9, Airport Extreme (405.1 (3.90.0.p18)
    I have the two machines sitting right next to each other in my apartment. Machine #1 has full wireless signal strength. Machine #2 barely has any wireless signal. Neither is running Interference Robustness. Any ideas why one would work and the other would not, or suggestions as to how to debug this problem?
    I have tried stopping and restarting the Airport Extreme card on machine #2. I have also tried power cycling machine #2. This does not fix the problem.
    A little more history: for a long time I was having problems with machine #2 dropping the wireless connection. As part of trying to work around these problems I turned on Interference Robustness on machine #2. This fixed the dropping signal problem, but left me with weak signal strength. I shut off Interference Robustnes but ever since then the signal has still been weak on machine #2.
    Mac Mini Duo 1.66 GHz, 2 GB   Mac OS X (10.4.6)  

    The base station uses a single channel which all clients must use to connect.
    Have you checked the antenna connection into the card? Many people are surprised about how far the wire is actually supposed to be pushed into the card. Compare the connection with the photos in KB 108039, Properly attaching the antenna on an AirPort Extreme Card.

  • TS4000 Why are the reminders in the "Shared Reminders" not appearing?

    I have a shared reminder's list with someone and everything seems to be set up properly.  The reminders are in the list and times and alerts are set.  However, when the time comes for the alert to go off nothing happens.  Is there a setting that I am missing?

    hard to say until you tell us what you're doing

  • Iphone 5 shared libraries not loading

    I have an iPhon2 5 and running IOS 7.1.1. My problem is that I cannot see the contents of my shared itunes libraries (from an Imac & macbook pro both running Mavericks lastest 10.9.2) on my iphone 5. I can however see my libraries listed on my iphone but when I click on them a red loading icon seems to indicate it's loading but it never does. And sometimes it says "unable to turn on home sharing. I've checked that my icloud accout is Ok and that I've enabled sharing of all fils with all devices is checked. Have restarted all devices and logged out and back in to icloud account. All other charing works fine, mail, calendar, safari, everything but my itunes music.

    1. You realize that Home Sharing works only when connected to your home WiFi network, to which your Macs are also connectd, right?.  It won't work when connected to another WiFi network or over cellular data.
    II. You can play (stream) music stored on iCloud by:
    Settings > Music > Show All Music > ON
    C. You can use iTunes Match (has to be enabled on the phone and your computer)
    Settings > Music > iTunes Match > ON

  • Why would code work for an application but not an applet?

    Hey there,
    i'm trying to build a java ftp upload applet. I'm using the enterprisedt ftp class.
    The code works fine when i run it as an application but not when i put it in the applet. The applet has been signed and is running off a plug in. I get no error messages, just nothing happens.
    Would really appreciate some comments.
    regards
    hagen
    the code
    FTPClient ftp = new FTPClient("****");
    ftp.login("user1", "***");
    ftp.put("C:/INSTALL.log","test.log");

    hi
    im a manuel, from argentina
    i would appreciate too much if you can give me that piece of code
    i need for a site, an applet that could read files the visitor chosse from his pc and then upload that files to a server
    is it possible?? you could help me ?
    i think i need to sing my applet alright? how i do this? how it cost??
    if anyone can give my a bit of code, to star�t programming, ill be very happy!
    thanks!
    mi mail: [email protected]

Maybe you are looking for