<?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>IxD Consultant &#187; AS2</title>
	<atom:link href="http://ixd-consultant.com/blog/tag/as2/feed/" rel="self" type="application/rss+xml" />
	<link>http://ixd-consultant.com/blog</link>
	<description>UX, AS, Thoughts</description>
	<lastBuildDate>Mon, 12 Jul 2010 21:00:38 +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>Open-Source Arabic Parsing v1.5</title>
		<link>http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/</link>
		<comments>http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 15:52:11 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2010]]></category>
		<category><![CDATA[July]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Arabic]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=436</guid>
		<description><![CDATA[Now you can integrate my parser into your library as open-source under GNU GPL license .. ActionSctipt 2.0 version available here ActionSctipt 3.0 version available here Features Supported: Embedding Fonts (just put a dynamic textfield on-stage and select at least Basic Latin (95 glyphs) and Arabic (1088 glyphs) from the Character Embedding menu). Arabic Ligatures. [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2010%252F07%252F12%252Fopen-source-arabic-parsing-v1-5%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2Fc8XGcW%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Open-Source%20Arabic%20Parsing%20v1.5%22%20%7D);"></div>
<p>Now you can integrate my parser into your library as open-source under <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank"><span style="color: #0066ff;">GNU GPL</span></a> license ..</p>
<blockquote><p>
	<i>ActionSctipt 2.0 version available <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/parsearabic_as2_v1.5.zip" target="_self"><span style="color: #0066ff;">here</span></a></i><br />
	<i>ActionSctipt 3.0 version available <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/parsearabic_as3_v1.5.zip" target="_self"><span style="color: #0066ff;">here</span></a></i>
</p></blockquote>
<p><em>Features Supported:</em></p>
<ol>
<li> Embedding Fonts (just put a dynamic textfield on-stage and select at least Basic Latin (95 glyphs) and Arabic (1088 glyphs) from the Character Embedding menu).</li>
<li>Arabic Ligatures.</li>
<li>Word Wrapping.</li>
<li>Bi-Directional text.</li>
<li>HTML Text.</li>
<li>Loading External text on run-time.</li>
<li>Windows/Mac/Linux support.</li>
<li>Arabic enabled input fields using actionscript method (createArabicInput) with the help of javascript (arabicinput.js) <i>beta</i></li>
</ol>
<p><em>Features Not Supported:</em></p>
<ol>
<li> Arabic Diacritics  (not necessarily for reading Arabic language in general, arabs are using diacritics mostly for writing Quran, and in that case diacritics are not the only missing feature, there&#8217;re many other ligatures cases in Arabic used for Quran writing).</li>
</ol>
<p>You can use the old example found <a href="http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/" target="_self"><span style="color: #0066ff;">here</span></a>, just replace the <em>StringUtils.as</em> class file ..
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2010%2F07%2F12%2Fopen-source-arabic-parsing-v1-5%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arabic Parsing and Shared Fonts</title>
		<link>http://ixd-consultant.com/blog/2010/07/08/arabic-parsing-and-shared-fonts/</link>
		<comments>http://ixd-consultant.com/blog/2010/07/08/arabic-parsing-and-shared-fonts/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 11:05:34 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2010]]></category>
		<category><![CDATA[July]]></category>
		<category><![CDATA[Arabic]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=347</guid>
		<description><![CDATA[This tutorial uses ActionScript 2.0, for ActionScript 3.0 follow this one .. The following is a step-by-step tutorial for using shared fonts in Flash with the use of Arabic Parsing solution: Create New Flash file to store shared fonts, in this case “arabic_fonts.fla” Create new MovieClip symbol, in this case “arabic_fonts” and check the option [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2010%252F07%252F08%252Farabic-parsing-and-shared-fonts%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2F9dgzH5%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Arabic%20Parsing%20and%20Shared%20Fonts%22%20%7D);"></div>
<blockquote><p><em>This tutorial uses ActionScript 2.0, for ActionScript 3.0 follow <a href="http://nochump.com/blog/archives/20" target="_blank" rel="nofollow"><span style="color:#0066ff;">this</span></a> one ..</em></p></blockquote>
<p>The following is a step-by-step tutorial for using shared fonts in Flash with the use of <a href="http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/" target="_self"><span style="color:#0066FF">Arabic Parsing</span></a> solution:</p>
<ol>
<li>Create New Flash file to store shared fonts, in this case “arabic_fonts.fla”</li>
<li>Create new MovieClip symbol, in this case “arabic_fonts” and check the option “Export for runtime sharing”, in this case “arabic_fonts.swf”
<div style="margin-left:-40px; margin-top:10px;  margin-bottom:10px">
<img src="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/arabic_shared_fonts_as2/step_01.jpg" />
</div>
</li>
<li>Edit “arabic_fonts” MovieClip and create as many TextFields as you require, each with specific font to be shared
<div style="margin-left:-40px; margin-top:10px;  margin-bottom:10px">
<img src="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/arabic_shared_fonts_as2/step_03.jpg" />
</div>
</li>
<li>Select each TextField individually and embed fonts from the properties panel
<div style="margin-left:-40px; margin-top:10px;  margin-bottom:10px">
<img src="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/arabic_shared_fonts_as2/step_04.jpg" />
</div>
</li>
<li>Make sure you have checked the Arabic glyphs and you have chosen font name for linkage
<div style="margin-left:-40px; margin-top:10px;  margin-bottom:10px">
<img src="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/arabic_shared_fonts_as2/step_05.jpg" />
</div>
</li>
<li>Complie the output movie, save and close “arabic_fonts.fla”</li>
<li>Open your rendering Flash file, in this case “arabic_as2.fla” <em>located in the same directory with “arabic_fonts.fla”</em></li>
<li>Create new MovieClip symbol and give it the exact same name for the shared library symbol, in this case “arabic_fonts”, then check the option “Import for runtime sharing”, in this case “arabic_fonts.swf”
<div style="margin-left:-40px; margin-top:10px;  margin-bottom:10px">
<img src="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/arabic_shared_fonts_as2/step_06.jpg" />
</div>
<p>When asked to edit the newly created symbol, make sure that you choose “No”
<div style="margin-left:-40px; margin-top:10px;  margin-bottom:10px">
<img src="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/arabic_shared_fonts_as2/step_02.jpg" />
</div>
</li>
<li>Drag and instance of “arabic_fonts” MovieClip off-stage
<div style="margin-left:-40px; margin-top:10px;  margin-bottom:10px">
<img src="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/arabic_shared_fonts_as2/step_07.jpg" />
</div>
</li>
<li>Compile the output movie, you should see fonts displayed correctly</li>
<li>Download sample files <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/07/arabic_shared_fonts_as2.zip" rel="nofollow"><span style="color:#0066FF">here</span></a></li>
</ol>
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2010%2F07%2F08%2Farabic-parsing-and-shared-fonts%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2010/07/08/arabic-parsing-and-shared-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript 2.0 Arabic Parsing v1.4</title>
		<link>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/</link>
		<comments>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/#comments</comments>
		<pubDate>Sat, 29 May 2010 02:19:49 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2010]]></category>
		<category><![CDATA[May]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Arabic]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=322</guid>
		<description><![CDATA[Update: a newer version available here Well, I discovered some annoying bugs, all fixed in this version .. As per my previous post here, I still recommend embedding fonts to avoid improper rendering. ActionSctipt 2.0 version available here ActionSctipt 3.0 version available here Requirements: Dynamic TextField HTML Enabled TextField Pre-Assigned TextFormat Arabic Font Recommended Properties: [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2010%252F05%252F29%252Factionscript-2-0-arabic-parsing-v1-4%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2F9BN6Fj%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22ActionScript%202.0%20Arabic%20Parsing%20v1.4%22%20%7D);"></div>
<p><strong>Update:</strong> a newer version available <a href="http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/" target="_self"><span style="color: #0066ff;">here</span></a></p>
<p>Well, I discovered some annoying bugs, all fixed in this version ..<br />
As per my previous post <a href="http://ixd-consultant.com/blog/2010/05/23/actionscript-2-0-arabic-parsing-v1-3/" target="_self"><span style="color: #0066ff;">here</span></a>, I still recommend embedding fonts to avoid improper rendering.</p>
<blockquote><p>
	<i>ActionSctipt 2.0 version available <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.4/parsearabic_as2_v1.4.zip" target="_self"><span style="color: #0066ff;">here</span></a></i><br />
	<i>ActionSctipt 3.0 version available <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as3_v1.4/parsearabic_as3_v1.4.zip" target="_self"><span style="color: #0066ff;">here</span></a></i>
</p></blockquote>
<p><em>Requirements:</em></p>
<ol>
<li>Dynamic TextField</li>
<li>HTML Enabled TextField</li>
<li>Pre-Assigned TextFormat</li>
<li>Arabic Font</li>
</ol>
<p><em>Recommended Properties:</em></p>
<ol>
<li>embedFonts: for proper rendering on Mac/Linux.</li>
</ol>
<p><em>Properties:</em></p>
<ol>
<li>data: for referencing original input string, use the data property (utils.data) instead of (TextField.text) where &#8220;utils&#8221; is an instance of StringUtils class.</li>
<li>wrapFactor: optional reduction value (Mac only) for wrapping correction when using bi-directional text, possible values: .98 or less.</li>
<li>htmlLines: array of spliced text block HTML lines.</li>
<li>numLines: integer value of total text block lines.</li>
</ol>
<p><em>Features Supported:</em></p>
<ol>
<li> Embedding Fonts (just put a dynamic textfield on-stage and select at least Basic Latin (95 glyphs) and Arabic (1088 glyphs) from the Character Embedding menu).</li>
<li>Arabic Ligatures.</li>
<li>Word Wrapping.</li>
<li>Bi-Directional text.</li>
<li>HTML Text.</li>
<li>Loading External text on run-time.</li>
<li>Windows/Mac/Linux support.</li>
<li>Arabic enabled input fields using actionscript method (createArabicInput) with the help of javascript (arabicinput.js) <i>beta</i></li>
</ol>
<p><em>Features Not Supported:</em></p>
<ol>
<li> Arabic Diacritics  (not necessarily for reading Arabic language in general, arabs are using diacritics mostly for writing Quran, and in that case diacritics are not the only missing feature, there&#8217;re many other ligatures cases in Arabic used for Quran writing).</li>
</ol>
<p><em>Change List:</em></p>
<ol>
<li>Proper rendering for HTML bullet list (include the bullet character &#8220;•&#8221; in the Character Embedding menu).</li>
<li>Optimized conditions for basic thorough loop.</li>
<li>New properties for referencing text block lines (htmlLines, numLines).</li>
</ol>
<p><em>Fixed Bugs:</em></p>
<ol>
<li>Multi-level HTML tags, for example:

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;#&quot;&gt;&lt;font&gt;text&lt;/font&gt;&lt;/a&gt;</pre></div></div>

</li>
<li>Line-break determination on Mac.</li>
</ol>
<p><em>Known Bugs:</em></p>
<ol>
<li>Improper wrapping for non-embedded fonts only on Mac when begin text line with non-Arabic characters or when using custom format HTML tags.</li>
</ol>
<p>Here is an example works with <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.4/arabic.xml" target="_blank"><span style="color: #0066ff;">this</span></a> external XML file <i>(with run-time resizing vs. wrapping)</i>:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="scale" value="noscale" /><param name="base" value="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.4/" /><param name="src" value="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.4/arabic.swf" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.4/arabic.swf" base="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.4/" scale="noscale"></embed></object><br />
<em>download the above example <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.4/arabic_as2_v1.4.zip" target="_blank"><span style="color: #0066ff;">here</span></a></em></p>
<p><i>Test files are available <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.4/asunit_as2_v1.4.zip" target="_blank"><span style="color: #0066ff;">here</span></a> using <a href="http://asunit.org/" target="_blank"><span style="color: #0066ff;">ASUnit</span></a> Framework</i></p>
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2010%2F05%2F29%2Factionscript-2-0-arabic-parsing-v1-4%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2010/05/29/actionscript-2-0-arabic-parsing-v1-4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ActionScript 2.0 Arabic Parsing v1.3</title>
		<link>http://ixd-consultant.com/blog/2010/05/23/actionscript-2-0-arabic-parsing-v1-3/</link>
		<comments>http://ixd-consultant.com/blog/2010/05/23/actionscript-2-0-arabic-parsing-v1-3/#comments</comments>
		<pubDate>Sun, 23 May 2010 04:08:15 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2010]]></category>
		<category><![CDATA[May]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Arabic]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=306</guid>
		<description><![CDATA[Update: a newer version available here This is a bit late, my apologies to you all, yet again, thanks to Jan Jonas and Yasmin (geekgirl) I tried my best to solve bi-directional issues, it took me sometime to re-construct the wrapping part using completely different approach, it seems to be good when embedding fonts, but [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2010%252F05%252F23%252Factionscript-2-0-arabic-parsing-v1-3%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FdnRqxX%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22ActionScript%202.0%20Arabic%20Parsing%20v1.3%22%20%7D);"></div>
<p><strong>Update:</strong> a newer version available <a href="http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/" target="_self"><span style="color: #0066ff;">here</span></a></p>
<p>This is a bit late, my apologies to you all, yet again, thanks to <a href="http://blog.janjonas.net/2010-03-25/actionscript-2-dynamic-textfield-arabic-text" target="_blank"><span style="color: rgb(0, 102, 255);">Jan Jonas</span></a> and Yasmin <i>(geekgirl)</i><br />
I tried my best to solve bi-directional issues, it took me sometime to re-construct the wrapping part using completely different approach, it seems to be good when embedding fonts, but more wrapping issues pops-up for non-embedded fonts and only on Mac! this is weird, the whole solution was to solve Arabic ligatures when embedding Arabic fonts!<br />
In addition, an overall code review has been taken care of, a lot of modifications in several places throughout the code has been done, if you like this one then you can start from hear instead, but if you don&#8217;t I think I need to know <img src='http://ixd-consultant.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Anyways, this is exactly why I released my solution as open-source from the first place, what good of a solution without sharing it with others to contribute, may be you&#8217;ll have better luck than I did when you update this one yourself ..</p>
<blockquote><p>
	<i>ActionSctipt 2.0 version available <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.3/parsearabic_as2_v1.3.zip" target="_self"><span style="color: #0066ff;">here</span></a></i><br />
	<i>ActionSctipt 3.0 version available <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as3_v1.3/parsearabic_as3_v1.3.zip" target="_self"><span style="color: #0066ff;">here</span></a></i><br />
</blockquote</p>
<p><em>Requirements:</em></p>
<ol>
<li>Dynamic TextField</li>
<li>HTML Enabled TextField</li>
<li>Pre-Assigned TextFormat</li>
<li>Arabic Font</li>
</ol>
<p><em>Features Supported:</em></p>
<ol>
<li> Embedding Fonts (just put a dynamic textfield on-stage and select at least Basic Latin (95 glyphs) and Arabic (1088 glyphs) from the Character Embedding menu).</li>
<li>Arabic Ligatures.</li>
<li>Word Wrapping.</li>
<li>Bi-Directional text.</li>
<li>HTML Text.</li>
<li>Loading External text on run-time.</li>
<li>Windows/Mac/Linux support.</li>
<li>Arabic enabled input fields using actionscript method (createArabicInput) with the help of javascript (arabicinput.js) <i>beta</i></li>
</ol>
<p><em>Properties:</em></p>
<ol>
<li>For matching/comparing input string, when referencing original input string use the data property (utils.data) instead of (TextField.text) where &#8220;utils&#8221; is an instance of StringUtils class.</li>
</ol>
<p><em>Features Not Supported:</em></p>
<ol>
<li> Arabic Diacritics.</li>
</ol>
<p><em>Change List:</em></p>
<ol>
<li>New approach for wrapping text properly involving HTML tags, brackets, punctuation marks and bi-directional cases.</li>
<li>Looping through input string thoroughly only once for better performance.</li>
<li>Object class model structure with public properties and methods instead of static parser.</li>
</ol>
<p><em>Fixed Bugs:</em></p>
<ol>
<li>Arabic character condition for letter (?).</li>
<li>Beginning and ending text lines with non-Arabic characters (Embedding fonts required for Mac).</li>
<li>Inline HTML tags (Embedding fonts required for Mac).</li>
<li>Symmetrical swapping for bi-directional brackets.</li>
</ol>
<p><em>Known Bugs:</em></p>
<ol>
<li>improper wrapping for non-embedded fonts only on Mac when begin text line with non-Arabic characters or when using custom format HTML tags.</li>
</ol>
<p>Here is an example works with <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.3/arabic.xml" target="_blank"><span style="color: #0066ff;">this</span></a> external XML file <i>(with run-time resizing vs. wrapping)</i>:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="scale" value="noscale" /><param name="base" value="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.3/" /><param name="src" value="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.3/arabic.swf" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.3/arabic.swf" base="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.3/" scale="noscale"></embed></object><br />
<em>download the above example <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.3/arabic_as2_v1.3.zip" target="_blank"><span style="color: #0066ff;">here</span></a></em></p>
<p>Well, still not perfect, for some reason I feel that a tiny code snippet can do all the magic to contain the mac issues with non-embedded fonts, just can&#8217;t find that one &#8230; yet!</p>
<p><i>Test files are available <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/05/arabic_as2_v1.3/asunit_as2_v1.3.zip" target="_blank"><span style="color: #0066ff;">here</span></a> using <a href="http://asunit.org/" target="_blank"><span style="color: #0066ff;">ASUnit</span></a> Framework</i></p>
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2010%2F05%2F23%2Factionscript-2-0-arabic-parsing-v1-3%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2010/05/23/actionscript-2-0-arabic-parsing-v1-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ActionScript 2.0 Arabic Parsing v1.2</title>
		<link>http://ixd-consultant.com/blog/2010/03/26/actionscript-2-0-arabic-parsing-v1-2/</link>
		<comments>http://ixd-consultant.com/blog/2010/03/26/actionscript-2-0-arabic-parsing-v1-2/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 15:05:21 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2010]]></category>
		<category><![CDATA[March]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Arabic]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=288</guid>
		<description><![CDATA[Update: a newer version available here As per my previous post here, I have another improved version, my deepest thanks to Jan Jonas who did contribute on this one, you can use and test my new parseArabic method .. Requirements: Dynamic TextField HTML Enabled TextField Pre-Assigned TextFormat Arabic Font Features Supported: Embedding Fonts (just put [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2010%252F03%252F26%252Factionscript-2-0-arabic-parsing-v1-2%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2Faawt5f%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22ActionScript%202.0%20Arabic%20Parsing%20v1.2%22%20%7D);"></div>
<p><strong>Update:</strong> a newer version available <a href="http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/" target="_self"><span style="color: #0066ff;">here</span></a></p>
<p>As per my previous post <a href="http://ixd-consultant.com/blog/2010/01/26/actionscript-2-0-arabic-parsing-v1-1/" target="_self"><span style="color: rgb(0, 102, 255);">here</span></a>, I have another improved version, my deepest thanks to <a href="http://blog.janjonas.net/2010-03-25/actionscript-2-dynamic-textfield-arabic-text" target="_blank"><span style="color: rgb(0, 102, 255);">Jan Jonas</span></a> who did contribute on this one, you can use and test my new <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/parsearabic_v1.2.zip" target="_blank"><span style="color: #0066ff;">parseArabic</span></a> method ..</p>
<p><em>Requirements:</em></p>
<ol>
<li>Dynamic TextField</li>
<li>HTML Enabled TextField</li>
<li>Pre-Assigned TextFormat</li>
<li>Arabic Font</li>
</ol>
<p><em>Features Supported:</em></p>
<ol>
<li> Embedding Fonts (just put a dynamic textfield on-stage and select at least Basic Latin (95 glyphs) and Arabic (1088 glyphs) from the Character Embedding menu).</li>
<li>Arabic Ligatures.</li>
<li>Word Wrapping.</li>
<li>Bi-Directional text.</li>
<li>HTML Text.</li>
<li>Loading External text on run-time.</li>
<li>Windows/Mac/Linux support.</li>
<li>Arabic enabled input fields using actionscript method (createArabicInput) with the help of javascript (arabicinput.js) <i>beta</i></li>
</ol>
<p><em>Properties:</em></p>
<ol>
<li>For matching/comparing input string, when referencing original input string use the data property (TextField.data) instead of (TextField.text)</li>
</ol>
<p><em>Features Not Supported:</em></p>
<ol>
<li> Arabic Diacritics.</li>
</ol>
<p><em>Fixed Bugs:</em></p>
<ol>
<li>Single Characters.</li>
<li>Single-line TextField with autoSize.</li>
<li>Upper-Case non-arabic characters.</li>
<li>Extra Spacing at the end of each line (fixed by &#8220;Jan Jonas&#8221;).</li>
<li>Double line-breaks (fixed by &#8220;Jan Jonas&#8221;).</li>
<li>Empty String input. </li>
<li>All Arabic Fonts are supported (requires embedding)</li>
<li>Improved string processing performance</li>
</ol>
<p>Here is an example works with <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/arabic.xml" target="_blank"><span style="color: #0066ff;">this</span></a> external XML file <i>(with run-time resizing vs. wrapping)</i>:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="scale" value="noscale" /><param name="base" value="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/" /><param name="src" value="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/arabic.swf" /><embed type="application/x-shockwave-flash" width="500" height="300" src="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/arabic.swf" base="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/" scale="noscale"></embed></object><br />
<em>download the above example <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/arabic_as2_v1.2.zip" target="_blank"><span style="color: #0066ff;">here</span></a></em></p>
<p>And <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/arabic_input/" target="_blank"><span style="color: rgb(0, 102, 255);">here</span></a> is another example for using a work-around approach for solving Arabic Input on Mac/Linux, the approach uses <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/arabic_input/scripts/arabicinput.js" target="_blank"><span style="color: #0066ff;">this</span></a> JavaScript file in conjunction with ActionScript to create transparent HTML controls and place them exactly over our input TextFields inside flash, the method works fine on Firefox, but it needs a lot more modifications for cress-browser compatibility, your contributions are most welcome for sure ..</p>
<p><em>download arabic input example <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/03/arabic_as2_v1.2/arabic_input_as2_v1.2.zip" target="_blank"><span style="color: #0066ff;">here</span></a></em>
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2010%2F03%2F26%2Factionscript-2-0-arabic-parsing-v1-2%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2010/03/26/actionscript-2-0-arabic-parsing-v1-2/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>ActionScript 2.0 Arabic Parsing v1.1</title>
		<link>http://ixd-consultant.com/blog/2010/01/26/actionscript-2-0-arabic-parsing-v1-1/</link>
		<comments>http://ixd-consultant.com/blog/2010/01/26/actionscript-2-0-arabic-parsing-v1-1/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 05:24:14 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2010]]></category>
		<category><![CDATA[January]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Arabic]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=241</guid>
		<description><![CDATA[Update: a newer version available here As per my previous post here, I&#8217;ve made some improvements to my method for proper Arabic rendering in a dynamic TextField using ActionScript 2.0. An ActionSctipt 3.0 version available here Many thanks to all reviewers, your comments were very helpful bringing this version available, now you can use and [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2010%252F01%252F26%252Factionscript-2-0-arabic-parsing-v1-1%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2F8ShJKw%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22ActionScript%202.0%20Arabic%20Parsing%20v1.1%22%20%7D);"></div>
<p><strong>Update:</strong> a newer version available <a href="http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/" target="_self"><span style="color: #0066ff;">here</span></a></p>
<p>As per my previous post <a href="http://ixd-consultant.com/blog/2009/12/21/arabic-text-in-actionscript-2-0/" target="_self"><span style="color: #0066ff;">here</span></a>, I&#8217;ve made some improvements to my method for proper Arabic rendering in a dynamic TextField using ActionScript 2.0.</p>
<blockquote><p>
	<i>An ActionSctipt 3.0 version available <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/02/arabic_as3_v1.1/parsearabic_v1.1.zip" target="_self"><span style="color: #0066ff;">here</span></a></i>
</p></blockquote>
<p>Many thanks to all reviewers, your comments were very helpful bringing this version available, now you can use and test my new <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/01/arabic_as2_v1.1/parsearabic_v1.1.zip" target="_blank"><span style="color: #0066ff;">parseArabic</span></a> method ..</p>
<p><em>Requirements:</em></p>
<ol>
<li> Dynamic TextField</li>
<li>HTML Enabled TextField</li>
<li>Pre-Defined TextFormat</li>
<li>Arabic Fonts must include a complete <a href="http://www.unicode.org/charts/PDF/UFE70.pdf" target="_blank"><span style="color: #0066ff;">Arabic Presentation Forms-B</span></a> (glyphs from FE70 to FEFE according to the Unicode Standard 5.2)</li>
</ol>
<p><em>Features Supported:</em></p>
<ol>
<li> Embedding Fonts (just put a dynamic textfield on-stage and select at least Basic Latin (95 glyphs) and Arabic (1088 glyphs) from the Character Embedding menu).</li>
<li>Arabic Ligatures.</li>
<li>Word Wrapping.</li>
<li>Bi-Directional text.</li>
<li>HTML Text.</li>
<li>Loading External text.</li>
</ol>
<p><em>Features Not Supported:</em></p>
<ol>
<li> Arabic Diacritics.</li>
</ol>
<p><em>Fixed Bugs:</em></p>
<ol>
<li> Correct Arabic Ligatures with/without embedding fonts</li>
<li>Correct Brackets Directions</li>
<li>Clean Line-Breaks</li>
</ol>
<p>Here is an example works with <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/01/arabic_as2_v1.1/arabic.xml" target="_blank"><span style="color: #0066ff;">this</span></a> external XML file:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="scale" value="noscale" /><param name="base" value="http://ixd-consultant.com/blog/wp-content/uploads/2010/01/arabic_as2_v1.1/" /><param name="src" value="http://ixd-consultant.com/blog/wp-content/uploads/2010/01/arabic_as2_v1.1/arabic.swf" /><embed type="application/x-shockwave-flash" width="500" height="200" src="http://ixd-consultant.com/blog/wp-content/uploads/2010/01/arabic_as2_v1.1/arabic.swf" base="http://ixd-consultant.com/blog/wp-content/uploads/2010/01/arabic_as2_v1.1/" scale="noscale"></embed></object><br />
<em>download the above example <a href="http://ixd-consultant.com/blog/wp-content/uploads/2010/01/arabic_as2_v1.1/arabic_as2_v1.1.zip" target="_blank"><span style="color: #0066ff;">here</span></a></em></p>
<p><strong>Note:</strong><br />
When you try to select and copy the above text into a static TextField it will display Arabic properly as well, just another benefit of this method, but if you paste the copied text into any other text editor you will see an alien version instead!
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2010%2F01%2F26%2Factionscript-2-0-arabic-parsing-v1-1%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2010/01/26/actionscript-2-0-arabic-parsing-v1-1/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Arabic Text in ActionScript 2.0</title>
		<link>http://ixd-consultant.com/blog/2009/12/21/arabic-text-in-actionscript-2-0/</link>
		<comments>http://ixd-consultant.com/blog/2009/12/21/arabic-text-in-actionscript-2-0/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 08:56:55 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2009]]></category>
		<category><![CDATA[December]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Arabic]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://ixd-consultant.com/blog/?p=212</guid>
		<description><![CDATA[Update: a newer version available here Well, this issue is a very old one, I&#8217;ve always experienced annoying problems each time I try to render Arabic text on run-time using Flash and ActionScript 2.0, Flash doesn&#8217;t support right-to-left languages, and when it comes to Arabic, we are talking about proper characters joining and word wrapping [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2009%252F12%252F21%252Farabic-text-in-actionscript-2-0%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2F5jPwhS%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Arabic%20Text%20in%20ActionScript%202.0%22%20%7D);"></div>
<p><strong>Update:</strong> a newer version available <a href="http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/" target="_self"><span style="color: #0066ff;">here</span></a></p>
<p>Well, this issue is a very old one, I&#8217;ve always experienced annoying problems each time I try to render Arabic text on run-time using Flash and ActionScript 2.0, Flash doesn&#8217;t support right-to-left languages, and when it comes to Arabic, we are talking about proper characters joining and word wrapping ..</p>
<p>I never stopped tracking this specific issue, googling it to find any new solution has been developed somewhere, for a long time I can only find <a href="http://www.arabicode.com/en/flaraby/as3/flex/" target="_blank"><span style="color: #0066ff;">this</span></a> one, the guy have it perfectly solved, he was having his solution implemented using ActionScript 2.0 at some point earlier, but he stopped publishing that and kept his latest version only, which works with ActionScript 3.0, and for old fashion guys like me he left another version to manually copy proper Arabic text using an AIR application he developed <a href="http://www.arabicode.com/en/flaraby/swf/" target="_blank"><span style="color: #0066ff;">here</span></a></p>
<p>Recently, Adobe says that they finally supports right-to-left languages along with bi-directional and complex script ones, only using ActionScript 3.0 and it requires Flash Player 10 or above, they even have an open source framework called <a href="http://labs.adobe.com/technologies/textlayout/" target="_blank"><span style="color: #0066ff;">Text Layout Framework</span></a>, it&#8217;s perfect actually, it should put an end to this issue, but ..</p>
<p>I have my own objections, I made my quick test to check their new technique <a href="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/arabic_as3.zip" target="_blank"><span style="color: #0066ff;">here</span></a>, Arabic text is finally rendered properly, but why we have to add so many childs to our display list from different TextLines and TextBlocks instead of a single TextField? also we have to set a max width, and I couldn&#8217;t find a way to scroll through text unless I used a custom scroller and masking the text just like any other MovieClip or DisplayObject, personally, I find this much complicated experience just to display simple string!</p>
<p>I do like ActionScript 2.0 a lot more anyway, not just for handling text easily, but for many other reasons, I can stop to post another article to explain why I&#8217;m saying this, right now we need to know what I&#8217;ve reached regarding to our issue ..</p>
<p>In a nutshell, ActionScript 2.0 used to refuse right-to-left languages, so we can&#8217;t embed fonts, wrap text properly, and when it comes to Arabic text we also see our characters splitted which is inappropriate for Arabic readers, the old solution for this was loading text encoded in UTF-8 from external text/xml files, and still no word wrapping, and on Mac machines Arabic letters still splitted, we can align text but its direction still not right-to-left ..</p>
<p>So, logically, I know that I have to construct my Arabic text manually, to achieve that I had to analyze Arabic rules for character joining with all it&#8217;s special cases, and then find a way to force its direction to be left-to-right, and the word wrapping part is not that hard after all, this is basically what I did actually!</p>
<p>My only problem was in finding a way to inject all proper Arabic characters with its unique cases, for a long time I found that very difficult, Flash doesn&#8217;t allow me to copy those from other text processing tools, and of course there&#8217;s no way to type each character a lone in different cases using keyboard ..</p>
<p>Finally, I found a way to do that, and it was extremely simple! I found <a href="http://www.unicode.org/charts/" target="_blank"><span style="color: #0066ff;">these</span></a> charts at unicode official website, and that&#8217;s it! now I can instruct ActionScript 2.0 to handle my Arabic characters properly!</p>
<p>You&#8217;re most welcome to use and test my <a href="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/parsearabic_v1.0.zip" target="_blank"><span style="color: #0066ff;">parseArabic</span></a> method,  it supports word wrapping, right-to-left, bi-directional (inline English characters), embedded fonts and custom text formats, here is an example:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="scale" value="noscale" /><param name="base" value="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/" /><param name="src" value="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/arabic.swf" /><embed type="application/x-shockwave-flash" width="500" height="400" src="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/arabic.swf" base="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/" scale="noscale"></embed></object><br />
<em>download the above example <a href="http://ixd-consultant.com/blog/wp-content/uploads/2009/12/arabic_as2/arabic_as2.zip" target="_blank"><span style="color: #0066ff;">here</span></a></em></p>
<p>The above approach doesn&#8217;t support html tags yet, it&#8217;s a bit confusing, but as I said, you&#8217;re welcome to contribute, your reviews can help improving the code ..<br />
This may help any ActionScript 2.0 loyal friend, and I think the same approach can be used for ActionScript 3.0 as well, I will post that soon ..</p>
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2009%2F12%2F21%2Farabic-text-in-actionscript-2-0%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2009/12/21/arabic-text-in-actionscript-2-0/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Scale9Grid with Masking</title>
		<link>http://ixd-consultant.com/blog/2008/09/16/scale9grid-with-masking/</link>
		<comments>http://ixd-consultant.com/blog/2008/09/16/scale9grid-with-masking/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 00:07:33 +0000</pubDate>
		<dc:creator>xVisage</dc:creator>
				<category><![CDATA[2008]]></category>
		<category><![CDATA[September]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[Scale9Grid]]></category>

		<guid isPermaLink="false">http://interactive-developer.com/blog/?p=49</guid>
		<description><![CDATA[ActionScript DisplayObject has a property called scale9grid used to scale objects according to nine regions based rectangle, detailed information could be found here One day I was trying to use it for scaling effect applied to a MovieClip with curved corners and dynamic loaded image within, the problem was that the mask didn&#8217;t scale properly [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: right; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fixd-consultant.com%252Fblog%252F2008%252F09%252F16%252Fscale9grid-with-masking%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Scale9Grid%20with%20Masking%22%20%7D);"></div>
<p>ActionScript DisplayObject has a property called scale9grid used to scale objects according to nine regions based rectangle, detailed information could be found <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObject.html#scale9Grid" target="_blank"><span style="color: #0066ff;">here</span></a></p>
<p>One day I was trying to use it for scaling effect applied to a MovieClip with curved corners and dynamic loaded image within, the problem was that the mask didn&#8217;t scale properly using scale9grid ..<br />
I didn&#8217;t find an answer to why not, <a href="http://www.kirupa.com/forum/showthread.php?t=239290&amp;highlight=scale9grid" target="_blank"><span style="color: #0066ff;">this</span></a> post on Kirupa still has no reply, and I was using ActionScript 2.0</p>
<p>Well, I used a work-around way to bypass this issue, it&#8217;s simple, just leaving the mask with sharp corners with no scale9grid applied, and draw extra border that has the same background color to hide the image corners visually!<br />
this won&#8217;t work nice unless we have only solid background color</p>
<div id="attachment_51" class="wp-caption aligncenter" style="width: 310px"><a href="http://ixd-consultant.com/blog/wp-content/uploads/2008/09/s9g_01.jpg"><img class="size-full wp-image-51" title="hiding image corners" src="http://ixd-consultant.com/blog/wp-content/uploads/2008/09/s9g_01.jpg" alt="hiding image corners" width="300" height="150" /></a><p class="wp-caption-text">hiding image corners</p></div>
<p>I was hoping that adobe fixes this issue in AcrionScript 3.0, but unfortunately they didn&#8217;t ..</p>
<p>Few days ago I found <a href="http://blog.ickydime.com/2008/06/scale9grid-class-for-masking-in-as3.html" target="_blank"><span style="color: #0066ff;">this</span></a> post at Mark Grossnickle&#8217;s blog, his custom Scale9Mask works fine with masked objects, but it has to be applied individually, and there&#8217;s a scaling factor issue, <a href="http://ixd-consultant.com/blog/wp-content/uploads/2008/09/s9g/" target="_blank"><span style="color: #0066ff;">here</span></a> is a demonstration example with source code <em>available via flash context menu</em></p>
<p>Many thanks to Mark Grossnickle ..
<div class="fblike_button" style="position:absolute; padding-top:3px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fixd-consultant.com%2Fblog%2F2008%2F09%2F16%2Fscale9grid-with-masking%2F&amp;layout=standard&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:px; height:25px"></iframe></div>

]]></content:encoded>
			<wfw:commentRss>http://ixd-consultant.com/blog/2008/09/16/scale9grid-with-masking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
