RSL loader

I get the RSL error everytime I try to export my .fla file. Is there ANY way I can fix this? I got quite alot textwindows, so I could really need help on making a preloader or find another way of fixing this?...

don't use tlf textfields unless you need them.  if you do need them and you don't want to use a runtime shared library, click file/publish settings/flash/actionscript 3.0 settings/library path and select merged into code for your default linkage.

Similar Messages

  • RSL Load Failed on SSL Server

    Have problems with the Security in Flash i think.
    have a App witch runs perfect from inside the Firewall
    due to Company rules i have to pass from outside via a SSL
    Server.
    Now my CF Flash Form App didn't load properly. Says after 40%
    "RSL Load Failed!"
    try to fix it with code found in Flash article "Security
    Changes in MM Flash Player 7"
    <CFFORM name="form" format="flash" width="100%"
    height="168" skin="haloblue" onLoad="initForm()"
    wmode="transparent" style="margin:0; padding:0; backgroundAlpha:
    0;">
    <cfformitem type="script">
    function initForm()
    alert("security loading");
    System.security.loadPolicyFile("
    http://server.from.int/licportal/crossdomain.xml");
    </cfformitem>
    <CFOUTPUT query="get_news">
    <CFFORMITEM type="html">
    <A href="#get_News.link#" target="_blank">
    <FONT face="Verdana, Arial, Helvetica, sans-serif"
    size="10"><B>#get_news.title#</B><BR
    /></FONT>
    <FONT face="Verdana, Arial, Helvetica, sans-serif"
    size="10">#get_news.description#</FONT>
    </A>
    <P><IMG src="images/dotline-250-006699.gif"
    name="image" width="100%"/></P>
    </CFFORMITEM>
    </CFOUTPUT>
    </CFFORM>
    crossdomain.xml File Content:
    <cross-domain-policy>
    <allow-access-from domain="server.from.int"
    secure="false" />
    <allow-access-from domain="*" secure="false" />
    </cross-domain-policy>
    found out, that alert does not appear there for my
    ActionScript was not yet Executed.
    Please Help me out.

    Aprophis,
    I am experiencing the same problem. My company too uses an
    SSL server to allow access to our intranet externally. I believe
    the product is part of Sun One, the guys in charge of it call it
    the rewriter. To me it is a black box which I cannot obtain any
    debugging from.
    Here's what I've found so far:
    1. The SSl "rewriter" reformats all
    urls from http:intranet.mycompany.com to
    https://rewriter.mycompany.com/
    http://intranet.mycompany.com.
    I've found it didn't rewrite <param name='src'
    value='/1695237829.mxml.cfswf'/> and the flash control didn't
    load at all. So I copied the code it generated from view source and
    pasted it below. Now I get the blank space where the flash should
    be and then a copy of it which generates the error,
    RSL Load Failed! 40%.
    2. According to
    a
    discussion on WebmasterKB, the mx code generated has a relative
    path to the CFIDE directory. By CFDUMPing the form
    (var="#formname#") I was able to obtain the mx code. I pasted it
    above the object code that was generated by cfform described in #1
    and wrapped it in CFSAVECONTENT variable="formname". I found the
    code that said, rsl="/CFIDE/scripts/cfform.swc" and modified it to
    be https://rewriter.mycompany.com/
    http://intranet.mycompany.com/CFIDE/scripts/cfform.swc.
    Unfortunately this did not fix the problem.
    3. I also found formScope.send was
    pointing to a relative URL and edited that too, but still no
    luck.
    Have you resolved your problem yet? If, so please share your
    solution. Anybody else out there have ideas on how to solve
    this?

  • RSL load error #2046

    Hi,
    I have been experiencing this error when I try to use the framework.swc RSL with flex sdk 3.5. I receive an RSL Error #2046: The loaded file did not have a valid signature.
    The file specifically is framework_3.5.0.12683.swz - and I have tried with both the version in the open source SDK, as well as the one that comes with Flash Builder 4. I am compiling my swf with mxmlc, and I am pretty sure the config and settings are all correct. When I keep the same settings and use flex 3.0 I have no problems with the RSL.
    If I build the project in FlashBuilder with 3.5 with RSLs and run from there, it will load correctly and the swz is cached. However, with the same swf and framework files run outside of FlashBuilder and a cleared cache, I once again get the error.
    I searched around and found almost the same issue someone had with datavisualization_3.5.0.12683 here http://bugs.adobe.com/jira/browse/FB-25156 . The issue was resolved and I see that a new version of the datavisualization RSL is available for download on the Adobe site. Is there the same issue with the framework.swc? Are there any other possible sources for this error?
    Thanks

    I always get this error using Flex Builder 3 after updating to a new SDK version. I don't use mxmlc to compile, but I can tell you in my case I have to adjust the RSL URL settings.
    In Flex 3:
    -->PROJECT-->PROPERTIES
    Flex Build Path
    Library Path tab
    Expand the node which reads "Flex 3.x - C:\program Files\..."
    Expand the node: "framework.swc"
    Select the node: RSL URL
      Check the version number here, if it is wrong, edit to match the SDK being used.
      i.e.  "framework_3.5.0.12683.swf"    and "framework_3.5.0.12683.swz"
    You might check this before you compile using mxmlc.

  • Air application loading flex applications(no Air) with flex linked as RSL.

    Hello
    I am trying to make an AIR application which loads number of flex applications(no AIR). The subapplications are using the Flex SDK as a RSL, and each of them can use different version of the SDK.
    The problem is that the subapplicationsare trying to load the needed SDK from local filesystem, which they are not permited.
    public class CrossDomainRSLItem extends RSLItem
         override public function load(progressHandler:Function,
                                      completeHandler:Function,
                                      ioErrorHandler:Function,
                                      securityErrorHandler:Function,
                                      rslErrorHandler:Function):void

    Hi again.
    Is there any way to reliably edit the trust files with AIR application?
    As I see it we have to make the user to add our folder to the trusted locations, or to use some application which can find and write in the FlashPlayerTrust (native for the specific OS installer for example.). (even finding this directory with an AIR application seems not 100% reliable).
    Thanks in advance for you help.
    Ps: Right now I am trying to patch this.
    I compiled some sub-applications using custom preloader class(the controlling class, not the UI), where I removed the RSL loading. After that in an ApplicationDomain I load all the RSLs with loaders. After that I load the sub-application in the same domain. On paper this should work, but the sub-application can't find the classes from the RSLs(the first exeption is that there is no definition for spark.components.Application)

  • [svn:fx-trunk] 12665: Load RSLs relative to module.

    Revision: 12665
    Revision: 12665
    Author:   [email protected]
    Date:     2009-12-08 13:13:20 -0800 (Tue, 08 Dec 2009)
    Log Message:
    Load RSLs relative to module.
    Also dispatch an error message from ModuleLoader if a module cannot be created.
    build.xml
    Include modules.properties file in framework resource bundle.
    src/mx/core/FlexModuleFactory.as
    Pass rootURL to RSLItem to support relative urls for the import loading style of RSL loading.
    src/mx/modules/ModuleLoader.as
    Dispatch an error if we cannot create a module for whatever reason. In the scenario for this bug the module had a custom library that was externalized but it did not try to load the RSL partly due to user error and partly to tooling. This caused the Module?\226?\128?\153s main class to not be present in the module factory?\226?\128?\153s application domain.
    Bug FB-24689 has been written up to address compiling modules to load RSLs from Flash Builder.
    bundles/en_US/modules.properties
    New bundle for modules.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-20632
    Reviewer: Alex
    Tests run: checkintests, Modules
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FB-24689
        http://bugs.adobe.com/jira/browse/SDK-20632
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/build.xml
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/modules/ModuleLoader.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/modules.properties

  • Loading RSLs from Modules

    For a while I've been wanting to be able to load an RSL from a Module.  The reason for this is that some modules require some RSL but that RSL is not needed in the MainApp.
    I've googled alot on this subject and can't find any information that will show that this is possible, but now reading up on the enhancements of the Hero Sdk (http://opensource.adobe.com/wiki/display/flexsdk/RSL+Enhancements) it seems to be possible.
    To be specific here is a quote from the info
    3.   Going into Flex 4 we only expected sub-applications and modules to  re-use the RSLs loaded by the main application. But now we see modules  that are being used to load custom RSLs. Expecting the main application  to load all of the RSLs won't work anymore. We are also seeing cases  where modules want to be independent of the application and load all the  RSLs it needs without regard for which RSLs the application is loading.  Today this can result in multiple loads of the same RSL.
    From reading that, it is possible.  Can anyone please point me in the direction on to how to acomplish that.  How to load an RSL that a module needs when loading the module?
    Thanks,
    Art

    In 2008 and 2009 I was heavily involved in trying to develop modular Flex and AIR applications.  I have not been heavily involved for the past 10 months, so I don't know whether I can offer any help or not.  Some things have changed with Flex 4 and AIR 2, and while I have only spent a couple of days trying to catch up, it is very clear that Flex 4 and AIR 2 ended up being surprisingly different from what I was doing with Flex 3.3, AIR 1.5 and Gumbo.
    If you would like to chat about it, please send me an email:  tcorbet at ix.netcom.com.  I recommend that for two reasons.  First, I was never able to get much help from any of the myriad of Adobe Forums in trying to discuss the concepts of modularization as they apply to an AIR application.  There was that lengthy white paper for Flex, but trying to get specific help on code-level implementations was not successful.  Second, since what I think I may know about the topic is so apt to be wrong, it would be better just to confuse you rather than everyone!
    That said, for some perspective, in my mind the topic of RSL loading covers two closely related matters.  One has to do with the RSL support for the various Open Source frameworks.  While I was wrestling with trying to manage which versions of which SWZ and/or which SWC would be needed by various sub-applications, I asked why in the world we had to do this anyway.  So, I am happy to see -- but have not yet tried to re-engineer my solutions -- that Adobe has agreed to host those RSL files rather than asking each of us to do it.
    The other RSL -- my frame of reference, maybe not yours -- topic is the managment of your own modular application code.  I finally ended up with an application manifest file that could be used to determine the current release level of each 'module' and each 'SWC/SWZ' installed on the users desktop.  Then I could make a quick check of the current release level available on the server, and push out only whatever library needed to be refreshed.  If nothing needed to be refreshed, the load was just local, otherwise it was downloaded, inserted into the user's file system and then loaded on demand, only if the user was working in some part of the application for which that library was required.  If the user was not working with that sub-application, he would not see the overhead of checking for or installing the updated library code.
    So, if those are things on your mind, maybe I can help, but since the Adobe developers seem to have a much different perspective on the dangers of loading code into a desktop or web-centric application, I am pretty sure that what was working for me 10 months ago will not work with the Flex 4.1, AIR 2.0.2, and I will once again be looking for some white paper where someone tries to explain all the reasons for all those sandbox bridges.

  • Question about the preloader

    Hi, All,
    I just find a problem in my Flash builder generated .swf file. We used "Merged into code" option when I compiled the project, My preloader was showed just fine.
    But if I use "RSL" and also use some exteranlly loaded library files, the preloader will not be shown until near the end of the application downloading. This will make the screen blank during the downloading time. And this will make the Preloader nonsense.
    Just wonder someone has experience on it? I cannot find a good soultion on internet. So want to try to post the questions here.
    Thanks a lot.

    The preloader should show a countdown of the RSLs loading, but then the
    actual application won't be as big so the preloader won't show.
    There is also an issue where if you put a # in the URL, the preloader will
    not be shown.

  • User reports "Error #2046", I can't replicate--possible causes?

    Hi All,
    We've got a Flex 4 app, built in Flash Builder, and we just had a user call in and report that when they click the "Begin" button on the app (the very first user interaction they would have after the app has finished loading), they got "Error message 2046."
    That's all the information I have from the user.  I've been doing searching on this and it sounds like Flash runtime error 2046 is an RSL that had an invalid signature.  Here's the official list of runtime errors:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/runtimeErrors.html
    Now, this is the first user to report this problem, and I've never experienced this myself.  How would I troubleshoot this?  Is there a way to force my browser to try and load all the RSLs for my app?  I'm using Firebug to monitor the requests the browser makes, and I can see it requests my main SWF file, but none of the SWZ files, which I think are the RSLs?  I'm wondering if one of them is "bad" somehow, but I'm not seeing the error because I've got it cached from some other site that used the same RSL?
    Also, I'm confused as to why the user wouldn't have gotten this message until they clicked on a button in my app.  Aren't the RSL's loaded as part of the initial app startup?  I would have thought he would have gotten this error during the initial loading of the Flex app, not when he first attempted to click on a button in the app.
    I haven't changed with the compiler or RSL settings for my project from the default settings when I created the project.
    Thanks for any input/suggestions into what's going on here...
      -Josh

    I don't know if I'll have a way to contact this user again, but I'll see if I can find their information.  Thanks for the suggestion on the system clock.
    Also, once I followed your instructions on how to delete the RSLs, I can see them requested in Firebug.  I noticed something interesting, however, that I'm hoping someone can help me understand better.
    When I change the compiler options from using RSLs to "Merge into code," the total size of my SWF is 852kb.  If I use RSLs, then my SWF is 231kb, and the following additional files are loaded from fpdownload.adobe.com:
    1) osmf_flex.4.0.0.13495.swz (96kb)
    2) framework_4.0.0.14159.swz (607kb)
    3) textLayout_1.0.0.595.swz (129kb)
    4) spark_4.0.0.14159.swz (311kb)
    5) sparkskins_4.0.0.14159.swz (53kb)
    So that's a total of 1196kb in RSLs.  Combine that with my SWF size of 231kb, and you get a total of 1427kb.  That's 575kb (or 67%) more than the 852kb if I simply didn't use RSLs.  So, it looks like if I use RSLs, and the user actually needs to load the RSLs, they will have to load 575kb more than if I simply chose the option "merge into code."
    So, I'm guessing that the reason is that when I merge everything into code, it only actually includes the bits that I'm using.  However, when I opt for RSLs, the app must load the entire SWZ file, even if I'm only using a single item in that SWZ file.  Is that right?
    As for the reasoning for using loading entire RSLs over merging into your SWF only what you need, I'm guessing it goes like this: though some users might get a slower load experience, most users will already have those RSLs loaded, so they'll only need my smaller (231kb) SWF.
    Are there any statistics out there that can give me an idea of just what percentage of users will need to load the RSLs, versus those that will already have them cached locally?
      -Josh

  • ColdFusion10 Multi-instance cfform problems

    Hello,
    I am working with a client on an issue regarding cfform ( flash ) on a coldfusion10 server with multiple instances. We have multiple instances setup as a cluster. We then replicate all sandbox security settings to both instances. However, one instance loads a test flash form, while the other produces an 'RSL Load Failed!' error.
    Running the same test on a site that doesn't have a sandbox setup, the form works just fine on that instance. This leads me to believe there is a problem with permissions due to sandbox security on this instance. Anyone know what specific folders/settings should be enabled to allow cfform ( flash ) to operate properly?
    Thanks in advance. If more info is required, let me know.

    If I remember correctly, cfform is not one of the tags excluded in sandboxing. So, my guess is that this problem is caused by something other than the cfform per se.
    I would think immediately of access to the CFIDE directory. For that is where ColdFusion's script and flash configuration files are stored. This brings me to the idea that the issue might be caused by one of the new changes in functionality in ColdFusion 10, namely, a logged-in user may have no more than one active session.

  • WSOD (White Screen Of Death)

    Hi, I have a FLEX 4.0 application that has been in production for some time now. It has been working well but recently we upgraded to the 4.5 framework.
    Around this time we started experiencing (what I call) the WSOD (White Screen of Death).
    Normally our application loads a login screen (MXML). Now sometimes it doesnt, it just hangs with a big white area.
    The HTML wrapper is fine, its just the SWF that wont load. Sometimes it happens on a fresh HTTP request, sometimes it only happens with a browser refresh. (it does not appear to be a browser caching problem is my point)
    It seems to work better in Safari, whereas Firefox and IE are 85% of the time displaying the WSOD.
    When it does happen in Safari, I could see an error message being displayed *briefly* BEHIND the WSOD. That message is specific to our app and is usually caused when external dependencies cannot be found or loaded (like an XML configuration file). We have used an XML configuration file successfully with the 4.0 framework. That file is hosted outside of the sandbox, in a secure place. If the file is not found, the entire app is disabled. The reason I mention this is because it behaves like it's not there in the 4.5 framework. This is only an assumption and I am still trying to figure this out.
    My questions are:
    1.) Is anyone else experiencing this WSOD?
    2.) Could it be RSL's and the way they have been reworked in 4.5?
    3.) Is this a framework specific problem? (We migrated many of our components to 4.5, this would be catastrophic for us)
    4.) Is this a javascript bug?
    5.) What else could cause WSOD or bad RSL loading?
    Any help or feedback is appreciated. Thanks...

    One thing I notice is that when I go to the Global Settings panel (for Flash player) using Firefox, I cant even see the panel. Its like the panel has the WSOD too!
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l
    ^ Does this work in Firefox for anyone else? I have adjusted the panel settings using IE, but I wonder why WSOD is happening here?? Help?

  • Inluding TLF (textLayout.swc) in existing code making it stalled

    Hi Friends,
    I just trying to integrate new TLF text for advance text formatting feature in my project. But after adding library of TLF my code is not compiled by Flash CS5 compiler.
    Ex.:
    private function removeItem(event:Event):void {
                                  var _scrunch:Scrunch = parent as Scrunch;
                                  _scrunch.removeProduct(event.target.overItem.itemData);
    This code was working properly when I do not inlclude textLayout.swc, but once I include compiler starts throwing error:
    D:\Projects\Scrunch\dev\Flash App\Scrunch\src\gt\components\canvas\Canvas.as, Line 122
    1195: Attempted access of inaccessible method removeProduct through a reference with static type gt:Scrunch.
    Please help me out, I need to deliever my project very soon.
    Thanks
    Amitpal

    I did get some more information - I'll try to extract the interesting bits here.  I haven't tried investigated this myself.
    Released swz’s to fpdownload.adobe.com, which is an Akamai based server.  performance expected to be above average and that the uptime will be reliable. .. assets hosted on Akamai are replicated for faster access..
    Regarding compiling and building.
    Here is an example of the setting:
    <runtime-shared-library-path>
                    <path-element>libs/textLayout.swc</path-element>
                    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.7219/textLayout_427.swz</rsl-url>
                    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    </runtime-shared-library-path>
    Also static-link-runtime-shared-libraries should be set to false to enable RSLs.
    The equivalent command line option is:
    ./mxmlc - static-link-runtime-shared-libraries=false -runtime-shared-library-path=<path to swc>,<rsl url>,<policy file url>  <app name>
    Sounds like you found the code.  There was this information as well:
    RSLs are loaded in Flex by mx.core.CrossDomainRSLItem.
    You can clear the player cache by using the Flash Player Settings Manager, Global Storage Settings (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.htm l). Just check and uncheck the “Store common Flash components to reduce download times”.
    The “runtime-shared-library-path” option is only for Flex projects. The RSL loading is built into a Flex application. An AS3 project would need to implement its own RSL loading if it wanted to use RSLs.
    For not linking the swcs I would investigate changing the Link Type and specifying a RSL URL in the Library Path panel of Flex Builder would be what's needed for a non-flex application.
    Hope that helps,
    Richard

  • Unable to load app with rsl

    Please help!!
    My company project has 2 component libraries (swc) and 4-5 separate flex apps that use the 2 component libraries.  So far, the entire project has been build using "merge in code" and it is working fine.  However, some of the applications are getting so big that we need to reduce the overall size of all components and apps.  Using ant (flextask), I try to compile the components and the apps using the framework RSL and I was be able to get everything compiled and linked, but when I try to load one of the application at run time, nothing happens - I got no errors, just a blank, empty default screen.
    pic 1: ant script to compile bs_vo component:
         <!-- Compile component files -->
         <target name="compile" depends="init,doWindows,doUnix" description="Compiles the mxml/as source files">
              <!-- Create the deploy directory if it doesn't exist -->
              <mkdir dir="${deploy.dir}" />
              <mkdir dir="${deploy.dir}/lib" />
              <!-- Compile Flex mxm/as files -->
              <compc output="${swc.export}" locale="${DEFAULT.LOCAL}" debug="${FLEX_DEBUG}">
                   <!-- Define namespace to be referenced in other MXML source files -->
                   <namespace uri="http://bidshift.com/vo" manifest="${manifest.xml.file}" />
                   <include-namespaces uri="http://bidshift.com/vo" />
                   <!-- Load default compiler options -->
                <load-config filename="${FLEX_HOME}/frameworks/${flex.conf.filename}" />
                   <!-- List of path elements that form the roots of ActionScript
                   class hierarchies -->
                   <source-path path-element="${FLEX_HOME}/frameworks"/>
                   <!-- Path of mxml/as source files -->
                   <compiler.source-path path-element="${src.dir}" />
                   <!-- List of SWC files or directories that contain SWC files use to
                        build and include in the component -->
                   <compiler.include-libraries dir="${lib.dir}" append="true">
                        <include name="**/*.swc"/>
                   </compiler.include-libraries>
                   <!-- Do not merge the framework SWC files -->
                   <compiler.external-library-path dir="${FLEX_HOME}/frameworks" append="true">
                        <include name="libs/**/*.swc" />
                        <exclude name="libs/framework.swc" />
                        <exclude name="libs/rpc.swc" />
                   </compiler.external-library-path>
              </compc>
            <!--*****************************************************-->
            <!-- Prepare the RSL so that it can be found at run time -->
            <!--******************************************************-->
            <!-- Extract the SWF file from the SWC file -->
            <unzip src="${swc.export}" dest="${deploy.dir}/lib">
                <patternset>
                    <include name="library.swf" />
                </patternset>
            </unzip>
            <!-- Run the flex optimizer on the extracted SWF so that it does not
                 contain any debug code or unnecessary metadata.  Note that the
                 as3 metadata that's kept, it's required -->
            <exec executable="${flex.optimizer}" dir="." failonerror="true">
                <arg line="-input ${deploy.dir}/lib/library.swf -output ${deploy.dir}/${application.name}.swf" />
                <arg line="-keep-as3-metadata='Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient'" />
            </exec>
            <!-- Delete the unoptimized SWF, don't need it anymore -->
            <delete file="${deploy.dir}/lib/library.swf" />
            <!-- Restore the digest from catalog.xml -->
            <exec executable="${flex.digest}" dir="." failonerror="true">
                <arg line="-digest.rsl-file ${deploy.dir}/${application.name}.swf" />
                <arg line="-digest.swc-path ${swc.export}" />
            </exec>
         </target>
    pic 2:  ant script to compile bs_comp component which includes bs_vo as dependency
         <!-- Compile component files -->
         <target name="compile" depends="init,doWindows,doUnix" description="Compiles the mxml/as source files">
              <!-- Create the deploy directory if it doesn't exist -->
              <mkdir dir="${deploy.dir}" />
              <mkdir dir="${deploy.dir}/lib" />
              <!-- Compile Flex mxm/as files -->
              <compc output="${swc.export}" locale="${DEFAULT.LOCAL}" debug="${FLEX_DEBUG}">
                   <!-- Define namespace to be referenced in other MXML source files -->
                   <namespace uri="http://bidshift.com/component" manifest="${manifest.xml.file}" />
                   <include-namespaces uri="http://bidshift.com/component" />
                   <namespace uri="http://mikenimer.com/component" manifest="${nimer.manifest.xml.file}"/>
                   <include-namespaces uri="http://mikenimer.com/component"/>
                   <namespace uri="http://hevery.com/component" manifest="${hevery.manifest.xml.file}"/>
                   <include-namespaces uri="http://hevery.com/component"/>
                   <namespace uri="http://adobe_extra.com/component" manifest="${adobe.manifest.xml.file}"/>
                   <include-namespaces uri="http://adobe_extra.com/component"/>
                   <!-- Load default compiler options -->
                <load-config filename="${FLEX_HOME}/frameworks/${flex.conf.filename}" />
                   <!-- List of path elements that form the roots of ActionScript
                   class hierarchies -->
                   <source-path path-element="${FLEX_HOME}/frameworks"/>
                   <!-- Path of mxml/as source files -->
                   <compiler.source-path path-element="${src.dir}" />
                   <!-- List of SWC files or directories that contain SWC files use to
                        build and include in the component -->
                   <compiler.include-libraries dir="${lib.dir}" append="true">
                        <include name="**/*.swc" />
                   </compiler.include-libraries>
                   <!-- List of SWC files or directories to compile against but to omit
                     from linking -->
                            <compiler.external-library-path dir="${deploy.dir}/lib">
                                 <include name="bs_vo.swc" />
                            </compiler.external-library-path>
                   <!-- Do not merge the framework SWC files -->
                   <compiler.external-library-path dir="${FLEX_HOME}/frameworks/" append="true">
                        <include name="libs/**/*.swc" />
                        <exclude name="libs/framework.swc" />
                        <exclude name="libs/rpc.swc" />
                   </compiler.external-library-path>
              </compc>
            <!--*****************************************************-->
            <!-- Prepare the RSL so that it can be found at run time -->
            <!--******************************************************-->
            <!-- Extract the SWF file from the SWC file -->
            <unzip src="${swc.export}" dest="${deploy.dir}/lib">
                <patternset>
                    <include name="library.swf" />
                </patternset>
            </unzip>
            <!-- Run the flex optimizer on the extracted SWF so that it does not
                 contain any debug code or unnecessary metadata.  Note that the
                 as3 metadata that's kept, it's required -->
            <exec executable="${flex.optimizer}" dir="." failonerror="true">
                <arg line="-input ${deploy.dir}/lib/library.swf -output ${deploy.dir}/${application.name}.swf" />
                <arg line="-keep-as3-metadata='Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient'" />
            </exec>
            <!-- Delete the unoptimized SWF, don't need it anymore -->
            <delete file="${deploy.dir}/lib/library.swf" />
            <!-- Restore the digest from catalog.xml -->
            <exec executable="${flex.digest}" dir="." failonerror="true">
                <arg line="-digest.rsl-file ${deploy.dir}/${application.name}.swf" />
                <arg line="-digest.swc-path ${swc.export}" />
            </exec>
         </target>
    pic 3:  ant script to compile application
         <!-- Compile Main application -->
         <target name="compile" depends="init" description="Compiles the mxml/as source files">
              <!-- get the common styles css files -->
              <copy todir="${src.assets}" includeEmptyDirs="no">
                   <fileset dir="${assets.dir}">
                        <include name="**/*.css" />
                        <include name="**/*.gif" />
                        <include name="**/*.jpg" />
                        <include name="**/*.png" />
                        <include name="**/*.svg" />
                        <include name="**/*.swf" />
                        <include name="**/*.ttf" />
                   </fileset>
              </copy>
              <!-- Compile client flex mxm/as -->
              <mxmlc file="${main.class}"
                   output="${swf.export}"
                   services="${server.conf.dir}/flex/services-config.xml"
                   context-root="${WEBAPP_CONTEXT_ROOT}"
                   use-network="true"
                   actionscript-file-encoding="${ENCODING}"
                   keep-generated-actionscript="false"
                   incremental="false"
                  debug="${FLEX_DEBUG}"
                   static-link-runtime-shared-libraries="false"
                  link-report="${deploy.dir}/bs_employee_calendar_link-report.xml">
                   <!-- Load default compiler options -->
                <load-config filename="${FLEX_HOME}/frameworks/${flex.conf.filename}" />
                   <!-- List of path elements that form the roots of ActionScript class hierarchies -->
                   <source-path path-element="${FLEX_HOME}/frameworks"/>
                   <!-- Path of mxml/as source files -->
                   <compiler.source-path path-element="${src.dir}"/>
                   <!-- List of SWC files or directories that contain SWC files use to
                        build and include in the component -->
                   <compiler.include-libraries dir="${lib.dir}" append="true">
                        <include name="**/*.swc"/>
                        <exclude name="bs_vo.swc"/>
                        <exclude name="bs_comp.swc"/>
                   </compiler.include-libraries>
                   <!--******************************************************-->
                            <!-- Location and other information about an RSL that the -->
                            <!-- application will use                                 -->
                   <!--******************************************************-->
                <!-- Framework RSL linked libraries -->
                <runtime-shared-library-path path-element="${FRAMEWORKS}/libs/framework.swc">
                    <url rsl-url="framework_3.5.0.12683.swz"/>
                    <url rsl-url="framework_3.5.0.12683.swf"/>
                </runtime-shared-library-path>
                <!-- RPC RSL linked libraries -->
                <runtime-shared-library-path path-element="${FRAMEWORKS}/libs/rpc.swc">
                    <url rsl-url="rpc_3.5.0.12683.swz"/>
                    <url rsl-url="rpc_3.5.0.12683.swf"/>
                </runtime-shared-library-path>
                <!-- Third party RSL linked libraries -->
                <runtime-shared-library-path path-element="${flex.src.dir}/deploy/lib/bs_vo.swc">
                    <url rsl-url="bs_vo.swf"/>
                </runtime-shared-library-path>
                <runtime-shared-library-path path-element="${flex.src.dir}/deploy/lib/bs_comp.swc">
                    <url rsl-url="bs_comp.swf"/>
                </runtime-shared-library-path>
              </mxmlc>
         </target>
    Thanks in advance.

    If you are going to use RSLs in a multi-SWF project, it is recommended that
    the first app load the RSLs and the others don't.

  • [svn] 4194: Fix loading an RSL on AIR.

    Revision: 4194
    Author: [email protected]
    Date: 2008-11-26 12:13:37 -0800 (Wed, 26 Nov 2008)
    Log Message:
    Fix loading an RSL on AIR.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-18202
    Reviewer: Alex
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18202
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/utils/LoaderUtil.as

    Restart your iPad.

  • [svn] 3794: Fix loading RSLs with URLs that start with "./" or "../"

    Revision: 3794
    Author: [email protected]
    Date: 2008-10-21 14:21:45 -0700 (Tue, 21 Oct 2008)
    Log Message:
    Fix loading RSLs with URLs that start with "./" or "../"
    QE Notes: Only one "./" is supported at the beginning of the path. Multiple "../" may be in the path, but only at the beginning of the path. No mixing of "./" and "../" is supported.
    Doc Notes: None
    Bugs: SDK-17696
    Reviewer: pfarland
    tests: checkintests, RSL mxunit
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17696
    Modified Paths:
    flex/sdk/branches/3.2.0/frameworks/projects/framework/src/mx/utils/LoaderUtil.as

    Oh I am using Dreamweaver to put it on the web :-)

  • [svn:fx-trunk] 12000: Load RSLs relative to a module.

    Revision: 12000
    Revision: 12000
    Author:   [email protected]
    Date:     2009-11-19 11:46:14 -0800 (Thu, 19 Nov 2009)
    Log Message:
    Load RSLs relative to a module.
    Load RSLs relative to the module. Delay loading RSLs until the Event.INIT event because before that the loaderInfo.url is not ready. Without the loadInfo.url we can?\226?\128?\153t load RSLs relative to the module.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-20632
    Reviewer: Alex
    Tests run: checkintests, Modules
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20632
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/FlexModuleFactory.as

