<?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>M Studio Labs</title>
	<atom:link href="http://labs.mstudio.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://labs.mstudio.com</link>
	<description>Recent Work, Flash Resources and News</description>
	<lastBuildDate>Thu, 01 Jul 2010 22:45:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>FDT How-To: FTP Your Production Files with Ant</title>
		<link>http://labs.mstudio.com/?p=375</link>
		<comments>http://labs.mstudio.com/?p=375#comments</comments>
		<pubDate>Thu, 01 Jul 2010 22:40:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ant]]></category>
		<category><![CDATA[FDT/Eclipse]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=375</guid>
		<description><![CDATA[Ant is a great little build tool which allows you to automate all sorts of things like compiling code, moving/copying files, creating .zip archives and using FTP to upload. The latest version of FDT has a library of Ant commands specific to Flash. There are a bunch of articles listed below which explain some of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://labs.mstudio.com/?p=375"><img class="alignnone size-full wp-image-400" title="ant_landing" src="http://labs.mstudio.com/wp-content/uploads/ant_landing.jpg" alt="" width="700" height="311" /></a></p>
<p>Ant is a great little build tool which allows you to automate all sorts of things like compiling code, moving/copying files, creating .zip archives and using FTP to upload. The latest version of FDT has a library of Ant commands specific to Flash. There are a bunch of articles listed below which explain some of the other features, but I&#8217;m going to focus on FTP here.</p>
<p><span id="more-375"></span></p>
<p>Whenever I have a project in FDT, I eventually want to post my bin directory to a server so that the client can review it. I usually also post a .zip of the folder so that they can deploy it on their own server. Here&#8217;s what I want my build file to do:</p>
<ul>
<li>Compile the SWF</li>
<li>Export a clean &#8220;deploy&#8221; copy of the bin directory, without any .svn properties, etc.</li>
<li>Create a .zip of the &#8220;deploy&#8221; directory</li>
<li>Upload &#8220;deploy&#8221; files to the web server and delete the local copy</li>
<li>In the console, display the link to the site and .zip file so they can easily be pasted into an e-mail</li>
</ul>
<p><strong>Step 1: Install the FTP Java Libraries</strong></p>
<p>The Ant build tool is installed with FDT, but it doesn&#8217;t include the FTP Java libraries. You can download them at the links below. Extract &#8220;commons-net-2.0.jar&#8221; and &#8220;jakarta-oro-2.0.8.jar&#8221; from the .zip archives and place both files in your ant bin directory, which probably looks something like &#8220;FDT\plugins\org.apache.ant_#####\bin\&#8221;</p>
<p><strong>Java FTP Libraries:</strong><br />
<a href="http://www.apache-mirror.com/commons/net/binaries/commons-net-2.0.zip">commons-net-2.0.jar</a><br />
<a href="http://apache.hippo.nl/jakarta/oro/binaries/jakarta-oro-2.0.8.zip">jakarta-oro-2.0.8.jar</a></p>
<p><strong><em>Note:</em></strong> If you want to skip the step-by-step, you can download the <a href="http://labs.mstudio.com/wp-content/uploads/ant_build.zip">final Ant build file here.</a></p>
<p>Once those files are in place, you need to add them to the Ant classpath in FDT (image below). Go to &#8220;Preferences &gt; Ant &gt; Runtime&#8221;. Click the &#8220;Classpath&#8221; tab. Select the first entry, named &#8220;Ant Home Entries (Default)&#8221; and then select &#8220;Add External JARs&#8230;&#8221; Add the 2 jar files from above and then click Ok.</p>
<p><img class="alignnone size-full wp-image-403" title="ant_libraries" src="http://labs.mstudio.com/wp-content/uploads/ant_libraries.jpg" alt="" width="700" height="507" /></p>
<p><strong>Step 2: Add Your Ant Build File</strong></p>
<p>In your FDT project, right click and select &#8220;New &gt; Folder&#8221;. Name it &#8220;ant&#8221;.<br />
Next, right-click that folder and select &#8220;New &gt; Other &gt; XML &gt; XML&#8221;. Name it &#8220;build.xml&#8221;.</p>
<p>In order to have FDT recognize this as an Ant file, go to &#8220;Window &gt; Show View &gt; Ant&#8221;. You&#8217;ll see the Ant window open. Drag your build.xml file into this window and FDT will recognize it properly.</p>
<p>Your project should look something like this:</p>
<p><img class="alignnone size-full wp-image-411" title="ant_explorer" src="http://labs.mstudio.com/wp-content/uploads/ant_explorer.jpg" alt="" width="700" height="301" /></p>
<p><strong>Step 3: Declare your Project Properties</strong></p>
<p>Open the &#8220;build.xml&#8221; in the editor and type the following:</p>
<pre class="brush: as3; highlight: [9,10,11,12,13];">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;project name=&quot;AntExample&quot; default=&quot;compile&quot;&gt;

	&lt;!-- declare all project-specific properties here --&gt;
	&lt;property name=&quot;version.num&quot; 	value=&quot;1&quot;/&gt;
	&lt;property name=&quot;src.dir&quot; 	value=&quot;${basedir}/../src&quot;/&gt;
	&lt;property name=&quot;bin.dir&quot; 	value=&quot;${basedir}/../bin&quot;/&gt;
	&lt;property name=&quot;deploy.dir&quot; 	value=&quot;${basedir}/../deploy&quot;/&gt;
	&lt;property name=&quot;ftp.server&quot; 	value=&quot;ftp.MYDOMAIN.com&quot;/&gt;
	&lt;property name=&quot;ftp.dir&quot; 	value=&quot;/httpdocs/PROJECTNAME/&quot;/&gt;
	&lt;property name=&quot;ftp.username&quot; 	value=&quot;USERNAME&quot;/&gt;
	&lt;property name=&quot;ftp.password&quot; 	value=&quot;PASSWORD&quot;/&gt;
	&lt;property name=&quot;site.url&quot; 	value=&quot;http://www.MYDOMAIN.com/PROJECTNAME/&quot;/&gt;

&lt;/project&gt;
</pre>
<p>These are the properties you&#8217;ll use in your Ant targets. You&#8217;ll need to edit the highlighted lines above as follows:</p>
<ul>
<li>ftp.server: your FTP/IP address to upload deploy files to</li>
<li>ftp.dir: the remote directory to upload to</li>
<li>ftp.username: FTP username</li>
<li>ftp.password: FTP username</li>
<li>optional: version.num: this will append the version number to the remote directory</li>
</ul>
<p><strong>Step 4: Create your &#8220;Compile&#8221; Target</strong></p>
<p>Next, add the following to the project node. This will create the SWF in the bin directory and open it in the External SWF Viewer:</p>
<pre class="brush: as3; highlight: [9,10,11,12,13];">
&lt;target name=&quot;compile&quot;&gt;
	&lt;fdt.launch.application
		projectname 	= &quot;AntExample&quot;
		mainClass		= &quot;${src.dir}/Main.as&quot;
		target 			= &quot;${bin.dir}/main.swf&quot;
		startswf 		= &quot;true&quot;
		swflauncher 	= &quot;External SWF Viewer&quot;
	/&gt;
&lt;/target&gt;
</pre>
<p><strong>Step 5: Create your &#8220;Export&#8221; Target</strong></p>
<p>The &#8220;Export&#8221; target will create a temporary directory named &#8220;deploy&#8221; and export all files, minus any meta data or .svn properties. You can filter out additional file types by using the &#8220;exclude&#8221; element. Note, that we&#8217;re adding a dependancy here named &#8220;compile&#8221;. This means that before &#8220;export&#8221; runs, &#8220;compile&#8221; should first be run. We need to make sure the bin folder has a SWF before exporting it:</p>
<pre class="brush: as3;">
&lt;target name=&quot;export&quot; depends=&quot;compile&quot;&gt;
		&lt;copy overwrite=&quot;true&quot; todir=&quot;${deploy.dir}&quot;&gt;
			&lt;fileset dir=&quot;${bin.dir}&quot;&gt;
				&lt;exclude name=&quot;**/.settings/**&quot; /&gt;
				&lt;exclude name=&quot;**/*.as3_classpath&quot;/&gt;
				&lt;exclude name=&quot;**/*.project&quot;/&gt;
				&lt;exclude name=&quot;**/.svn/**&quot; /&gt;
			&lt;/fileset&gt;
		&lt;/copy&gt;
   	&lt;/target&gt;
</pre>
<p><strong>Step 6: Create your &#8220;Export&#8221; and &#8220;Zip&#8221; Targets</strong></p>
<p>The &#8220;Export&#8221; target will create a temporary directory named &#8220;deploy&#8221; and export all files, minus any meta data or .svn properties. You can filter out additional file types by using the &#8220;exclude&#8221; element. Note, that we&#8217;re adding a dependancy here named &#8220;compile&#8221;. This means that before &#8220;export&#8221; runs, &#8220;compile&#8221; should first be run. We need to make sure the bin folder has a SWF before exporting it. The &#8220;Zip&#8221; target will just create an archive of the &#8220;deploy&#8221; directory:</p>
<pre class="brush: as3;">
&lt;target name=&quot;export&quot; depends=&quot;compile&quot;&gt;
		&lt;copy overwrite=&quot;true&quot; todir=&quot;${deploy.dir}&quot;&gt;
			&lt;fileset dir=&quot;${bin.dir}&quot;&gt;
				&lt;exclude name=&quot;**/.settings/**&quot; /&gt;
				&lt;exclude name=&quot;**/*.as3_classpath&quot;/&gt;
				&lt;exclude name=&quot;**/*.project&quot;/&gt;
				&lt;exclude name=&quot;**/.svn/**&quot; /&gt;
			&lt;/fileset&gt;
		&lt;/copy&gt;
   	&lt;/target&gt;
       &lt;target name=&quot;zip&quot; depends=&quot;export&quot;&gt;
		 &lt;zip file=&quot;${basedir}/../deploy.zip&quot;&gt;
			&lt;fileset dir=&quot;${basedir}/../&quot;&gt;
				&lt;include name=&quot;**/deploy/**&quot; /&gt;
			&lt;/fileset&gt;
		&lt;/zip&gt;
	&lt;/target&gt;
</pre>
<p><strong>Step 7: Create a target to upload the deploy files, delete them locally and print out the urls.</strong><br />
Note that the target first creates a directory on the server using &#8220;mkdir&#8221; before uploading files:</p>
<pre class="brush: as3;">
&lt;target name=&quot;upload&quot; depends=&quot;zip&quot;&gt;
			&lt;!-- create the directory on the server --&gt;
			 &lt;ftp action	=&quot;mkdir&quot;
		       server		=&quot;${ftp.server}&quot;
			 	userid		=&quot;${ftp.username}&quot;
				password	=&quot;${ftp.password}&quot;
		        remotedir	=&quot;${ftp.dir}${version.num}/&quot;/&gt;

			&lt;!-- upload the files to the new directory --&gt;
			&lt;ftp server		=&quot;${ftp.server}&quot;
				port			=&quot;21&quot;
				remotedir	=&quot;${ftp.dir}${version.num}/&quot;
				userid		=&quot;${ftp.username}&quot;
				password	=&quot;${ftp.password}&quot;
				passive		=&quot;no&quot;&gt; &lt;!-- YOU MAY NEED TO CHANGE TO &quot;yes&quot; DEPENDING ON YOUR SERVER --&gt;
				&lt;fileset dir  =&quot;${deploy.dir}/&quot;/&gt;
				&lt;fileset file =&quot;${basedir}/../deploy.zip&quot;/&gt;
			&lt;/ftp&gt;

			&lt;!-- delete the deploy files from the file system --&gt;
			&lt;delete dir=&quot;${deploy.dir}/&quot;/&gt;
			&lt;delete file=&quot;${basedir}/../deploy.zip&quot;/&gt;

			&lt;!-- output the urls --&gt;
			&lt;echo message=&quot;Preview: ${site.url}${version.num}/&quot;/&gt;
			&lt;echo message=&quot;Files: ${site.url}${version.num}/deploy.zip&quot; /&gt;

&lt;/target&gt;
</pre>
<p>That&#8217;s about it. You can grab my Ant file <a href="http://labs.mstudio.com/wp-content/uploads/ant_build.zip">here</a>, and you can see the full code here:</p>
<pre class="brush: as3;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;project name=&quot;AntExample&quot; default=&quot;compile&quot;&gt; 

	&lt;!-- declare all project-specific properties here --&gt;
	&lt;property name=&quot;version.num&quot; 	value=&quot;1&quot;/&gt;
	&lt;property name=&quot;src.dir&quot; 		value=&quot;${basedir}/../src&quot;/&gt;
	&lt;property name=&quot;bin.dir&quot; 		value=&quot;${basedir}/../bin&quot;/&gt;
	&lt;property name=&quot;deploy.dir&quot; 	value=&quot;${basedir}/../deploy&quot;/&gt;
	&lt;property name=&quot;ftp.server&quot; 	value=&quot;ftp.MYDOMAIN.com&quot;/&gt;
	&lt;property name=&quot;ftp.dir&quot; 		value=&quot;/httpdocs/PROJECTNAME/&quot;/&gt;
	&lt;property name=&quot;ftp.username&quot; 	value=&quot;USERNAME&quot;/&gt;
	&lt;property name=&quot;ftp.password&quot; 	value=&quot;PASSWORD&quot;/&gt;
	&lt;property name=&quot;site.url&quot; 		value=&quot;http://www.MYDOMAIN.com/PROJECTNAME/&quot;/&gt;

	&lt;target name=&quot;reset&quot;&gt;
		&lt;fdt.launch.resetFCSH/&gt;
	&lt;/target&gt;

	&lt;target name=&quot;compile&quot;&gt;
		&lt;fdt.launch.application
			projectname 	= &quot;AntExample&quot;
			mainClass		= &quot;${src.dir}/Main.as&quot;
			target 			= &quot;${bin.dir}/main.swf&quot;
			startswf 		= &quot;true&quot;
			swflauncher 	= &quot;External SWF Viewer&quot;
		/&gt;
	&lt;/target&gt;

	&lt;!-- this will copy the bin folder to the deploy folder,
	removing all non-essential files and directories --&gt;
	&lt;target name=&quot;export&quot; depends=&quot;compile&quot;&gt;
		&lt;copy overwrite=&quot;true&quot; todir=&quot;${deploy.dir}&quot;&gt;
			&lt;fileset dir=&quot;${bin.dir}&quot;&gt;
				&lt;exclude name=&quot;**/.settings/**&quot; /&gt;
				&lt;exclude name=&quot;**/*.as3_classpath&quot;/&gt;
				&lt;exclude name=&quot;**/*.project&quot;/&gt;
				&lt;exclude name=&quot;**/.svn/**&quot; /&gt;
			&lt;/fileset&gt;
		&lt;/copy&gt;
   	&lt;/target&gt;

	&lt;!-- this will copy the bin folder to the deploy folder,
		removing all non-essential files and directories --&gt;
	&lt;target name=&quot;zip&quot; depends=&quot;export&quot;&gt;
		 &lt;zip file=&quot;${basedir}/../deploy.zip&quot;&gt;
			&lt;fileset dir=&quot;${basedir}/../&quot;&gt;
				&lt;include name=&quot;**/deploy/**&quot; /&gt;
			&lt;/fileset&gt;
		&lt;/zip&gt;
	&lt;/target&gt;

	&lt;!-- upload the deploy directory and zip,
		delete the files and print out the urls --&gt;

	&lt;target name=&quot;upload&quot; depends=&quot;zip&quot;&gt;
			&lt;!-- create the directory on the server --&gt;
			 &lt;ftp action	=&quot;mkdir&quot;
		       server		=&quot;${ftp.server}&quot;
			 	userid		=&quot;${ftp.username}&quot;
				password	=&quot;${ftp.password}&quot;
		        remotedir	=&quot;${ftp.dir}${version.num}/&quot;/&gt;

			&lt;!-- upload the files to the new directory --&gt;
			&lt;ftp server		=&quot;${ftp.server}&quot;
				port			=&quot;21&quot;
				remotedir	=&quot;${ftp.dir}${version.num}/&quot;
				userid		=&quot;${ftp.username}&quot;
				password	=&quot;${ftp.password}&quot;
				passive		=&quot;no&quot;&gt; &lt;!-- YOU MAY NEED TO CHANGE TO &quot;yes&quot; DEPENDING ON YOUR SERVER --&gt;
				&lt;fileset dir  =&quot;${deploy.dir}/&quot;/&gt;
				&lt;fileset file =&quot;${basedir}/../deploy.zip&quot;/&gt;
			&lt;/ftp&gt;

			&lt;!-- delete the deploy files from the file system --&gt;
			&lt;delete dir=&quot;${deploy.dir}/&quot;/&gt;
			&lt;delete file=&quot;${basedir}/../deploy.zip&quot;/&gt;

			&lt;!-- output the urls --&gt;
			&lt;echo message=&quot;Preview: ${site.url}${version.num}/&quot;/&gt;
			&lt;echo message=&quot;Files: ${site.url}${version.num}/deploy.zip&quot; /&gt;

	&lt;/target&gt;

&lt;/project&gt;
</pre>
<p> Links to other resources and tutorials:<br />
<a href="http://fdt.powerflasher.com/blog/?p=1392" target="_blank">FDT HTML Template using Ant</a><br />
<a href="http://blog.alanklement.com/2009/08/10/fdt-and-ant-a-users-guide-part-i/" target="_blank">FDT and ANT | A User’s Guide – Part I</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=375</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Papervision: Macmillan/McGraw-Hill</title>
		<link>http://labs.mstudio.com/?p=309</link>
		<comments>http://labs.mstudio.com/?p=309#comments</comments>
		<pubDate>Tue, 08 Jun 2010 20:11:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Papervision 3D]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=309</guid>
		<description><![CDATA[We recently built a Papervision site for M/MH and SirenMG. The site is used by teachers and administrators to learn about Macmillan/McGraw-Hill&#8217;s software products. Users can filter by features like phonics, writing and vocabulary. They can also zoom in on each product to see details, videos and animations. Check it out here.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mstudio.com/work/mmh/" target="_blank"><img src="http://labs.mstudio.com/wp-content/uploads/mmh.jpg" alt="Macmillan/McGraw-Hill" /></a></p>
<p>We recently built a Papervision site for M/MH and <a href="http://www.sirenmg.com/" target="blank">SirenMG</a>. The site is used by teachers and administrators to learn about Macmillan/McGraw-Hill&#8217;s software products. Users can filter by features like phonics, writing and vocabulary. They can also zoom in on each product to see details, videos and animations. </p>
<p>Check it out <a href="http://www.mstudio.com/work/mmh/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=309</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Paramount Pictures</title>
		<link>http://labs.mstudio.com/?p=322</link>
		<comments>http://labs.mstudio.com/?p=322#comments</comments>
		<pubDate>Tue, 08 Jun 2010 19:24:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=322</guid>
		<description><![CDATA[We built the home page, media player and Top 10 Flash Widget for the Paramount Pictures website. All content within the Flash modules is loaded via XHTML from a Drupal framework.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.paramount.com/" target="_blank"><img src="http://labs.mstudio.com/wp-content/uploads/paramount.jpg" alt="Paramount Pictures" /></a></p>
<p>We built the <a href="http://www.paramount.com/" target="_blank">home page</a>, <a href="http://www.paramount.com/movies/iron-man-2/details/theaters" target="_blank">media player</a> and <a href="http://www.paramount.com/community/widgets/top-ten-list" target="_blank">Top 10 Flash Widget</a> for the Paramount Pictures website. All content within the Flash modules is loaded via XHTML from a Drupal framework.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=322</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Toyota: History of Tailgating</title>
		<link>http://labs.mstudio.com/?p=334</link>
		<comments>http://labs.mstudio.com/?p=334#comments</comments>
		<pubDate>Fri, 04 Jun 2010 20:53:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=334</guid>
		<description><![CDATA[This website is an interactive book detailing a fictional history of tailgating parties. The 16 chapters correspond to weeks in the 2009-2010 NFL football season. Each week, a new chapter is unlocked. There are 3 additional chapters throughout the book, highlighting features of Toyota SUV/Trucks. For this project, we also developed an application using Facebook [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://100k.nbcsports.com/toyota/" target="_blank"><img src="http://labs.mstudio.com/wp-content/uploads/toyota.jpg" alt="Toyota" /></a></p>
<p>This website is an interactive book detailing a fictional history of tailgating parties. The 16 chapters correspond to weeks in the 2009-2010 NFL football season. Each week, a new chapter is unlocked. There are 3 additional chapters throughout the book, highlighting features of Toyota SUV/Trucks.</p>
<p>For this project, we also developed an application using Facebook Connect. Users can log in using their facebook account. Based on their friends, location, and name, we pair them with a chapter in the book such as &#8220;chicken wings&#8221; or &#8220;cheesehead&#8221;.</p>
<p>View it <a href="http://100k.nbcsports.com/toyota/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=334</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eBay ECG: 2010 Webby Honoree</title>
		<link>http://labs.mstudio.com/?p=296</link>
		<comments>http://labs.mstudio.com/?p=296#comments</comments>
		<pubDate>Thu, 03 Jun 2010 19:52:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Awards]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=296</guid>
		<description><![CDATA[The eBay Classifieds Group website was chosen as an official Honoree. Check out the Flash modules we developed here, here and here.]]></description>
			<content:encoded><![CDATA[<p>The eBay Classifieds Group website was chosen as an <a href="http://www.webbyawards.com/webbys/current_honorees.php?category_id=90" target="_blank">official Honoree</a>. Check out the Flash modules we developed <a href="http://www.ebayclassifiedsgroup.com/" target="_blank">here</a>, <a href="http://www.ebayclassifiedsgroup.com/about-us/timeline" target="_blank">here</a> and <a href="http://www.ebayclassifiedsgroup.com/brands" target="_blank">here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=296</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Few Quick Eclipse Tips</title>
		<link>http://labs.mstudio.com/?p=303</link>
		<comments>http://labs.mstudio.com/?p=303#comments</comments>
		<pubDate>Thu, 03 Jun 2010 19:51:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FDT/Eclipse]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=303</guid>
		<description><![CDATA[Eclipse is great, but sometimes the option menus are a little overwhelming. Every time I install a fresh copy of Eclipse, I pull my hair out looking for a handful of preferences. Here they are &#8212; hopefully someone will find this useful: Change the editor font: Preferences > General > Appearance > Colors and Fonts [...]]]></description>
			<content:encoded><![CDATA[<p>Eclipse is great, but sometimes the option menus are a little overwhelming. Every time I install a fresh copy of Eclipse, I pull my hair out looking for a handful of preferences. Here they are &#8212; hopefully someone will find this useful:</p>
<p><strong>Change the editor font:</strong><br />
Preferences > General > Appearance > Colors and Fonts > Basic > Text Font</p>
<p>These are great fonts, btw: <a href="http://www.proggyfonts.com/" target="blank">&#8220;proggy_fonts&#8221;</a></p>
<p><strong>Remove the annoying vertical line in the editor window (print margin):</strong><br />
Preferences > General>Editors > Text Editors: &#8220;Print Margin&#8221;</p>
<p><strong>Remove the line highlight in the main editor:</strong><br />
Preferences > General>Editors > Text Editors : &#8220;Highlight Current Line&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=303</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cosmo&#8217;s Ultimate Hair Makeover Tool</title>
		<link>http://labs.mstudio.com/?p=340</link>
		<comments>http://labs.mstudio.com/?p=340#comments</comments>
		<pubDate>Wed, 21 Apr 2010 01:31:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=340</guid>
		<description><![CDATA[For Cosmopolitan Magazine, we developed a quiz which allows a user to determine her ultimate haircut and style. The results are based on the shape of the user&#8217;s face and the type of her hair. The results also offer haircut and styling tips. The client can also customize the tool to highlight hair products from [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mstudio.com/work/cosmo/" target="_blank"><img src="http://labs.mstudio.com/wp-content/uploads/cosmo.jpg" alt="Cosmo" /></a></p>
<p>For Cosmopolitan Magazine, we developed a quiz which allows a user to determine her ultimate haircut and style. The results are based on the shape of the user&#8217;s face and the type of her hair. The results also offer haircut and styling tips. The client can also customize the tool to highlight hair products from a sponsor.</p>
<p>Check it out <a href="http://www.mstudio.com/work/cosmo/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=340</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Seventeen: Prom Dress Finder</title>
		<link>http://labs.mstudio.com/?p=347</link>
		<comments>http://labs.mstudio.com/?p=347#comments</comments>
		<pubDate>Sun, 21 Mar 2010 01:35:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=347</guid>
		<description><![CDATA[We created a Flash front-end and content management system for Seventeen&#8217;s Prom Dress Finder. The tool allows a user to search a database of over 2000 dresses and filter by color, price range, designer and style. The user can then save her results and print them or post them directly to her Facebook wall. Check [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.seventeen.com/prom/dresses/prom-dress-finder" target="_blank"><img src="http://labs.mstudio.com/wp-content/uploads/dressfinder.jpg" alt="Seventeen: Prom Dress Finder" /></a></p>
<p>We created a Flash front-end and content management system for Seventeen&#8217;s Prom Dress Finder. The tool allows a user to search a database of over 2000 dresses and filter by color, price range, designer and style. The user can then save her results and print them or post them directly to her Facebook wall.</p>
<p>Check it out <a href="http://www.seventeen.com/prom/dresses/prom-dress-finder" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=347</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eBay Classifieds Group</title>
		<link>http://labs.mstudio.com/?p=271</link>
		<comments>http://labs.mstudio.com/?p=271#comments</comments>
		<pubDate>Mon, 13 Jul 2009 17:32:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=271</guid>
		<description><![CDATA[We recently developed a handful of Flash modules for the newly launched ECG website, designed by Sisu. Papervision 3D home page module ECG Timeline Brand Map and Video Player]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ebayclassifiedsgroup.com/" target="_blank"> <img src="http://labs.mstudio.com/wp-content/uploads/ecg.jpg" alt="ECG" /></a></p>
<p>We recently developed a handful of Flash modules for the newly launched <a href="http://www.ebayclassifiedsgroup.com/">ECG website</a>, designed by Sisu.</p>
<p><a href="http://www.ebayclassifiedsgroup.com/" target="_blank">Papervision 3D home page module</a><br />
<a href="http://www.ebayclassifiedsgroup.com/about-us/timeline" target="_blank">ECG Timeline</a><br />
<a href="http://www.ebayclassifiedsgroup.com/brands" target="_blank">Brand Map and Video Player</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=271</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AIR: Drag and Drop Batch Image Resizer</title>
		<link>http://labs.mstudio.com/?p=167</link>
		<comments>http://labs.mstudio.com/?p=167#comments</comments>
		<pubDate>Tue, 02 Jun 2009 19:03:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://labs.mstudio.com/?p=167</guid>
		<description><![CDATA[Here&#8217;s a little utility that allows you to batch-resize or crop images and output as JPG &#8212; along with the source code. If you&#8217;re not familiar with AIR, you just need to download AIR first before you download &#038; install the Image Resizer: Download Adobe AIR here Download the AIR Image Resizer here Download the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://labs.mstudio.com/wp-content/uploads/image_resizer.jpg" alt="Webby 09" title="Webby 09" class="alignnone size-full wp-image-8" /></p>
<p>Here&#8217;s a little utility that allows you to batch-resize or crop images and output as JPG &#8212; along with the source code. If you&#8217;re not familiar with AIR, you just need to download AIR first before you download &#038; install the Image Resizer:</p>
<p><a href="http://get.adobe.com/air/" target="_blank">Download Adobe AIR here</a></p>
<p><a href="http://www.mstudio.com/air/image_resizer/v1/M_Studio_Image_Resizer.air"  target="_blank">Download the AIR Image Resizer here </a></p>
<p><a href="http://www.mstudio.com/air/image_resizer/v1/AIR_Image_Resizer.zip"  target="_blank">Download the source files here </a></p>
<p>Also a few notes that might be of interest to developers:</p>
<p><span id="more-167"></span></p>
<p>For developers working in Eclipse/Flex: there is an ANT build file in the root directory of the .zip. Be sure to update &#8220;build.properties&#8221; with the location of your Flex SDK and project directory. Also, be sure to add &#8220;lib.swc&#8221; to your classpath.</p>
<p>For developers working in Flash: You can publish &#8220;build.fla&#8221;, but be sure to add &#8220;com.Main&#8221; as your document root.</p>
<p>&#8211;</p>
<p>If you&#8217;re trying to resize a display object&#8217;s bitmap for output, you can use the Matrix class. Let&#8217;s say we want to resize &#8220;target_mc&#8221; to 50% of it&#8217;s width and height:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:700px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">var</span> matrix <span style="color: #339933;">:</span> Matrix <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Matrix<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
matrix<span style="color: #339933;">.</span>scale<span style="color: #009900;">&#40;</span><span style="color:#800080;">.5</span><span style="color: #339933;">,</span> <span style="color:#800080;">.5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> bmp <span style="color: #339933;">:</span> BitmapData <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #009900;">&#40;</span>target_mc<span style="color: #339933;">.</span>width <span style="color: #339933;">*</span> <span style="color:#800080;">.5</span><span style="color: #339933;">,</span> target_mc<span style="color: #339933;">.</span>width <span style="color: #339933;">*</span> <span style="color:#800080;">.5</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
bmp<span style="color: #339933;">.</span>draw<span style="color: #009900;">&#40;</span>_target_mc<span style="color: #339933;">,</span> matrix<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #666666; font-style: italic;">// if you just want to crop the image from the upper-left, you'd leave off the matrix param:</span><br />
bmp<span style="color: #339933;">.</span>draw<span style="color: #009900;">&#40;</span>_target_mc<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>&#8211;</p>
<p>If you want to save an image as a JPG or PNG from Flash, you&#8221; first need to <a href="http://code.google.com/p/as3corelib/">grab corelib from Google Code</a>.</p>
<p>You can pass an image&#8217;s bitmapData to the encoder and then write the file using FileStream. For example, we want to save &#8220;target_bmd&#8221; BitmapData as a JPEG named &#8220;output.jpg&#8221; in the user&#8217;s &#8220;Documents&#8221; folder:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:700px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">var</span> jpgEncoder <span style="color: #339933;">:</span> JPGEncoder <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> JPGEncoder<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// this param is the JPG quality from 0-100&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #000000; font-weight: bold;">var</span> jpg <span style="color: #339933;">:</span> ByteArray <span style="color: #339933;">=</span> jpgEncoder<span style="color: #339933;">.</span>encode<span style="color: #009900;">&#40;</span>target_bmd<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> stream <span style="color: #339933;">:</span> FileStream <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> FileStream<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #990000;">file</span> <span style="color: #339933;">:</span> <span style="color: #990000;">File</span> <span style="color: #339933;">=</span> <span style="color: #990000;">File</span><span style="color: #339933;">.</span>documentsDirectory<span style="color: #339933;">.</span>resolvePath<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;output.jpg&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
stream<span style="color: #339933;">.</span>open<span style="color: #009900;">&#40;</span><span style="color: #990000;">file</span><span style="color: #339933;">,</span> FileMode<span style="color: #339933;">.</span>WRITE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
stream<span style="color: #339933;">.</span>writeBytes<span style="color: #009900;">&#40;</span>jpg<span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> jpg<span style="color: #339933;">.</span>length<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
stream<span style="color: #339933;">.</span>close<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://labs.mstudio.com/?feed=rss2&amp;p=167</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
