<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using embedded fonts with the Button control in Flash with ActionScript 3.0</title>
	<atom:link href="http://actionscriptexamples.com/2008/11/25/using-embedded-fonts-with-the-button-control-in-flash-with-actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://actionscriptexamples.com/2008/11/25/using-embedded-fonts-with-the-button-control-in-flash-with-actionscript-30/</link>
	<description>A bunch of ActionScript 2.0 and ActionScript 3.0 examples*</description>
	<lastBuildDate>Thu, 22 Jul 2010 14:13:10 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Glen</title>
		<link>http://actionscriptexamples.com/2008/11/25/using-embedded-fonts-with-the-button-control-in-flash-with-actionscript-30/comment-page-1/#comment-510</link>
		<dc:creator>Glen</dc:creator>
		<pubDate>Sun, 17 May 2009 06:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=53#comment-510</guid>
		<description>would love to know the same thing as Sharon!</description>
		<content:encoded><![CDATA[<p>would love to know the same thing as Sharon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharon</title>
		<link>http://actionscriptexamples.com/2008/11/25/using-embedded-fonts-with-the-button-control-in-flash-with-actionscript-30/comment-page-1/#comment-481</link>
		<dc:creator>Sharon</dc:creator>
		<pubDate>Mon, 06 Apr 2009 21:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=53#comment-481</guid>
		<description>I&#039;ve studied the Button component quick start guide, I&#039;ve tested a bunch of styles for the button textField (including the advice above), but the one thing I cannot force it to do is align to the left.  It consistently remains centered. 

My menu is appearing on the left of the flash document, so I do not want centered text. the only workaround I&#039;ve found that works is to set button.label = &quot;&quot;; and then create a whole new textfield. Is this really the only way?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve studied the Button component quick start guide, I&#8217;ve tested a bunch of styles for the button textField (including the advice above), but the one thing I cannot force it to do is align to the left.  It consistently remains centered. </p>
<p>My menu is appearing on the left of the flash document, so I do not want centered text. the only workaround I&#8217;ve found that works is to set button.label = &#8220;&#8221;; and then create a whole new textfield. Is this really the only way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Probert</title>
		<link>http://actionscriptexamples.com/2008/11/25/using-embedded-fonts-with-the-button-control-in-flash-with-actionscript-30/comment-page-1/#comment-436</link>
		<dc:creator>Lee Probert</dc:creator>
		<pubDate>Tue, 31 Mar 2009 12:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=53#comment-436</guid>
		<description>You can set global styles too ...

import fl.managers.StyleManager; 
import fl.controls.Button; 

var myFont:Font = new Font(); // in the library

var tf:TextFormat = new TextFormat(); 
tf.color = 0xFF0000;
tf.font = myFont.fontName;
tf.size = 11;
tf.align = TextFormatAlign.LEFT;

StyleManager.setComponentStyle(Button, &quot;embedFonts&quot;, true);
StyleManager.setComponentStyle(Button, &quot;textFormat&quot;, tf);
StyleManager.setComponentStyle(Button, &quot;antiAliasType&quot;, AntiAliasType.ADVANCED);</description>
		<content:encoded><![CDATA[<p>You can set global styles too &#8230;</p>
<p>import fl.managers.StyleManager;<br />
import fl.controls.Button; </p>
<p>var myFont:Font = new Font(); // in the library</p>
<p>var tf:TextFormat = new TextFormat();<br />
tf.color = 0xFF0000;<br />
tf.font = myFont.fontName;<br />
tf.size = 11;<br />
tf.align = TextFormatAlign.LEFT;</p>
<p>StyleManager.setComponentStyle(Button, &#8220;embedFonts&#8221;, true);<br />
StyleManager.setComponentStyle(Button, &#8220;textFormat&#8221;, tf);<br />
StyleManager.setComponentStyle(Button, &#8220;antiAliasType&#8221;, AntiAliasType.ADVANCED);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
