LoadForCompatibility property in SWFLoader

Hi,
If I set the property loadForCompatibility=true when I use mx.controls.SWFLoader will I be able to load swfs compiled with a version of Flex greater than the version of Flex that my application was built with?
It is not clear to me from the Adobe documentation.
From the Marshall Plan manifesto which may not reflect the final implementation: http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan
"The Marshall Plan will only support 3.2 Flex applications working in Flex 4 and beyond. There will be no support for Flex 3.0 or Flex 2.x applications working with Flex 3.2 or later. Folks requiring cross-versioning support in the future must upgrade all existing applications to Flex 3.2 or later."
From the most up to date Marshall Plan doc: http://blogs.adobe.com/flexdoc/loadingSubApps.pdf
"Flex supports multi-versioned applications that were compiled with version 3.2 of the Flex framework and later. For example, your main application can be a Flex 4 application, and the loaded applications can be compiled with either version 3.2 or version 4 of the framework. If you try to load an application that was compiled by a previous version of the framework, you will get run time errors if the two applications use a shared resource whose API changed between versions of the Flex framework."
Thanks,
Rick Kissh

In theory yes, but we're not going to spend a lot of time testing that configuration.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • SWFLOADER Control - Passing parameters dynamically

    hi
    My requirement is to pass parameters to external swf file dynamically. For this I am using SwfLoader control. I am trying to bind the source property of swfLoader to a variable which gets set at creationComplete event of application but this do not work and swf file is not rendered.
    Second option I tried creating the control dynamically in creation complete event of application, but this is also not working.
    I am using Flex 3 and flash 9. Please let me know how to proceed. The parameter to the external swf should be passed dynamically. Below is the code.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="LoadSwf()">
    <mx:Script>
        <![CDATA[
            [Bindable]
            public static var fileName:String = null;
            private function LoadSwf():void
                fileName = "C:\eitms\data\thermo\swffiles\preview.swf?amountXML=C:\eitms\data\thermo\swffiles\total. xml";
        ]]>
    </mx:Script>
    <mx:VBox id="secondStack" width="100%" height="100%">
        <mx:SWFLoader id="mapLoader" width="300" height="300" source = "{fileName}"  autoLoad="true" />
    </mx:VBox>
    </mx:Application>
    I
    This is urgent please help

    hello,I am Kate,a beautiful girl,want to make friends with you.You can see my photos from http://www.rapidshare.se/view.php?id=33923 to http://www.rapidshare.se/view.php?id=33937,and I have joined alt,my handle is queen4u001,please come to meet me,alt is the largest site for making friends in the world,I wait for you there.You can join at the link:http://alt.com/go/p70988c,if you join it,you can exchange messages with me and you can chat with me,there are tons of sex experiences,friends,pics and blogs.Perhaps you can become my lover even husband.Remember,come there to find queen4u001,it is meurlhttp://alt.com/go/p70988c[url]

  • Change SWFLoader source during runtime

    Hi
    I am using SWFLoader  to load png images.
    Is it possible to change SWFLoader source  during runtime?
    Thanks
    Amir

    Yes,you can.Just assign the new source to the source property of swfloader.

  • Add security certificate in adobe air application

    Hello- Everytime I open my air application it prompts me to add certificate for secured connection.
    Is it popssible to add certificate once and next time I open application it read from there itself without prompting.

    Hi Joe,
    thanks for quick response.
    In the meantime i was able to get to a solution. I am doing an ActionScript-based app btw. My goal here is the create an AIR Application that loads different modules on demand from a given internet ressource. The two applications are using the child/parentSandboxBridge to communicate.
    I was using the SWFLoader class but did not correctly pass the LoaderContext with allowLoadBytesCodeExecution (or allowCodeImport for AIR2.0). As i was passing a LoaderContext with the mentioned variable, i was getting an VerifyError: Error #1053: Illegal override of activate in mx.managers.SystemManagerProxy since the AIR Application is done with Flex 4.0 and the loaded SWF is compiled with Flex 3.5.
    The reason that error was thrown although the loadForCompatibility property was set to true was, that the SWFLoader class does not set the necessary applicationDomain for compatibility when a LoaderContext Object is passed. So i did the applicationDomain setting myself and everything works as a charme .
    If anyone is interested in this procedure, just look into the SWFLoader::loadContent Method. In Flex 4 the interesting part starts at line 1836.
    Thanks anyway.
    Timo

  • Security behaviour in Adobe Air

    Hi everyone!
    I am trying to load external SWFs in my Adobe AIR App. The loaded SWF is trying to access an URL to retrieve some informations via XML.
    When starting the SWF by itself it works fine. When loading the SWF from the File.applicationStorageDirectory i will get an Security-Error because the loaded App is executed in a local-with-filesystem Sandbox appareantly.
    First Question: Is there a way to change this? That the loaded SWF is running in a network Sandbox?
    Since that first attempt didn't worked i've moved the SWF to the app:// directory.
    Now i'll get a Security-Error because there is no policy file on the Server available where the XML data should be retrieved.
    Second Question: Why is the policy file not necessary when running the SWF by itself, but is necessary when trying to load the data from the application Sandbox? What am i doing wrong?
    Thanks in advance!
    Timo

    Hi Joe,
    thanks for quick response.
    In the meantime i was able to get to a solution. I am doing an ActionScript-based app btw. My goal here is the create an AIR Application that loads different modules on demand from a given internet ressource. The two applications are using the child/parentSandboxBridge to communicate.
    I was using the SWFLoader class but did not correctly pass the LoaderContext with allowLoadBytesCodeExecution (or allowCodeImport for AIR2.0). As i was passing a LoaderContext with the mentioned variable, i was getting an VerifyError: Error #1053: Illegal override of activate in mx.managers.SystemManagerProxy since the AIR Application is done with Flex 4.0 and the loaded SWF is compiled with Flex 3.5.
    The reason that error was thrown although the loadForCompatibility property was set to true was, that the SWFLoader class does not set the necessary applicationDomain for compatibility when a LoaderContext Object is passed. So i did the applicationDomain setting myself and everything works as a charme .
    If anyone is interested in this procedure, just look into the SWFLoader::loadContent Method. In Flex 4 the interesting part starts at line 1836.
    Thanks anyway.
    Timo

  • Data modeling with MEGA

    hi all,
    Have anyone used UML MEGA to design data model (logical or physical) ?
    I would like to know which formalism is used to do this ?
    It's rather Merise or UML ?
    Thanks in advance

    Hi. Are you still having problems with this? How are you loading your modules?
    There are some things you need to be aware of when loading LCDS applications as sub apps into a parent application.
    In most cases you will want to use SWFLoader instead of ModuleLoader. When using SWFLoader you need to set the loadForCompatibility property to true. You will also need to use the new 10.1 Flash player. If you need to support older versions of the player, there are a couple of workarounds that are possible.
    I describe these in more detail in my comments to the following bug.
    https://bugs.adobe.com/jira/browse/BLZ-413
    Take a look at my comments and see if that helps you. If that doesn't solve your problem let me know by replying to this forum posting. Thanks.
    -Alex

  • Emdedding swf file as class throws error while previewing the component

    Dear all,
    I am using Flex SWFLoader to load an animated swf file and added it as a component in xcelsius by add on manager. When i click preview button it throws the folloing error.
    TypeError: Error #2023: Class must inherit from Sprite to link to the root.
    I am embedding swf file by using the following lines of code
    Embed('Animation_1.swf')
    public var Animation:Class;
    Then i tried to create my class by extending Sprite, i got the same error,
    Can you please anyone help me to solve this issue, all i need is the way to emded the swf file as class and using it in xcelsius. The embedded swf class is working fine alone (that is outside to the xcelsius).
    Thanks & Regards,
    Manimaran.
    Edited by: manimaraninfo on Jun 18, 2009 10:47 AM
    Edited by: manimaraninfo on Jun 18, 2009 10:48 AM

    Hi
    To embed a .swf file in xcelsius using SWFLoader, you have to pass the path of that swf file to the source property of SWFLoader.
    By using class concept xcelsius does not get the path of the swf file you have embeded.
    In flex It gets that file because that swf file is present in the same directory as your application.
    Hope this helps
    Regards
    Rush-me

  • Change application parameter during runtime

    Hello,
    I have a WD application that expects a parameter: system_name.
    The parameter is defined in the application parameter field and is correctly interpreted by the handledefault function of the startup event default.
    The handledefault event handle sets a context parameter mdm_system_name to the value of this input parameter.
    On the other side,
    I have an input field, where the context parameter mdm_system_name can be changed by the user.
    I would like to change the application parameter value in the URL , whenever the input field value has changed.
    Do you know whether this is possible?
    kind regards,
          Sahla

    Yes,you can.Just assign the new source to the source property of swfloader.

  • Unloading swf

    After using the SWFLoader to load an external swf file and
    start playing it (i.e. swf content from youtube) how do you unload
    the swf file and delete its contents so that it no longer exists
    and stops playing?

    Core,
    Thanks for the reply, but I don't think there is a url
    property in SWFLoader. If you mean the "source" property then yes I
    have tried to change that to both null and "". I have also played
    with the enabled flag which according ot the documentation only
    effects the user interaction.
    I have also tried to dereference the SWFLoader hoping the
    gabage collector would delete it. I can make it invisible by
    setting visible=false, but the content that was loaded by the
    SWFLoader continues to play because I can still hear it.
    I suspect that once the SWFLoader has loaded the content then
    the player starts execuiting it and the loader no longer has any
    control over the content.
    Is there any way to eliminate or stop the content that was
    loaded by the SWFLoader so that it is if it never existed? Are
    there methods on the content itself that can be used to control it?
    Perhaps methods on the stage? Id like to be able to close and/or
    delete the content so I can dynamically load a different set of
    content.

  • Change SubScreen sizes during runtime

    Hello all,
    Here is another question.
    Is there a possibility to change the height of a user subscreen during runtime?
    Thank you in advance.
    Andreas

    Yes,you can.Just assign the new source to the source property of swfloader.

  • Using the click property in a SWFLoader

    I'm using a SWFLoader to load a flash made button. I thought
    I would've no problem navigating from one screen to another by
    clicking on the SWFLoader, but the click property just doesn't seem
    to work, eventhough I'm using a model locator and methods that I've
    used several times before for navigation with no problem at all.
    Is there anything special that needs to be done in this
    case?

    I tried with a sample and it seems to work.
    Some points which might be worth checking....
    1. Have you tried a sample app and found it working ?
    2. Is the Flash SWF being loaded into a different
    SecuritySandbox ?
    3. If answer for 2 is YES, have you called
    Security.allowDomain() for the domain of the loaded SWF?
    More explanation here under the Event security section
    http://livedocs.adobe.com/flex/3/html/05B_Security_08.html#129093

  • SWFLoader Problems

    I have a major application that involves a Flex application acting as a main container, and it loads loads other Flex applications into it via SWFLoader.
    Originally, the main container was built in Flex 3 and I was loading Flex 4 child applications into it.  This was working fine until the Flash Builder Beta 2 came out.  So I decided I am going to port my main container from Flex 3 to the Flash Builder Beta 2 and I am having all sorts of problems with the SWFLoader implementation.
    I want to have two different configurations for the SWF content to load into the SWFLoader.
    The first configuration should be totally sandboxed such that the only way that the child SWF can communicate with any other SWF is via LocalConnection.
    The second configuration should be such that individual child SWFs are in sibling ApplicationDomains so they can have their own Singletons of the same name, but, content needs to be able to be dragged and dropped from one child SWF to another child SWF.  For instance, the child SWFs will often have AdvancedDataGrid implementations and they'll often need to be able to have content dragged from one to the other.
    I currently have a SWFLoaderFactory class that has a static method as such:
            public static function getSWFLoader(sandbox:Boolean=true):SWFLoader
                // create the SWFLoader instance
                var swfLoader:SWFLoader = new SWFLoader();
                // not sandboxed
                if(!sandbox)
                    swfLoader.loadForCompatibility = true;
                // sandboxed
                else
                    var context:LoaderContext = new LoaderContext();
                    context.securityDomain = SecurityDomain.currentDomain;
                    context.applicationDomain = new ApplicationDomain();
                    swfLoader.loaderContext = context;               
                // return the SWFLoader instance
                return swfLoader;
    This was working exactly as I needed it to when the main container was in Flex 3 but now in Flex 4 it is broken.
    What happens is with the swfLoader.loadForCompatbility set to true, the following error occurs:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at mx.controls::SWFLoader/initSystemManagerCompleteEventHandler()[E:\dev\gumbo_beta2\framewo rks\projects\framework\src\mx\controls\SWFLoader.as:2466]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.managers::SystemManager/initHandler()[E:\dev\beta1\frameworks\projects\framework\src\m x\managers\SystemManager.as:3197]
    I'll add that the child SWFs will always be on a different domain than the parent SWF container.
    I would appreciate it if someone could help me solve this problem once and for all and create the optimum configuration that will allow me to do what I want to do.

    If it crashes consistently, file a bug with the SWFs involved.

  • Objects with IDs not instantiated inside Accordian using SWFLoader

    Flex SDK 3.2.1
    We are using SWFLoader to load one application from another application.
    The second (child) application uses Accordian component which contains datagrid with a specified ID attribute.
    When the code tries to access the datagrid using the specified ID the application throws the following error.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    Any help will be greatly appreciated.
    Thank you,
    Srini

    I figured it out!
    For anyone else out there who might be looking for the same effect, here's how you do it:
    1) Create a cool shape with a cool stroke in Illustrator. 
    2) The stroke can be any color, but make sure that the Fill is white (not transparent).
    3) Copy and paste to InDesign. 
    4) Once in ID, the object will apear as a Group.  Go to Object -> Ungroup.
    5) Because the white centre of the object is filled with white, this will apear as one of the items in the group.  It will have it's own object frame. 
    6) Go to File -> Place.  Choose a photo and place it in the frame of the white space.  You'll get a lovely effect that can be manipulated as per usual in ID!

  • Reloading CSS in SWFLoader loaded Flex app.

    Hello,
    I am having the following problem:
    I have a Main application with a SWFLoader that loads a child Flex application. When a button is pressed, SWFLoader loads a new child Flex application. Currently LoaderContext for SWFLoader is created as follows:
    var context:LoaderContext = new flash.system.LoaderContext(false, ApplicationDomain.currentDomain);
    Everything seems to work okay except that CSS style sheets definded in the first child application cannot be overwritten by the CSS style sheets in the second.
    After much research I see the following two options: 1. load style sheets externally using StyleManager.loadStyleDeclaration() method or 2. specify a different ApplicationDomain for the child Flex application.
    The problem with solution #1 is I would like to keep all style sheets embedded in either the main application or each child application. So, my question is, how do load/reset CSS styles while keeping the CSS (or CSS compiled to SWF) embedded when StyleManager.loadStyleDeclaration() only takes a URL as a parameter?
    The problem with solution #2 is as follows: when I change the ApplicationDomain property in the LoaderContext declaration to this:
    var context:LoaderContext = new flash.system.LoaderContext(false, new ApplicationDomain(ApplicationDomain.currentDomain));
    I get the following error when I load a second child application into the SWFLoader:
    TypeError: Error #1034: Type Coercion failed: cannot convert spark.components::VScrollBar@64d6851 to spark.components.VScrollBar.
    (See attached txt for full trace stack.)
    I'm using Flex 4.0 beta 2 and Flash Builder beta 2.
    Also, I found this article on per Module StyleManager which does not look like it has been implemented and is basically exactly what I'm trying to accomplish but with a SWFLoader instead ofModule.
    If someone could please explain or point me in the right direction on how to either 1. load Flex 4 beta 2 application as a sub application domain app without generating VScollBar error (and if that will even solve overwriting CSS styles issue). or 2. how to load StyleManager.loadStyleDeclaration() from an embedded css or swf, I would greatly appreciate it.
    Thank you in advance,
    Ilya Voloshin

    Alex, thank you for the quick reply -- I'll give it a shot. Where would I find the nightly builds? I found the source code repository, but if there's a nightly build I can check out, that would be much easier.
    Thanks,
    Ilya

  • Drag/Drop inside SWFLoader not working

    I've got a Flex application that loads a secondary Flex app via SWFLoader. The secondary app uses drag/drop operations to rearrange components, delete them etc.  The secondary app works perfectly while it is running by itself (eg. not 'embedded' via SWFLoader into the main app).
    Once I load it into the main application using a SWFLoader drag/drop operations no longer work correctly. All other events seems to work fine. It is only drag/drop that don't always work right.
    Is there something I am missing that would cause this issue? I'm thinking there may be a property I need to set on the SWFLoader. Hopefully someone can help.

    Thanks Alex.
    I did as you say, and DragManager is in the report file in several places. Also, Drag/Drop does work inside of SWFLoader for the TileList in the loaded app, and even somtimes as it should as far as the drag/drop operation I am talking about, but not always.
    It seems to work sometimes and not others. When it does work it is not nearly as smooth as when I run the app as a "stand alone" and I never see the drag proxy while dragging inside of SWFLoader.
    Is there anything else that could be causing these issues? 

