<?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: Underlined link style in Flash</title>
	<atom:link href="http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/</link>
	<description>There is no universally agreed-upon biological definition of dreaming</description>
	<lastBuildDate>Wed, 28 Jul 2010 11:46:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: stu</title>
		<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/comment-page-1/#comment-1070</link>
		<dc:creator>stu</dc:creator>
		<pubDate>Wed, 20 Jan 2010 16:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=6#comment-1070</guid>
		<description>wow cant believe I didnt find this before! Thanks</description>
		<content:encoded><![CDATA[<p>wow cant believe I didnt find this before! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tamara</title>
		<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/comment-page-1/#comment-979</link>
		<dc:creator>Tamara</dc:creator>
		<pubDate>Thu, 16 Jul 2009 13:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=6#comment-979</guid>
		<description>Thanks!! worked like a charm :)</description>
		<content:encoded><![CDATA[<p>Thanks!! worked like a charm <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry M.</title>
		<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/comment-page-1/#comment-794</link>
		<dc:creator>Dmitry M.</dc:creator>
		<pubDate>Fri, 16 Jan 2009 17:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=6#comment-794</guid>
		<description>Thank You! Very Helpful (=</description>
		<content:encoded><![CDATA[<p>Thank You! Very Helpful (=</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tufao</title>
		<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/comment-page-1/#comment-420</link>
		<dc:creator>tufao</dc:creator>
		<pubDate>Mon, 14 Jul 2008 10:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=6#comment-420</guid>
		<description>Here is the solution in AS3:

import flash.text.StyleSheet;
import flash.text.TextField;

function styleHoverUnderline(target_mc:MovieClip)
{
	var styleObj:Object = new Object();
	styleObj.textDecoration = &quot;underline&quot;;
	
	var my_styleSheet:StyleSheet = new StyleSheet();
	my_styleSheet.setStyle(&quot;a:hover&quot;, styleObj);
	
	for (var i:int=0 ; i&lt;target_mc.numChildren ; i++)
	{
		var obj:DisplayObject = target_mc.getChildAt(i);
		if (obj is TextField)
			TextField(obj).styleSheet = my_styleSheet;
	}
}

styleHoverUnderline(text_mc);</description>
		<content:encoded><![CDATA[<p>Here is the solution in AS3:</p>
<p>import flash.text.StyleSheet;<br />
import flash.text.TextField;</p>
<p>function styleHoverUnderline(target_mc:MovieClip)<br />
{<br />
	var styleObj:Object = new Object();<br />
	styleObj.textDecoration = &#8220;underline&#8221;;</p>
<p>	var my_styleSheet:StyleSheet = new StyleSheet();<br />
	my_styleSheet.setStyle(&#8220;a:hover&#8221;, styleObj);</p>
<p>	for (var i:int=0 ; i&lt;target_mc.numChildren ; i++)<br />
	{<br />
		var obj:DisplayObject = target_mc.getChildAt(i);<br />
		if (obj is TextField)<br />
			TextField(obj).styleSheet = my_styleSheet;<br />
	}<br />
}</p>
<p>styleHoverUnderline(text_mc);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tufao</title>
		<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/comment-page-1/#comment-419</link>
		<dc:creator>tufao</dc:creator>
		<pubDate>Mon, 14 Jul 2008 10:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=6#comment-419</guid>
		<description>my email is tufao@hotmail.com</description>
		<content:encoded><![CDATA[<p>my email is <a href="mailto:tufao@hotmail.com">tufao@hotmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tufao</title>
		<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/comment-page-1/#comment-418</link>
		<dc:creator>tufao</dc:creator>
		<pubDate>Mon, 14 Jul 2008 10:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=6#comment-418</guid>
		<description>Hi n1ce,

This solution works fine. Just remember that you need to have an anchor defined on part or in the entire text (static or dynamic).
If you need further help, just email me your fla and I take a look at it.

cheers</description>
		<content:encoded><![CDATA[<p>Hi n1ce,</p>
<p>This solution works fine. Just remember that you need to have an anchor defined on part or in the entire text (static or dynamic).<br />
If you need further help, just email me your fla and I take a look at it.</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: n1cE</title>
		<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/comment-page-1/#comment-417</link>
		<dc:creator>n1cE</dc:creator>
		<pubDate>Sun, 13 Jul 2008 19:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=6#comment-417</guid>
		<description>I just tried your example and I didn&#039;t get it to work. I created a TextField and put it into an mc and named it &quot;test_mc&quot;. So i wrote styleHoverUnderline(test_mc);. And nothing happend. I think that your example can&#039;t work because a lot of functions or whatever are not part of Flash. But when you can persuade me that it works I would be very very surprised. So please clear it up to me.</description>
		<content:encoded><![CDATA[<p>I just tried your example and I didn&#8217;t get it to work. I created a TextField and put it into an mc and named it &#8220;test_mc&#8221;. So i wrote styleHoverUnderline(test_mc);. And nothing happend. I think that your example can&#8217;t work because a lot of functions or whatever are not part of Flash. But when you can persuade me that it works I would be very very surprised. So please clear it up to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tufao</title>
		<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/comment-page-1/#comment-339</link>
		<dc:creator>tufao</dc:creator>
		<pubDate>Sun, 18 May 2008 09:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=6#comment-339</guid>
		<description>Is as simple as that. Just call styleHoverUnderline(movie), where &quot;movie&quot; is the parent containing all text fields.
If you have further questions let me know.</description>
		<content:encoded><![CDATA[<p>Is as simple as that. Just call styleHoverUnderline(movie), where &#8220;movie&#8221; is the parent containing all text fields.<br />
If you have further questions let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Woelfel</title>
		<link>http://www.dreaminginflash.com/2007/09/04/underlined-link-style-in-flash/comment-page-1/#comment-332</link>
		<dc:creator>Jason Woelfel</dc:creator>
		<pubDate>Fri, 16 May 2008 17:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=6#comment-332</guid>
		<description>Can you tell me where this code goes? I have tried placing it in various places with no change. I know where ActionScripts go, but don&#039;t know if I need to apply this code to a particular layer, frame, instance, etc.

I have searched all morning for instructions on how to use CSS with Flash. I have not figured out a way to stylize static text that is hyperlinked. Your solution intrigued me, if only I can get it to work without manually drawing lines under the text.

Thank you for any help you can give me.</description>
		<content:encoded><![CDATA[<p>Can you tell me where this code goes? I have tried placing it in various places with no change. I know where ActionScripts go, but don&#8217;t know if I need to apply this code to a particular layer, frame, instance, etc.</p>
<p>I have searched all morning for instructions on how to use CSS with Flash. I have not figured out a way to stylize static text that is hyperlinked. Your solution intrigued me, if only I can get it to work without manually drawing lines under the text.</p>
<p>Thank you for any help you can give me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
