<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Promethe's Blog &#187; Flex Builder 3</title>
	<atom:link href="http://blog.promethe.net/tag/flex-builder-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.promethe.net</link>
	<description>Web, RIAs and chocolate spaghettis...</description>
	<lastBuildDate>Tue, 29 Jun 2010 09:24:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Build Flash 10.1 applications with Flex Builder 3 or Flash Builder 4</title>
		<link>http://blog.promethe.net/2010/03/31/flash-10-1-with-flex-builder-3-or-flash-builder-4/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flash-10-1-with-flex-builder-3-or-flash-builder-4</link>
		<comments>http://blog.promethe.net/2010/03/31/flash-10-1-with-flex-builder-3-or-flash-builder-4/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 10:19:25 +0000</pubDate>
		<dc:creator>Promethe</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash 10.1]]></category>
		<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex Builder 3]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.promethe.net/?p=677</guid>
		<description><![CDATA[It was one of my first posts on this blog: Work with Flash 10 in Flex Builder 3. This post has proven to be very helpful and is still read a lot every day! As Flash 10.1 is currently accessible in beta. I thought it would be nice to have some tutorial to build applications [...]]]></description>
			<content:encoded><![CDATA[<p>It was one of my first posts on this blog: <a href="http://blog.promethe.net/2008/08/21/work-with-flas…flex-builder-3/" target="_self">Work with Flash 10 in Flex Builder 3</a>. This post has proven to be very helpful and is still read a lot every day!</p>
<p>As Flash 10.1 is currently accessible in beta. I thought it would be nice to have some tutorial to build applications targeting this new version of the player to take advantage of the new APIs (like multitouch for example). This tutorial will provide a generic solution to enable the creation of Flash 10.1 capable projects in both Flex Builder 3 and Flash Builder 4.</p>
<h4><strong>Step 0: Download the latest Flex SDK</strong></h4>
<p>This step is not mandatory and should not be necessary if you already have a Flash 10 capable Flex SDK. Still, keeping your SDK up to date is always a good thing and this tutorial might be a good opportunity to do it!</p>
<p>As the Flex 4 SDK was just released a few days ago, I recommend you download, install and use it for the rest of the tutorial.</p>
<p>In the rest of the tutorial, $SDK_DIR will designate the path to the Flex SDK you want to use (ie. "C:\Program Files\Adobe\Flash Builder 4\sdks\4.0.0" for example).</p>
<h4>Step 1: Download and install playerglobal.swc</h4>
<ul>
<li>Go to $SDK_DIR\frameworks\libs\player and create a new folder called "10.1"</li>
<li>Download the new <a href="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_globalswc.zip" target="_self">Flash 10.1 capable playerglobals.swc library from Adobe Labs</a></li>
<li><a href="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_globalswc.zip" target="_self"></a>Extract playerglobals.swc from the downloaded ZIP file to the new "10.1" directory you just created</li>
</ul>
<h4>Step 2 : Setup your Flash 10.1 project</h4>
<ul>
<li>Open Flash Builder 4</li>
<li>Create a new Flash/Flex project or open the project you want to setup</li>
<li>Open the properties of your project (right click on your project in the Package Explorer &gt; Properties)</li>
<li>If you are using Flash Builder 4, go to the "ActionScript compiler" panel and in the "Adobe Flash Player options" section, check "Use a specific version" and enter 10.1.0 as the version number</li>
</ul>
<p><a href="http://blog.promethe.net/wp-content/uploads/2010/03/flashbuilder4_flash10_1.png" rel="shadowbox[post-677];player=img;"><img class="aligncenter size-full wp-image-678" title="flashbuilder4_flash10_1" src="http://blog.promethe.net/wp-content/uploads/2010/03/flashbuilder4_flash10_1.png" alt="" width="617" height="243" /></a></p>
<ul>
<li>If you are using Flex Builder 3, go to the "Flex compiler" panel and in the "Additional compiler arguments" text input add "-target-player=10.1.0"</li>
<li>Click "OK"</li>
</ul>
<h4>Step 3 : Build your project</h4>
<p>Press F11 to build and run your project. Everything should work fine and you should now be able to use the new Flash 10.1 APIs!</p>
<p>You can now create as much projects as you want and you just have to do <strong>Step 2</strong> to make sure it will target Flash 10.1!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.promethe.net/2010/03/31/flash-10-1-with-flex-builder-3-or-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Compile Flash 10 libraries in Flex Builder 3</title>
		<link>http://blog.promethe.net/2008/09/03/compile-flash-10-libraries-in-flex-builder-3/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=compile-flash-10-libraries-in-flex-builder-3</link>
		<comments>http://blog.promethe.net/2008/09/03/compile-flash-10-libraries-in-flex-builder-3/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 14:31:59 +0000</pubDate>
		<dc:creator>Promethe</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Builder 3]]></category>

		<guid isPermaLink="false">http://blog.promethe.net/?p=105</guid>
		<description><![CDATA[In a previous post (cf. Work with Flash 10 in Flex Builder 3), I explained how to start using Flash 10 with Flex Builder 3 in a "classic" Flex Project. But if you want to create a Flash 10 Flex Library Project, it is a little bit more tricky. The Problem The main problem is [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In a previous post (cf. <span style="color: #888888;"><a class="row-title" title="Edit &quot;Work with Flash 10 in Flex Builder 3&quot;" href="post.php?action=edit&amp;post=20">Work with Flash 10 in Flex Builder 3</a><span style="color: #000000;"><span class="row-title">), I explained how to start using Flash 10 with Flex Builder 3 in a "classic" Flex Project. But if you want to create a Flash 10 Flex Library Project, it is a little bit more tricky.</span></span></span></p>
<p><span id="more-105"></span></p>
<p style="text-align: justify;"><strong>The Problem</strong></p>
<p style="text-align: justify;">The main problem is that even if you select a Flash 10 Flex SDK, Flex Builder configure the compiler to use Flash 9 only. In my first article, I explained that a simple solution was the following :</p>
<ol style="text-align: justify;">
<li>Open the Properties of your Flex Project (right click on the project in the Flex Navigator tab then “Properties”)</li>
<li>Go to “Flex Compiler”</li>
<li>Check “Use a specific SDK” and select the SDK you just installed</li>
<li>Check “Require Flash Player version” and set the value to 10.0.0</li>
</ol>
<p style="text-align: justify;">But the thing is you can not specify a "Required Flash Player version" for a Flex Library Project. When you will try to compile, any reference to a Flash 10 class will cause an error even if you have selected the right Flex SDK (steps 1, 2 and 3 above).</p>
<p style="text-align: justify;"><strong>The Solution</strong></p>
<p style="text-align: justify;">The solution is rather simple :</p>
<ol style="text-align: justify;">
<li>Close Flex Builder</li>
<li>Go to the root folder of your Flex Library project</li>
<li>Open the file named ".actionScriptProperties" with your favorite text editor</li>
<li>Search for  htmlPlayerVersion="9.0.28" and change it to  htmlPlayerVersion="10.0.0"</li>
<li>Launch Flex Builder 3</li>
<li>Try to compile your Flex Library Project</li>
</ol>
<p style="text-align: justify;">Your project should compile normaly and Flash 10 classes wont cause any error anymore.</p>
<p style="text-align: justify;">Nevertheless, it is quite weird to have to change the "htmlPlayerVersion" to "10.0.0" in order to compile properly. It seems the "htmlPlayerVersion" is actualy used to do more than just setting the HTML wrapper...</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.promethe.net/2008/09/03/compile-flash-10-libraries-in-flex-builder-3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Work with Flash 10 in Flex Builder 3</title>
		<link>http://blog.promethe.net/2008/08/21/work-with-flash-10-in-flex-builder-3/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=work-with-flash-10-in-flex-builder-3</link>
		<comments>http://blog.promethe.net/2008/08/21/work-with-flash-10-in-flex-builder-3/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 20:40:30 +0000</pubDate>
		<dc:creator>Promethe</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Builder 3]]></category>

		<guid isPermaLink="false">http://blog.promethe.net/?p=20</guid>
		<description><![CDATA[Flash 10 Beta is a good occasion to test some of the new features that the next version of this incredible piece of software will provide. This short step-by-step "how to" tutorial will teach you how to install the new Flex SDK and configure Flex Builder 3 in order to use it.]]></description>
			<content:encoded><![CDATA[<p><b><span style="color:red">UPDATE:</span> you can also read the new "<a href="Build Flash 10.1 applications with Flex Builder 3 or Flash Builder 4">Build Flash 10.1 applications with Flex Builder 3 or Flash Builder 4</a>" tutorial.</b></p>
<p style="text-align: justify;">Flash 10 Beta is a good occasion to test some of the new features that the next version of this incredible piece of software will provide. This short step-by-step "how to" tutorial will teach you how to install the new Flex SDK and configure Flex Builder 3 in order to use it.</p>
<p><span id="more-20"></span></p>
<p style="text-align: justify;"><strong>1.</strong> <strong>Install Flex Builder 3</strong></p>
<p style="text-align: justify;">As we start, only Flex Builder 3 (and eventually the Flash 9 Player) is installed.</p>
<p style="text-align: justify;"><strong>2. Download the last nightly build of the Flex SDK</strong></p>
<p style="text-align: justify;">Here are the download pages :</p>
<ul style="text-align: justify;">
<li><a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3" target="_blank">Flex 3 SDK download page<br />
</a></li>
<li><a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4" target="_blank">Flex 4 codename "Gumbo" SDK download page</a></li>
</ul>
<p style="text-align: justify;">I'm currently working with the Flex 4.0.0.2862 SDK myself, but any Thursday May 15, 2008 or later release will do the trick.</p>
<p style="text-align: justify;"><strong>3. Install the new Flex SDK</strong></p>
<p style="text-align: justify;">Extract the SDK wherever you want. FLEX_SDK is used hereafter to refer to the directory where you unzipped the SDK. I recommend to extract the SDK in your FLEX_BUILDER\sdks\SDK_VERSION directory, where FLEX_BUILDER refers to your Flex Builder 3 installation directory ("C:\Adobe\Flex Buider 3\sdks" by default) and SDK_VERSION refers to the version number of the nightly build SDK you downloaded (4.0.0.2862 for me). Here is how it should look :</p>
<p style="text-align: center;"><a href="http://blog.promethe.net/wp-content/uploads/2008/08/untitled.jpg" rel="shadowbox[post-20];player=img;"><img class="size-medium wp-image-29 aligncenter" title="flex4sdk_in_fb3_1" src="http://blog.promethe.net/wp-content/uploads/2008/08/untitled-300x101.jpg" alt="" width="300" height="101" /></a></p>
<p style="text-align: justify;"><strong>4. Install the Flash 10 Debug Player Plugin</strong></p>
<p style="text-align: justify;"><span style="color: #ff0000;"><strong>ATTENTION :</strong> </span><span style="color: #ff0000;">before installing the Flash 10 Player Plugin for your browser, make sure to uninstall any previous version. You might want to follow </span><a href="http://labs.adobe.com/technologies/flashplayer10/releasenotes.html#install"><span style="color: #ff0000;">Adobe's instructions</span></a><span style="color: #ff0000;"> in order to do that well. Refer to those instructions if you encounter any Flash 10 Player Plugin installation issue.A good thing would be to have two different web browsers : one to actually daily browse the internet, with the stable Flash 9 Player Plugin installed, and a second one to debug/run Flex projects with the Flash 10 Player Plugin.</span></p>
<div style="text-align: justify;"><span style="color: #ff0000;"> </span></div>
<p style="text-align: justify;">To find the suitable Flash 10 Player Plugin installer for your favorite web browser, go to "FLEX_SDK\runtimes\player\10" and then browse the folder that matches your OS ("win" for Windows for exemple). The idea here is to install the Flash 10 Player Plugin for the web browser that is used by Flex Builder 3 to debug/run your projects. This default web browser can be changed in Flex Builder 3 in the "Window\Preferences...\General\Web Browser" configuration menu.</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><strong>5. Configure Flex Builder 3</strong></p>
<p style="text-align: justify;">Now we have to configure Flex Builder 3 in order to be able to use this very SDK. Launch Flex Builder 3 and then go to "Window\Preferences...". You should have this window :</p>
<p style="text-align: center;"><a href="http://blog.promethe.net/wp-content/uploads/2008/08/untitled1.jpg" rel="shadowbox[post-20];player=img;"><img class="size-medium wp-image-31 aligncenter" title="flex4sdk_in_fb3_2" src="http://blog.promethe.net/wp-content/uploads/2008/08/untitled1-300x200.jpg" alt="" width="300" height="200" /></a></p>
<p style="text-align: justify;">
<p style="text-align: justify;">You should have the first two lines only at first. Then you click on "Add...", and browse into your drive to select the FLEX_SDK directory. If you select the right path, Flex Builder should be able to retrieve the SDK name all by itself. Then click on the "OK" button. It is better to keep your old Flex 3 SDK as the default SDK fpr compatibility purposes.</p>
<p style="text-align: justify;">The Flash 10 enabled SDKs are messing up with Flex Builder 3 auto-completion, so you might want to have <a href="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_as3langref_070208.zip" target="_blank">the new ActionScript 3.0 Language Reference</a> which provides information on the syntax and usage of the new APIs. Just create the "FLEX_SDK\doc" directory and extract the ZIP archive in it.</p>
<p style="text-align: justify;">Because Flex Builder will not fully recognize this new Flex SDK, it might erase some of your "import" directives that seam to be wrong (but that are not...). It happens a lot especially when you use the "flash" package. To avoid this, you might want to uncheck "Keep imports organized" in the "Window\Preferences...\Flex\Editors\ActionScript Code" configuration panel. I know automated imports organizing is a great feature, but "import" directives vanishing all by themselves is a real mess and it does areally happend a lot. Thus, do not forget to re-enable this great feature when the Flex SDK will be fully integrated and functional.</p>
<p style="text-align: justify;"><strong>6. Create a new Flex project</strong></p>
<p style="text-align: justify;">Now that the new SDK is available in Flex Builder 3, create a new Flex project. In the project properties (right click on the project in the Flex Navigator tab then "Properties") go to "Flex Compiler".  Check "Use a specific SDK" and select the SDK you just installed ("Flex 4" in my case), then check "Require Flash Player version" and set the value to 10.0.0.</p>
<p style="text-align: justify;"><strong>7. Update the Flash Player detection system</strong></p>
<p style="text-align: justify;">As the Flash 10 player is still a beta, the version number is not well recognized by the Flash Plugin detection system. You have to edit the HTML template that is used to generate the HTML document where your SWF is going to be embed. In the directory of your Flex project, go to "html-template" and open the file "AC_OETags.js" with a text editor. Replace the whole "GetSwfVer" function with this one :</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> GetSwfVer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">// NS/Opera version &amp;gt;= 3 check for Flash plugin in plugin array</span>
  <span style="color: #003366; font-weight: bold;">var</span> flashVer <span style="color: #339933;">=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">plugins</span> <span style="color: #339933;">!=</span> <span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> navigator.<span style="color: #660066;">plugins</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">plugins</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;Shockwave Flash 2.0&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">||</span> navigator.<span style="color: #660066;">plugins</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;Shockwave Flash&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #003366; font-weight: bold;">var</span> swVer2 <span style="color: #339933;">=</span> navigator.<span style="color: #660066;">plugins</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;Shockwave Flash 2.0&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot; 2.0&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #003366; font-weight: bold;">var</span> flashDescription <span style="color: #339933;">=</span> navigator.<span style="color: #660066;">plugins</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;Shockwave Flash&quot;</span> <span style="color: #339933;">+</span> swVer2<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">description</span><span style="color: #339933;">;</span>
      <span style="color: #003366; font-weight: bold;">var</span> descArray <span style="color: #339933;">=</span> flashDescription.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot; &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #003366; font-weight: bold;">var</span> tempArrayMajor <span style="color: #339933;">=</span> descArray<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #003366; font-weight: bold;">var</span> versionMajor <span style="color: #339933;">=</span> tempArrayMajor<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
      <span style="color: #003366; font-weight: bold;">var</span> versionMinor <span style="color: #339933;">=</span> tempArrayMajor<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
      <span style="color: #003366; font-weight: bold;">var</span> versionRevision <span style="color: #339933;">=</span> descArray<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>versionRevision <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span>
        versionRevision <span style="color: #339933;">=</span> descArray<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>versionRevision<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;d&quot;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span>
        versionRevision <span style="color: #339933;">=</span> versionRevision.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>versionRevision<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;b&quot;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span>
        versionRevision <span style="color: #339933;">=</span> versionRevision.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>versionRevision<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;r&quot;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #009900;">&#123;</span>
        versionRevision <span style="color: #339933;">=</span> versionRevision.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>versionRevision.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;d&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
          versionRevision <span style="color: #339933;">=</span> versionRevision.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> versionRevision.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;d&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
      <span style="color: #003366; font-weight: bold;">var</span> flashVer <span style="color: #339933;">=</span> versionMajor <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;.&quot;</span> <span style="color: #339933;">+</span> versionMinor <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;.&quot;</span> <span style="color: #339933;">+</span> versionRevision<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #006600; font-style: italic;">// MSN/WebTV 2.6 supports Flash 4</span>
  <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">toLowerCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;webtv/2.6&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
    flashVer <span style="color: #339933;">=</span> <span style="color: #CC0000;">4</span><span style="color: #339933;">;</span>
  <span style="color: #006600; font-style: italic;">// WebTV 2.5 supports Flash 3</span>
  <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">toLowerCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;webtv/2.5&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
    flashVer <span style="color: #339933;">=</span> <span style="color: #CC0000;">3</span><span style="color: #339933;">;</span>
  <span style="color: #006600; font-style: italic;">// older WebTV supports Flash 2</span>
  <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>navigator.<span style="color: #660066;">userAgent</span>.<span style="color: #660066;">toLowerCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;webtv&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
    flashVer <span style="color: #339933;">=</span> <span style="color: #CC0000;">2</span><span style="color: #339933;">;</span>
  <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>isIE <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> isWin <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #339933;">!</span>isOpera<span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    flashVer <span style="color: #339933;">=</span> ControlVersion<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000066; font-weight: bold;">return</span> flashVer<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p style="text-align: justify;"><strong>8. The end...</strong></p>
<p style="text-align: justify;">And... that's it ! You should now be able to debug/compile your Flex project using your brand new Flex SDK with the new Flash 10 Beta features !</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.promethe.net/2008/08/21/work-with-flash-10-in-flex-builder-3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
