I’ve just tried to compile my first project targeting Flash Player 10.1 with the latest FDT version 3.5.
It’s very simple to set it up, I’ve done it in about 10 minutes so here’s a quick tutorial on how to get started with 10.1 beta 2.

The summary first:

  1. Download a fresh new Flex SDK
  2. Patch the playerglobal.swc with the new one
  3. Add the new SDK to FDT

In depth:

  1. Download and install Flash Player 10.1 beta 2
  2. Download a new Flex SDK from here, I’ve chosen the latest 3.4 stable build
  3. Download the new core library (playerglobal.swc) for FP 10.1 here
  4. Now replace the old playerglobal.swc located here in your downloaded Flex SDK: /frameworks/libs/player/10/playerglobal.swc with the new downloaded FP 10.1 playerglobal.swc
  5. In FDT 3.5 go to Preferences>FDT>Core Libraries>AS3 Core Libraries and click “Add…”
  6. As “Type” use “Flex 3 SDK for FP 10” give it a name and click the “Browse” and then “New” button to add your new patched Flex SDK.

That’s all for setting everything up. Now create a new Flash Project:

  1. New > New Flash Project
  2. In the SDK drop down menu choose the one you’ve added earlier.
  3. Create a Main class and derive it from Sprite
  4. In the constructor I’ve added this line of code to check if everything is working: trace(Acceleromter.isSupported);
  5. Right click your Main class and Debug it as AS3 Application

Everything should compile properly now and you should see the trace output (“false” on my MacBook Pro… hmm… is that correct? Every MBP has an integrated accelerometer. Weird isn’t it? Who has an answer?). Additionally you can add the -target-player=10.1.0 compiler argument to your launch configuration.

Happy 10.1 coding everybody,
Michael