<?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>deleteaso</title>
	<atom:link href="http://deleteaso.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://deleteaso.com</link>
	<description>When something's not working delete aso files</description>
	<lastBuildDate>Mon, 12 Apr 2010 16:01:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>www.flashiphonedevelopment.com</title>
		<link>http://deleteaso.com/www-flashiphonedevelopment-com/</link>
		<comments>http://deleteaso.com/www-flashiphonedevelopment-com/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 16:01:09 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=237</guid>
		<description><![CDATA[I started a new blog today in conjunction with the launch of CS5, www.flashiphonedevelopment.com. It is strictly going to focus on iPhone development from a Flash developers perspective. There will be a lot of Flash CS5 iPhone Packager content, as well as a resource for learning Objective-C and the iPhone SDK from a Flash development [...]]]></description>
			<content:encoded><![CDATA[<p>I started a new blog today in conjunction with the launch of CS5, <a href="http://www.flashiphonedevelopment.com" target="_blank">www.flashiphonedevelopment.com</a>. It is strictly going to focus on iPhone development from a Flash developers perspective. There will be a lot of Flash CS5 iPhone Packager content, as well as a resource for learning Objective-C and the iPhone SDK from a Flash development perspective. I have lots of great stuff planned for it and with a little faith this whole Adobe vs. Apple fiasco will fade away.</p>
]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/www-flashiphonedevelopment-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Been a very busy 2010 so far</title>
		<link>http://deleteaso.com/been-a-very-busy-2010-so-far/</link>
		<comments>http://deleteaso.com/been-a-very-busy-2010-so-far/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 18:19:10 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[fuelindustries]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[publications]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=233</guid>
		<description><![CDATA[It has been a long time since my last post and have been fairly quiet over the last 4-5 months. 2010 so far has been a year of first and big changes.
Since January I have been working on writing my first book. It has been on my list of things to do ever since I [...]]]></description>
			<content:encoded><![CDATA[<p>It has been a long time since my last post and have been fairly quiet over the last 4-5 months. 2010 so far has been a year of first and big changes.</p>
<p>Since January I have been working on writing my first book. It has been on my list of things to do ever since I started my career, but never really thought it would happen. So when I was approached to write one on the new Flash iPhone Packager last November I could not pass up the opportunity. It has been a really intense process and has kept me quite busy over the last 3 months. This week I will be finishing up the last few chapter edits, and it should be available sometime in June.</p>
<p>April 1st, 2003 was my first day at Fuel Industries, and 7 years and a week later, yesterday was my last day. The last 7 years has been an amazing journey and have learned and seen so much.  Working at Fuel has provided me with so many opportunities that I would not have had working elsewhere. The wide variety of types of projects has exposed me to so many new and different technologies, which has helped me become a better programmer. I was also fortunate enough to travel and see many parts of the world that I would not have seen on my own. The friends that I have made there will last forever, and it was hard to say goodbye to them.</p>
<p>So what&#8217;s next? In a couple of weeks I am going to start work at QNX here in Ottawa. QNX is a pretty cool company and you may have seen their QNX car on display at Adobe Max last year. QNX develops an operating system for embedded devices, which has a Flash layer which can be used to create interfaces and applications which run on their OS. I can&#8217;t talk about what I will be doing too much yet, but will once I get settled there.</p>
<p>2010 is turning out to be a pretty monumental year, and has been a great way to start a new decade. I am really looking forward to what the rest of the year and decade has in store for me. I&#8217;ll be at FiTC for Saturday and Sunday only. So if you ar0und let&#8217;s grab a drink.</p>
]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/been-a-very-busy-2010-so-far/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple AIR 2.0 Multitouch Sample</title>
		<link>http://deleteaso.com/simple-air-2-0-multitouch-sample/</link>
		<comments>http://deleteaso.com/simple-air-2-0-multitouch-sample/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 21:37:55 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[multitouch]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=228</guid>
		<description><![CDATA[I was really excited when Adobe made the announcement of Multitouch support in the Flash Player. Mainly because we have a bunch of Multitouch screens hanging out in the office, from our Windows 7 Touch Games Development. We made Microsoft Blackboard, Rebound and Garden Pond. So now that it is in public beta I am [...]]]></description>
			<content:encoded><![CDATA[<p>I was really excited when Adobe made the announcement of Multitouch support in the Flash Player. Mainly because we have a bunch of Multitouch screens hanging out in the office, from our <a href="http://windowsteamblog.com/blogs/windows7/archive/2009/05/27/introducing-the-microsoft-touch-pack-for-windows-7.aspx" target="_blank">Windows 7 Touch Games Development</a>. We made Microsoft Blackboard, Rebound and Garden Pond. So now that it is in public beta I am able to show a really simple example of a paint program running on a Dell Latitude XT Touch Laptop. Nothing fancy, but it shows off the feature.</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7664183&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7664183&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
<p><a href="http://vimeo.com/7664183">Simple AIR 2.0 Multitouch Example</a> from <a href="http://vimeo.com/user2650539">Julian Dolce</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/simple-air-2-0-multitouch-sample/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AS3 SVN Library</title>
		<link>http://deleteaso.com/as3-svn-library/</link>
		<comments>http://deleteaso.com/as3-svn-library/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 21:12:58 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[fuelindustries]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=225</guid>
		<description><![CDATA[A few months ago I started writing a svn protocol library in as3. It started with an idea for a internal tool that would allow us to select files from our svn code repository and export it and all of it&#8217;s code dependencies. And because I haven&#8217;t done a lot of work with ByteArray, or [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago I started writing a svn protocol library in as3. It started with an idea for a internal tool that would allow us to select files from our svn code repository and export it and all of it&#8217;s code dependencies. And because I haven&#8217;t done a lot of work with ByteArray, or Sockets before I was pretty excited about giving this a shot. My first attempts where really rough and basic and worked for the most part, but were in no shape to be in the form of a nice library. I let it sit for a while as I was busy getting ready for FOTB and Flashpitt. Then one night I started doing some more research about the protocol and found that SVNKit, a Java SVN library, was open source. So I started going through all the source and spent a great deal of time going through how the code was structured. I couldn&#8217;t just do a straight port because of the differences that data gets returned between Java and AS3. Long story short the way they have it set up is you can make the call to the server and on the next line read the input. In AS3 you need to wait for your event to come back, and there is no guarantees that all of it is going to come back in one event either. But I was able to port some important parts like reading and writing the data. I&#8217;ve tried to keep the API&#8217;s similar, but there are instances where they just couldn&#8217;t be or didn&#8217;t make sense to. One of my goals for this project to is to make it as platform independent as possible. And by that I mean I want you to be able to use the library in the web, air, and any other Flash Player 10 player. I&#8217;ve tried to abstract out the parts that deal with writing files to disk so that this could be accomplished. But there may come a point where a feature may need AIR for whatever reason. But I&#8217;ll cross that bridge when I get to it. If that feature isn&#8217;t a super high priority chances are I will leave it out just for that reason.</p>
<p>That all being said I just made a fairly big commit today to the <a href="http://code.google.com/p/fuelas3svn/" target="_blank">google code repository</a>. It isn&#8217;t fully featured yet and only supports the svn:// protocol. Once I get some more of that protocol completed I plan on doing the http:// protocol. In the wiki there is an example AIR app that allows you to display directories in a tree, export files and folders, as well as trace out the log for any item in the repository. </p>
<p>This is still a work in progress and lots to do before it gets to a really stable state. For instance the Error handling is almost non-existent but I have placed a lot of //TODO where the errors need to be thrown. I also only have 1 svn server to test on so I am not sure how running it in other environments will work out. </p>
<p>I have created the library to a point where I can create our internal app, so I am not entirely sure what features I will tackle next. I may try doing commit and add, but those are fairly big. So if you have any requests I am all ears. </p>
]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/as3-svn-library/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A couple quick FDT tips</title>
		<link>http://deleteaso.com/a-couple-quick-fdt-tips/</link>
		<comments>http://deleteaso.com/a-couple-quick-fdt-tips/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 14:28:09 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[ANT]]></category>
		<category><![CDATA[FDT]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=222</guid>
		<description><![CDATA[I have been using FDT for a couple of years now and I love it, but it wasn&#8217;t until recently that I started to really use it&#8217;s full potential. The biggest reason is that we still use the Flash IDE a whole lot and .fla&#8217;s are the main source of our project. Previous a lot [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using FDT for a couple of years now and I love it, but it wasn&#8217;t until recently that I started to really use it&#8217;s full potential. The biggest reason is that we still use the Flash IDE a whole lot and .fla&#8217;s are the main source of our project. Previous a lot of our projects would be 1 maybe 2 fla files and all the code would get compiled into them. We would still use FDT for all of our coding but would lose out on using the debugger which is really an amazing time saver.</p>
<p>So now after building the <a href="http://code.google.com/p/fuelanttasks/" target="_blank">Fuel ANT Tasks</a>, and creating a new workflow between designers and developers, we have now embracing all that is FDT. We have come up with a great solution on how to remove all of the code from our FLA&#8217;s and have it get compiled into one swf. The swf can be compiled from Flash or FDT. We create a blank fla with only a document class as our entry point, this way anybody with the IDE can compile our project. Now there are many different ways to accomplish this, so I am not going to go into them, but may post about it in the future &#8211; we are still refining the process.</p>
<p>The thing to take away from it is that when we are doing only code changes we can compile the code and even fla&#8217;s from FDT and have it run through the debugger. Now in order to get this running a ran into a few problems and wanted to share the solution, because it has stumped a lot of people.</p>
<p><b>Launching in External SWF Viewer</b><br />
One of the options to launch your application is the External SWF viewer. This is a basic java application that displays a html page with your swf in it. The html page is generated in your output directory when you compile and then deleted when it&#8217;s complete. Because the swf is running in a local html file chances are you are going to run into security errors if you are doing any network calls, or loading of remote assets. The easiest way to get around this is to add your workspace directory to the <a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html" target="_blank">Flash Global Security Settings panel</a>. The path to my workspace looks something like /Users/julian/workspace, so it&#8217;s tempting to add that as a path. But because the way that the External SWF viewer is loading the swf you need to add the path like so file:////Users/julian/workspace. This will now make that directory and all it&#8217;s sub directories locally trusted locations and will not throw security errors. Be sure to check out the Run/Debug preferences in Eclipse as well for some useful settings that you may want to adjust.</p>
<p><b>Flash Player 10</b><br />
I was trying to compile a project to Flash Player 10 the other day and kept getting a bunch of errors. I had added the Flash Player 10 playergloabal.swc and my swf was running in Flash Player 10 so I thought that would be enough. But it was actually compiling to Flash Player 9 still. So after much digging I found out that you need to add the following arguments to the flex sdk during compiling.</p>
<p>&#8211;target-player=10.0.0</p>
<p>So now after a couple of weeks of trial and error on getting the whole workflow set up, I think we have a really good system in place and am looking forward to starting a new project to use it from start to finish. It took me a while to get used to the debugger and really understand it&#8217;s power, but once you do it&#8217;s an amazing time saver. No more traces just breakpoints.</p>
]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/a-couple-quick-fdt-tips/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Thank you FlashPitt</title>
		<link>http://deleteaso.com/thank-you-flashpitt/</link>
		<comments>http://deleteaso.com/thank-you-flashpitt/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 14:32:32 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[Conferences]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=219</guid>
		<description><![CDATA[I am at the airport waiting for my flight home to Ottawa and wanted to take the time to really say thank you to everyone involved in Flashpitt. Special thanks goes to Val, Jason, Joe, and Josh for making it such a great event. They have really done a great job in making Flashpitt one [...]]]></description>
			<content:encoded><![CDATA[<p>I am at the airport waiting for my flight home to Ottawa and wanted to take the time to really say thank you to everyone involved in Flashpitt. Special thanks goes to Val, Jason, Joe, and Josh for making it such a great event. They have really done a great job in making Flashpitt one of the best flash conferences. I also wanted to thank the attendees. I was really overwhelmed by everyone who came up to me, who say my session from last year and told me that they had started playing with Arduino and Phidgets. This is really the reason why I speak at conferences and am hoping that next year when (if ?) I come back next year you will tell me about the IPhone applications you have built. </p>
<p>As well as spending a great day at the conference I was able to spend some time with some of my best friends in the world. </p>
<p>Friday night Seb, Stacey, Boris and I had to finish some work and couldn&#8217;t go out to the pre-conference party. So we sat ourselves in the lobby and had a great time singing to old 80&#8217;s and 90&#8217;s music.</p>
<p><object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7093069&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7093069&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object>
<p><a href="http://vimeo.com/7093069">Julian Dolce busting it down</a> from <a href="http://vimeo.com/bitchwhocodes">BitchWhoCodes</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7093603&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7093603&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object>
<p><a href="http://vimeo.com/7093603">Groove in the Heart &#8211; by Seb &#038; Julian</a> from <a href="http://vimeo.com/bitchwhocodes">BitchWhoCodes</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/iURIcUX7UNk&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/iURIcUX7UNk&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<p>The next was great as well and had a lovely dinner with Val, Seb, Jer, Scott at this restaurant called the Library. After a lovely time there we headed over to the after party at the Bicycle Bar? I think it was called. It was a really great space and meet lots of cool people. Once that party started to wind down Jer, Val, Joe and I walked over to another bar along the river. It was a pretty interesting bar with a live band. Everybody seemed to be having a good time and dancing on their chairs. We decided to join in on the fun and jumped up on a bench, but Jer went straight for the table. Apparently this is frowned upon and he was quickly escorted out of the building. It was actually quite funny and was a great way to exit the bar.</p>
<p>Jer, Seb and I stayed an extra day in Pittsburgh with the hopes of taking in some of the city, but Jer and I where too hungover to even really move from our hotel rooms. So we slept until it was time to take Seb to his first ever hockey game. It was great fun watching the game with him and my favorite quote of the week was &#8220;It&#8217;s brilliant watching these little men sliding around&#8221;.</p>
<p>Now I am close to being home and sad that the conference is over, but looking forward to my own bed. It&#8217;s been a very busy month between FOTB and Flashpitt and am looking forward to a relaxing couple of months the rest of the year. </p>
<p>Thanks again to everyone who attended both my workshop and session and to all of those who put the conference on. And to everyone who couldn&#8217;t make it this year, see you next year.</p>
]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/thank-you-flashpitt/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fuel ANT Tasks</title>
		<link>http://deleteaso.com/fuel-ant-tasks/</link>
		<comments>http://deleteaso.com/fuel-ant-tasks/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 09:39:31 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[ANT]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JSFL]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=201</guid>
		<description><![CDATA[At Fuel Industries our projects always start with a FLA, but we use FDT for all of our coding. We wanted to have a way that we could publish our projects from FDT as well as run daily automatic builds. This is easy when working with Flex because Flex has a command line compiler, but [...]]]></description>
			<content:encoded><![CDATA[<p>At Fuel Industries our projects always start with a FLA, but we use FDT for all of our coding. We wanted to have a way that we could publish our projects from FDT as well as run daily automatic builds. This is easy when working with Flex because Flex has a command line compiler, but Flash doesn&#8217;t. So we wrote custom ANT tasks in Java that will allow us to publish fla&#8217;s in multiple ways.</p>
<p>Here are a few examples of some of the things you can do.</p>
<p>First you can simply compile fla&#8217;s</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;fla_publish&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;flash<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fla</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${src}/redsquare.fla&quot;</span> <span style="color: #000066;">build</span>=<span style="color: #ff0000;">&quot;publish&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fla</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${src}/bluesquare.fla&quot;</span> <span style="color: #000066;">build</span>=<span style="color: #ff0000;">&quot;export&quot;</span> <span style="color: #000066;">swf</span>=<span style="color: #ff0000;">&quot;${src}/bluesquare.swf&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fla</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${src}/greensquare.fla&quot;</span> <span style="color: #000066;">build</span>=<span style="color: #ff0000;">&quot;test&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/flash<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>The fla task can take multiple different types of values for the build parameter &#8211; publish, test, and export.<br />
publish will simply publish the file at the current settings set for the fla.<br />
test will compile and run the swf in the Flash IDE. This is like hitting cmd-enter/ctrl-enter<br />
export will export the swf. In order to use this mode you must specify a output swf file.</p>
<p>You can also publish and test Flash CS3 Flp files</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;flp_publish&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;flash<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;flp</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${src}/fuelanttask.flp&quot;</span> <span style="color: #000066;">build</span>=<span style="color: #ff0000;">&quot;publish&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/flash<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>If set the build mode to &#8220;test&#8221; it will look for the flp project default file and compile that project last and test the default file.<br />
The nice thing about using the flp task is that if one of your files has a compile error, it will stop the build process and alert you of the error. This is different then the IDE as it just keeps compile the project and you won&#8217;t see if one of your files compiled incorrectly.</p>
<p>We have also created a task called buildnumbercommand. This task gets the local SVN revision number and inserts it into a BuildNumber.as file. This way we have the build number accessible in ActionScript and we are able to display it automatically in our files. For instance we place ours in the right click menu so our clients can see what version of the build they are looking at.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;version&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;buildnumbercommand</span> <span style="color: #000066;">path</span>=<span style="color: #ff0000;">&quot;${src}&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>The path parameter is the directory in which the BuildNumber.as file is located. Below is an example of BuildNumber.as</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> BuildNumber 
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> static const BUILD_NUMBER <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;1&quot;</span>;
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Here are some of the other parameters for the Tasks</p>
<h2>flash task</h2>
<p><b>path</b> &#8211; This is needed on Windows only. This is the path to your Flash IDE executable and is defaulted to the default install location for CS3 and CS4. C:\Program Files\Adobe\Adobe Flash CS3\Flash.exe and C:\Program Files\Adobe\Adobe Flash CS4\Flash.exe. If you have the Flash IDE installed in these locations you can omit this parameter.</p>
<p><b>version</b> &#8211; accepts either &#8220;CS3&#8243; or &#8220;CS4&#8243;. The default is &#8220;CS3&#8243;. This is used to determine which IDE to compile your files in. &#8220;CS3&#8243; is the default and can be omitted if you want to use CS3.</p>
<p><b>deleteaso</b> &#8211; true | false will delete your aso files before compiling any files. The default is false.</p>
<p><b>closeDocs</b> &#8211; true | false will close your fla after it&#8217;s compiled. The default is false. This is ignored when compiling a flp project and will always close it afterwards.</p>
<p><b>quit</b> &#8211; true | false will close the Flash IDE after all the files have been compiled.</p>
<p><b>verbose</b> &#8211; true | false has some more output messages during compilation.</p>
<h2>fla task</h2>
<p><b>file</b> &#8211; the path to your fla file</p>
<p><b>build</b> &#8211; valid values are &#8220;export&#8221;, &#8220;publish&#8221;, &#8220;test&#8221;. The default is &#8220;publish&#8221;.<br />
publish will simply publish the file at the current settings set for the fla.<br />
test will compile and run the swf in the Flash IDE. This is like hitting cmd-enter/ctrl-enter<br />
export will export the swf. In order to use this mode you must specify a output swf file.</p>
<p><b>swf</b> &#8211; the file path to a swf to be compiled. This is only needed when the build parameter is set to &#8220;export&#8221; and will be ignored otherwise.</p>
<h2>flp task</h2>
<p><b>file</b> &#8211; the path to your flp file</p>
<p><b>build</b> &#8211; valid values are &#8220;export&#8221;, &#8220;publish&#8221;, &#8220;test&#8221;. The default is &#8220;publish&#8221;.<br />
If set the build mode to &#8220;test&#8221; it will look for the flp project default file and compile that project last and test the default file.</p>
<p>UPDATE : the ANT tasks have been put up on Google code. The source, examples, documentation, and the compiled jar can be found there<br />
http://code.google.com/p/fuelanttasks/</p>
<p>This is a video of me showing how to use them at Flash On The Beach during the speaker throwdown<br />
<object width="400" height="220"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7287099&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7287099&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="220"></embed></object>
<p><a href="http://vimeo.com/7287099">FOTB09 &#8211; Jam Throwdown &#8211; Julian Dolce</a> from <a href="http://vimeo.com/flashonthebeach">John Davey</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/fuel-ant-tasks/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Fix Textfields JSFL</title>
		<link>http://deleteaso.com/fix-textfields-jsfl/</link>
		<comments>http://deleteaso.com/fix-textfields-jsfl/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 21:48:01 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JSFL]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=183</guid>
		<description><![CDATA[Today Seb was having some issues when dealing with embedded fonts &#8211; read his post. He came up with some ActionScript ways to get around it. Well another way would be to use JSFL. A couple of my team members at Fuel Industries wrote the following JSFL script. It goes through your library and searches [...]]]></description>
			<content:encoded><![CDATA[<p>Today Seb was having some issues when dealing with embedded fonts &#8211; <a href="http://www.sebleedelisle.com/2009/08/font-embedding-wtf-in-flash/" target="_blank">read his post.</a> He came up with some ActionScript ways to get around it. Well another way would be to use JSFL. A couple of my team members at Fuel Industries wrote the following JSFL script. It goes through your library and searches out any dynamic textfields. Once it finds one it makes sure it&#8217;s on a whole pixel, turns the auto kern off, embeds &#8220;UpperCase, LowerCase, Numerals, Punctuation&#8221; characters, and makes it not selectable. But you could make it do pretty much anything you can through JSFL.</p>
<p></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">fl.<span style="color: #660066;">outputPanel</span>.<span style="color: #660066;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
scanLibrary<span style="color: #009900;">&#40;</span>fl.<span style="color: #660066;">getDocumentDOM</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">library</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> getIsWholeInt<span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> s <span style="color: #339933;">=</span> String<span style="color: #009900;">&#40;</span>n<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>s.<span style="color: #660066;">indexOf</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: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">else</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> round<span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> s <span style="color: #339933;">=</span> String<span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> a <span style="color: #339933;">=</span> s.<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> num <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> dec <span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</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>dec <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">5</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		num<span style="color: #339933;">++;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">return</span> num<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">/**
 * Scans the supplied flash library for linked classes and makes sure the textfields are set up properly
 * @param 	library		A flash library to scan.
 */</span>
<span style="color: #003366; font-weight: bold;">function</span> scanLibrary<span style="color: #009900;">&#40;</span>library<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> items <span style="color: #339933;">=</span> library.<span style="color: #660066;">items</span><span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> <span style="color: #000066; font-weight: bold;">item</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> replaceCount <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> items.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span> <span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">item</span> <span style="color: #339933;">=</span> items<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">itemType</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'movie clip'</span><span style="color: #009900;">&#41;</span> 
		<span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> timeline <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">item</span>.<span style="color: #660066;">timeline</span><span style="color: #339933;">;</span>
			<span style="color: #003366; font-weight: bold;">var</span> h <span style="color: #339933;">=</span> timeline.<span style="color: #660066;">layerCount</span><span style="color: #339933;">;</span>
&nbsp;
			library.<span style="color: #660066;">selectItem</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			library.<span style="color: #660066;">editItem</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000066; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>h<span style="color: #339933;">--</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #003366; font-weight: bold;">var</span> k <span style="color: #339933;">=</span> timeline.<span style="color: #660066;">layers</span><span style="color: #009900;">&#91;</span>h<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">frameCount</span><span style="color: #339933;">;</span>
&nbsp;
				<span style="color: #000066; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>k<span style="color: #339933;">--</span><span style="color: #009900;">&#41;</span>
				<span style="color: #009900;">&#123;</span>
					<span style="color: #003366; font-weight: bold;">var</span> j <span style="color: #339933;">=</span> timeline.<span style="color: #660066;">layers</span><span style="color: #009900;">&#91;</span>h<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">frames</span><span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">elements</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
&nbsp;
					<span style="color: #000066; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>j<span style="color: #339933;">--</span><span style="color: #009900;">&#41;</span>
					<span style="color: #009900;">&#123;</span>
						<span style="color: #003366; font-weight: bold;">var</span> elems <span style="color: #339933;">=</span> timeline.<span style="color: #660066;">layers</span><span style="color: #009900;">&#91;</span>h<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">frames</span><span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">elements</span><span style="color: #339933;">;</span>
						<span style="color: #003366; font-weight: bold;">var</span> p <span style="color: #339933;">=</span> elems.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
&nbsp;
						<span style="color: #000066; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>p<span style="color: #339933;">--</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>elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">elementType</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;text&quot;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">textType</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;dynamic&quot;</span> <span style="color: #339933;">||</span> elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">textType</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;input&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
							<span style="color: #009900;">&#123;</span>
								<span style="color: #006600; font-style: italic;">//Change the Static Text Fields to Dynamic</span>
								<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">textType</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;static&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
									elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">textType</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;dynamic&quot;</span><span style="color: #339933;">;</span>
								<span style="color: #009900;">&#125;</span>
&nbsp;
								<span style="color: #006600; font-style: italic;">//Handle all Dynamic TextFields</span>
								<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">textType</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;dynamic&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
									<span style="color: #006600; font-style: italic;">//Remove the ability to be selectable</span>
									elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">selectable</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
								<span style="color: #009900;">&#125;</span>
&nbsp;
								<span style="color: #006600; font-style: italic;">//Handle all Dynamic or Input Textfields</span>
&nbsp;
								<span style="color: #006600; font-style: italic;">//Remove the auto kern attribute</span>
								elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">setTextAttr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'autoKern'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
								<span style="color: #006600; font-style: italic;">//Embed fonts UpperCase, LowerCase, Numerals, Punctuation</span>
								elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">embedRanges</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;1|2|3|4&quot;</span><span style="color: #339933;">;</span>
&nbsp;
								<span style="color: #006600; font-style: italic;">//Pop onto whole pixel</span>
								<span style="color: #003366; font-weight: bold;">var</span> matX <span style="color: #339933;">=</span> elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">matrix</span><span style="color: #339933;">;</span>
								<span style="color: #003366; font-weight: bold;">var</span> x <span style="color: #339933;">=</span> matX.<span style="color: #660066;">tx</span><span style="color: #339933;">;</span>
								<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>getIsWholeInt<span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
								<span style="color: #009900;">&#123;</span>
									matX.<span style="color: #660066;">tx</span> <span style="color: #339933;">=</span> round<span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
									elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">matrix</span> <span style="color: #339933;">=</span> matX<span style="color: #339933;">;</span>
								<span style="color: #009900;">&#125;</span>
&nbsp;
								<span style="color: #003366; font-weight: bold;">var</span> matY <span style="color: #339933;">=</span> elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">matrix</span><span style="color: #339933;">;</span>
								<span style="color: #003366; font-weight: bold;">var</span> y <span style="color: #339933;">=</span> matY.<span style="color: #660066;">ty</span><span style="color: #339933;">;</span>
								<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>getIsWholeInt<span style="color: #009900;">&#40;</span>y<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
								<span style="color: #009900;">&#123;</span>
									matY.<span style="color: #660066;">ty</span> <span style="color: #339933;">=</span> round<span style="color: #009900;">&#40;</span>y<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
									elems<span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">matrix</span> <span style="color: #339933;">=</span> matY<span style="color: #339933;">;</span>
								<span style="color: #009900;">&#125;</span>
&nbsp;
							<span style="color: #009900;">&#125;</span>
						<span style="color: #009900;">&#125;</span>
&nbsp;
					<span style="color: #009900;">&#125;</span>
&nbsp;
				<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/fix-textfields-jsfl/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>AS3 FP10 FileReference.save bug</title>
		<link>http://deleteaso.com/as3-fp10-filereferencesave-bug/</link>
		<comments>http://deleteaso.com/as3-fp10-filereferencesave-bug/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 23:14:45 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=180</guid>
		<description><![CDATA[While playing with FileReference.save today in Flash Player 10 I found a REALLY REALLY BIG BUG. It seems that if you go to overwrite a file it appends it&#8217;s contents instead of replacing.
1. Copy and paste the code below into a blank fla in CS4.
2. Compile the swf and save a file.
3. Close the swf
4. [...]]]></description>
			<content:encoded><![CDATA[<p>While playing with FileReference.save today in Flash Player 10 I found a REALLY REALLY BIG BUG. It seems that if you go to overwrite a file it appends it&#8217;s contents instead of replacing.</p>
<p>1. Copy and paste the code below into a blank fla in CS4.<br />
2. Compile the swf and save a file.<br />
3. Close the swf<br />
4. repeat step 2<br />
5. Open the test.txt file. </p>
<p>I am on OSX and haven&#8217;t tested on a PC.</p>

<div class="wp_syntax"><div class="code"><pre class="as3" style="font-family:monospace;">var str:String = &quot;12345&quot;;
var ba:ByteArray = new ByteArray();
ba.writeUTFBytes( str );
&nbsp;
var fr:FileReference = new FileReference();
fr.save(ba, &quot;test.txt&quot;);</pre></div></div>

<p>I did a quick search on the Adobe bug base and found some related issues from 2008 but they where for downloading files from the net.</p>
]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/as3-fp10-filereferencesave-bug/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>One year after my first MAC</title>
		<link>http://deleteaso.com/one-year-after-my-first-mac/</link>
		<comments>http://deleteaso.com/one-year-after-my-first-mac/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 21:49:45 +0000</pubDate>
		<dc:creator>julian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://deleteaso.com/?p=177</guid>
		<description><![CDATA[So it&#8217;s been a little over a year now since I switched to using my first MAC on an every day basis. I have used MAC&#8217;s before at school and the odd time at work, but this was my first everyday MAC. It was a hand me down from our CEO at the time, so [...]]]></description>
			<content:encoded><![CDATA[<p>So it&#8217;s been a little over a year now since I switched to using my first MAC on an every day basis. I have used MAC&#8217;s before at school and the odd time at work, but this was my first everyday MAC. It was a hand me down from our CEO at the time, so it&#8217;s a few years old. It&#8217;s a 2.33 Intel Core 2 with 3GB of RAM MBP. Over the last 6 years I have been in the industry I kept hearing the &#8220;MAC is so much better at&#8230;&#8230;&#8221; argument that I was really interested to see what all the fuss was about. So here is a list of things I like and dislike and ultimately try to really answer if MAC is so much better then all the fanboys make it out to be.</p>
<p>IPhone SDK<br />
I am going to get this one out of the way first because this was the reason I moved to a MAC. We where one of the few companies who where approved vendors before the App Store went live. We had a game in the store at launch and have since released 6 or 7 games with a few more set to launch shortly. I have to say that working with the SDK and learning a new language and environment has been lots of fun. It&#8217;s really great to have something tangible to show people when they ask what you have been up to. Objective-C took a little bit to get used to but don&#8217;t mind it as much as I first did when I started. XCode however I think is one of the worst development environments that I have ever worked with. I think Eclipse and Visual Studio are far better with more features and better workflow. </p>
<p>Startup time<br />
I have heard numerous times that OSX will startup faster then Windows. Well I can say that my 6 year old Toshiba laptop running XP starts up about 2 mins faster then Leopard does. Maybe a completely vanilla install will start up faster, but not after you have installed all of the plugins and helper apps that you need to install to be productive. </p>
<p>Finder<br />
Ok this has to be my biggest pet peeve of all. Finder SUCKS so hard it&#8217;s not even funny. Windows Explorer is by far a better file system browser, and it continues to improve with every version of Windows. It&#8217;s ridiculous to think that the file system browser, which is by far the most important application to any OS, can be so terrible. Here are some of my issues with Finder.<br />
1. There is no address bar. So I can&#8217;t copy and paste paths to files. The only way I can copy the path to file or folder is to open a Terminal window and drag it in there.<br />
2. Copying or moving files sometimes doesn&#8217;t seem to go where I want them to. This is more of a focus thing than anything. Sometimes I feel like the file should get moved to a certain directory, but ends up in it&#8217;s parent. This really all depends on the view that you are in, which can be frustrating at times.<br />
3. There is no up button. By that I mean a button that will send you to the parent folder of the currently selected folder. There is a back button, but that brings you to the last visited folder and not the parent.<br />
4. I am not a real big fan of the Column view either. A simple tree view would be satisfactory if you ask me.</p>
<p>I have been using Path Finder for the last 2 weeks and I must say it is a definite improvement. However, when you are within an application and you are trying to save and open files you still have to deal with the brutality that is Finder.</p>
<p>Everything just always works<br />
Again this is false. My Cannon digital camera will not mount as a disk so I can drag pictures off. So I had to go and buy a Flash Card Reader. My Garmin GPS unit also didn&#8217;t connect nicely. I was able to get it to work after a little while but it was a pain. Granted this isn&#8217;t Apple&#8217;s fault that the companies drivers aren&#8217;t supported, but either was it Microsoft&#8217;s fault that companies didn&#8217;t make drivers for Vista.</p>
<p>Trash<br />
This is a little trivial, but cost me 2 hours at 2am trying to solve this issue. OSX will always use the file that is in the Trash before it uses the one on the system. For instance, if you are building an application and you are trying to fix a bug. You delete your old app, which sends it to the Trash, you compile a new version with the same name and run it but don&#8217;t see any changes. You copy it to a new machine and it works properly. Well OSX is using the old one from the Trash instead of your newly compiled bug free version, even though you launched that file. So lesson learned, always empty the Trash during development.</p>
<p>Fonts and Flash<br />
This may affect more applications then just Flash but it&#8217;s the one that affects me the most. Most of our office here are on PC&#8217;s and when I get files from a designer with non True Type Fonts every text field is f&#8217;d. The position and size of the font is all off. It sometimes makes it really hard to work between the 2 platforms. Maybe this is a Adobe issue and not an Apple one, but Apple isn&#8217;t the only one on trial here.</p>
<p>Audio Glitch<br />
I listen to music every day through my headphones at work using ITunes. Sometimes if I unplug my headphones or plug them in during playback I lose all audio. The only way to get it back is to restart ITunes. </p>
<p>Calendar<br />
Whenever I need to look at a calendar on Windows all I would do is click on the time in the system tray. So naturally when I need a calendar on OSX I click on the time in the menu bar. But it doesn&#8217;t give me a calendar. You can select Date &#038; Time from the menu but if you have it so that it sets the time automatically the calendar is disabled and you can only see the current month. The other way to get a calendar is to open iCal, which to me seems over kill. </p>
<p>Unistalling applications<br />
When you want to uninstall an application it can be as easy as just dragging the .app into the trash. But what if I wanted to uninstall Flash? It installs more then just the Adobe Flash CS3/CS4 folders in your applications directory. There are installers in /Applications/Utilities/Adobe Utilities/ that you can use but is that really that intuitive? OSX is supposed to be the OS with superior user experience. A global add/remove applications would definitely be a good thing to have.</p>
<p>Going to the Desktop<br />
In Windows I often would use the Windows-D shortcut to minimize all windows and show the destkop. This was really handy for getting access to files quickly. The only way to do this on OSX is to click on Finder and then hit CMD-ALT-H to hide all other windows. It&#8217;s not that bad but it&#8217;s an extra step. You can also hit F11 to minimize all the windows to reveal the Desktop, but as soon as you click on a file they all come back which is super annoying.</p>
<p>Exposes and Spaces<br />
While we are on the subject, I find these features useless. I tried using this for a couple of months but quickly found that they got in the way more then they actually providing a better user experience. </p>
<p>Subversion<br />
There are not a lot of great options for Subversion integration. The integration into the context menu isn&#8217;t full featured like TortoiseSVN is on Windows. I have tried Versions and it&#8217;s not bad, but have had issues with it locking files on me unexpectedly. The best that I have been able to find is using Subclipse the Eclipse plugin. It has a great Repository Browser and fits into my development workflow for 99% of my projects. The other 1% is when I am in Xcode, which has terrible SCM integration. </p>
<p>Terminal<br />
OK Terminal is awesome. It is by far better then the Windows Command Prompt. You can drag and drop files into it, it has a vi editor built in, which I still suck at but getting better, and overall it feels like an application and not a tool. If that makes any sense.</p>
<p>Unix<br />
I have to say that working on a Unix machine has been a great learning experience. You get to learn a lot of things that you would normally not learn unless you where on Linux. Having Apache pre-installed is nice as well. Learning Unix commands and shell scripting has been lots of fun. If you have ever worked with me before, or been to one of my talks, you will probably know that I am constantly looking at optimizing workflow and efficiency. So I have been a busy scripter to say the least.</p>
<p>Screen Sharing<br />
Screen sharing between OSX machines has been really convenient. Our IPhone development team works remotely in Denver and it has come in handy a few times. Also, our IPhone and Flash build machine is a Mac Mini. Being able to restart or install applications has been easy just by using Screen Sharing. If I was working in Windows, we would just be able to remote desktop in to the machine, which is essentially the same thing, but for some reason screen sharing feels easier. </p>
<p>Charmap<br />
One of the applications that I miss most from Windows is charmap &#8211; or Character Map. This application shows you all of the characters that are included in a particular font. This comes in handy when you are developing for multiple languages and you have to make sure that a font has all the necessary characters. I haven&#8217;t found a great way to figure this out yet on OSX. The best way that I have found is to open Extensis Suitecase, type in all of the characters that you need in the box on the top right and then select the font to preview it. If a character isn&#8217;t supported in that font it will be displayed as a rectangle. Not really ideal but it will have to do I suppose. If anyone has any tips on this I would love to hear them.</p>
<p>Spotlight<br />
Spotlight is a great search tool for the desktop, but so is the new Vista search. That&#8217;s pretty much all I have to say about it.</p>
<p>UI Design<br />
The UI Design is by far better then most Windows applications. I never really understood why until I built a Cocoa app and realized that all of the Cocoa components are designed really well. Apple makes it easy for developers to make their applications meet the Apple UI Guidelines, which gives apps a consistent look and feel. If you look back at the old Visual Basic and Windows Forms components you will see why OSX has always been considered to have better UI. The new Vista and Windows 7 components, WPF/XAML, are a massive improvement, but they still lack a certain polish and maturity to them compared to the Cocoa ones.</p>
<p>Entourage<br />
Uggg. Where to even begin. When your office is primarily a Windows shop, and you use Windows Exchange Server you don&#8217;t have much choice then to use Entourage as your mail client. Outlook is by far the best email client that I have ever used and I am not sure why Microsoft couldn&#8217;t just make a OSX version of it, instead of the grossness that is Entourage. Luckily Snow Leopard is coming to the rescue this fall and Mail and ICal will have Exchange support. I do however find it a little weird that there is 3 separate apps for Mail, Calendar, and Contacts. To me it makes so much sense to have them all in one. But time will tell once I start using them on a daily basis.</p>
<p>USB ports<br />
There are only 2 USB ports on my MBP and it drives me crazy. My old Windows laptop had 4, which didn&#8217;t increase the size at all. I am basically stuck with carrying around a USB hub as I travel if I want to use a mouse.  </p>
<p>I know all of this sounds like I hate my Mac, but I don&#8217;t. I am looking forward to getting a new Laptop and a iMac for the house as well. I think people are convinced easily that Mac&#8217;s are superior machines, when they are really just more of the same. You do get more for your money with a Windows machine. I don&#8217;t think one machine is better then the other and it really comes down to personal preference. The hardware design is by far the best however, but it&#8217;s a little pricey.  I am sure there will be Fanboys out there that will disagree with most of this post, but they are the same people that stood in line at the Grand Opening of the Apple store this weekend in Ottawa. I am not sure what the big fuss is about. Best Buy sells the exact same stuff for the exact same price, because Apple hardware never goes on sale. Anyways</p>
]]></content:encoded>
			<wfw:commentRss>http://deleteaso.com/one-year-after-my-first-mac/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
