<?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>ryac</title>
	<atom:link href="http://www.ryac.ca/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryac.ca/blog</link>
	<description>★</description>
	<lastBuildDate>Sun, 17 Jan 2010 01:31:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>10,000 Hours. How Long is That?</title>
		<link>http://www.ryac.ca/blog/2010/01/10000-hours-how-long-is-that/</link>
		<comments>http://www.ryac.ca/blog/2010/01/10000-hours-how-long-is-that/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 08:14:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ryac.ca/blog/?p=18</guid>
		<description><![CDATA[Malcolm Gladwell writes in his book, &#8220;Outliers&#8221;, about how long it takes to become really good at anything complex, from building a gigantic software company to becoming a legendary musician. Researchers say it&#8217;s 10,000 hours. How long is that? You can find out below.. 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_10000_hours_761398635"
			class="flashmovie"
			width="360"
			height="500">
	<param name="movie" value="http://www.ryac.ca/blog/wp-content/uploads/2010/01/10000_hours.swf" />
	<param name="menu" value="false" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.ryac.ca/blog/wp-content/uploads/2010/01/10000_hours.swf"
			name="fm_10000_hours_761398635"
			width="360"
			height="500">
		<param name="menu" value="false" />
	<!--<![endif]-->
		 
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>]></description>
			<content:encoded><![CDATA[<p>Malcolm Gladwell writes in his book, &#8220;Outliers&#8221;, about how long it takes to become <em>really</em> good at anything complex, from building a gigantic software company to becoming a legendary musician. Researchers say it&#8217;s 10,000 hours. How long is that? You can find out below..</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_10000_hours_1665419101"
			class="flashmovie"
			width="360"
			height="500">
	<param name="movie" value="http://www.ryac.ca/blog/wp-content/uploads/2010/01/10000_hours.swf" />
	<param name="menu" value="false" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.ryac.ca/blog/wp-content/uploads/2010/01/10000_hours.swf"
			name="fm_10000_hours_1665419101"
			width="360"
			height="500">
		<param name="menu" value="false" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.ryac.ca/blog/2010/01/10000-hours-how-long-is-that/feed/</wfw:commentRss>
		<slash:comments>82</slash:comments>
		</item>
		<item>
		<title>The Undocumented &#8220;addFrameScript&#8221; Method</title>
		<link>http://www.ryac.ca/blog/2008/05/the-undocumented-addframescript-method/</link>
		<comments>http://www.ryac.ca/blog/2008/05/the-undocumented-addframescript-method/#comments</comments>
		<pubDate>Fri, 09 May 2008 01:28:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.ryac.ca/blog/?p=9</guid>
		<description><![CDATA[There&#8217;s a useful function inside the MoveClip class (AS3) that will add script inside a Movieclip on a specific frame without actually having to add it manually to the timeline. This is great if, say you have someone working purely on animation and then someone else working on the interface to hold/play/control the animation. A lot of ]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a useful function inside the MoveClip class (AS3) that will add script inside a Movieclip on a specific frame without actually having to add it manually to the timeline. This is great if, say you have someone working purely on animation and then someone else working on the interface to hold/play/control the animation. A lot of times this person will need to know when then animation has completed and will therefore need to add script inside the MovieClip animation. The addFrameScript can do this for you without altering the animation and re-exporting, etc.</p>
<p>The function takes two parameters: frame number to place the script (0 based) and the function name to call.</p>
<p><strong>public function addFrameScript (frame:uint, notify:Function):void;</strong></p>
<p>Example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #808080; font-style: italic;">// animation is the name of the movieclip.. </span>
animation.<span style="color: #006600;">addFrameScript</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">77</span>, onAnimationEnd<span style="color: #66cc66;">&#41;</span>;      
&nbsp;
<span style="color: #808080; font-style: italic;">// function called when playhead reaches 76.. </span>
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onAnimationEnd <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span> 
	<span style="color: #0066CC;">trace</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;onAnimationEnd..&quot;</span><span style="color: #66cc66;">&#41;</span>; 
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.ryac.ca/blog/2008/05/the-undocumented-addframescript-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>StopWatch Class</title>
		<link>http://www.ryac.ca/blog/2008/03/stopwatch-class/</link>
		<comments>http://www.ryac.ca/blog/2008/03/stopwatch-class/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 07:23:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.ryac.ca/blog/?p=8</guid>
		<description><![CDATA[I worked on a couple projects a while back that required a stopwatch (or timer) to keep track of time in a game, so I made this StopWatch class. Found it very helpful so I wanna share it. Besides the basic functions of starting, stopping, and resetting, you can also pass in a TextFormat object to change the formatting of the text, get the time in ]]></description>
			<content:encoded><![CDATA[<p>I worked on a couple projects a while back that required a stopwatch (or timer) to keep track of time in a game, so I made this StopWatch class. Found it very helpful so I wanna share it. Besides the basic functions of starting, stopping, and resetting, you can also pass in a TextFormat object to change the formatting of the text, get the time in milliseconds (it&#8217;s what I used to store in the database), and parse the milliseconds back into something more readable..</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_sw_606333080"
			class="flashmovie"
			width="350"
			height="150">
	<param name="movie" value="http://www.ryac.ca/blog/content/sw.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.ryac.ca/blog/content/sw.swf"
			name="fm_sw_606333080"
			width="350"
			height="150">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Here&#8217;s how to use it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> ca.<span style="color: #006600;">ryac</span>.<span style="color: #006600;">StopWatch</span>;        
&nbsp;
<span style="color: #808080; font-style: italic;">// creates a StopWatch obj and sets the formatting to the txtFormat obj.. </span>
<span style="color: #808080; font-style: italic;">// last parameter will set embeddedFonts to either true or false (default is false).. </span>
<span style="color: #000000; font-weight: bold;">var</span> sw:StopWatch = <span style="color: #000000; font-weight: bold;">new</span> StopWatch <span style="color: #66cc66;">&#40;</span>txtFormat, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;        
&nbsp;
<span style="color: #808080; font-style: italic;">// pretty self-explanatory.. </span>
sw.<span style="color: #0066CC;">start</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; 
sw.<span style="color: #0066CC;">stop</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; 
sw.<span style="color: #006600;">reset</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;        
&nbsp;
<span style="color: #808080; font-style: italic;">// set or change the formatting and sets embeddedFonts to true.. </span>
sw.<span style="color: #0066CC;">setTextFormat</span> <span style="color: #66cc66;">&#40;</span>txtFormat2, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;        
&nbsp;
<span style="color: #808080; font-style: italic;">// output the time in milliseconds </span>
<span style="color: #0066CC;">trace</span> <span style="color: #66cc66;">&#40;</span>sw.<span style="color: #0066CC;">time</span><span style="color: #66cc66;">&#41;</span>;        
&nbsp;
StopWatch.<span style="color: #006600;">parseTime</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">87292</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// returns 01:27:29</span></pre></td></tr></table></div>

<p>Download <a href="http://www.ryac.ca/blog/content/StopWatch.as" title="StopWatch.as file">StopWatch.as</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryac.ca/blog/2008/03/stopwatch-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Japanese &#8220;Flash Card&#8221; Application for Flash Lite Devices</title>
		<link>http://www.ryac.ca/blog/2008/03/japanese-flash-card-application-for-flash-lite-phones/</link>
		<comments>http://www.ryac.ca/blog/2008/03/japanese-flash-card-application-for-flash-lite-phones/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 07:25:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash Lite]]></category>
		<category><![CDATA[Japanese]]></category>

		<guid isPermaLink="false">http://www.ryac.ca/blog/?p=6</guid>
		<description><![CDATA[I started learning Japanese not too long ago and to help me with my studies I made a small app to familiarize myself with the Hiragana and Katakana characters. It proved to be very useful while waiting for the bus, taking the train, etc. Here&#8217;s some screen shots:   You can choose to randomly display the characters for ]]></description>
			<content:encoded><![CDATA[<p>I started learning Japanese not too long ago and to help me with my studies I made a small app to familiarize myself with the Hiragana and Katakana characters. It proved to be very useful while waiting for the bus, taking the train, etc.</p>
<p>Here&#8217;s some screen shots:</p>
<p><img border="1" src="http://www.ryac.ca/blog/content/jpfca_01.jpg" alt="JP Flash Card App 1" height="320" width="240" /> <img border="1" src="http://www.ryac.ca/blog/content/jpfca_02.jpg" alt="JP Flash Card App 2" height="320" width="240" /></p>
<p>You can choose to randomly display the characters for each character set and also show or hide names when the card is first displayed.</p>
<p>I&#8217;ve been testing on a Nokia E65 and works well. If you&#8217;ve seen this app before, you might have read my comment about the small bug that appeared in Flash Lite 2.x &#8211; how the first card was not matching the romanji name. The problem was not enough time was given to completely load the swf before calling some script. I&#8217;ve fixed this by giving more time (read as: inserting more frames) for the swf to load completely before calling any script on it. This way, the swf fully loads and is able to jump to the correct frame to match the romanji. So it works in FL 1.1, 2.x, and 3.0 now but I found it a bit strange how this problem only appeared in the newer FL versions (2.x &amp; 3.0).</p>
<p>Please feel free to <a href="http://www.ryac.ca/blog/content/Japanese.zip" title="Japanese Flash Card App">download it here</a> and give it a try. If you&#8217;re studying Japanese I hope it helps!</p>
<p>To find out if your phone has Flash Lite pre-installed, <a target="_blank" href="http://www.ryac.ca/blog/content/Devices-with-FL-pre-installed.pdf" title="Devices with FL pre-installed">download this pdf file</a> originally available on <a target="_blank" href="http://www.flashdevices.net/" title="Flash Devices">Bill Perry</a>&#8216;s blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryac.ca/blog/2008/03/japanese-flash-card-application-for-flash-lite-phones/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
