<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>factornine weblog</title>
	<atom:link href="http://factornine.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://factornine.wordpress.com</link>
	<description>flash actionscript blog</description>
	<pubDate>Wed, 02 Jul 2008 12:34:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Using MTASC with the OSX Terminal Part 1</title>
		<link>http://factornine.wordpress.com/2008/07/02/using-mtasc-with-the-osx-terminal/</link>
		<comments>http://factornine.wordpress.com/2008/07/02/using-mtasc-with-the-osx-terminal/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 12:07:08 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[as2]]></category>

		<category><![CDATA[MTASC]]></category>

		<category><![CDATA[osx]]></category>

		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=30</guid>
		<description><![CDATA[I&#8217;m attempting to clarify and document all the methods I intend to use to Compile and Publish to swf files. 
The bare bones method would be to use the OSX Terminal.
The following is an abridged OSX specific version of the text in mtasc.org.
Tasks
1. Download MTASC see: mtasc.org
2. Place in applications folder.
3. Open the Terminal Application.
4. [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m attempting to clarify and document all the methods I intend to use to Compile and Publish to swf files. <br />
The bare bones method would be to use the OSX Terminal.<br />
The following is an abridged OSX specific version of the text in <a href="http://mtasc.org/">mtasc.org</a>.</p>
<h4>Tasks</h4>
<p>1. Download MTASC see: <a href="http://mtasc.org/#download">mtasc.org</a></p>
<p>2. Place in applications folder.</p>
<p>3. Open the Terminal Application.</p>
<p>4. Add the path to the MTASC Application in the Terminal:</p>
<pre>$ export PATH=$PATH:/Applications/mtasc-1.13-osx/</pre>
</p>
<p>5. Test by tying MTASc in the Terminal:</p>
<pre>$ mtasc</pre>
<p>If the the app has been correctly downloaded and the path correctly set the output will be something like:</p>
<pre>	 Usage : mtasc.exe [options]
 Options :
  -pack  : compile all files in target package
  -cp  : add classpath
  -v : turn on verbose mode
  -strict : turn on strict mode
  -infer : turn on local variables inference
  -wimp : turn on warnings for unused imports
  -msvc : use MSVC style errors
  -mx : use precompiled mx package
  -swf  : swf file to update
  -out  : swf output file
  -keep : does not remove AS2 classes from input SWF
  -frame  : export into target frame (must exist in the swf)
  -main : enable main entry point
  -header  : specify header format &#8216;width:height:fps&#8217;
  -group : group classes into a single clip
  -exclude  : exclude classes listed in file
  -version : change SWF version (6,7,8,&#8230;)
  -trace  : specify a TRACE function
  -help  Display this list of options
  &#8211;help  Display this list of options</pre>
<p>Which lists all the MTASC Commands.</p>
<p>6. Create a folder to create project in.</p>
<pre>$ mkdir tuto</pre>
</p>
<p>7. Duplicate the Tuto.as Class from the mtasc.org page and save in folder:</p>
<pre>
class Tuto {

	static var app : Tuto;

	function Tuto() {
		// creates a 'tf' TextField size 800x600 at pos 0,0
		_root.createTextField("tf",0,0,0,800,600);
		// write some text into it
		_root.tf.text = "Hello world !";
	}

	// entry point
	static function main(mc) {
		app = new Tuto();
	}
}
</pre>
</p>
<p>8. make MTASC publish swf enter in the Terminal:</p>
<pre>$ mtasc -swf tuto.swf -main -header 800:600:20 Tuto.as</pre>
<p> This should create a tuto.swf file in the tuto folder.</p>
<p> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>
9. The flags seen in the help output above can be added to the call launch MTASC for instance:</p>
<pre>mtasc -v -swf tuto.swf -main -header 800:600:20 Tuto.as</pre>
<p>Will produce a verbose output link which includes:</p>
<pre> as
Classpath : /Applications/mtasc-1.13-osx/std/;/Applications/mtasc-1.13-osx/;;/
Parsed /Applications/mtasc-1.13-osx/std/StdPresent.as
 --
 --
Parsed Tuto.as
Typing Tuto.Tuto
 --
Time spent : 0.004443
</pre>
</p>
<p>I&#8217;ll attempt to test further MTASC Commands in further posts, I&#8217;ve just found a <a href="http://www.nabble.com/MTASC-f693.html">MTASC forum</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=30&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/07/02/using-mtasc-with-the-osx-terminal/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Java Style Docs with ZenDoc</title>
		<link>http://factornine.wordpress.com/2008/06/27/java-style-docs-with-zendoc/</link>
		<comments>http://factornine.wordpress.com/2008/06/27/java-style-docs-with-zendoc/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 10:30:38 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[Actioncript]]></category>

		<category><![CDATA[Documentation]]></category>

		<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=29</guid>
		<description><![CDATA[Introduction
	I&#8217;ve been following the habit of documentation my ActionScript code for some time, but I was 	interested in creating an html documentation for each Class in a project. Something like this 	example: Cursor.
	For a guide to documentation see: How 	To Document and Organize Your Java Code. This article mentions Javadoc in point 7, which for [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><h4>Introduction</h4>
<p>	I&#8217;ve been following the habit of documentation my ActionScript code for some time, but I was 	interested in creating an html documentation for each Class in a project. Something like this 	example: <a href="http://www.zendoc.org/zendoc/html/help/samples/Cursor.html">Cursor</a>.</p>
<p>	For a guide to documentation see: <a href="http://www.edparrish.com/common/javadoc.html#javadoc">How 	To Document and Organize Your Java Code</a>. This article mentions <a href="http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html">Javadoc</a> in point 7, which for the Java language 	can be created automatically.</p>
<p>( For a detailed document on writing comments for the Javadoc Tool see: <a href="http://java.sun.com/j2se/javadoc/writingdoccomments/">How to Write Doc Comments for the Javadoc Tool</a>, although much is specific to the use for Javadoc Tool it sets a good standard to follow. Also, for a list of current @ tags see: <a href="http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#javadoctags">javadoc tags</a>.)</p>
<p>	In this blog I&#8217;ll document my attempt to produce a repeatable and scalable  system to create javadoc 	style documents for ActionScript.
</p>
<p><h4>Investigation</h4>
<p>	I found <a href="http://www.zendoc.org/">ZenDoc</a> which generates <cite>&#8230;customizable HTML 	documentation for Flash ActionScript 2.0 and ActionScript 3.0 source files&#8230; </cite></p>
<p>	There are examples provided and a manual, generating the html code from the source as file is straightforward using the <a href="http://www.zendoc.org/zendoc/#external">online application</a>. 	The tricky bit is getting the comments in the 	ActionScript to generate the desired results.</p>
<p>	I favour the sample <cite>Default.html</cite> template. </p>
<p>
<h4>Points</h4>
<p>	1. For the comment block to generate the documentation the first line must be /** not /*<br />
	2. For the Default template to get the Class Description I had to put the Class Imports above the description Comment block.
</p>
<p>
<h4>Other options</h4>
<p> 	I&#8217;ve also has a look at <a href="http://www.visiblearea.com/visdoc/#features">VisDoc</a>. The 	software isn&#8217;t opensource, but it was easy to create the required html pages. Can be purchased 	from the <a href="http://order.kagi.com/cgi-bin/store.cgi?storeID=6CZRA&amp;&amp;">Kagi</a> site.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=29&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/06/27/java-style-docs-with-zendoc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sprouts</title>
		<link>http://factornine.wordpress.com/2008/06/26/sprouts/</link>
		<comments>http://factornine.wordpress.com/2008/06/26/sprouts/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 10:37:16 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[Sprouts]]></category>

		<category><![CDATA[as2]]></category>

		<category><![CDATA[AS3]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[MTASC]]></category>

		<category><![CDATA[osx]]></category>

		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=27</guid>
		<description><![CDATA[Whilst searching for information about MTASC Commands I came across site the Sprouts site. An &#8216;an open-source, cross-platform project generation and configuration tool for ActionScript 2, ActionScript 3&#8242;&#8230;.  As I&#8217;ve been looking at Ruby using the OSX Terminal and am interested in further experiments in finding new an better ways to compile and build [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Whilst searching for information about MTASC Commands I came across site the <a href="http://www.projectsprouts.org/index.html">Sprouts</a> site. An <cite>&#8216;an open-source, cross-platform project generation and configuration tool for ActionScript 2, ActionScript 3&#8242;&#8230;</cite>.  As I&#8217;ve been looking at Ruby using the OSX Terminal and am interested in further experiments in finding new an better ways to compile and build swfs I thought I would investigate, and create another project.</p>
<p></p>
<p>
<h4>Project Aims:</h4>
<p>1. Create a Sprout to compile AS2 Flash to a swf using MTASC.</p>
<p>2. As above with SWFMill</p>
<p>
<h4>The Project uses:</h4>
<p>1. Mac OSX 10.4.11</p>
<p>2. Flash 8</p>
<p>3. AS2</p>
<p>4. Ruby ruby 1.8.6 (Once updated)</p>
<p>5. RubyGems</p>
<p>6. OSX Terminal (I&#8217;m using the $ symbol to denote input into the Terminal Window, ie type what&#8217;s after the $ glyph).</p>
<h4>Tasks</h4>
<p>1. Ascertain which version of ruby is installed. In the Terminal type:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">$ ruby -v</div>
<p>	which for me outputs:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">ruby 1.8.2 (2004-12-25) [universal-darwin8.0]</div>
</p>
<p>2. Update Ruby. The latest version is </p>
<div style="font-size:120%;font-family:monospace;margin:10px;">ruby 1.8.6</div>
<p>	 so if current version is less you need to update. I used the <a href="http://rubyosx.rubyforge.org/">Ruby One-Click Installer for OSX</a>. Downloaded and unpacked in the Terminal, opened a fresh Terminal window and typed in the Terminal:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">$ ruby -v</div>
<p>The output is now:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">ruby 1.8.6 (2007-03-13 patchlevel 0) [universal-darwin8.0]</div>
</p>
<p>3. Install <a href="http://docs.rubygems.org/">RubyGems</a>.</p>
<p>Down load and unpack. ( I put the &#8216;rubygems-1.2.0&#8242; folder in Applications.)</p>
<p>4. Install Rails.<br />
 In the Terminal Window:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">
$ sudo gem install rail</div>
<p>Enter password if prompted. My Terminal output was:<br />
</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">Bulk updating Gem source index for: http://gems.rubyforge.org<br />
	ERROR:  While executing gem &#8230; (Gem::GemNotFoundException)<br />
    Could not find rails (&gt; 0) in any repository</div>
<p>	(I&#8217;m not 100% sure if everything was OK here, or if this step was necessary, so I&#8217;ll have to make some further investigations.)</p>
<p>5. Install the sprout gem. Enter in the terminal:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">$ sudo gem install sprout</div>
<p>
The Terminal Output was:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">Bulk updating Gem source index for: http://gems.rubyforge.org<br />
	Select which gem to install for your platform (universal-darwin8.0)<br />
 	1. sprout 0.7.183 (ruby)<br />
 	2. sprout 0.7.183 (darwin)<br />
 	3. sprout 0.7.183 (mswin32)<br />
 	4. sprout 0.7.183 (x86-linux)<br />
 	5. Skip this gem<br />
 	6. Cancel installation</div>
<p>Just guessing  entered:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">$ 1</div>
<p>A whole load of other options followed such as:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">Install required dependency rubyzip? [Yn]</div>
<p>I entered <cite>Y</cite> for all of them.</p>
<p>Various outputs followed for example:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">Successfully installed sprout-0.7.183<br />
Successfully installed rubyzip-0.9.1<br />
Successfully installed archive-tar-minitar-0.5.2<br />
Successfully installed rails-2.1.0<br />
Successfully installed rake-0.8.1<br />
&#8230;&#8230;</div>
<p>So I assumed the correct applications have been successfully installed.
</p>
<p>6. Instructions for downloading the Sprouts AS2 Bundle see: <a href="http://www.projectsprouts.org/rdoc/files/bundles/as2/README.html">ActionScript 2.0 Bundle</a></p>
<p>For example in the Terminal
<div style="font-size:120%;font-family:monospace;margin:10px;">cd</div>
<p> to an appropriate folder and enter:
<div style="font-size:120%;font-family:monospace;margin:10px;">$ sprout -n as2 SomeProject
</div>
</p>
<p>7. Launch Rake</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">$ rake</div>
<p>Had some problems tried, output:
<div style="font-size:120%;font-family:monospace;margin:10px;"> rake aborted!<br />
no such file to load &#8212; open4</div>
<p> I was getting a message:
<div style="font-size:120%;font-family:monospace;margin:10px;">sudo gem install open4</div>
</p>
<p>8. Sort out Rake problem<br />
 Found some advice here: <a href="http://groups.google.com/group/projectsprouts/browse_thread/thread/c6b82906d9f583c1">projectsprouts</a></p>
<p>Enter in the Terminal:
<div style="font-size:120%;font-family:monospace;margin:10px;">$ sudo gem install open4 </div>
<p>Then after a whole load of output:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">sudo gem install rb-appscript </div>
</p>
<p><p>9. Launch Rake again</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">$ rake</div>
<p>After another string of output, the Flash Player launched with the png of the Sprout logo!</p>
<p><img src="http://factornine.files.wordpress.com/2008/06/picture-1.png?w=283&h=131" alt="Picture 1.png" border="0" width="283" height="131" /></p>
<p>
<h4>Conclusion:</h4>
<p>The project first aim <cite>&#8230;compile AS2 Flash to a swf&#8230; </cite>has been realised, I&#8217;ll create further posts to detail further experiments.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=27&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/06/26/sprouts/feed/</wfw:commentRss>
	
		<media:content url="http://factornine.files.wordpress.com/2008/06/picture-1.png" medium="image">
			<media:title type="html">Picture 1.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Using XTrace and the dubug Class with a Logger Class</title>
		<link>http://factornine.wordpress.com/2008/06/25/using-xtrace-and-the-dubug-class-with-a-logger-class/</link>
		<comments>http://factornine.wordpress.com/2008/06/25/using-xtrace-and-the-dubug-class-with-a-logger-class/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 12:07:20 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[Actioncript]]></category>

		<category><![CDATA[as2]]></category>

		<category><![CDATA[Debugging]]></category>

		<category><![CDATA[osx]]></category>

		<category><![CDATA[XTrace]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=26</guid>
		<description><![CDATA[This post details a further experiment in improving Flash tracing using XTrace.
See my previous post: XTrace, MTASC and TextMate
This project uses:
1. Mac OSX.
2. Flash 8
3. AS2
My aims for this project are:
1. Use XTrace from the Flash IDE.
2. Improve upon the Trace Output, specially the annoying [object Object] 
3. Not rely on using other tools like [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h4>This post details a further experiment in improving Flash tracing using <a href="http://mabblog.com/xtrace.html">XTrace</a>.</h4>
<p>See my previous post: <a href="http://factornine.wordpress.com/2008/06/18/xtrace-mtasc-and-textmate/">XTrace, MTASC and TextMate</a></p>
<h4>This project uses:</h4>
<p>1. Mac OSX.</p>
<p>2. Flash 8</p>
<p>3. AS2</p>
<h4>My aims for this project are:</h4>
<p>1. Use XTrace from the Flash IDE.</p>
<p>2. Improve upon the Trace Output, specially the annoying <cite>[object Object]</cite> </p>
<p>3. Not rely on using other tools like <a href="https://addons.mozilla.org/en-US/firefox/addon/3469">FlashTracer</a> to see trace Trace Output whilst viewing Flash content in a Browser.</p>
<p></p>
<h4>Preamble:</h4>
<p>The normal Flash Trace will be output something like: </p>
<p><cite>videoChoiceRelease: [object Object]</cite>, </p>
<p>whilst what we would prefer would be something like: </p>
<p><cite>videoChoiceRelease: {&#8221;id&#8221;:&#8221;building_futures.flv&#8221;,&#8221;position&#8221;:0,&#8221;target&#8221;:null,&#8221;type&#8221;:&#8221;videoChoice&#8221;}</cite></p>
<p>Whilst working for a project for the now defunct <a href="http://www.bbc.co.uk/bbctrust/news/press_releases/14_03_2007.html">BBC Jam</a> our team used a bespoke Logger Class which had a handy way of outputting an object in more detail than Flash&#8217;s IDE somewhat like the second output above.</p>
<p>This Class used a method <cite>stringify(arg) </cite>from the <a href="http://www.json.org/json.as">JSON Class</a> to serialize an Object.</p>
<p>I didn&#8217;t notice until after I started the project when I viewed a <a href="http://mabblog.com/movies/xtrace_intro.mov">XTrace tutorial</a> that there was a pre-existing method in the debug Class, <cite>dumpObject()</cite>. Which would output using the same example as above:</p>
<p><cite>{<br />
url:undefined<br />
id:building_futures.flv<br />
position:0<br />
target:_level0.asset_vnv_mc.bgd.videoCarousel<br />
type:videoChoice<br />
}</cite>
</p>
<p>The trace: <cite>target:_level0.asset_vnv_mc.bgd.videoCarousel</cite> is an improvement on: <cite>&#8220;target&#8221;:null</cite>, but I&#8217;ll have to come back to that later.</p>
<h4>Project:</h4>
<p>The project incorporates the use of 3 new Classes: JSON, debug and Logger.</p>
<p>1. Download the <a href="http://www.json.org/json.as">JSON</a> Class. I placed the Class in its own Package: <cite>com.designvox.serialisation.json </cite>and changed the Class line to: <cite>class com.designvox.serialisation.json.JSON</cite>.</p>
<p>2. Download the <a href="http://mabblog.com/xtrace.html">debug Class and XTrace</a>, if you have not already done so.</p>
<p>3. Create new Class Logger into Package: <cite>com.factornine.shared.utilities</cite> .</p>
<p>
<pre>class com.factornine.shared.utilities.Logger {

	/*
	 * Constructor should not be called
	 */
	private function Logger(){ throw new Error("Logger should not be instantiated"); }

	/*
	 * @method log
	 * Static Method for Callee to trace via the XTrace window
	 *
	 * @param message (String) Message to be traced
	 * @param payload (Object) Optional Object - serialized by JSON Class
	 *
	 */
	public static function log(message:String, payload:Object)	: Void{

		if (typeof(payload) == "movieclip")
				{
					message += ": " + payload;
				}
				else
				{
					message = (payload != undefined) ? message + ": " + JSON.stringify(payload) : message;
				}

		debug.trace(message);

	}
}</pre>
</p>
<p>4. Add a method call in Class where you want to replace the standard Flash <cite>trace() </cite>.<br />See my example:</p>
<pre>	private function videoChoiceRelease(event : IDEvent) : Void {

		// trace("videoChoiceRelease "+event); // previous call

		Logger.log("Application.videoChoiceRelease", event);
		}
</pre>
<p>
5. Launch the XTrace application. </p>
<p>6. Test Movie.</p>
<p>Which should resulted in something like the following:</p>
<p><img src="http://factornine.files.wordpress.com/2008/06/private-function-videochoicereleaseevent-idevent-void-loggerlogeventid-debugclear-picture-3.png?w=718&h=336" alt="Picture 3.png" border="0" width="718" height="336" />
</p>
<h4>Conclusion:</h4>
<p>I&#8217;m pretty happy that I&#8217;ve got a more helpful Trace output, which also works in Firefox and Safari. </p>
<h4>More To do:</h4>
<p>1. Look further into using the set up with MTASC.</p>
<p>2. See what happens in AS3.</p>
<p>3. See PC alternatives.</p>
<p>4. Have the option to use the rather <cite>dumpObject(obj)</cite> than the <cite>stringify(arg)</cite> method.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=26&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/06/25/using-xtrace-and-the-dubug-class-with-a-logger-class/feed/</wfw:commentRss>
<enclosure url="http://mabblog.com/movies/xtrace_intro.mov" length="30745790" type="video/quicktime" />
	
		<media:content url="http://factornine.files.wordpress.com/2008/06/private-function-videochoicereleaseevent-idevent-void-loggerlogeventid-debugclear-picture-3.png" medium="image">
			<media:title type="html">Picture 3.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Flash Bloggers</title>
		<link>http://factornine.wordpress.com/2008/06/20/flash-bloggers/</link>
		<comments>http://factornine.wordpress.com/2008/06/20/flash-bloggers/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 13:54:40 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Blog]]></category>

		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=23</guid>
		<description><![CDATA[Searching the Web I&#8217;ve come across many good Flash Blogs which I will Document here:
Lee Brimelow&#8217;s blog, TheFlashBlog, also the author of gotoAndLearn tutorials.
automatalabs
Pixelfumes  a Pittsburgh-based multimedia solutions company. They have also provided articles for the Adobe devnet site.

Mike Chambers
Razorberry. There are some good AS2 and AS3 functions on the Blog, for instance Colour [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Searching the Web I&#8217;ve come across many good Flash Blogs which I will Document here:</p>
<p>Lee Brimelow&#8217;s blog, <a href="http://theflashblog.com/">TheFlashBlog</a>, also the author of <a href="http://www.gotoandlearn.com/">gotoAndLearn</a> tutorials.</p>
<p><a href="http://www.automatalabs.com/asblog">automatalabs</a></p>
<p><a href="http://blog.pixelfumes.com/">Pixelfumes</a>  a Pittsburgh-based multimedia solutions company. They have also provided articles for the Adobe devnet site.<br />
<a href="http://www.mikechambers.com/blog/"><br />
Mike Chambers</a></p>
<p><a href="http://www.razorberry.com/blog">Razorberry</a>. There are some good AS2 and AS3 functions on the Blog, for instance <a href="http://www.razorberry.com/blog/archives/2006/03/28/colour-utility-methods/">Colour utility methods</a>, and <a href="http://www.razorberry.com/blog/archives/2008/01/28/as3-dynamic-speech-bubble-snippet/">AS3 Dynamic Speech Bubble Snippet</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=23&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/06/20/flash-bloggers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ActionScript CodeSnippets</title>
		<link>http://factornine.wordpress.com/2008/06/20/actionscript-codesnippets/</link>
		<comments>http://factornine.wordpress.com/2008/06/20/actionscript-codesnippets/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 11:59:18 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[as2]]></category>

		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=22</guid>
		<description><![CDATA[I was looking for some good Flash programming articles to add to by post Flash Programming - Good Articles, and came across Jim Bumgardner&#8217;s blog, which in turn led me to this solution he posted to the FlashKit forum  2-State Button.
In the examples he uses the XOR operator: ^
and the conditional operator: ?:
I&#8217;ve never [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was looking for some good Flash programming articles to add to by post <a href="http://factornine.wordpress.com/2008/06/20/flash-programming-good-articles/">Flash Programming - Good Articles</a>, and came across <a href="http://www.jbum.com/egocentrism.html">Jim Bumgardner&#8217;s blog</a>, which in turn led me to this solution he posted to the FlashKit forum <a href="http://board.flashkit.com/board/showthread.php?threadid=590921"> 2-State Button</a>.</p>
<p>In the examples he uses the XOR operator: ^<br />
and the conditional operator: ?:</p>
<p>I&#8217;ve never been a fan of the conditional operator as the code to me, although succinct does not seem as clear as using if and else. To add to the confusion the operation is also known as Ternary operator. See the wikepedia definition <a href="http://en.wikipedia.org/wiki/Ternary_operation">Ternary_operation</a>.<br />I&#8217;ll add the code from Flash help as a reference:<br />
var timecode:String = (new Date().getHours() &lt; 11) ? &#8220;AM&#8221; : &#8220;PM&#8221;;<br />
trace(timecode);</p>
<p>The XOR operator seems like fun, although I&#8217;ve never found an instance where I could use it!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=22&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/06/20/actionscript-codesnippets/feed/</wfw:commentRss>
		</item>
		<item>
		<title>RUBY</title>
		<link>http://factornine.wordpress.com/2008/06/20/ruby/</link>
		<comments>http://factornine.wordpress.com/2008/06/20/ruby/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 11:01:50 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[Ruby]]></category>

		<category><![CDATA[osx]]></category>

		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=21</guid>
		<description><![CDATA[I was having a little time on my hands and I thought I would try looking at Ruby.
Ruby is installed with OSX. 
(I&#8217;ll post these links and information and tidy and format them up later. )
I&#8217;ve used the dollar sign $ to indicate the following text is to be entered into the Terminal window.
Links:
See: guide [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was having a little time on my hands and I thought I would try looking at Ruby.</p>
<p>Ruby is installed with OSX. </p>
<p>(I&#8217;ll post these links and information and tidy and format them up later. )</p>
<p>I&#8217;ve used the dollar sign $ to indicate the following text is to be entered into the Terminal window.</p>
<p>Links:</p>
<p>See: <a href="http://www.poignantguide.net/ruby/">guide</a> </p>
<p><a href="http://www2.ruby-lang.org/en/20020102.html">download</a></p>
<p><a href="http://www.math.umd.edu/%7Edcarrera/ruby/0.3/">introduction</a></p>
<p><a href="http://www.poignantguide.net/ruby/expansion-pak-1.html">expansion pack</a>: </p>
<p><a href="http://ruby.about.com/od/tutorials/ht/installrubyosx.htm">How To Install Ruby on OS X</a></p>
<p><a href="http://rubyosx.rubyforge.org/">Ruby One-Click Installer for OSX</a></p>
<p>1. Download Ruby and place in Applications folder</p>
<p>2. Open the terminal</p>
<p>3. Launch Ruby and see prompt:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">
 $	irb &#8211;simple-prompt</p>
<p>	&gt;&gt; </p></div>
<p>4. To create a Hello World application</p>
<p>	I created a new folder - ruby in my Workspace</p>
<p>	Created the following in a textfile:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">puts &#8220;Hello World&#8221; </div>
<p>	saved as hello.rb in the ruby folder.</p>
<p>	in the Terminal window:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">$ cd to workspace/ruby</p>
<p>	$ ruby hello.rb</p></div>
<p></p>
<p>And Voila: </p>
<div style="font-size:120%;font-family:monospace;margin:10px;">&#8220;Hello World&#8221; </div>
<p>appears in the terminal window!</p>
<p>5. To make make executable:</p>
<p>add:
<div style="font-size:120%;font-family:monospace;margin:10px;">#!</div>
<p> (pronounced &#8220;sharp bang&#8221;) to the first line of the HelloWorld file</p>
<p>to make:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">#! /usr/bin/ruby</p>
<p>	puts &#8220;Hello World&#8221;</p></div>
<p></p>
<p>6. The file needs to be &#8216;modified&#8217; before the app can run: </p>
<div style="font-size:120%;font-family:monospace;margin:10px;">$ chmod +x hello.rb </div>
<p>	( And ./ has to precede the fie name. ) </p>
<div style="font-size:120%;font-family:monospace;margin:10px;"> $ ./hello.rb</div>
<p> The Terminal outputs:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">&#8220;Hello World&#8221; </div>
<p></p>
<p>6. EXAMPLES OF RUBY COMMANDS:</p>
<div style="font-size:120%;font-family:monospace;margin:10px;">$ ri</div>
<p> can give you information about a class.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=21&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/06/20/ruby/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash Programming - Good Articles</title>
		<link>http://factornine.wordpress.com/2008/06/20/flash-programming-good-articles/</link>
		<comments>http://factornine.wordpress.com/2008/06/20/flash-programming-good-articles/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 10:42:35 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[as2]]></category>

		<category><![CDATA[AS3]]></category>

		<category><![CDATA[Law of Demeter]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=20</guid>
		<description><![CDATA[I&#8217;m compiling a collection of links to good Flash Programming articles, I&#8217;ll add some more details soon.
Explaining OOP without Mentioning Classes
I&#8217;m currently documenting a Flash project and whilst I was looking for precise definitions of Programming terms came across a definition of the Law of Demeter. This is (t)he fundamental notion is that a given [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m compiling a collection of links to good Flash Programming articles, I&#8217;ll add some more details soon.</p>
<p><a href="http://www.unfitforprint.com/articles/2005/11/22/explaining-oop-without-mentioning-classes-part-1">Explaining OOP without Mentioning Classes</a></p>
<p>I&#8217;m currently documenting a Flash project and whilst I was looking for precise definitions of Programming terms came across a definition of the <a href="http://en.wikipedia.org/wiki/Law_of_Demeter">Law of Demeter</a>. This is <cite>(t)he fundamental notion is that a given object should assume as little as possible about the structure or properties of anything else</cite>&#8230; This is something I&#8217;ve been attempting to do without having a name for it for some time, i.e.. a Class should know as little as possible.</p>
<p>To quote again from this article a point pertinent to ActionScript: <cite>In particular, an object should avoid invoking methods of a member object returned by another method. For many modern object oriented languages that use a dot as field identifier, the law can be stated simply as &#8220;use only one dot&#8221;. That is, the code &#8220;a.b.Method()&#8221; breaks the law where &#8220;a.Method()&#8221; does not.</cite></p>
<p>There is a good example explaining the Law of Demeter using Ruby see: <a href="http://www.dcmanges.com/blog/37">Misunderstanding the Law of Demeter</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=20&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/06/20/flash-programming-good-articles/feed/</wfw:commentRss>
		</item>
		<item>
		<title>TextMate</title>
		<link>http://factornine.wordpress.com/2008/06/20/textmate/</link>
		<comments>http://factornine.wordpress.com/2008/06/20/textmate/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 10:31:09 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[osx]]></category>

		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=19</guid>
		<description><![CDATA[I occasionally us TextMate as an alternative to Eclipse.

It&#8217;s a Mac OSX only text editor with plenty of extra features. I&#8217;ve used is ability to compile with MTASC with some success, see my post &#8216;XTRACE, MTASC and TextMate&#8216;.
I found a useful Cheat Sheet provided by grayskies.net.
Also, G Design&#8217;s 2 Page Cheat Sheet is excellent. 
The [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I occasionally us <a href="http://macromates.com/">TextMate</a> as an alternative to Eclipse.</p>
<p></p>
<p>It&#8217;s a Mac OSX only text editor with plenty of extra features. I&#8217;ve used is ability to compile with MTASC with some success, see my post &#8216;<a href="http://factornine.wordpress.com/2008/06/18/xtrace-mtasc-and-textmate/">XTRACE, MTASC and TextMate</a>&#8216;.</p>
<p>I found a useful <a href="http://www.grayskies.net/TMcheatsheet.pdf">Cheat Sheet</a> provided by <a href="http://www.grayskies.net/textmate">grayskies.net</a>.</p>
<p>Also, G Design&#8217;s<a href="http://www.g-design.net/textmate.pdf"> 2 Page Cheat Sheet </a>is excellent. </p>
<p>The <a href="http://manual.macromates.com/en/preface#about_the_documentation">TextMate online manual</a> provides a useful key for the Glyphs used in the Cheat Sheets.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=19&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/06/20/textmate/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XTRACE, MTASC and TextMate</title>
		<link>http://factornine.wordpress.com/2008/06/18/xtrace-mtasc-and-textmate/</link>
		<comments>http://factornine.wordpress.com/2008/06/18/xtrace-mtasc-and-textmate/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 11:33:19 +0000</pubDate>
		<dc:creator>russellf9</dc:creator>
		
		<category><![CDATA[flash]]></category>

		<category><![CDATA[as2]]></category>

		<category><![CDATA[MTASC]]></category>

		<category><![CDATA[osx]]></category>

		<category><![CDATA[TextMate]]></category>

		<category><![CDATA[XTrace]]></category>

		<guid isPermaLink="false">http://factornine.wordpress.com/?p=17</guid>
		<description><![CDATA[Generally I use FDT to create my Flash projects, but have just trashed my Java paths and am unable to use Eclipse. So I thought I would have a go at using TextMate to create a Flash project and see if I can compile with MTASC, rather than using the slow Flash IDE and use [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Generally I use FDT to create my Flash projects, but have just trashed my Java paths and am unable to use Eclipse. So I thought I would have a go at using <a href="http://macromates.com/">TextMate</a> to create a Flash project and see if I can compile with <a href="http://www.mtasc.org/">MTASC</a>, rather than using the slow Flash IDE and use <a href="http://mabblog.com/xtrace.html">XTrace</a>, rather than the Flash Output. Also, if possible preview the swf in a browser with the Trace active.</p>
<p>I&#8217;ll try and keep this post brief and if necessary create new posts if certain points need more clarification.</p>
<p>The <a href="http://www.monokai.nl/blog/2006/07/14/using-textmate-mtasc-and-xtrace-to-build-flash-projects-in-mac-osx/">Monaki</a> site explains how to set up TextMate, MTASC and XTrace to build Flash projects in Mac OSX.</p>
<p>(I won&#8217;t detail setting up the Main entry point the Application Class, or detail the structure of my project here.)</p>
<p>I installed the XTrace app and the com/mab/util/debug Class as described, but was unable to get the &#8216;build.sh&#8217; or &#8216;runScript.sh&#8217; to work. So, I switched to using TextMate to create the necessary MTASC files.</p>
<p>From the TextMate Menu Select: -	Bundles - ActionScript - MTASC - Install MTASC Support Files. <br />
This creates a file called &#8216;mtasc.yaml&#8217;.  For a definition of yaml see the <a href="http://en.wikipedia.org/wiki/YAML">wikipedia</a> entry). This will create a default file that MTASC uses. First step is to change these parameters from: </p>
<p># Name of your output file:<br />
swf:        myApplication.swf</p>
<p># Name of your main class:<br />
app:        myClass.as</p>
<p>to reflect the structure of your project (in my case):</p>
<p># Name of your output file:<br />
swf:        bin/textMateTest_2.swf</p>
<p># Name of your main class:<br />
app:      Application.as<br />
<br />
To use xTrace simply un-comment the following line<br />
#trace: xtrace</p>
<p>to:</p>
<p>trace: xtrace</p>
<p></p>
<p>Also if you change the preview line in the yaml file the to the path of the export html path:</p>
<p>preview:    bin/textMateTest_2.html</p>
<p>The 	Flash file is previewed in a browser and the trace outputs to the XTrace application.</p>
<p></p>
<p>There are a few issues to sort out and document regarding the project: </p>
<p>1. 	I removed the com.mab.util.debug folder and the XTrace still worked.<br />
2. 	I could not move the Application Class from the top level of the project.<br />
3. 	I would really like to use XTrace with FDT, and MTASC.<br />
4.	I tested an application using a Flash library asset and it worked. (That is the application was able to attach a named MovieClip. </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/factornine.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/factornine.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/factornine.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/factornine.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/factornine.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/factornine.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/factornine.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/factornine.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/factornine.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/factornine.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/factornine.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/factornine.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=factornine.wordpress.com&blog=2545267&post=17&subd=factornine&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://factornine.wordpress.com/2008/06/18/xtrace-mtasc-and-textmate/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>