<?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>yagiz gurgul &#187; AIR</title>
	<atom:link href="http://www.yagizgurgul.com/blog/category/air/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yagizgurgul.com/blog</link>
	<description>Freelancer Flash Platform and iPhone Application Developer</description>
	<lastBuildDate>Thu, 24 Jun 2010 13:03:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multi-Language Supporter For Your Flash/AIR/Flex Projects</title>
		<link>http://www.yagizgurgul.com/blog/2009/07/22/multi-language-supporter-for-your-flashairflex-projects/</link>
		<comments>http://www.yagizgurgul.com/blog/2009/07/22/multi-language-supporter-for-your-flashairflex-projects/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 15:13:05 +0000</pubDate>
		<dc:creator>Yağız Gürgül</dc:creator>
		<postImage>http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/multilanguagesupporter.png</postImage>
		
		
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[mlsp]]></category>
		<category><![CDATA[multi language]]></category>
		<category><![CDATA[multi language support]]></category>

		<guid isPermaLink="false">http://www.yagizgurgul.com/blog/?p=1034</guid>
		<description><![CDATA[
Download:
AIR Application:
Please upgrade your Flash Player This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.



Class File:
MLSP.as
Step 1:

First click the &#8220;New Project&#8221; button. We are building a new project right?
Step 2:

Add languages you will use in your Flex/AIR/Flash project.
Step 3 &#8211; 1:

After you added the [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-1034"></span></p>
<h1>Download:</h1>
<h3>AIR Application:</h3>
<p><div id="flashcontent2100" style="width:215px; height:180px;"><strong>Please upgrade your Flash Player</strong> This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.</div><script type="text/javascript">
<!-- // <![CDATA[
var so = new SWFObject("http://www.yagizgurgul.com/blog/wp-content/plugins/air-badge/AIRInstallBadge.swf", "Badge", "215", "180", "9.0.115", "#FFFFFF");
so.useExpressInstall("http://www.yagizgurgul.com/blog/wp-content/plugins/air-badge/expressinstall.swf");
so.addVariable("airversion", "1.0");
so.addVariable("appname", "Multi-Language+Supporter");
so.addVariable("appurl", "http://www.yagizgurgul.com/multilanguagesupporter/multilanguagesupporter.air");
so.addVariable("appid", "Multi-Language+Supporter");
so.addVariable("pubid", "");
so.addVariable("appversion", "alpha+1");
so.addVariable("imageurl", "http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/icon1.png");
so.addVariable("appinstallarg", "installed from web");
so.addVariable("applauncharg", "launched from web");
so.addVariable("helpurl", "help.html");
so.addVariable("hidehelp", "true");
so.addVariable("skiptransition", "false");
so.addVariable("titlecolor", "#00AAFF");
so.addVariable("buttonlabelcolor", "#00AAFF");
so.addVariable("appnamecolor", "#00AAFF");
so.addVariable("str_err_airswf", "<u>Running locally?</u><br/><br/>The AIR proxy swf won't load properly when this is run from the local file system.");
so.write("flashcontent2100");
// ]]&gt; -->
</script>
</p>
<h3>Class File:</h3>
<p><a href="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/gaz.zip" target="_blank">MLSP.as</a></p>
<h1>Step 1:</h1>
<p><a href="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step1.jpg"><img class="alignnone size-full wp-image-1038" title="step1" src="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step1.jpg" alt="step1" width="530" height="400" /></a></p>
<p>First click the &#8220;New Project&#8221; button. We are building a new project right?</p>
<h1>Step 2:</h1>
<p><a href="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step2.jpg"><img class="alignnone size-full wp-image-1039" title="step2" src="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step2.jpg" alt="step2" width="530" height="400" /></a></p>
<p>Add languages you will use in your Flex/AIR/Flash project.</p>
<h1>Step 3 &#8211; 1:</h1>
<p><a href="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step3.jpg"><img class="alignnone size-full wp-image-1040" title="step3" src="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step3.jpg" alt="step3" width="530" height="400" /></a></p>
<p>After you added the languages, start to add items.</p>
<h1>Step 3 &#8211; 2:</h1>
<p><a href="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step4.jpg"><img class="alignnone size-full wp-image-1041" title="step4" src="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step4.jpg" alt="step4" width="530" height="400" /></a></p>
<p>ID is very important. It is a unique name for your items. You will use it in your Flex/AIR/Flash projects to get items. (example: class.getItemByID(&#8221;home&#8221;);)</p>
<h1>Step 4:</h1>
<p><a href="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step5.jpg"><img class="alignnone size-full wp-image-1043" title="step5" src="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step5.jpg" alt="step5" width="530" height="400" /></a></p>
<p>Ok you added your items. Now save your language file. You will see .mlsp format has a green book icon.</p>
<h1>Step 5:</h1>
<p><a href="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step6.jpg"><img class="alignnone size-full wp-image-1044" title="step6" src="http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/step6.jpg" alt="step6" width="530" height="400" /></a></p>
<p>Move your language file to your source files of your project. Or save it to there directly. Now we are ready. With 5 steps we&#8217;ve created language file for our project. Now we need to use it in project.</p>
<p>First we need to import MLSP class and set some values:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;width:530px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">import gaz.mlsp.MLSP;<br />
var languages:MLSP = new MLSP(&quot;demolangfile.mlsp&quot;,onComplete);</div></div>
<p>MLSP has two parameters. First one is language file url(example: &#8220;langfile.mlsp&#8221;, &#8220;lang/langfile.mlsp&#8221;) and the second one is loaded function. When language file is loaded your loaded function is called. Let&#8217;s continue:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;width:530px"><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">function onComplete():void {<br />
trace(&quot;Language File Loaded&quot;);<br />
setLanguage()<br />
}<br />
function setLanguage():void {<br />
trace(languages.getItemByID(&quot;home&quot;,&quot;EN&quot;));<br />
trace(languages.getItemByID(&quot;home&quot;,&quot;TR&quot;));<br />
}</div></div>
<p>When language file is loaded setLanguage function is called. MLSP has only one method. It is <em><strong>getItemByID()</strong></em>. It has two parameters. First one is the id of your item and the second one is language you use.</p>
<p>This is it! Yeah I know this is so simple and not for a complex projects. Or maybe there is more powerful tools for this. Anyway I want to share <img src='http://www.yagizgurgul.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Also this a sample flex project which uses MLSP:<br />
<object type="application/x-shockwave-flash" data="http://www.yagizgurgul.com/multilanguagesupporter/demo/MLSPDemo.swf" width="530" height="200" class="embedflash"><param name="movie" value="http://www.yagizgurgul.com/multilanguagesupporter/demo/MLSPDemo.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object><br />
<a href="http://www.yagizgurgul.com/multilanguagesupporter/demo/MLSPDemo.zip">Source Files</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yagizgurgul.com/blog/2009/07/22/multi-language-supporter-for-your-flashairflex-projects/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Crop and Save</title>
		<link>http://www.yagizgurgul.com/blog/2009/07/17/crop-and-save/</link>
		<comments>http://www.yagizgurgul.com/blog/2009/07/17/crop-and-save/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 18:13:50 +0000</pubDate>
		<dc:creator>Yağız Gürgül</dc:creator>
		<postImage>http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/cropandsave3.png</postImage>
		
		
				<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://www.yagizgurgul.com/blog/?p=1009</guid>
		<description><![CDATA[Download:
Please upgrade your Flash Player This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.



]]></description>
			<content:encoded><![CDATA[<p><strong>Download:</strong><br />
<div id="flashcontent1686" style="width:215px; height:180px;"><strong>Please upgrade your Flash Player</strong> This is the content that would be shown if the user does not have Flash Player 9.0.115 or higher installed.</div><script type="text/javascript">
<!-- // <![CDATA[
var so = new SWFObject("http://www.yagizgurgul.com/blog/wp-content/plugins/air-badge/AIRInstallBadge.swf", "Badge", "215", "180", "9.0.115", "#FFFFFF");
so.useExpressInstall("http://www.yagizgurgul.com/blog/wp-content/plugins/air-badge/expressinstall.swf");
so.addVariable("airversion", "1.0");
so.addVariable("appname", "Crop+And+Save");
so.addVariable("appurl", "http://www.yagizgurgul.com/cropandsave/CropAndSave.air");
so.addVariable("appid", "Crop+And+Save");
so.addVariable("pubid", "");
so.addVariable("appversion", "1");
so.addVariable("imageurl", "http://www.yagizgurgul.com/blog/wp-content/uploads/2009/07/croplogo.png");
so.addVariable("appinstallarg", "installed from web");
so.addVariable("applauncharg", "launched from web");
so.addVariable("helpurl", "help.html");
so.addVariable("hidehelp", "true");
so.addVariable("skiptransition", "false");
so.addVariable("titlecolor", "#00AAFF");
so.addVariable("buttonlabelcolor", "#00AAFF");
so.addVariable("appnamecolor", "#00AAFF");
so.addVariable("str_err_airswf", "<u>Running locally?</u><br/><br/>The AIR proxy swf won't load properly when this is run from the local file system.");
so.write("flashcontent1686");
// ]]&gt; -->
</script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yagizgurgul.com/blog/2009/07/17/crop-and-save/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
