<?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; View Source</title>
	<atom:link href="http://blog.flexexamples.com/category/view-source/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>Publishing a project&#8217;s source code in Flex Builder 3 beta 2</title>
		<link>http://blog.flexexamples.com/2007/10/21/publishing-a-projects-source-code-in-flex-builder-3-beta-2/</link>
		<comments>http://blog.flexexamples.com/2007/10/21/publishing-a-projects-source-code-in-flex-builder-3-beta-2/#comments</comments>
		<pubDate>Sun, 21 Oct 2007 07:20:59 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[Flex Builder 3]]></category>
		<category><![CDATA[View Source]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/21/publishing-a-projects-source-code-in-flex-builder-3-beta-2/</guid>
		<description><![CDATA[<p>I briefly touched on this in my previous post, <a href="http://blog.flexexamples.com/2007/10/20/publishing-a-release-version-of-a-flex-project/">&#8220;Publishing a release version of a Flex project&#8221;</a>, but I thought it was important enough to dedicate a new entry to.</p> <p>If you are just getting started with Flex Builder 3 (or Flex in general), or are migrating from Flex Builder 2 or Flex Builder [...]]]></description>
			<content:encoded><![CDATA[<p>I briefly touched on this in my previous post, <a href="http://blog.flexexamples.com/2007/10/20/publishing-a-release-version-of-a-flex-project/">&#8220;Publishing a release version of a Flex project&#8221;</a>, but I thought it was important enough to dedicate a new entry to.</p>
<p>If you are just getting started with Flex Builder 3 (or Flex in general), or are migrating from Flex Builder 2 or Flex Builder 3 beta 1, the steps to enable the &#8220;view source&#8221; context menu in your Flex applications has changed somewhat.</p>
<p>Currently (as of Flex Builder 3 beta 2), if you want to enable view source, you can do so in the &#8220;Export Release Version&#8221; dialog box (found by selecting Project &gt; Export Release Version from the main menu), and clicking the &#8220;Enable view source&#8221; check box in the View source section. If you want to specify which files are included/excluded, simply click on the Choose Source Files button and check or uncheck files at your leisure. For example, in some of my examples, I may not include fonts which I downloaded elsewhere from the Internet. So I would go into the Export Release Version dialog box, click on Choose Source Files and deselect the fonts and then publish my Flex application. Of course, I always include a note explaining where you can obtain the specific fonts I used, but it makes it so developers visit the site, check out the copyright information, and sends a bit of traffic to the font makers site. But I digress&#8230; Back in the Publish Application Source dialog box (which can be found by clicking the Choose Source Files buton in the Export Release Version dialog box, whew!), you can also specify where the generated source files will be copied to. By default the files will be placed in a folder named /srcview/ within your /bin-release/ folder of the published project files.</p>
<p>There you have it. Publishing your application source files with Flex Builder 3 (beta 2). Most, if not all, of the SWFs on this site should have view source enabled. Simply right-click on a SWF file and select View Source from the context menu. This allows you to view a nicely formatted/colored version of the source code, as well as download the source files as a handy ZIP file, or click on a link to download the Flex 2/3 SDK.</p>
<p>And remember, &#8220;sharing is caring&#8221;(tm).</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Publishing a project\&#039;s source code in Flex Builder 3 beta 2 on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/10/21/publishing-a-projects-source-code-in-flex-builder-3-beta-2/',contentID: 'post-245',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/10/21/publishing-a-projects-source-code-in-flex-builder-3-beta-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Publishing a release version of a Flex project</title>
		<link>http://blog.flexexamples.com/2007/10/20/publishing-a-release-version-of-a-flex-project/</link>
		<comments>http://blog.flexexamples.com/2007/10/20/publishing-a-release-version-of-a-flex-project/#comments</comments>
		<pubDate>Sun, 21 Oct 2007 06:27:27 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta]]></category>
		<category><![CDATA[Export Release Version]]></category>
		<category><![CDATA[Flex Builder 3]]></category>
		<category><![CDATA[View Source]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/20/publishing-a-release-version-of-a-flex-project/</guid>
		<description><![CDATA[<p>In Flex 3 Beta 2, the default application publishing behavior changed slightly. Now, by default a debug version of your Flex application will be generated when you select Run or Debug. Due to the file size differences between a debug and release version of a SWF file, you&#8217;d never want to deploy a debug version [...]]]></description>
			<content:encoded><![CDATA[<p>In Flex 3 Beta 2, the default application publishing behavior changed slightly. Now, by default a debug version of your Flex application will be generated when you select Run or Debug. Due to the file size differences between a debug and release version of a SWF file, you&#8217;d never want to deploy a debug version of a SWF into a production environment.</p>
<p>For example, consider the following simple, yet rediculous example:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="absolute"&gt;

    &lt;mx:String id="str" /&gt;

    &lt;mx:DataGrid /&gt;
    &lt;mx:List /&gt;
    &lt;mx:Button /&gt;
    &lt;mx:Accordion /&gt;
    &lt;mx:TileList /&gt;
    &lt;mx:Panel /&gt;
    &lt;mx:HSlider /&gt;
    &lt;mx:TextArea /&gt;
    &lt;mx:TabBar /&gt;
    &lt;mx:Label text="{str}" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>If you select Run &gt; Run from the main menu, the file size of the generated SWF file is roughly 490 KB. By exporting a release version of the same project, the SWF size drops conderably down to roughly 300 KB (saving you about 190 KB, or 39% file size).</p>
<p>This is all good in theory, but how do you export a release version of a SWF, you may be asking yourself. Why, simply select Project &gt; Export Release Version from the main menu. Flex Builder brings up the Export Release Version dialog box which lets you specify a path where the optimized release version SWF/HTML/JavaScript files are located (you may or may not see all these files depending on what settings you specified in the project properties Flex Compiler settings). By default the release version of the files will be located in a /bin-release/ folder. If you want to enable the right-click view source option for your Flex application, select the Enable view source check box and optionally select which source files will be included. When you are finished with the Export Release Version dialog box, simply click Finish and Flex Builder will generate/copy all the files based on your project settings. Simply navigate to the project folder on your hard drive and copy/upload the desired files to the server.</p>
<p>Congratulations, you just deployed a release version of a Flex app!</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Publishing a release version of a Flex project on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/10/20/publishing-a-release-version-of-a-flex-project/',contentID: 'post-244',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/10/20/publishing-a-release-version-of-a-flex-project/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