Maybe you are looking for

  • "Load Files into Photoshop Layers" persistent misalignment problem

    I'm having a persistent problem which technical support was unable to resolve after being on the phone with them for 1.5 hrs. I'm working in Bridge CC in ACR, synchronizing all parameters incl. crop, transform, exposure, etc. of a bracketed group of

  • Making one of dashboard page default

    Hi Experts, Im using OBIEE 10.1.3.3 wherein i have dashboard which contains 4 pages. When i login to this Dashboard i should see 2nd page as default instead of 1st page. I dont want to reorder them by going to dashboard properties and making 2nd page

  • Simple AIR ajax question? One html file or many?

    I am a new ajax air developer and was wondering if it's a better practice to use one html file in my app or many html files? So far I have been testing with many html files using javascript location.href to send the user to another html page when the

  • Problem with muted sound in garageband recording

    I have used GB for years to record male vocal without any issues until this week.  Now all my recordings sound 50 miles away - what am I doing wrong?  Here is a rundown of my recording routine . . . Open GB New Project Select Voice option and click '

  • Running Oracle10g  Enterprise on Linux getting "Sound server fatal error"

    Hi, When i run Oracle 10g Enterprise Manager on linux machine,am getting below error frequently Error Message "sound server fatal error,cpu overload,aborting" Do u have any idea wt will be the cause and how to avoid that error Thanks and Regards Devi