We’ve recently released a beta update of FDT (v. 3.1.1. Build 1017) which fully supports Flash Player 10 projects and the new Vector.<Type> Syntax.

Here are the few steps you need to follow, in order to create Flash Player 10 content.


Requirements: installed Version of FDT 3.1

1. Install the beta update:

  • Help > Software Updates > Find and Install > Search for new Features to install > new Remote Site > URL: http://fdt.powerflasher.com/update_beta/

2. Download Flex SDK 3.2 or Flex SDK 4

3. Add the downloaded SDK to your List of Core Libraries

  • Window > Preferences > FDT > Core Libraries > AS3 Core Libraries
  • Click Add…
  • Type: Pure AS3 (Flex3) for FP 10, Name: AS3_FP10_beta
  • Click “Browse”
  • Click “New”
  • Name: FlexSDK_FP10_beta
  • Click “Folder” and select the downloaded and decompressed Flex SDK folder.
  • Click “OK” three times.

4. Install Flash Player 10

Project Setup and Compilation

  1. Create a new Flash Project in FDT and select AS3_FP10_beta in the Project Language section.
  2. Create a new Class and derive it from Sprite
  3. Insert the following line of Code to use the new Vector Class:
    var v : Vector.<int> = new Vector.<int>();
  4. Right click the Class and go to Run as > FDT AS3 Application

If you have used the Flex SDK 4, everything should work fine.

If you have used the Flex SDK 3.2 you will get a Compile Error. This is because the Flex SDK 3.2 compiles SWFs for Flash Player 9 by default.
If you take a look at the flex config file:
flex_sdk_3.2.0.3794/frameworks/flex-config.xml you can see, that it uses Flash Player 9 as target player <target-player>9.0.124</target-player>.

In order to compile for Flash Player 10 with SDK 3.2 you need to add the following compiler argument in your launch configuration: -target-player=10.0.0

The flex-config.xml of the Flex SDK 4 uses Flash Player 10 as target player, so you don’t have to add this compiler argument.

Vector Code Template

Try to add the following FDT Code Template (Window > Preferences > FDT > Editor > Templates)

var ${name} : Vector.<${type}> = new Vector.<${type}>();${cursor}

to quickly create new variables of type Vector.

Have fun!
Michael Plank