<?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>Cold Constructs &#187; class</title>
	<atom:link href="http://coldconstructs.com/tag/class/feed/" rel="self" type="application/rss+xml" />
	<link>http://coldconstructs.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 30 Aug 2010 19:28:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=7796</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>BitmapText class</title>
		<link>http://coldconstructs.com/2009/03/bitmaptext-class/</link>
		<comments>http://coldconstructs.com/2009/03/bitmaptext-class/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 21:32:44 +0000</pubDate>
		<dc:creator>Corey</dc:creator>
				<category><![CDATA[Introductions]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://coldconstructs.com/?p=65</guid>
		<description><![CDATA[A new section is up on the projects page where I put classes I&#8217;ve written that I think might be useful to others. People seemed to like my post on bitmap text so I released the class I use to do the boring work for me.
Usage:

?View Code ACTIONSCRIPT3// Optional format
var format:TextFormat = new TextFormat&#40;&#41;;
format.font = [...]]]></description>
			<content:encoded><![CDATA[<p>A new section is up on the projects page where I put classes I&#8217;ve written that I think might be useful to others. People seemed to like my post <a href="http://coldconstructs.com/2008/06/scaling-dynamic-text-in-as3/">on bitmap text</a> so I released the class I use to do the boring work for me.</p>
<p>Usage:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p65code2'); return false;">View Code</a> ACTIONSCRIPT3</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p652"><td class="code" id="p65code2"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">// Optional format</span>
<span style="color: #6699cc; font-weight: bold;">var</span> format<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=textformat%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:textformat.html"><span style="color: #004993;">TextFormat</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=textformat%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:textformat.html"><span style="color: #004993;">TextFormat</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
format<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">font</span> = <span style="color: #990000;">&quot;Verdana&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
format<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">size</span> = <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> bmt<span style="color: #000066; font-weight: bold;">:</span>BitmapText = <span style="color: #0033ff; font-weight: bold;">new</span> BitmapText<span style="color: #000000;">&#40;</span>300<span style="color: #000066; font-weight: bold;">,</span> 500<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">,</span> format<span style="color: #000066; font-weight: bold;">,</span> 12<span style="color: #000066; font-weight: bold;">,</span> 100<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// only width and height are required</span>
bmt<span style="color: #000066; font-weight: bold;">.</span>addText<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;This is html text, which can't be mixed with regular text.&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// set last param to false for regular text</span>
<span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>bmt<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">render</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<p>More instructions/explanations are in the class itself.</p>
]]></content:encoded>
			<wfw:commentRss>http://coldconstructs.com/2009/03/bitmaptext-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
