<?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: Displaying a background color on a Label control in Flash</title>
	<atom:link href="http://actionscriptexamples.com/2008/12/04/displaying-a-background-color-on-a-label-control-in-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://actionscriptexamples.com/2008/12/04/displaying-a-background-color-on-a-label-control-in-flash/</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: Chris</title>
		<link>http://actionscriptexamples.com/2008/12/04/displaying-a-background-color-on-a-label-control-in-flash/comment-page-1/#comment-598</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 09 Oct 2009 00:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=139#comment-598</guid>
		<description>thanks Peter , it helps me a lot</description>
		<content:encoded><![CDATA[<p>thanks Peter , it helps me a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://actionscriptexamples.com/2008/12/04/displaying-a-background-color-on-a-label-control-in-flash/comment-page-1/#comment-482</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Wed, 08 Apr 2009 20:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=139#comment-482</guid>
		<description>try using the namespace mx_internal
&lt;pre lang=&quot;actionscript&quot;&gt;
use namespace mx_internal;  // don&#039;t forget to import it
(l.mx_internal::getTextField() as UITextField).background = true;
(l.mx_internal::getTextField() as UITextField).backgroundColor =0xDDDDDD
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>try using the namespace mx_internal</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">use namespace mx_internal;  <span style="color: #808080; font-style: italic;">// don't forget to import it</span>
<span style="color: #66cc66;">&#40;</span>l.<span style="color: #006600;">mx_internal</span>::getTextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> as UITextField<span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">background</span> = <span style="color: #000000; font-weight: bold;">true</span>;
<span style="color: #66cc66;">&#40;</span>l.<span style="color: #006600;">mx_internal</span>::getTextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> as UITextField<span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">backgroundColor</span> =0xDDDDDD</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://actionscriptexamples.com/2008/12/04/displaying-a-background-color-on-a-label-control-in-flash/comment-page-1/#comment-385</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 18 Feb 2009 17:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=139#comment-385</guid>
		<description>Geert,

The fl.controls.Label is the Flash Authoring/ActionScript 3.0 Label control.
The mx.controls.Label is the Flex SDK/ActionScript 3.0 Label control.

Peter</description>
		<content:encoded><![CDATA[<p>Geert,</p>
<p>The fl.controls.Label is the Flash Authoring/ActionScript 3.0 Label control.<br />
The mx.controls.Label is the Flex SDK/ActionScript 3.0 Label control.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geert</title>
		<link>http://actionscriptexamples.com/2008/12/04/displaying-a-background-color-on-a-label-control-in-flash/comment-page-1/#comment-382</link>
		<dc:creator>Geert</dc:creator>
		<pubDate>Mon, 16 Feb 2009 10:11:25 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=139#comment-382</guid>
		<description>What&#039;s this 
import fl.controls.Label ???

If I use 
import mx.controls.Label;

I get
1178: Attempted access of inaccessible property textField through a reference with static type mx.controls:Label.</description>
		<content:encoded><![CDATA[<p>What&#8217;s this<br />
import fl.controls.Label ???</p>
<p>If I use<br />
import mx.controls.Label;</p>
<p>I get<br />
1178: Attempted access of inaccessible property textField through a reference with static type mx.controls:Label.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
