2 Replies Latest reply on Aug 31, 2012 2:39 PM by Naoki-Hada

    Does Stage3D work with SDK 3.5?

    Naoki-Hada Level 1

      Hi,

       

      I'm in research for GPU enhancement for current project based on Flex SDK 3.5 (with Flash Builder 4.0.1).

       

      It causes runtime error as following.

      VerifyError: Error #1014: Class flash.display::Stage3D could not be found.

       

      If I changed SDK to 4.6 and nessesary settings (target Flash player version, parameter in html template), it works fine.

       

      But with SDK 3.5, I could not figure out how to workaround.

      It is for large enterprise application, 3.5 is hard requirement.

       

      Is there any way we can use for Stage3D feature with SDK 3.5?

       

      Thank you very much,

      Naoki

        • 1. Re: Does Stage3D work with SDK 3.5?
          Flex harUI Adobe Employee

          You can try downloading a playerglobal.swc that is from a FlashPlayer release that supports stage 3D, and use a higher SWF version that corresponds to it.  I think in 3.x the MXMLC option is called –target-player.

          • 2. Re: Does Stage3D work with SDK 3.5?
            Naoki-Hada Level 1

            It worked!

            Thank you very much. It was very helpful.

            I did not realized to specify 2 location of version setting in same page.

             

            Following is my summary.

             

            ======

            How to set up Stage3D enabled development environment with Flex SD 3.5

             

            Environment

              Target Flash Player 11.4

              Flex DSK 3.5

              Flash Builder 4.0.1

             

            Flash Debug Player download page for debugging.

              Download and install from following:

                http://www.adobe.com/support/flashplayer/downloads.html

              We need PlayerGlobal(.swc) file for target player version.

             

            Copy above playerglobal.swc file to following

              C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\libs\player\11.4\playerglobal.swc

             

            Flash Builder project setting / ActionScript Compiler

              1) Use a specific SDK as "Flex 3.5"

              2) Use a specific (Flash Player) version as "11.4.0"

              3) Addtional compiler arguments as "-locale en_US -target-player 17"

              Ref) http://sleepydesign.blogspot.com/2012/04/flash-swf-version-meaning.html

             

            Edit auto generated project/html-template/ files for Rendering Mode

              Ref) http://gamua.com/starling/first-steps/

              Editing on Flex SDK 3.5 file did not worked for me.

              So I copied Flex SDK 4.6's /html-template/ files and added following 2 lines to index.template.html file.

                For script tag

                   params.wmode="direct";

                For object tag

                   <param name="wmode" value="direct" />

              ======

            FB_Project_Setting_for_Stage3D.png