<?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>sundh.com &#187; flash</title>
	<atom:link href="http://www.sundh.com/blog/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sundh.com/blog</link>
	<description>Technology / Wood / Electronics</description>
	<lastBuildDate>Tue, 25 May 2010 11:13:41 +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>Embedding fonts with code</title>
		<link>http://www.sundh.com/blog/2010/04/embedding-fonts-with-code/</link>
		<comments>http://www.sundh.com/blog/2010/04/embedding-fonts-with-code/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 15:29:43 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[unicodeRange]]></category>

		<guid isPermaLink="false">http://www.sundh.com/blog/?p=200</guid>
		<description><![CDATA[Embedding your fonts by code, you enter this code into an fla:

&#91;Embed&#40; systemFont=&#34;Arial&#34;, fontName=&#34;arialBold&#34; , fontWeight= &#34;bold&#34; ,
mimeType=&#34;application/x-font&#34;, unicodeRange=&#34;U+0020-U+007E,U+00A1-U+00FF,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183,U+0100-U+01FF, U+1E00-U+1EFF;&#34;&#41;&#93;
var arialBold:Class;
Font.registerFont&#40;arialBold&#41;;

Export your fla preferably with the name of the font and load it into you Flash application. &#8220;arialBold&#8221; is the identifier used in your classes after loading in your font swf. When you add your [...]]]></description>
			<content:encoded><![CDATA[<p>Embedding your fonts by code, you enter this code into an fla:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="br0">&#91;</span>Embed<span class="br0">&#40;</span> systemFont=<span class="st0">&quot;Arial&quot;</span>, fontName=<span class="st0">&quot;arialBold&quot;</span> , fontWeight= <span class="st0">&quot;bold&quot;</span> ,<br />
mimeType=<span class="st0">&quot;application/x-font&quot;</span>, unicodeRange=<span class="st0">&quot;U+0020-U+007E,U+00A1-U+00FF,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183,U+0100-U+01FF, U+1E00-U+1EFF;&quot;</span><span class="br0">&#41;</span><span class="br0">&#93;</span><br />
<span class="kw2">var</span> arialBold:<span class="kw2">Class</span>;<br />
<span class="kw3">Font</span>.<span class="me1">registerFont</span><span class="br0">&#40;</span>arialBold<span class="br0">&#41;</span>;</div>
</div>
<p>Export your fla preferably with the name of the font and load it into you Flash application. &#8220;arialBold&#8221; is the identifier used in your classes after loading in your font swf. When you add your font properties to your text field the following code is used:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> <span class="kw3">textField</span>:<span class="kw3">TextField</span> = <span class="kw2">new</span> <span class="kw3">TextField</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">textField</span>.<span class="kw3">embedFonts</span> = <span class="kw2">true</span>;<br />
<span class="kw2">var</span> <span class="kw3">textFormat</span>:<span class="kw3">TextFormat</span> = <span class="kw2">new</span> <span class="kw3">TextFormat</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">textFormat</span>.<span class="kw3">font</span> = <span class="st0">&quot;arialBold&quot;</span>;<br />
<span class="kw3">textFormat</span>.<span class="kw3">bold</span> = <span class="kw2">true</span>;<br />
<span class="kw3">textFormat</span>.<span class="kw3">color</span> = 0&#215;000000;<br />
<span class="kw3">textFormat</span>.<span class="kw3">size</span> = <span class="nu0">12</span>;<br />
<span class="kw3">textField</span>.<span class="kw3">selectable</span> = <span class="kw2">false</span>;<br />
<span class="kw3">textField</span>.<span class="kw3">width</span> = <span class="nu0">300</span>;<br />
<span class="kw3">textField</span>.<span class="kw3">multiline</span> = <span class="kw2">true</span>;<br />
<span class="kw3">textField</span>.<span class="kw3">wordWrap</span> = <span class="kw2">true</span>;<br />
<span class="kw3">textField</span>.<span class="kw3">autoSize</span> = TextFieldAutoSize.<span class="kw3">LEFT</span>;<br />
<span class="kw3">textField</span>.<span class="me1">defaultTextFormat</span> = <span class="kw3">textFormat</span>;<br />
<span class="kw3">textField</span>.<span class="kw3">text</span> = <span class="st0">&quot;Your text here&quot;</span>;</div>
</div>
<p><a href="http://www.tillschneidereit.de/unicode_range_tool.html" target="_blank"></a></p>
<p>To get the specific unicode range for your project you can input your characters and convert them with the help of the <a href="http://www.tillschneidereit.de/unicode_range_tool.html" target="_blank">Unicode range tool</a>.</p>
<p>These are the most common unicode ranges I use:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="co1">//Basic Latin</span><br />
<span class="co1">//Characters: !&quot;#$%&amp;amp;&#8217;()*+,-./0123456789:;&amp;lt;=&amp;gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~</span><br />
U+<span class="nu0">20</span>-U+7E</div>
</div>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="co1">//Latin-1 Supplement</span><br />
<span class="co1">//Characters: &nbsp;¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ</span><br />
U+<span class="nu0">20</span>,U+A1-U+FF</div>
</div>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="co1">//Latin Extended-A</span><br />
<span class="co1">//Characters: ĀāĂăĄąĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıĲĳĴĵĶķĸĹĺĻļĽľĿŀŁłŃ</span><br />
<span class="co1">//ńŅņŇňŉŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſ</span><br />
U+<span class="nu0">100</span>-U+17F</div>
</div>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2010/04/embedding-fonts-with-code/" target="_blank"><img src="http://www.sundh.com/blog/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2010/04/embedding-fonts-with-code/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.sundh.com/blog/2010/04/embedding-fonts-with-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site pal: 3d mapping on faces</title>
		<link>http://www.sundh.com/blog/2009/12/site-pal-3d-mapping-on-faces/</link>
		<comments>http://www.sundh.com/blog/2009/12/site-pal-3d-mapping-on-faces/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 15:43:49 +0000</pubDate>
		<dc:creator>Ellen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Site pal]]></category>

		<guid isPermaLink="false">http://www.sundh.com/blog/?p=34</guid>
		<description><![CDATA[Site Pal lets you add a speaking face to your website. Even Barack Obama&#8230; You can upload your own image to create a 3D avatar moving and talking with different face expressions. The company Site Pal took experiences from the gaming industry and put it into a 3D engine made in Flash. The facial expressions [...]]]></description>
			<content:encoded><![CDATA[<p>Site Pal lets you add a speaking face to your website. Even Barack Obama&#8230; You can upload your own image to create a 3D avatar moving and talking with different face expressions. The company Site Pal took experiences from the gaming industry and put it into a 3D engine made in Flash. The facial expressions are quite impressing.</p>
<p>I tried it out with an image I uploaded:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/WHItsLfBfZc&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/WHItsLfBfZc&amp;hl=en_US&amp;fs=1&amp;color1=0x006699&amp;color2=0x54abd6" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>See more on: <a href="http://www.sitepal.com/" rel="nofollow">http://www.sitepal.com/</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2009/12/site-pal-3d-mapping-on-faces/" target="_blank"><img src="http://www.sundh.com/blog/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.sundh.com/blog/2009/12/site-pal-3d-mapping-on-faces/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.sundh.com/blog/2009/12/site-pal-3d-mapping-on-faces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
