{"id":219,"date":"2008-10-30T18:59:21","date_gmt":"2008-10-30T16:59:21","guid":{"rendered":"http:\/\/fdt.powerflasher.com\/blog\/?p=219"},"modified":"2008-10-30T18:59:21","modified_gmt":"2008-10-30T16:59:21","slug":"creating-flash-player-10-projects-with-fdt-beta","status":"publish","type":"post","link":"https:\/\/fdt.powerflasher.com\/blog\/2008\/10\/creating-flash-player-10-projects-with-fdt-beta\/","title":{"rendered":"Creating Flash Player 10 Projects with FDT (beta)"},"content":{"rendered":"<p>We&#8217;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.&lt;Type&gt; Syntax.<\/p>\n<p>Here are the few steps you need to follow, in order to create Flash Player 10 content.<\/p>\n<p><strong>Installation<\/strong><\/p>\n<p>Requirements: installed Version of FDT 3.1<\/p>\n<p>1. Install the beta update:<\/p>\n<ul>\n<li>Help &gt; Software Updates &gt; Find and Install &gt; Search for new Features to install &gt; new Remote Site &gt; URL:\u00a0http:\/\/fdt.powerflasher.com\/update_beta\/<\/li>\n<\/ul>\n<p>2. Download <a title=\"Download Flex 3 SDK\" href=\"http:\/\/opensource.adobe.com\/wiki\/display\/flexsdk\/Download+Flex+3\" target=\"_blank\">Flex SDK 3.2<\/a> or <a title=\"Download Flex 4 SDK\" href=\"http:\/\/opensource.adobe.com\/wiki\/display\/flexsdk\/Download+Flex+4\" target=\"_blank\">Flex SDK 4<\/a><\/p>\n<p>3. Add the downloaded SDK to your List of Core Libraries<\/p>\n<ul>\n<li>Window &gt; Preferences &gt; FDT &gt; Core Libraries &gt; AS3 Core Libraries<\/li>\n<li>Click Add&#8230;<\/li>\n<li>Type: Pure AS3 (Flex3) for FP 10, Name: AS3_FP10_beta<\/li>\n<li>Click &#8220;Browse&#8221;<\/li>\n<li>Click &#8220;New&#8221;<\/li>\n<li>Name: FlexSDK_FP10_beta<\/li>\n<li>Click &#8220;Folder&#8221; and select the downloaded and decompressed Flex SDK folder.<\/li>\n<li>Click &#8220;OK&#8221; three times.<\/li>\n<\/ul>\n<p>4. Install Flash Player 10<\/p>\n<p><strong>Project Setup and Compilation<\/strong><\/p>\n<ol>\n<li>Create a new Flash Project in FDT and select AS3_FP10_beta in the Project Language section.<\/li>\n<li>Create a new Class and derive it from Sprite<\/li>\n<li>Insert the following line of Code to use the new Vector Class:<br \/>\nvar v : Vector.&lt;int&gt; = new Vector.&lt;int&gt;();<\/li>\n<li>Right click the Class and go to Run as &gt; FDT AS3 Application<\/li>\n<\/ol>\n<p>If you have used the Flex SDK 4, everything should work fine.<\/p>\n<p>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.<br \/>\nIf you take a look at the flex config file:<br \/>\nflex_sdk_3.2.0.3794\/frameworks\/flex-config.xml you can see, that it uses Flash Player 9 as target player &lt;target-player&gt;9.0.124&lt;\/target-player&gt;.<\/p>\n<p>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<\/p>\n<p><a href=\"http:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2008\/10\/targetplayer10.jpg\"><img loading=\"lazy\" class=\"alignleft size-medium wp-image-226\" title=\"targetplayer10\" src=\"http:\/\/fdt.powerflasher.com\/blog\/wp-content\/targetplayer10-300x184.jpg\" alt=\"\" width=\"300\" height=\"184\" \/><\/a><\/p>\n<p>The flex-config.xml of the Flex SDK 4 uses Flash Player 10 as target player, so you don&#8217;t have to add this compiler argument.<\/p>\n<p><strong>Vector Code Template<\/strong><\/p>\n<p>Try to add the following FDT Code Template (Window &gt; Preferences &gt; FDT &gt; Editor &gt; Templates)<\/p>\n<p>var ${name} : Vector.&lt;${type}&gt; = new Vector.&lt;${type}&gt;();${cursor}<\/p>\n<p>to quickly create new variables of type Vector.<\/p>\n<p><strong>Have fun!<\/strong><br \/>\nMichael Plank<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;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.&lt;Type&gt; Syntax. Here are the few steps you need to follow, in order to create Flash Player 10 content. Installation Requirements: installed Version of FDT 3.1 1. Install the beta update: Help &gt; [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,11,12],"tags":[44,123,291],"_links":{"self":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts\/219"}],"collection":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":0,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"wp:attachment":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}