FDT Flash player 10 target path tip

November 9th, 2009

I have seen loads of posts and tips across the net with regards to using FDT to code in your AS3 projects and how to make it target Flash player 10 when using the Flex SDK 3.4. All seem to recommend going to the run dialog and assigning a compiler argument to tell the compiler to target FP10 like so:

Actionscript:
  1. -target-player=10.0.0

It baffles me how no one seems to mention the method originally recommended by Adobe when they first released Flash player 10 as a beta version. The method is still described here.

If this link ever gets taken down I will describe it here. It means going to the flex SDK folder on your Mac / PC and editing the flex-config.xml file. If you open this file you will find the lines which tell the flex compiler to target a flash player version they are:

Actionscript:
  1. <target-player>9.0.124</target-player>

and

Actionscript:
  1. <external-library-path>
  2.          <path-element>libs/player/{targetPlayerMajorVersion}/playerglobal.swc</path-element>
  3. </external-library-path>
  4. <library-path>
  5.          <path-element>libs</path-element>   
  6.          <path-element>libs/player</path-element>
  7.          <path-element>libs/player/{targetPlayerMajorVersion}</path-element>   
  8.      <path-element>locale/{locale}</path-element>
  9.  </library-path>

So if you edit these lines so that the target player line should be 10.0.0 or whatever version you want it to be and the {targetPlayerMajorVersion} that are mentioned in the library path nodes are changed to '10' like so:

Actionscript:
  1. <external-library-path>
  2.          <path-element>libs/player/10/playerglobal.swc</path-element>
  3. </external-library-path>
  4. <library-path>
  5.          <path-element>libs</path-element>   
  6.          <path-element>libs/player</path-element>
  7.          <path-element>libs/player/10</path-element>   
  8.      <path-element>locale/{locale}</path-element>
  9.  </library-path>

Then simply save the file.......this way you will never need to tell FDT to target FP10 as it will do it automatically when it starts a new project and imports the compiler settings set by the flex-config.xml.

Of course if you are using Flex SDK 4.0 you do not need to do any of this as the flex-config.xml is set up to do this already and considering that FP10 has been out for a whole year already I am surprised that the 3.4 config file still targets FP9??!

Categories: Actionscript 3.0 | Tags: ,

2 Comments

  1. Tweets that mention FDT Flash player 10 target path tip | UltraVisual Blog -- Topsy.com

    [...] This post was mentioned on Twitter by shane johnson and shane johnson, Hawaii Flash . Hawaii Flash said: RT @UltraVisual: New blog post: http://bit.ly/38xENW #Flash #FDT #FP10 [...]

  2. uberVU - social comments

    Social comments and analytics for this post…

    This post was mentioned on Twitter by UltraVisual: New post: http://bit.ly/38xENW…

Leave a comment