5 Replies Latest reply on Mar 23, 2010 1:44 PM by Randy Troppmann

    FB4 Type was not found

    Randy Troppmann Level 2

      Since upgrading to FB4 (Final Release) from FB4 Beta 2 I get all these "Type was not found ..." errors in my Pure AS3 project.

       

      1046: Type was not found or was not a compile-time constant: Boolean. D3-MediaPlayer-OSMF Unknown Flex Problem

       

      The project compiles and runs fine if I ignore, because the classes are all there. Ideas?

        • 1. Re: FB4 Type was not found
          Jason San Jose Adobe Employee

          What SDK are you using? Sounds like playerglobal.swc isn't found. This should work using the 4.0.0 SDK installed with Flash Builder.

           

          Jason San Jose

          Software Engineer, Flash Builder

          • 2. Re: FB4 Type was not found
            Randy Troppmann Level 2

            The properties under "Actionscript Compiler"

             

            - Flex SDK version set to "Use default SDK (currently "Flex 4.0")

            - Adobe Flash Player options set to "Use a specific version: 10.0.0

             

            I tried setting it to 10.1.0 in which case I had to:

            - add the compiler compiler argument "-target-player=10.1.0"

            - install the beta Flash Player 10.1

            - install the associated playerglobal.swc (because it then complained

            about it not finding it now)

             

            but the errors still returned. If I do a "clean" the errors go away

            until I build and run and then edit a file and save. Then all the

            errors pop up again.

             

             

            - Randy

            • 3. Re: FB4 Type was not found
              msakrejda Level 4

              There's an issue in JIRA regarding playerglobal.swc references disappearing in some cases (not particular to FB4). Workaround that solves it for me:

               

              - Open project properties

              - Go to Flex Build Path > Library Path

              - Expand the entry for the SDK your project is using

              - Remove playerglobal.swc

              - Add playerglobal.swc manually (it's going to be under FLEX_HOME/framework/libs/player/10 (or 9, if you want the older one)).

              - Move the  playerglobal.swc entry to the top of the list

              - Expand the playerglobal.swc entry; change the Link Type to 'External'

               

              After following these steps, I stopped seeing the problem.

              • 4. Re: FB4 Type was not found
                Jason San Jose Adobe Employee

                You need to download the playerglobal.swc for 10.1 http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_globalswc.zip and put it in the following folder:

                 

                .../Adobe Flash Builder 4/sdks/4.0.0/frameworks/libs/player/10.1/playerglobal.swc

                 

                Since 10.1 is still in beta, it did not ship with Flash Builder 4.0.0.

                 

                Jason San Jose

                Software Engineer, Flash Builder

                • 5. Re: FB4 Type was not found
                  Randy Troppmann Level 2

                  It seems that targeting SDK FLEX 3.5 solved this problem. I am no longer seeing all the "Type was not found ..." errors.