<?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>Being the adventures of a young man whose principal interests are... &#187; TextFormat</title>
	<atom:link href="http://juliankussman.com/blog/tag/textformat/feed/" rel="self" type="application/rss+xml" />
	<link>http://juliankussman.com/blog</link>
	<description>Advertising, Interactive Art Direction, and usability.</description>
	<lastBuildDate>Wed, 01 Sep 2010 13:10:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>My TextFormat won&#8217;t stick to my TextField</title>
		<link>http://juliankussman.com/blog/2008/04/01/my-textformat-wont-stick-to-my-textfield/</link>
		<comments>http://juliankussman.com/blog/2008/04/01/my-textformat-wont-stick-to-my-textfield/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 14:42:05 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Flash CS3]]></category>
		<category><![CDATA[TextField]]></category>
		<category><![CDATA[TextFormat]]></category>

		<guid isPermaLink="false">http://juliankussman.com/blog/2008/04/01/my-textformat-wont-stick-to-my-textfield/</guid>
		<description><![CDATA[Run this SWF and click the button, the text stays pink. Then run this and click on the text, then click the button. The text defaults size and color. Why??????textFormatBug var titleTF:TextFormat = new TextFormat(); titleTF.color = 0xFF00FF; titleTF.size = &#8230; <a href="http://juliankussman.com/blog/2008/04/01/my-textformat-wont-stick-to-my-textfield/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Run this SWF and click the button, the text stays pink.<br />
Then run this and click on the text, then click the button.<br />
The text defaults size and color. Why??????<a href="http://juliankussman.com/blog/2008/04/01/my-textformat-wont-stick-to-my-textfield/textformatbug/" rel="attachment wp-att-23" title="textFormatBug">textFormatBug</a></p>
<p>var titleTF:TextFormat = new TextFormat();<br />
titleTF.color = 0xFF00FF;<br />
titleTF.size = 22;<br />
//titleTF.font = avantBold.fontName;<br />
var titleText:TextField = createTF(10, 10, 200, 26, true, titleTF, &#8220;This is a test&#8221;);<br />
addChild(titleText);</p>
<p>function createTF(_x:Number, _y:Number, _width:Number, _height:Number, _autoSize:Boolean, _defaultTF:TextFormat, _text:String):TextField {<br />
var tf:TextField = new TextField();<br />
tf.x = _x;<br />
tf.y = _y;<br />
tf.width = _width;<br />
tf.height = _height;<br />
tf.autoSize = (_autoSize) ? TextFieldAutoSize.LEFT : TextFieldAutoSize.NONE;<br />
tf.wordWrap = true;<br />
tf.multiline = true;<br />
tf.defaultTextFormat = _defaultTF;<br />
tf.htmlText = _text;<br />
//tf.setTextFormat(_defaultTF);<br />
return tf;<br />
}</p>
<p>clicker.addEventListener(MouseEvent.CLICK, swapText);</p>
<p>function swapText(e:*):void{<br />
titleText.htmlText = &#8220;This is now a changed test&#8221; + String(Math.random());;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://juliankussman.com/blog/2008/04/01/my-textformat-wont-stick-to-my-textfield/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
