<?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>NiceCabbage Blog &#187; as3</title>
	<atom:link href="http://www.nicecabbage.com/tag/as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicecabbage.com</link>
	<description>Life, Design, Web Application</description>
	<lastBuildDate>Mon, 07 Jun 2010 02:03:24 +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>Showing Japanese Texts in Vertial Orientation(縦書き) in Flash Player 10</title>
		<link>http://www.nicecabbage.com/2009/08/showing-japanese-texts-in-vertial-orientation%e7%b8%a6%e6%9b%b8%e3%81%8d-in-flash-player-10/</link>
		<comments>http://www.nicecabbage.com/2009/08/showing-japanese-texts-in-vertial-orientation%e7%b8%a6%e6%9b%b8%e3%81%8d-in-flash-player-10/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 10:02:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=165</guid>
		<description><![CDATA[Problem
You want to show texts in a vertical orientation on Flash Player 10.
Solution

From Flash Player 10, you can use Flash Text Engine(aka, FTE), included in flash.text.engine.*. To show (and edit) text contents in Flash, you can do much much more than good and old TextField class.


&#8220;vertical orientation&#8221; is one of the great features FTE offers [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>You want to show texts in a vertical orientation on Flash Player 10.</p>
<h2>Solution</h2>
<p>
From Flash Player 10, you can use Flash Text Engine(aka, FTE), included in flash.text.engine.*. To show (and edit) text contents in Flash, you can do much much more than good and old TextField class.
</p>
<p>
&#8220;vertical orientation&#8221; is one of the great features FTE offers to us. I made a easy-to-use wrapper class for this feature. Check the code below.
</p>
<p><script src="http://gist.github.com/169005.js"></script></p>
<p>
And, here is a sample usage of &#8220;VText&#8221; class.
</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> 
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> com.hoora.view.VText;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">MovieClip</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main extends <span style="color: #004993;">MovieClip</span> <span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> VText<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;Hello, 日本語！English words are shown like this. 日本語は縦書きに表示されます。&quot;</span>, <span style="color: #000000; font-weight:bold;">80</span>, <span style="color: #000000; font-weight:bold;">180</span>, 0x005596<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>
And the result is,
</p>
<p><a href="http://www.nicecabbage.com/wp-content/uploads/2009/08/fl.swf"><img alt="" src="http://gyazo.com/c1f1d69ff33733e2e6457e5e9defc12f.png" class="alignnone" width="100" height="223" /></a></p>
<p>
Click on the image to play the SWF. Note that you need to have flash player 10 installed on your machine to see the swf.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/08/showing-japanese-texts-in-vertial-orientation%e7%b8%a6%e6%9b%b8%e3%81%8d-in-flash-player-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
