|By Rich Tretola | May 20, 2008|
Here is a step by step tutorial for setting up Flex Buillder 3 to compile for the new Flash Player 10 beta. This setup will also get you code insight for the new Flash Player 10 APIs.
Step 1: Visit http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 and download any build greater than 22.214.171.1248 dated Thu May 15, 2008. This example uses 126.96.36.1999.
Step 2: Unzip the download and add it to the sdks folder of your Flex Builder install. In my case this is within Adobe Flex Builder 3 Plug-in/sdks. It could be within Adobe Flex Builder 3/sdks if you are using the standalone version of Flex Builder.
Step 3: Now open the Flex Builder preferences and expand the menu to flex -> Installed Flex SDKs. Click the add button.
Step 4: Navigate to the new SDK that you just installed in step 2, give it a unique name and click OK.
Step 5: You can now set this new SDK as your default SDK and click OK
Step 6: Create a new Flex Project
Step 7: Create the project as type Web Application
Step 8: Right click on the new project and select Properties. Navigate to Flex Compiler. Make sure either you have the new 188.8.131.529 as the default SDK or if you didn’t set it as the default in Step 5, make sure that you choose Use a specific SDK and set it to 184.108.40.2069. Also, change the flash player version required to 10.0.0.
Step 9: Switch to Flex Build Path, expand the 220.127.116.119 library and remove the playerglobal.sdk
Step 10: Click on Add SWC
Step 11: Navigate to the new SDK installed in Step 2 to frameworks/libs/player/10/playerglobal.swc and click OK
Step 12: Expand the new playerglobal.swc and double click on Link Type. Change it to External.
Step 13: To avoid being forced to download a new player on each run, open the index.template.html of your project and change the current variables to an older player as shown in the next 2 images.
Finally, open your new project root file and try creating a new object with one of the new Flash Player 10 classes and see that you have code insight.