<?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>Mykhel Trinitaria</title>
	<atom:link href="http://mtrinitaria.com/mykhel/feed/" rel="self" type="application/rss+xml" />
	<link>http://mtrinitaria.com/mykhel</link>
	<description>Flash Developer &#124; Flex Developer &#124; HTML5 Developer &#124; iPhone Developer &#124; Android Developer &#124; SEO Expert Philippines</description>
	<lastBuildDate>Tue, 08 May 2012 08:43:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Sample of how to use Canvas in HTML5 with Physics</title>
		<link>http://mtrinitaria.com/mykhel/sample-of-how-to-use-canvas-in-html5-with-physics/</link>
		<comments>http://mtrinitaria.com/mykhel/sample-of-how-to-use-canvas-in-html5-with-physics/#comments</comments>
		<pubDate>Tue, 08 May 2012 08:34:53 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=427</guid>
		<description><![CDATA[This is my advance sample of how to use Canvas in HTML5 with Physics. You will learn how to: - get/set pixels in Canvas - load external image in Canvas (Of course just tested this in FF, and good luck to someone who will run this in IE) Click here for full page demo. You [...]]]></description>
			<content:encoded><![CDATA[<p>This is my advance sample of how to use Canvas in HTML5 with Physics.<br />
You will learn how to:<br />
- get/set pixels in Canvas<br />
- load external image in Canvas</p>
<p>(Of course just tested this in FF, and good luck to someone who will run this in IE)</p>
<p><a title="Canvas in HTML5 with Physics actual demo" href="http://mtrinitaria.com/test/canvas_with_physics/">Click here</a> for full page demo.</p>
<p>You can get the source code <a title="jQuery with Physics source code" href="http://mtrinitaria.com/test/canvas_with_physics/canvas_with_physics.zip">here</a>, and play with the codes.</p>
<p><iframe style="padding: 0pt; margin: 0pt; overflow: hidden; border: 1px solid black;" src="http://mtrinitaria.com/test/canvas_with_physics/" width="350" height="500"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/sample-of-how-to-use-canvas-in-html5-with-physics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sample of how to use jQuery with Physics</title>
		<link>http://mtrinitaria.com/mykhel/sample-of-how-to-use-jquery-with-physics/</link>
		<comments>http://mtrinitaria.com/mykhel/sample-of-how-to-use-jquery-with-physics/#comments</comments>
		<pubDate>Mon, 07 May 2012 11:51:26 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[physics]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=412</guid>
		<description><![CDATA[This is my advance sample of how to use jQuery with Physics. Click here for full page demo. You can get the source code here, and play with  the codes.]]></description>
			<content:encoded><![CDATA[<p>This is my advance sample of how to use jQuery with Physics.</p>
<p><a title="jQuery with Physics actual demo" href="http://mtrinitaria.com/test/jQuery_with_physics/">Click here</a> for full page demo.</p>
<p>You can get the source code <a title="jQuery with Physics source code" href="http://mtrinitaria.com/test/jQuery_with_physics/jQuery_with_physics.zip">here</a>, and play with  the codes.</p>
<p><iframe style="padding: 0pt; margin: 0pt; overflow: hidden; border: 1px solid black;" src="http://mtrinitaria.com/test/jQuery_with_physics/" width="640" height="800"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/sample-of-how-to-use-jquery-with-physics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO Expert Philippines</title>
		<link>http://mtrinitaria.com/mykhel/seo-expert-philippines/</link>
		<comments>http://mtrinitaria.com/mykhel/seo-expert-philippines/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 06:53:34 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=403</guid>
		<description><![CDATA[Enhance your business by hiring ME as a SEO in your website. If you want reliable and affordable SEO expert in Philippines, just contact me. How expert am I: &#8220;filipino flash developer&#8221; &#8211; Google, Yahoo, Bing &#8220;filipino flex developer&#8221; &#8211; Google, Yahoo, Bing &#8220;filipino html5 developer&#8221; &#8211; Google, Yahoo, Bing &#8220;filipino iphone developer&#8221; &#8211; Google, [...]]]></description>
			<content:encoded><![CDATA[<p>Enhance your business by hiring ME as a SEO in your website. If you want reliable and affordable SEO expert in Philippines, just contact me.</p>
<p><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2011/08/mykhel0003.jpg"><img class="size-full wp-image-404 alignnone" title="mykhel0003@yahoo.com" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2011/08/mykhel0003.jpg" alt="" width="168" height="20" /></a></p>
<p>How expert am I:<br />
&#8220;filipino flash developer&#8221; &#8211; <a href="http://www.google.com/search?q=filipino+flash+developer">Google</a>, <a href="http://search.yahoo.com/search?p=filipino+flash+developer">Yahoo</a>, <a href="http://www.bing.com/search?q=filipino+flash+developer">Bing</a><br />
&#8220;filipino flex developer&#8221; &#8211; <a href="http://www.google.com/search?q=filipino+flex+developer">Google</a>, <a href="http://search.yahoo.com/search?p=filipino+flex+developer">Yahoo</a>, <a href="http://www.bing.com/search?q=filipino+flex+developer">Bing</a><br />
&#8220;filipino html5 developer&#8221; &#8211; <a href="http://www.google.com/search?q=filipino+html5+developer">Google</a>, <a href="http://search.yahoo.com/search?p=filipino+html5+developer">Yahoo</a>, <a href="http://www.bing.com/search?q=filipino+html5+developer">Bing</a><br />
&#8220;filipino iphone developer&#8221; &#8211; <a href="http://www.google.com/search?q=filipino+iphone+developer">Google</a>, <a href="http://search.yahoo.com/search?p=filipino+iphone+developer">Yahoo</a>, <a href="http://www.bing.com/search?q=filipino+iphone+developer">Bing</a><br />
&#8220;filipino android developer&#8221; &#8211; <a href="http://www.google.com/search?q=filipino+android+developer">Google</a>, <a href="http://search.yahoo.com/search?p=filipino+android+developer">Yahoo</a>, <a href="http://www.bing.com/search?q=filipino+android+developer">Bing</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/seo-expert-philippines/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AS3 Benchmark: Graphics.beginBitmapFill() vs BitmapData()</title>
		<link>http://mtrinitaria.com/mykhel/as3-benchmark-graphics-beginbitmapfill-vs-bitmapdata/</link>
		<comments>http://mtrinitaria.com/mykhel/as3-benchmark-graphics-beginbitmapfill-vs-bitmapdata/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 09:09:30 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[AS3 Tips]]></category>
		<category><![CDATA[Benchmark]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[as3 benchmark]]></category>
		<category><![CDATA[AS3 Tutorial]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=398</guid>
		<description><![CDATA[Just worked on a racing game&#8230; It requires lots of graphics and bitmaps. I have just discovered the other way how to render bitmaps in the flash. Before, I&#8217;m using BitmapData and insert it in Bitmap, then add it in the stage. Just a while ago, I tried to use the Graphics.beginBitmapFill(). First, I did [...]]]></description>
			<content:encoded><![CDATA[<p>Just worked on a racing game&#8230;</p>
<p>It requires lots of graphics and bitmaps. I have just discovered the other way how to render bitmaps in the flash.</p>
<p>Before, I&#8217;m using BitmapData and insert it in Bitmap, then add it in the stage. Just a while ago, I tried to use the Graphics.beginBitmapFill(). First, I did some benchmark and this how it was:<br />
- using BitmapData:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> bmpData:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">100</span>, <span style="color: #000000; font-weight: bold;">false</span>, 0x000000<span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> bmp:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">100</span>, <span style="color: #000000; font-weight: bold;">false</span>, 0x000000<span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&amp;</span>lt; <span style="color: #cc66cc;">10000</span>; i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	bmp.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span>bmpData<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>- using Graphics.beginBitmapFill()</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> bmpData:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">100</span>, <span style="color: #000000; font-weight: bold;">false</span>, 0x000000<span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> shp:Shape = <span style="color: #000000; font-weight: bold;">new</span> Shape<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&amp;</span>lt; <span style="color: #cc66cc;">10000</span>; i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	shp.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">beginBitmapFill</span><span style="color: #66cc66;">&#40;</span>bmpData<span style="color: #66cc66;">&#41;</span>;
	shp.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawRect</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This gave me <strong><span style="color: #ff0000;">17ms</span> </strong>for Graphics.beginBitmapFill() and <strong><span style="color: #ff0000;">93ms</span></strong> for Bitmapdata()</p>
<p>So I&#8217;m suggesting now to use Graphics.beginBitmapFill() for bitmap patterns.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/as3-benchmark-graphics-beginbitmapfill-vs-bitmapdata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Things Senior Flash Developer Should Know</title>
		<link>http://mtrinitaria.com/mykhel/10-things-senior-flash-developer-should-know/</link>
		<comments>http://mtrinitaria.com/mykhel/10-things-senior-flash-developer-should-know/#comments</comments>
		<pubDate>Wed, 04 May 2011 01:05:05 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Flash Developer]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=393</guid>
		<description><![CDATA[I thought my skills in Flash/Actionscript is for senior level.  I just realized that no matter how good you are in: actionscripts, designing, problem solving, math, etc., that doesn&#8217;t mean you are for seniority level. Because you should know how to manage/optimize your codes, how is the component/compiler works, you should be strict with your [...]]]></description>
			<content:encoded><![CDATA[<p>I thought my skills in Flash/Actionscript is for senior level.  I just realized that no matter how good you are in: actionscripts, designing, problem solving, math, etc., that doesn&#8217;t mean you are for seniority level. Because you should know how to manage/optimize your codes, how is the component/compiler works, you should be strict with your attitude in making back-ups of  your codes, clean up your codes as per other developer can read yours, and should know some simple terminologies. AND so as not to compare your skills to other Flash Developers. Be HUMBLE to accept their ideas/skills and be GENEROUS to share your ideas/skills.</p>
<p>Here is a guide to be a Senior Flash Developer (If this stuff is “old hat” to you,feel free to make critiques on  this listing and add more references in the comments):</p>
<p>1.      The Elastic Racetrack<br />
You need to understand when events fire, when code is executed, and when the player renders. It’s really the foundational concept of Flash Player.<br />
<a href="http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/"> http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/</a></p>
<p>2.      FlexSDK, mxmlc, compc, and all that jazz<br />
You need to know what’s going on when you hit that “run” button in Eclipse.<br />
<a href="http://www.senocular.com/flash/tutorials/as3withmxmlc/"> http://www.senocular.com/flash/tutorials/as3withmxmlc/</a><br />
<a href="http://livedocs.adobe.com/flex/3/html/help.html?content=apparch_08.html"> http://livedocs.adobe.com/flex/3/html/help.html?content=apparch_08.html</a></p>
<p>3.      Player Events, Custom Events, Event Bubbling<br />
I can’t imagine where flash player would be without frames and mouse clicks.<br />
<a href="http://www.adobe.com/devnet/actionscript/articles/event_handling_as3_03.html">http://www.adobe.com/devnet/actionscript/articles/event_handling_as3_03.html</a><br />
<a href="http://livedocs.adobe.com/flex/3/langref/flash/events/package-detail.html">http://livedocs.adobe.com/flex/3/langref/flash/events/package-detail.html</a><br />
<a href="http://www.tink.ws/blog/custom-events-in-as-30-dont-forget-to-override-the-clone-method/">http://www.tink.ws/blog/custom-events-in-as-30-dont-forget-to-override-the-clone-method/</a><br />
<a href="http://jacwright.com/blog/70/how-to-listen-to-flash-events-that-dont-bubble/">http://jacwright.com/blog/70/how-to-listen-to-flash-events-that-dont-bubble/</a></p>
<p>4.      Statements, Keywords, and Directives<br />
You should never be surprised by a new “word” in as3. If you don’t know what “static” or “override” or others are, learn them.<br />
<a href="http://livedocs.adobe.com/flex/2/langref/statements.html">http://livedocs.adobe.com/flex/2/langref/statements.html</a></p>
<p>5.      ASDoc<br />
Someday, you’ll re-read your code and have no idea what it does. The stress here is on proper documenting, but generating asdocs is nice too.<br />
<a href="http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_3.html">http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_3.html</a></p>
<p>6.      Managing visual assets (images, fonts, CSS, etc)<br />
Flash is visual. So you need to know how to manage assets with code.<br />
<a href="http://www.gskinner.com/talks/flexlovesflash/">http://www.gskinner.com/talks/flexlovesflash/</a><br />
<a href="http://code.google.com/p/queueloader-as3/">http://code.google.com/p/queueloader-as3/</a><br />
<a href="http://code.google.com/p/bulk-loader/">http://code.google.com/p/bulk-loader/</a></p>
<p>7.      Arrays, Collections, Dictionaries, Mapping<br />
You’re not just working with one MovieClip here, so you need to know how to control multiple objects at once.<br />
<a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html</a><br />
<a href="http://www.gskinner.com/blog/archives/2006/07/as3_dictionary.html">http://www.gskinner.com/blog/archives/2006/07/as3_dictionary.html</a><br />
<a href="http://code.google.com/p/as3ds/">http://code.google.com/p/as3ds/</a></p>
<p>8.      Programmatic motion (tweening, easing)<br />
If you wanted things to stay still, you should’ve stuck with HTML<br />
<a href="http://blog.greensock.com/tweenmaxas3/">http://blog.greensock.com/tweenmaxas3/</a><br />
<a href="http://www.amazon.com/Foundation-Actionscript-3-0-Animation-Making/dp/1590597915/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1243014431&amp;sr=8-1">http://www.amazon.com/Foundation-Actionscript-3-0-Animation-Making/dp/1590597915/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1243014431&amp;sr=8-1</a></p>
<p>9.      OOP and Coding Against Frameworks<br />
The days of a one huge .as file are over. You need to smartly move your code into organized and reusable objects. Also, now there are plenty of popular as3 frameworks to help manage your code. Read up on them and start using one.<br />
<a href="http://www.adobe.com/devnet/actionscript/articles/oop_as3.html">http://www.adobe.com/devnet/actionscript/articles/oop_as3.html</a><br />
<a href="http://www.actionscript.org/resources/articles/684/1/Object-Oriented-Programming-in-AS3/Page1.html">http://www.actionscript.org/resources/articles/684/1/Object-Oriented-Programming-in-AS3/Page1.html</a></p>
<p>10.  Version control<br />
Unless you think your code is worthless, you need to learn how to back it up properly.<br />
<a href="http://tortoisesvn.net/downloads">http://tortoisesvn.net/downloads</a><br />
<a href="http://versionsapp.com/">http://versionsapp.com/</a><br />
<a href="http://en.wikipedia.org/wiki/Revision_control">http://en.wikipedia.org/wiki/Revision_control</a><br />
<a href="http://git-scm.com/">http://git-scm.com/</a><br />
<a href="http://www.nongnu.org/cvs/">http://www.nongnu.org/cvs/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/10-things-senior-flash-developer-should-know/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compile ActionScript file using mxmlc</title>
		<link>http://mtrinitaria.com/mykhel/compile-actionscript-file-using-mxmlc/</link>
		<comments>http://mtrinitaria.com/mykhel/compile-actionscript-file-using-mxmlc/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 06:23:25 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Libraries]]></category>
		<category><![CDATA[Library Tools]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=388</guid>
		<description><![CDATA[Steps in compiling ActionScript file (.as) using mxmlc of Flex SDK. Obtaining the Compiler - To create SWF files from ActionScript, you will need a compiler, the program that interprets ActionScript code and translates it into the machine code used in SWF files. The compiler used to compile ActionScript or MXML is mxmlc.exe. mxmlc.exe can [...]]]></description>
			<content:encoded><![CDATA[<p>Steps in compiling ActionScript file (.as) using mxmlc of Flex SDK.</p>
<p>Obtaining the Compiler<br />
- To create SWF files from ActionScript, you will need a compiler, the program that interprets ActionScript code and translates it into the machine code used in SWF files. The compiler used to compile ActionScript or MXML is mxmlc.exe. mxmlc.exe can be downloaded free, just download the latest Flex SDK, and you will obtain the MXMLC.EXE.</p>
<p>MXMLC.EXE &#8211; can be found in SDK_PATH/bin/mxmlc.exe.</p>
<p><strong>About mxmlc.exe</strong></p>
<p>mxmlc.exe is a launcher that runs the MXML and ActionScript 3 compiler that converts MXML files (.mxml) and ActionScript 3 files (.as) into published SWF files (for the purposes of this tutorial, we will be primarily concerned with ActionScript 3 files though the compiler handles both as well as some other file types used in the ultimate generation of the SWF). The real compiler is a Java jar file located in the lib directory of your Flex Builder/SDK install and not mxmlc.exe itself. Because of this, to work with the compiler you&#8217;ll A) need to make sure you keep all of those files of which the compiler is dependant (i.e. dont go moving around just mxmlc.exe and expect it to work), and B) need to have the Java runtime environment installed on your system. If you&#8217;ve installed Flex Builder you won&#8217;t have to worry about this since it will take care of this for you. If you just got the SDK, however, and haven&#8217;t had Java installed on your computer, you can download and install the Java runtime environment from http://java.sun.com.</p>
<p>In the directory containing mxmlc.exe you may notice some other executables. compc.exe is for creating SWC files (pre-compiled component file), and fdb.exe is the command line debugger. Here we are sticking to just using mxmlc.exe which is all you need to get started using ActionScript 3.</p>
<p>For mxmlc command line options, just visit <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_13.html" target="_blank">http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_13.html</a></p>
<p><strong>How to compile ActionScript in mxmlc</strong><br />
- create a batch file. Here is a sample of batch file I used for compiling fonts.</p>

<div class="wp_syntax"><div class="code"><pre class="linux" style="font-family:monospace;">C:\flex_sdk_4.1.0.16076\bin\mxmlc.exe -static-link-runtime-shared-libraries=true -o output.swf -source-path=&quot;C:\_cafepress\devtools\manila\fonts\src\&quot; &quot;C:\_cafepress\devtools\manila\fonts\src\font\Alepholon.as&quot;</pre></div></div>

<p>- the ActionScript file (I used Alepholon.as here)</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package <span style="color: #0066CC;">font</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">Font</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">/**
	 * Font library
	 * @author mykhel
	 */</span>
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Alepholon <span style="color: #0066CC;">extends</span> Sprite
	<span style="color: #66cc66;">&#123;</span>
&nbsp;
		<span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">'../../lib/Alepholon.ttf'</span>
		,fontFamily  =<span style="color: #ff0000;">'Alepholon'</span>
		,fontStyle   =<span style="color: #ff0000;">'normal'</span> <span style="color: #808080; font-style: italic;">// normal|italic</span>
		,fontWeight  =<span style="color: #ff0000;">'normal'</span> <span style="color: #808080; font-style: italic;">// normal|bold</span>
		,unicodeRange=<span style="color: #ff0000;">'U+0020-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E'</span>
		,embedAsCFF=<span style="color: #ff0000;">'false'</span>
		<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
		<span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> const fontClass:<span style="color: #000000; font-weight: bold;">Class</span>;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Alepholon<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">Font</span>.<span style="color: #006600;">registerFont</span><span style="color: #66cc66;">&#40;</span>fontClass<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Note: This class is to embed font. I get this sample in one of the output file of automation tool in converting Font file (.TFF) into SWF that I have created.</p>
<p>- Run the batch file, and look for the output file. In my example, output file can be found in the directory of the batch file.</p>
<p>Download the sample files <a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/12/compiler.rar" target="_blank">here</a>.<br />
Please note, I cannot include the Alepholon font, but you can try the other font. Play around with the batch file, change the path and options.</p>
<p>Original story <a href="http://mtrinitaria.com/mykhel/how-to-use-mxm…ing-batch-file">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/compile-actionscript-file-using-mxmlc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Enter&#8221; key in input textfield</title>
		<link>http://mtrinitaria.com/mykhel/enter-key-in-input-textfield/</link>
		<comments>http://mtrinitaria.com/mykhel/enter-key-in-input-textfield/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 06:07:26 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[AS3 Tips]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[as3]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=386</guid>
		<description><![CDATA[How to catch ENTER key in input textfield? In AS3, we can&#8217;t just use: inputText.addEventListener&#40;Event.KeyboardEvent.KEY_DOWN, keyDownHandler&#41;; Because, you can&#8217;t get any event from the regular TextField that would be fired when the ENTER key is pressed. You have to do work around&#8230; One idea would be to listen the textfield for focus events. When it [...]]]></description>
			<content:encoded><![CDATA[<p>How to catch ENTER key in input textfield?</p>
<p>In AS3, we can&#8217;t just use:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">inputText.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">KeyboardEvent</span>.<span style="color: #006600;">KEY_DOWN</span>, keyDownHandler<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Because, you can&#8217;t get any event from the regular TextField that would be fired when the ENTER key is pressed. You have to do work around&#8230;</p>
<p>One idea would be to listen the textfield for focus events. When it has focus, you add a listener to the stage for key board events and check if the pressed key is ENTER, if so fire your action, else skip.</p>
<p>AS3:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">inputText.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>FocusEvent.<span style="color: #006600;">FOCUS_IN</span>,textInputHandler<span style="color: #66cc66;">&#41;</span>;
inputText.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>FocusEvent.<span style="color: #006600;">FOCUS_OUT</span>,textInputHandlerOut<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> textInputHandler<span style="color: #66cc66;">&#40;</span>event:FocusEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #808080; font-style: italic;">//our textfield has focus, we want to listen for keyboard events.</span>
    <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span> KeyboardEvent.<span style="color: #006600;">KEY_DOWN</span>, keyDownHandler<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> textInputHandlerOut<span style="color: #66cc66;">&#40;</span>event:FocusEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #808080; font-style: italic;">//our textfield lost focus, remove our listener.</span>
    <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span> KeyboardEvent.<span style="color: #006600;">KEY_DOWN</span>, keyDownHandler<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> keyDownHandler<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">e</span>:KeyboardEvent <span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
    <span style="color: #808080; font-style: italic;">//a key was pressed, check if it was Enter =&gt; charCode 13.</span>
    <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">e</span>.<span style="color: #006600;">charCode</span> == <span style="color: #cc66cc;">13</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
      <span style="color: #808080; font-style: italic;">//ok, enter was pressed. Do your thing.</span>
      <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;We pressed enter, doSomething&quot;</span> <span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/enter-key-in-input-textfield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Like Facebook Button with Dynamic Link</title>
		<link>http://mtrinitaria.com/mykhel/adding-like-facebook-button-with-dynamic-link/</link>
		<comments>http://mtrinitaria.com/mykhel/adding-like-facebook-button-with-dynamic-link/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 10:29:24 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=375</guid>
		<description><![CDATA[You wanna go to facebook Like button. This facebook developer&#8217;s site, will teach us how to simply generate a code and copy and paste it in our website. Just wanna share how this can be dynamically created. Using iframe, php, and javascript code This is how I did it. &#60;iframe src=&#34;http://www.facebook.com/plugins/like.php?href=&#60;?php $url=&#34;http://&#34;.$_SERVER&#91;'HTTP_HOST'&#93;.$_SERVER&#91;'REQUEST_URI'&#93;; echo $url; ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>You wanna go to <a href="http://developers.facebook.com/docs/reference/plugins/like">facebook Like button</a>. This facebook developer&#8217;s site, will teach us how to simply generate a code and copy and paste it in our website.</p>
<p>Just wanna share how this can be dynamically created. Using iframe, php, and javascript code <img src='http://mtrinitaria.com/mykhel/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>This is how I did it.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$url</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &amp;amp;layout=button_count&amp;amp;show_faces=true&amp;amp;width=180&amp;amp;action=like&amp;amp;font=arial&amp;amp;colorscheme=dark&amp;amp;height=21&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; overflow:hidden; width:180px; height:21px;&quot; allowTransparency=&quot;true&quot;&gt;
&lt;/iframe&gt;</pre></div></div>

<p>Just copy and paste it anywhere your pages are. I test it using IE, FF, and Chrome using Windows 7. (I don&#8217;t care with other platforms.)</p>
<p>Hope this can help.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/adding-like-facebook-button-with-dynamic-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Android SDK and play with Android 2.0 in the emulator</title>
		<link>http://mtrinitaria.com/mykhel/how-to-install-android-sdk-and-play-with-android-2-0-in-the-emulator/</link>
		<comments>http://mtrinitaria.com/mykhel/how-to-install-android-sdk-and-play-with-android-2-0-in-the-emulator/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 06:20:50 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=355</guid>
		<description><![CDATA[1)      Download appropriate file for your system from http://developer.android.com/sdk/index.html 2)      Extract to desired location 3)      Run “SDK Setup.exe” (or the equivalent for your system) a.       If you receive an error message stating “Failed to fetch url…” then you will have to force the Setup program to use http in lieu of https. i.      Close the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1)      Download appropriate file for your system from <a href="http://developer.android.com/sdk/index.html" target="_blank">http://developer.android.com/sdk/index.html</a></strong></p>
<p><strong>2)      Extract to desired location</strong></p>
<p><strong>3)      Run “SDK Setup.exe” (or the equivalent for your system)</strong></p>
<p><strong><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture11.jpg"><img class="size-full wp-image-357 alignnone" title="Capture1" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture11.jpg" alt="" width="264" height="123" /></a></strong></p>
<p>a.       If you receive an error message stating “Failed to fetch url…”  then you will have to force the Setup program to use http in lieu of  https.</p>
<p><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture2.jpg"><img class="size-full wp-image-358 alignnone" title="Capture2" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture2.jpg" alt="" width="442" height="284" /></a></p>
<p>i.      Close the “Refresh Sources” window</p>
<p>ii.      Cancel the “Choose Packages to Install” window</p>
<p>iii.      Select “Settings” from the left side of the “Android SDK and AVD Manager” window</p>
<p>iv.      Check the box labeled “Force https://… sources to be fetched using http://…”</p>
<p>v.      Click “Save and Apply”</p>
<p>vi.      Close and restart the SDK Setup program</p>
<p><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture3.jpg"><img class="size-full wp-image-359 alignnone" title="Capture3" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture3.jpg" alt="" width="719" height="347" /></a></p>
<p>a.       If you are only interested in trying out the Android 2.0 Emulator</p>
<p>i.      Reject everything except “SDK  Platform Android 2.0. API 5, revision 1” by selecting each item then  selecting the Reject option</p>
<p>b.      If you plan to develop Android applications and Games, you may wish to Accept All</p>
<p>c.       Click “Install Selected”</p>
<p>(Since I&#8217;m new in Android, I chose &#8220;Accept All&#8221;, because I&#8217;m not sure which thing should be installed. I don&#8217;t advise to choose &#8220;Select All&#8221;.)</p>
<p><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture4.jpg"><img class="size-full wp-image-360 alignnone" title="Capture4" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture4.jpg" alt="" width="425" height="277" /></a></p>
<p><strong>5)      Allow the selected packages to download and install then close the “Installing Archives” window</strong></p>
<p><strong>6)      Create a new Android Virtual Device (AVD). Go to Virtual Devices at the left menu, and then click New button.</strong></p>
<p><strong><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture5.jpg"><img class="size-full wp-image-361 alignnone" title="Capture5" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture5.jpg" alt="" width="393" height="545" /></a></strong></p>
<p>a.       Select “Virtual Devices” from the left side of the “Android SDK and AVD Manager” window</p>
<p>i.      Click “New”</p>
<p>ii.      Enter a Name</p>
<p>iii.      Choose a Target</p>
<p>iv.      Enter a size for the emulated SD Card</p>
<p>v.      Choose a Skin</p>
<p>1.      To emulate current hardware such as the G1, MyTouch 3G, Hero, etc…</p>
<p>a.       Leave the default value</p>
<p>2.      To emulate the Motorola Droid</p>
<p>a.       Choose WVGA 854</p>
<p>3.      To emulate other devices</p>
<p>a.       Choose anything else</p>
<p>vi.      Click “Create AVD”<br />
<a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture6.jpg"><img class="size-full wp-image-362 alignnone" title="Capture6" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture6.jpg" alt="" width="405" height="559" /></a></p>
<p><strong>7)      Start your newly created Virtual Device</strong></p>
<p><strong><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture7.jpg"><img class="size-full wp-image-363 alignnone" title="Capture7" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture7.jpg" alt="" width="739" height="429" /></a></strong></p>
<p>a.       Choose the Virtual Device from the list</p>
<p>b.      Click “Start…”</p>
<p>c.       Click “Launch”</p>
<p><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture8.jpg"><img class="size-full wp-image-364 alignnone" title="Capture8" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture8.jpg" alt="" width="317" height="348" /></a></p>
<p><strong>8)      Just wait the android takes for a while to setup complete. This depends on the user&#8217;s machine. (will look for tweaking solutions to solve this issue)<br />
</strong></p>
<p><strong><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture9.jpg"><img class="size-full wp-image-365 alignnone" title="Capture9" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture9.jpg" alt="" width="795" height="565" /></a></strong><br />
<strong>9)      After setup complete! <img src='http://mtrinitaria.com/mykhel/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </strong></p>
<p><strong><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture10.jpg"><img class="size-full wp-image-366 alignnone" title="Capture10" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture10.jpg" alt="" width="798" height="561" /></a><br />
</strong></p>
<p>Testing my facebook using Android Emulator.</p>
<p><a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture111.jpg"><img class="size-full wp-image-367 alignnone" title="Capture11" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Capture111.jpg" alt="" width="351" height="511" /></a></p>
<p>Credits to <a href="http://androidandme.com" target="_blank">http://androidandme.com</a></p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/how-to-install-android-sdk-and-play-with-android-2-0-in-the-emulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic TextField with Particle Effect</title>
		<link>http://mtrinitaria.com/mykhel/dynamic-textfield-with-particle-effect/</link>
		<comments>http://mtrinitaria.com/mykhel/dynamic-textfield-with-particle-effect/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 11:02:29 +0000</pubDate>
		<dc:creator>mykhel0003</dc:creator>
				<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://mtrinitaria.com/mykhel/?p=347</guid>
		<description><![CDATA[I have finished a dynamic TextField with particle effect using AS3. I have tested some particle effects, but never came out a very good output. Rollover on the TEXT and you will see a very good effects. Hope you like it. In my POV, to create a very good particle effects it requires deep imagination [...]]]></description>
			<content:encoded><![CDATA[<p>I have finished a dynamic TextField with particle effect using AS3. I have tested some particle effects, but never came out a very good output.</p>
<p><a href="../wp-content/uploads/2010/07/particles_1.swf"></a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/particles_1.swf" /><embed type="application/x-shockwave-flash" width="400" height="400" src="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/particles_1.swf"></embed></object></p>
<p>Rollover on the TEXT and you will see a very good effects. <img src='http://mtrinitaria.com/mykhel/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Hope you like it.</p>
<p><em>In my POV, to create a very good particle effects it requires deep imagination and very good problem solving. In my experience, I encountered lots of physics computations and mathematical expressions to come out a very good solutions or formulas like this. I hope this will be the beginning of lots of very good particles.</em></p>
<p>For source code, <a href="http://mtrinitaria.com/mykhel/wp-content/uploads/2010/07/Main.as" target="_blank">click here</a>. I just used single class here. <img src='http://mtrinitaria.com/mykhel/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://mtrinitaria.com/mykhel/dynamic-textfield-with-particle-effect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

