<?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: Hand Cursor on a Label</title>
	<atom:link href="http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/</link>
	<description>flex developers web corner</description>
	<lastBuildDate>Wed, 18 Jan 2012 13:28:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gevorg Nazaryan</title>
		<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/comment-page-1/#comment-2030</link>
		<dc:creator>Gevorg Nazaryan</dc:creator>
		<pubDate>Fri, 22 Apr 2011 12:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/#comment-2030</guid>
		<description>Thanks. Full and short and simply to use ansfer.</description>
		<content:encoded><![CDATA[<p>Thanks. Full and short and simply to use ansfer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elton</title>
		<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/comment-page-1/#comment-2005</link>
		<dc:creator>Elton</dc:creator>
		<pubDate>Thu, 27 Jan 2011 11:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/#comment-2005</guid>
		<description>Great tip, man!
I was trying to do this for a long!</description>
		<content:encoded><![CDATA[<p>Great tip, man!<br />
I was trying to do this for a long!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yura</title>
		<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/comment-page-1/#comment-1712</link>
		<dc:creator>Yura</dc:creator>
		<pubDate>Sat, 19 Sep 2009 13:35:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/#comment-1712</guid>
		<description>Thanks for 

mousechildren = false</description>
		<content:encoded><![CDATA[<p>Thanks for </p>
<p>mousechildren = false</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/comment-page-1/#comment-1597</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 27 Apr 2009 06:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/#comment-1597</guid>
		<description>Tnx, many other sites forget &#039;mousechildren = false&#039;.</description>
		<content:encoded><![CDATA[<p>Tnx, many other sites forget &#8216;mousechildren = false&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stelian Crisan</title>
		<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/comment-page-1/#comment-1238</link>
		<dc:creator>Stelian Crisan</dc:creator>
		<pubDate>Tue, 10 Feb 2009 07:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/#comment-1238</guid>
		<description>Hi,

useHandCursor, mouseChildren, buttonMode are control properties not control styles, so you can&#039;t set those using css. 

I think the solution for you is to make a new class that extends Label, and to set there as default properties those. 

Here is a small example.

Class file: ButtonLabelClass.as
&lt;pre lang=&quot;actionscript&quot;&gt;
package
{
    import mx.controls.Label;

    public class ButtonLabelClass extends Label
    {
        public function ButtonLabelClass()
        {
            super();
			
            //set your properties
            useHandCursor = true;
            mouseChildren = false;
            buttonMode = true;
        }
		
    }
}
&lt;/pre&gt;

And you can use it like this:

Application file: ButtonLabel.mxml

&lt;pre lang=&quot;actionscript&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application 
   xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; 
   layout=&quot;absolute&quot; xmlns:local=&quot;*&quot;&gt;

   &lt;local:ButtonLabelClass 
      id=&quot;myLabel&quot; text=&quot;Click here!&quot; width=&quot;150&quot; /&gt;
	
&lt;/mx:Application&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>useHandCursor, mouseChildren, buttonMode are control properties not control styles, so you can&#8217;t set those using css. </p>
<p>I think the solution for you is to make a new class that extends Label, and to set there as default properties those. </p>
<p>Here is a small example.</p>
<p>Class file: ButtonLabelClass.as</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Label</span>;
&nbsp;
    <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ButtonLabelClass <span style="color: #0066CC;">extends</span> Label
    <span style="color: #66cc66;">&#123;</span>
        <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> ButtonLabelClass<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#123;</span>
            <span style="color: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
            <span style="color: #808080; font-style: italic;">//set your properties</span>
            <span style="color: #0066CC;">useHandCursor</span> = <span style="color: #000000; font-weight: bold;">true</span>;
            mouseChildren = <span style="color: #000000; font-weight: bold;">false</span>;
            buttonMode = <span style="color: #000000; font-weight: bold;">true</span>;
        <span style="color: #66cc66;">&#125;</span>
&nbsp;
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>And you can use it like this:</p>
<p>Application file: ButtonLabel.mxml</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application 
   xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> 
   layout=<span style="color: #ff0000;">&quot;absolute&quot;</span> xmlns:local=<span style="color: #ff0000;">&quot;*&quot;</span><span style="color: #66cc66;">&gt;</span>
&nbsp;
   <span style="color: #66cc66;">&lt;</span>local:ButtonLabelClass 
      id=<span style="color: #ff0000;">&quot;myLabel&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Click here!&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;150&quot;</span> <span style="color: #66cc66;">/&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Shoults</title>
		<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/comment-page-1/#comment-1231</link>
		<dc:creator>Charles Shoults</dc:creator>
		<pubDate>Mon, 09 Feb 2009 22:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/#comment-1231</guid>
		<description>Can this be done in CSS instead of attached directly to a label or image?  I have many instances, 40+ now, where I&#039;ve added these to images, labels both on their own and within dataGrids, setting them to use the hand cursor but having to add those three tags to every instance is a real pain.  I tried creating a style named .hand, adding the three tags to the style and setting the style of the elements but can&#039;t get it to work.</description>
		<content:encoded><![CDATA[<p>Can this be done in CSS instead of attached directly to a label or image?  I have many instances, 40+ now, where I&#8217;ve added these to images, labels both on their own and within dataGrids, setting them to use the hand cursor but having to add those three tags to every instance is a real pain.  I tried creating a style named .hand, adding the three tags to the style and setting the style of the elements but can&#8217;t get it to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/comment-page-1/#comment-956</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 01 Dec 2008 23:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/#comment-956</guid>
		<description>ofc you can also use 
&lt;code&gt;&lt;/code&gt;

(hmm, i wonder if it work now....)</description>
		<content:encoded><![CDATA[<p>ofc you can also use<br />
<code></code></p>
<p>(hmm, i wonder if it work now&#8230;.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/comment-page-1/#comment-955</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 01 Dec 2008 23:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/#comment-955</guid>
		<description>ofc you can also use 

</description>
		<content:encoded><![CDATA[<p>ofc you can also use</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rushit</title>
		<link>http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/comment-page-1/#comment-183</link>
		<dc:creator>Rushit</dc:creator>
		<pubDate>Thu, 24 Apr 2008 16:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/15/hand-cursor-on-a-label/#comment-183</guid>
		<description>Excellent tip.
I was searching this for almost 4 hours and then i got this link .

Thanks Once again</description>
		<content:encoded><![CDATA[<p>Excellent tip.<br />
I was searching this for almost 4 hours and then i got this link .</p>
<p>Thanks Once again</p>
]]></content:encoded>
	</item>
</channel>
</rss>

