<?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>Flex Examples &#187; MXP</title>
	<atom:link href="http://blog.flexexamples.com/category/mxp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing the Flex Skin Design Extensions for CS3 from Adobe Labs</title>
		<link>http://blog.flexexamples.com/2007/12/06/installing-the-flex-skin-design-extensions-for-cs3-from-adobe-labs/</link>
		<comments>http://blog.flexexamples.com/2007/12/06/installing-the-flex-skin-design-extensions-for-cs3-from-adobe-labs/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 06:29:05 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Extension Manager]]></category>
		<category><![CDATA[Flash CS3]]></category>
		<category><![CDATA[Flex Component Kit]]></category>
		<category><![CDATA[Flex Skins Design Extensions for CS3]]></category>
		<category><![CDATA[MXP]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/06/installing-the-flex-skin-design-extensions-for-cs3-from-adobe-labs/</guid>
		<description><![CDATA[<p>The Flex Skin Design Extensions are a set of extensions for various Adobe Creative Suite 3 applications (notably Flash, Photoshop, Illustrator, and Fireworks) that allow you to easily create skins for various Flex components and other assets (such as cursor manager, drag manager, etc.)</p> <p>To quote the <a href="http://labs.adobe.com/downloads/flex_sdext.html">Flex Skin Design Extensions page on the [...]]]></description>
			<content:encoded><![CDATA[<p>The Flex Skin Design Extensions are a set of extensions for various Adobe Creative Suite 3 applications (notably Flash, Photoshop, Illustrator, and Fireworks) that allow you to easily create skins for various Flex components and other assets (such as cursor manager, drag manager, etc.)</p>
<p>To quote the <a href="http://labs.adobe.com/downloads/flex_sdext.html">Flex Skin Design Extensions page on the Adobe Labs site</a>:</p>
<blockquote><p>
Flex 3 helps designers and developers to more easily work together by enabling you to import skins that were created in the Adobe Creative Suite 3 products, including Photoshop, Illustrator, Flash, and Fireworks. New extensions are available below for each of these CS3 products that will allow you to create and export Flex component skins that can then be consumed using the Flex Builder Skin Import Wizard.
</p></blockquote>
<p>Basically, the workflow is install the extension for the various products (each extension&#8217;s install instructions are different, so make sure you read the read me files), create a skin in CS3 program, and then import the skin into Flex Builder using the super-handy Import Skin Artwork wizard? Sound easy? You betcha!</p>
<p>Since I have Flash CS3 Professional installed and handy at home, we&#8217;ll take a look at the workflow.</p>
<p><span id="more-353"></span></p>
<p>First, head over to the <a href="http://labs.adobe.com/downloads/flex_sdext.html">Flex Skin Design Extensions page on the Adobe Labs site</a> and download the MXP file for the &#8220;Flex Skin Design Extension for Flash&#8221;. Before you can install the extension, you should have Flash CS3 and the Adobe Extension Manager CS3 already installed. Don&#8217;t have a copy of Adobe Flash CS3 (*gasp*)? Well, head over to <a href="http://www.adobe.com/go/tryflash">http://www.adobe.com/go/tryflash</a> and download a 30 day trial version (downloading requires an Adobe account &#8212; <a href="http://www.adobe.com/go/flashpro_sysreq">check out the Flash CS3 system requirements</a>). If you don&#8217;t already have the Extension Manager installed, you can <a href="http://www.adobe.com/go/extensionmanager">download the Adobe Extension Manager CS3 (version 1.8)</a>. Extension Manager 1.8 includes support for the Dreamweaver CS3, Fireworks CS3, and Flash CS3 releases.</p>
<p>To install the MXP, simply double-click to launch the Adobe Extension Manager. The Extension Manager will bring up an end user license agreement for the Flex Skinning Templates extension which you must read and accept before proceeding. After clicking the Accept button, the extension is installed, and you can close the Extension Manager application.</p>
<p>Again, to quote the Flex Skin Design Extension for Flash section of the <a href="http://labs.adobe.com/downloads/flex_sdext.html">Flex Skin Design Extensions page on the Adobe Labs site</a>:</p>
<blockquote><p>
These templates, in conjunction with the Flash Component Kit, enable you to create and export a skin in Flash CS3 and then import it into Flex Builder using the Skin Import Wizard. To install the Flash Component Kit, follow the readme instructions found in the /frameworks/flash-integration/ folder in the Flex 3 SDK.
</p></blockquote>
<p class="note">For more information on installing the Component Kit, see <a href="http://blog.flexexamples.com/2007/09/02/installing-the-flex-component-kit-for-flash-cs3/">Installing the Flex Component Kit for Flash CS3</a>.</p>
<p>Next, launch Flash CS3 Professional and select either &#8220;Flex Skins&#8221; under the &#8220;Create from Template&#8221; section on the Flash Welcome Screen, or select File > New from the main menu and then select Templates > Flex Skins from the New from Template dialog box. Now the fun part. Simply select a template, and start customizing. Just for giggles, I&#8217;m going to select the Tree template and click OK.</p>
<p>You&#8217;re presented with a very clean template showing the Tree control&#8217;s border skin, default leaf icon, disclosure closed icon, disclosure open icon, folder closed icon, and folder open icon. You can customize these assets however you see fit, such as changing colors, or replacing the assets completely with your own graphics.</p>
<p class="note">For more information on the default values for the Flex Tree control, see <a href="http://blog.flexexamples.com/2007/11/26/displaying-the-default-icons-from-a-flex-tree-control/">Displaying the default icons from a Flex Tree control</a>.</p>
<p>Once you are finished, simply save and publish the Flash document to generate the SWF and SWC files. (If you want, you can now close Flash CS3.) Launch Flex Builder 3 and create a new Flex project (or you can open an existing document, your call). Next, in my Flex document I entered the following code:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Tree_skin_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/12/06/installing-the-flex-skin-design-extensions-for-cs3-from-adobe-labs/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:XML id="xmlDP"&gt;
        &lt;node&gt;
            &lt;node label="1.a" /&gt;
            &lt;node label="1.b" /&gt;
            &lt;node label="1.c"&gt;
                &lt;node label="1.c.i" /&gt;
                &lt;node label="1.c.ii" /&gt;
                &lt;node label="1.c.iii" /&gt;
                &lt;node label="1.c.iv" /&gt;
                &lt;node label="1.c.v" /&gt;
            &lt;/node&gt;
            &lt;node label="1.d" /&gt;
            &lt;node label="1.e"&gt;
                &lt;node label="1.e.i" /&gt;
                &lt;node label="1.e.ii" /&gt;
                &lt;node label="1.e.iii"&gt;
                    &lt;node label="1.e.iii.A" /&gt;
                &lt;/node&gt;
                &lt;node label="1.e.iv" /&gt;
            &lt;/node&gt;
            &lt;node label="1.f" /&gt;
        &lt;/node&gt;
    &lt;/mx:XML&gt;

    &lt;mx:Tree id="tree"
            dataProvider="{xmlDP}"
            labelField="@label"
            showRoot="false"
            width="50%"
            rowCount="6" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Tree_skin_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Tree_skin_test/bin/main.html" width="100%" height="200"></iframe></p>
<p>After entering the previous code, save and run the Flex project. You should see a Tree control with the default skins applied. Now for the fun part, select File > Import > Skin Artwork from the main menu in Flex Builder 3. In the Import Skin Artwork dialog box, select the &#8220;SWC or SWF File&#8221; radio button and hit browse. Locate the SWC file created earlier where you saved and published your Flash document. Hit the Next button to select the skins to import into your Flex project. Items with a check will be imported into the Flex project and the associated CSS document. Leave the default values selected (&#8220;Tree_borderSkin&#8221;, &#8220;Tree_defaultLeafIcon&#8221;, &#8220;Tree_disclosureClosedIcon&#8221;, &#8220;Tree_disclosureOpenIcon&#8221;, &#8220;Tree_folderClosedIcon&#8221;, and &#8220;Tree_folderOpenIcon&#8221;) and hit Finish. You&#8217;ll notice that Flex Builder 3 added a CSS and SWC document to your Flex project&#8217;s /src/ folder. Also, if you open up the Flex project&#8217;s main MXML document, you can see that it also added an &lt;mx:Style /&gt; tag which includes the new CSS document. Save and run the Flex project again and you should see that the Tree control now has your customized skins applied.</p>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Tree_skin_test_2/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Tree_skin_test_2/bin/main.html" width="100%" height="200"></iframe></p>
<p>Congratulations, you&#8217;ve just created and imported your own custom Flex skins from Flash CS3!</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Installing the Flex Skin Design Extensions for CS3 from Adobe Labs on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/12/06/installing-the-flex-skin-design-extensions-for-cs3-from-adobe-labs/',contentID: 'post-353',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: '',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/12/06/installing-the-flex-skin-design-extensions-for-cs3-from-adobe-labs/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Installing the Flex Component Kit for Flash CS3</title>
		<link>http://blog.flexexamples.com/2007/09/02/installing-the-flex-component-kit-for-flash-cs3/</link>
		<comments>http://blog.flexexamples.com/2007/09/02/installing-the-flex-component-kit-for-flash-cs3/#comments</comments>
		<pubDate>Sun, 02 Sep 2007 18:23:33 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Extension Manager]]></category>
		<category><![CDATA[Flash CS3]]></category>
		<category><![CDATA[Flex Component Kit]]></category>
		<category><![CDATA[MXP]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/02/installing-the-flex-component-kit-for-flash-cs3/</guid>
		<description><![CDATA[<p>First of all, what *is* the Flex Component Kit, you may be asking yourself. If you havent tried the kit before, the Flex Component Kit (or the semi-awkwardly initialled &#8216;FCK&#8217;) was first released on Adobe Labs for Flex Builder 2.0.1 (see &#8220;<a href="http://labs.adobe.com/wiki/index.php/Flex_Component_Kit_for_Flash_CS3">Flex Component Kit for Flash CS3</a>&#8220;) in April of 2007. It allowed developers to &#8220;create interactive, animated [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, what <em>*is*</em> the Flex Component Kit, you may be asking yourself. If you havent tried the kit before, the Flex Component Kit (or the semi-awkwardly initialled &#8216;FCK&#8217;) was first released on Adobe Labs for Flex Builder 2.0.1 (see &#8220;<a href="http://labs.adobe.com/wiki/index.php/Flex_Component_Kit_for_Flash_CS3">Flex Component Kit for Flash CS3</a>&#8220;) in April of 2007. It allowed developers to &#8220;create interactive, animated content in Flash, and use it in Flex as a Flex component&#8221; (to quote the previously mentioned Adobe Labs page). To use the kit, all you needed was Flash CS3, Flex Builder 2.0.1 (or Flex 2.0.1 SDK), the Adobe Extension Manager 1.8 (which I believe should get installed when you installed Flash CS3) and a Flex 2.0.1 patch for CS3 Compatibility.</p>
<p>Well, with Flex Builder 3 (or Flex 3 SDK), the set up is a bit simpler as the Flash extension files (the MXP) are shipped with the Flex SDK, and you no longer need the patch for CS3 compatibility. Simply download the latest Flex 3 SDK, extract, and double-click the MXP file to install the Flash extension.</p>
<p>Full details after the jump.</p>
<p><span id="more-38"></span></p>
<p><strong>System Requirements for the Flex Component Kit</strong><br />
To use the Flex Component Kit for Flash CS3, you&#8217;ll need to have the following software installed:</p>
<ul>
<li>Flex 3 (<a href="http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html">download free SDK</a>) or Flex Builder 3 (<a href="http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobeflexbuilder3">download beta free trial</a>)</li>
<li>Flash CS3 Professional (<a href="http://www.adobe.com/go/tryflash">download free trial</a>)</li>
<li>Adobe Extension Manager CS3 (Version 1.8) &#8212; this should have been installed with Flash CS3. If not, you can download the Adobe Extension manager from <a href="http://www.adobe.com/go/em_download">www.adobe.com/go/em_download</a>.</li>
</ul>
<p><strong>Downloading the latest Flex 3 SDK</strong><br />
Point your browser of choice over to: <nobr><a href="http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html" target="_blank">http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html</a></nobr> and click the check box stating you have read whatever needs to be read. This enables the display of nightly SDK builds so that now if you scroll down to the &#8220;Recent Nightly Builds of the Flex 3 SDK&#8221; section, you should see a list of available builds. Click the &#8220;Download&#8221; link next to the latest build and save the ZIP file somewhere easily accessible (such as your user directory or your desktop). Once the download completes, locate the file and extract the files from the ZIP archive. At this point, you can (and probably should) install the latest SDK build by following these instructions &#8220;<a href="http://blog.flexexamples.com/2007/07/19/installing-the-latest-nightly-flex-3-sdk-build-into-flex-builder-3/">Installing the latest nightly Flex 3 SDK build into Flex Builder 3</a>&#8220;.</p>
<p class="alert">The Flex Component Kit was removed from the final version of the Flex 3 SDK. To download the Flex Skin Design Extensions and Flex Component Kit for Flash CS3, go to <a href="http://www.adobe.com/go/flex3_cs3_swfkit" target="_blank">http://www.adobe.com/go/flex3_cs3_swfkit</a>.</p>
<p><strong>Installing the Flex Component Kit for Flash CS3</strong><br />
Once you have the SDK files downloaded, you can locate the MXP file and double-click it to install the Flash extension. If you have a previous version of the Flex Component Kit already installed, I&#8217;d recommend uninstalling it before proceeding. Currently (as of September 2, 2007), the latest version of the Flex Component Kit is 1.1.1.</p>
<p>To uninstall the Flex Component Kit, open the Adobe Extension Manager by selecting &#8220;Start > All Programs > Adobe > Adobe Extension Manager CS3&#8243; (in Windows XP). Conversely, you can also launch the &#8220;Extension Manager.exe&#8221; file from &#8220;C:\Program Files\Adobe\Adobe Extension Manager&#8221;.  To delete your existing copy of the Flex Component Kit, highlight the extension with your mouse and click the &#8220;Remove Extension&#8221; button (trash can icon), or select &#8220;File > Remove Extension&#8221; from the main menu. With the old extension removed, next we&#8217;ll look at installing the Component Kit MXP from the ZIP archive in the previous section.</p>
<p>To install the Flex Component Kit, locate the MXP file in the ZIP archive you downloaded and extracted in the previous section, &#8220;Downloading the latest Flex 3 SDK&#8221;. The MXP file, FlexComponentKit.mxp, is located in the &#8220;[flex_sdk_3.zip]\frameworks\flash-integration\&#8221; folder. To install the file, simply double click the MXP file to launch the Adobe Extension Manager and then read and accept the disclaimer. Once you are finished you can close the Adobe Extension Manager. There is also a readme.txt file in the same directory as the MXP file, and the readme contains a few useful links, system requirements, and installation instructions.</p>
<p class="note">If you want to view the source of the Flex Component Kit (*.JSFL, *.FLA, *.AS), you can find the full source in the following directory: &#8220;[flex_sdk_3.zip]\frameworks\projects\flash-integration\&#8221; (note the addition of the &#8220;projects&#8221; folder in the path. This folder also includes a readme.txt file which contains a URL to some documentation and a reference to find the MXP file which we covered above.</p>
<p><strong>Updating existing files to use the latest Flex Component Kit code</strong><br />
If you&#8217;ve already published files with an older version of the Flex Component Kit (1.1.0, for example), you can follow these quick and easy steps to update the code without having to rebuild the assets from scratch:</p>
<ul>
<li>Open the FLA.</li>
<li>Delete the FlexComponentBase symbol from the Library.</li>
<li>Drag the FlexComponentBase symbol from the Components panel to the Library.</li>
<li>Publish the FLA.</li>
</ul>
<p><strong>Where to go from here</strong><br />
This was just a quick introduction/walkthrough of installing the Flex Component Kit. In future posts I&#8217;ll show how create assets using Flash CS3 and then import them into a Flex Builder project.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Installing the Flex Component Kit for Flash CS3 on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/09/02/installing-the-flex-component-kit-for-flash-cs3/',contentID: 'post-38',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: '',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/09/02/installing-the-flex-component-kit-for-flash-cs3/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