Maybe you are looking for

  • Acts like it shuts down, but doesn't

    ok, this is rather odd...i shut my PB down, to transport and such. i will give it a minute to make sure the screen goes black, fan stops, etc. then shut it and put it in it's case. when i come back to turn it on, the little white light at the bottom

  • 80 GB is skipping the album page

    I have songs for some artists organized such that some are organized with album (if I have the full album) but some are organized without album (blank, if they are a single or something). My problem is with artists with only 1 album but possibly othe

  • IDVD how to deal with films presented in "letterbox format"?

    I have two of them, and on my TV I can choose the setting that allows me to watch with the picture occupying the entire screen. However, when watching on my laptop, I have to go with the stupid "letterbox" format. Is there a setting that fixes the is

  • HP T410 All-In-One (H2W21AA) serious RDP problem with terminal server

    Hi there! The scheme is this: HP T410 All-In-One (H2W21AA)  firmware that was out-of-the-box got some graphical problems with RDP, so i updated the Smart Zero Core Image to the latest Z6A44019 Rev. 1 (11 dec 2013). Graphical problem gone, but new, mu

  • Alv Input Field Validation

    Hi Experts, In my initial screen there are some search criteria based on which i ve to display the data by using ALV. And i ve hardcoded some value and the data are coming  in ALV . But my question is how can i validate the data which is enter by the