Apache Flex
  1. Apache Flex
  2. FLEX-33108

Flex SDK 4.6 dosn't work on FlashPlayer 10.3 and requires FlashPlayer 11.1

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Apache Flex 4.9.0
    • Component/s: None
    • Labels:
      None

      Description

      Flex SDK 4.6 require a minimum FlashPlayer version of 11.1.

      From a quick look this is related to the new spark validator classes (spark.validators.) using FlashPlayer 11 globalisation classes (flash.globalization.).

      In particular enterprises can be slow to update Flash Player versions and this would enable a smoother upgrade path to people currently on 4.5 SDK (in a Flash player 10.3 environment) to the new Apache Flex 4.x SDK.

      1. build.txt
        72 kB
        Justin Mclean
      2. buildframework.txt
        35 kB
        Justin Mclean

        Activity

        Hide
        Justin Mclean added a comment -

        At a first pass looks like there's there's no SDK code changes required to use the Flex 4.6 SDK in FP 11.0 or 10.3. The SDK compiles without errors for FP11.0 and FP 10.3.

        I took an existing large application that uses a mix of mx and spark UI components (using SDK 4.5) and recompiled it to use Apache Flex SDK 4.6 for Flash Player 10.3 (from the white board area). There was a minor issue with the version of the flex unit libraries. The version of the compiled swf was checked with swfdump.

        All unit tests passed and the application runs correctly in Flash Player 10.3. There may be (or not be) an issue with using new FP 4.6 features or some components the the application doesn't use. Even without further work I think this provides a easier upgrade path to Adobe Flex 4.6 SDK (and the next build of Apache Flex) for applications currently using older versions of the Flash Player (11.0,10.3).

        Show
        Justin Mclean added a comment - At a first pass looks like there's there's no SDK code changes required to use the Flex 4.6 SDK in FP 11.0 or 10.3. The SDK compiles without errors for FP11.0 and FP 10.3. I took an existing large application that uses a mix of mx and spark UI components (using SDK 4.5) and recompiled it to use Apache Flex SDK 4.6 for Flash Player 10.3 (from the white board area). There was a minor issue with the version of the flex unit libraries. The version of the compiled swf was checked with swfdump. All unit tests passed and the application runs correctly in Flash Player 10.3. There may be (or not be) an issue with using new FP 4.6 features or some components the the application doesn't use. Even without further work I think this provides a easier upgrade path to Adobe Flex 4.6 SDK (and the next build of Apache Flex) for applications currently using older versions of the Flash Player (11.0,10.3).
        Hide
        Michael Labriola added a comment -

        These should be the steps required to make it work on 10.2. I need to re-verify or you can do so:

        If there is not a 10.2 playerglobal.swc at "frameworks\libs\player\10.2" find one from another
        SDK and put it there.

        Base Dir

        build.properties global.playerglobal.version = 10.2
        build.xml search for 11.1 or 11.0 and replace with 10.2

        /frameworks

        air-config.xml <target-player>10.2</target-player>
        <swf-version>11</swf-version>

        build_framework.xml <property name="playerglobal.version" value="10.2"/>

        flex-config.xml <target-player>10.2</target-player>
        <swf-version>11</swf-version>

        /frameworks/projects

        For each non-mobile project, check the build.xml for 11.1 or 11.0 and replace with 10.2

        For each non-mobile project, check the .actionScriptProperties path to the playerGlobal.swc and make sure it is pointing to the 10.2 directory. You can leave the airGlobal.swc alone.

        Rebuild the SDK.

        Sorry about the previous comment. Jira was so nice as to automatically create a new account with an email reply... oops.

        Show
        Michael Labriola added a comment - These should be the steps required to make it work on 10.2. I need to re-verify or you can do so: If there is not a 10.2 playerglobal.swc at "frameworks\libs\player\10.2" find one from another SDK and put it there. Base Dir build.properties global.playerglobal.version = 10.2 build.xml search for 11.1 or 11.0 and replace with 10.2 /frameworks air-config.xml <target-player>10.2</target-player> <swf-version>11</swf-version> build_framework.xml <property name="playerglobal.version" value="10.2"/> flex-config.xml <target-player>10.2</target-player> <swf-version>11</swf-version> /frameworks/projects For each non-mobile project, check the build.xml for 11.1 or 11.0 and replace with 10.2 For each non-mobile project, check the .actionScriptProperties path to the playerGlobal.swc and make sure it is pointing to the 10.2 directory. You can leave the airGlobal.swc alone. Rebuild the SDK. Sorry about the previous comment. Jira was so nice as to automatically create a new account with an email reply... oops.
        Hide
        Justin Mclean added a comment -

        Thanks for that. I'll reverify for you.

        The existing patches I've supplied for the build scripts work along the same lines as above, including injecting the correct Flash Player version numbers into flex-config.xml. (I had missed air-config.xml but easily fixed). I have changed the build.xml script so that the flash player version only has to be defined once at the top level build.xml.

        Just waiting on the code to be imported into trunk and I'll reissue a full patch for review.

        Show
        Justin Mclean added a comment - Thanks for that. I'll reverify for you. The existing patches I've supplied for the build scripts work along the same lines as above, including injecting the correct Flash Player version numbers into flex-config.xml. (I had missed air-config.xml but easily fixed). I have changed the build.xml script so that the flash player version only has to be defined once at the top level build.xml. Just waiting on the code to be imported into trunk and I'll reissue a full patch for review.
        Hide
        Justin Mclean added a comment - - edited

        Verified for flash player 10.2. SDK compiler and a representative Flex application passed all unit tests and was able to run. This is not a comprehensive test obviously but a good indication that running 4.6 on FP 10.2 is possible with no code changes.

        Show
        Justin Mclean added a comment - - edited Verified for flash player 10.2. SDK compiler and a representative Flex application passed all unit tests and was able to run. This is not a comprehensive test obviously but a good indication that running 4.6 on FP 10.2 is possible with no code changes.
        Hide
        Justin Mclean added a comment -

        Just out of interest the Flex 4.6 SDK doesn't compile for flash player 10.1. The following error occur:
        [compc] /Users/justinmclean/Documents/Adobe Flash Builder 4.6/Apache Flex/frameworks/projects/framework/src/mx/managers/SystemManager.as(3561): col: 52 Error: Access of possibly undefined property softKeyboardRect through a reference with static type flash.display:Stage.
        [compc] var softKeyboardRect:Rectangle = stage.softKeyboardRect;

        There may be further errors beyond this one.

        Show
        Justin Mclean added a comment - Just out of interest the Flex 4.6 SDK doesn't compile for flash player 10.1. The following error occur: [compc] /Users/justinmclean/Documents/Adobe Flash Builder 4.6/Apache Flex/frameworks/projects/framework/src/mx/managers/SystemManager.as(3561): col: 52 Error: Access of possibly undefined property softKeyboardRect through a reference with static type flash.display:Stage. [compc] var softKeyboardRect:Rectangle = stage.softKeyboardRect; There may be further errors beyond this one.
        Hide
        Michael Labriola added a comment -


        By the unit tests, I am assuming you mean the flex checkin tests presently?

        Show
        Michael Labriola added a comment - By the unit tests, I am assuming you mean the flex checkin tests presently?
        Hide
        Justin Mclean added a comment -

        As another aside the Flex 4.6 SDK does compile and works with the 11.2 beta player. The 11.2 beta playerglobal.swc is currently at a public URL here:
        http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer11-2/flashplayer11-2_p5_playerglobal_013112.swc
        (From http://labs.adobe.com/downloads/flashplayer11-2.html)

        Show
        Justin Mclean added a comment - As another aside the Flex 4.6 SDK does compile and works with the 11.2 beta player. The 11.2 beta playerglobal.swc is currently at a public URL here: http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer11-2/flashplayer11-2_p5_playerglobal_013112.swc (From http://labs.adobe.com/downloads/flashplayer11-2.html )
        Hide
        Carol Frampton added a comment -

        Note that some of the build files use local.playerglobal.version or worse have hard coded versions.

        Show
        Carol Frampton added a comment - Note that some of the build files use local.playerglobal.version or worse have hard coded versions.
        Hide
        Justin Mclean added a comment -

        Noticed and already corrected.

        Show
        Justin Mclean added a comment - Noticed and already corrected.
        Hide
        Justin Mclean added a comment -

        Patch for build_framework.xml

        Flash player version and locale have been moved to a build.properties file (so that other build.xml scripts can use it).

        Show
        Justin Mclean added a comment - Patch for build_framework.xml Flash player version and locale have been moved to a build.properties file (so that other build.xml scripts can use it).
        Hide
        Justin Mclean added a comment -

        Patch for all build.xml files. This has not been fully tested as we don't have a full checkin of all required bits to SVN. However it may still be useful.

        Changes include:

        • ability to set flash player version number and locale in a single file
        • removed all hard corded references to flash player version and locale
        • changed ant path to match current directory structure
        • removed javascript target (not donated yet)
        Show
        Justin Mclean added a comment - Patch for all build.xml files. This has not been fully tested as we don't have a full checkin of all required bits to SVN. However it may still be useful. Changes include: ability to set flash player version number and locale in a single file removed all hard corded references to flash player version and locale changed ant path to match current directory structure removed javascript target (not donated yet)
        Hide
        Carol Frampton added a comment -

        Please don't commit these changes until we finish getting all the Adobe code (at least modules and the top-level build files) in the repository. There are changes to some of these files that were patched and it will make it very difficult for me to finish committing the code if I have to worry about integrating these changes as well.

        Show
        Carol Frampton added a comment - Please don't commit these changes until we finish getting all the Adobe code (at least modules and the top-level build files) in the repository. There are changes to some of these files that were patched and it will make it very difficult for me to finish committing the code if I have to worry about integrating these changes as well.
        Hide
        Justin Mclean added a comment -

        Would you be OK with the changes to build_framework.xml were checked in? When do you expect the modules and the top-level build files to be checked in?

        Show
        Justin Mclean added a comment - Would you be OK with the changes to build_framework.xml were checked in? When do you expect the modules and the top-level build files to be checked in?
        Hide
        Justin Mclean added a comment -

        Changes to build_framewok.xml have been checked into the patches branch. No changes to build.xml scripts have been checked in.

        Show
        Justin Mclean added a comment - Changes to build_framewok.xml have been checked into the patches branch. No changes to build.xml scripts have been checked in.
        Hide
        Carol Frampton added a comment -

        If you are checking the changes into a branch you can make changes to any of the files, including the build.xml files.

        Show
        Carol Frampton added a comment - If you are checking the changes into a branch you can make changes to any of the files, including the build.xml files.
        Hide
        Justin Mclean added a comment -

        Check in SVN revision 1364652-1364663

        Show
        Justin Mclean added a comment - Check in SVN revision 1364652-1364663

          People

          • Assignee:
            Unassigned
            Reporter:
            Alex Harui
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development