Yes, that would be the best approach, so we don't need to reinvent the wheel.

Does anybody know whether it is possible to modify some flex-base classes (namely "mx.core.FlexApplicationBootstrap" and "mx.core.FlexModuleFactory"), and redistribute them? Because I neither know the details of their license nor the details of our license. If it is possible, we could remove all code which isn't necessary to run an OL-application. This would reduce the overall size from ~13860 Bytes to ~4900 Bytes.


And some more infos:
This creates a CrossDomain-RSL:
"-runtime-shared-library-path=simple.swc,library.swf"

This creates a standard RSL:
"-external-library-path=simple.swc -runtime-shared-libraries=library.swf"

(At first, when I tried to create a standard RSL, the compiler suddenly wanted to include the whole flex-framework to the compilation unit. It was caused by the "<runtime-shared-library-path>"-entry in the "flex-config.xml", after I've removed the entry, mxmlc stopped to include the whole framework. So that entry needs to be removed / commented out.)



On 11/23/2008 8:48 PM, Henry Minsky wrote:
Wow, thanks for figuring this out! I don't know which approach would be better. It would be better if we did not rely on the mx.* classes if we can avoid it, but it looks like your method of adding a new base app class with the RSL bootstrap frame works well so maybe that is the simplest approach to begin with.



On Sun, Nov 23, 2008 at 12:52 PM, André Bargull <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Ok, that's the lesson:
    RSL is a flex-only feature and it involves certain base-classes of
    the mx.core package. So we've got two possibilities to use that feature:
    - either use the flex classes (that'd be "mx.core.FlexModuleFactory"
    resp. "mx.core.FlexApplicationBootstrap")
    - or re-implement the flex-feature to fit our needs (by loading the
    rsl-swf through "flash.display.Loader")

    I've attached a working example, especially pay attention the
    auto-generated file in the "generated" subdirectory
    ("SimpleMain_mx_core_FlexApplicationBootstrap-generated.as"). This
    shows how mxmlc transfers the RSL-info into the application.




    On 11/23/2008 5:19 AM, Henry Minsky wrote:

        I have been unable to successfully build a flash 9 app which
        uses the runtime shared library feature.

        I tried linking to the LFC using the instructions from the flex
        documentation
        
(http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:Flex_3_RSLs),
        and
        I keep getting an error that LFC classes are not found. I
        produced a simple standalone
        test case, attached, that has the same error.
        When I run the app, main.swf, I do not see any network request
        made for the runtime shared
        library (library.swf)  using
        Firebug or using the Firefox LiveHTTPHeaders plugin.
        If anyone can figure out what I'm doing wrong in building this
        app, that would be a big help.
        Thanks



-- Henry Minsky
        Software Architect
        [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
        <mailto:[EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>>





--
Henry Minsky
Software Architect
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>



Reply via email to