<?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: Simple TextField Marquee</title>
	<atom:link href="http://jacksondunstan.com/articles/408/feed" rel="self" type="application/rss+xml" />
	<link>http://jacksondunstan.com/articles/408</link>
	<description>Mastering AS3</description>
	<lastBuildDate>Mon, 14 May 2012 17:02:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-25909</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Tue, 03 Apr 2012 00:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-25909</guid>
		<description>There are definitely ways of making the animation smoother, but this class is intended to be &lt;em&gt;simple&lt;/em&gt;. If you&#039;d like to, try using a &lt;code&gt;scrollRect&lt;/code&gt; or &lt;code&gt;mask&lt;/code&gt; on the &lt;code&gt;MarqueeTextField&lt;/code&gt; to cut off some of the text and combine this with a smaller timer value (e.g. 50) to update more often. Exactly how to implement this is an exercise for the reader. :)</description>
		<content:encoded><![CDATA[<p>There are definitely ways of making the animation smoother, but this class is intended to be <em>simple</em>. If you&#8217;d like to, try using a <code>scrollRect</code> or <code>mask</code> on the <code>MarqueeTextField</code> to cut off some of the text and combine this with a smaller timer value (e.g. 50) to update more often. Exactly how to implement this is an exercise for the reader. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-25687</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 30 Mar 2012 12:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-25687</guid>
		<description>This is great cheers, is there a way of making the animation any smoother? Cheers</description>
		<content:encoded><![CDATA[<p>This is great cheers, is there a way of making the animation any smoother? Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bala</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-23935</link>
		<dc:creator>bala</dc:creator>
		<pubDate>Sat, 03 Mar 2012 14:43:24 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-23935</guid>
		<description>good work.</description>
		<content:encoded><![CDATA[<p>good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naresh kumar</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-16896</link>
		<dc:creator>Naresh kumar</dc:creator>
		<pubDate>Fri, 02 Dec 2011 13:11:53 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-16896</guid>
		<description>it was wonderful example to everyone i got how to fix the problem of height for text thanks soo much plzz provide few more examples on the flash by next time</description>
		<content:encoded><![CDATA[<p>it was wonderful example to everyone i got how to fix the problem of height for text thanks soo much plzz provide few more examples on the flash by next time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-14523</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Thu, 20 Oct 2011 16:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-14523</guid>
		<description>You can also size the &lt;code&gt;MarqueeTextField&lt;/code&gt; however you&#039;d like. For examples:

&lt;pre lang=&quot;actionscript3&quot;&gt;
// Use an auto-size
var tf:MarqueeTextField = new MarqueeTextField();
tf.text = &quot;Some very long message with a lot of words&quot;;
tf.defaultTextFormat = new TextFormat(&quot;_typewriter&quot;, 14, 0xff0000);
tf.autoSize = TextFieldAutoSize.LEFT;

// Use some other size that you compute
var tf:MarqueeTextField = new MarqueeTextField();
tf.text = &quot;Some very long message with a lot of words&quot;;
tf.defaultTextFormat = new TextFormat(&quot;_typewriter&quot;, 14, 0xff0000);
tf.width = stage.stageWidth / 2;
&lt;/pre&gt;

Note that I moved &lt;code&gt;defaultTextFormat&lt;/code&gt; out of the constructor, which on second thought I think is a better idea design-wise.</description>
		<content:encoded><![CDATA[<p>You can also size the <code>MarqueeTextField</code> however you&#8217;d like. For examples:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">// Use an auto-size</span>
<span style="color: #6699cc; font-weight: bold;">var</span> tf<span style="color: #000066; font-weight: bold;">:</span>MarqueeTextField = <span style="color: #0033ff; font-weight: bold;">new</span> MarqueeTextField<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Some very long message with a lot of words&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">defaultTextFormat</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextFormat</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;_typewriter&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">14</span><span style="color: #000066; font-weight: bold;">,</span> 0xff0000<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">autoSize</span> = <span style="color: #004993;">TextFieldAutoSize</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">// Use some other size that you compute</span>
<span style="color: #6699cc; font-weight: bold;">var</span> tf<span style="color: #000066; font-weight: bold;">:</span>MarqueeTextField = <span style="color: #0033ff; font-weight: bold;">new</span> MarqueeTextField<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Some very long message with a lot of words&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">defaultTextFormat</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextFormat</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;_typewriter&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">14</span><span style="color: #000066; font-weight: bold;">,</span> 0xff0000<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
tf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = <span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageWidth</span> <span style="color: #000066; font-weight: bold;">/</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>Note that I moved <code>defaultTextFormat</code> out of the constructor, which on second thought I think is a better idea design-wise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ilu</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-14497</link>
		<dc:creator>ilu</dc:creator>
		<pubDate>Thu, 20 Oct 2011 09:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-14497</guid>
		<description>ya thankyou i got it.But the Screen Displays the 6 letter Only.i need to display the Full Screen.how Can i do this?</description>
		<content:encoded><![CDATA[<p>ya thankyou i got it.But the Screen Displays the 6 letter Only.i need to display the Full Screen.how Can i do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-14421</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Wed, 19 Oct 2011 15:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-14421</guid>
		<description>Sure, just put something in the constructor of &lt;code&gt;MarqueeTextField&lt;/code&gt; like this:

&lt;pre lang=&quot;actionscript3&quot;&gt;
defaultTextFormat = new TextFormat(
    &quot;_typewriter&quot;, // font
    14, // size in points
    0xff0000 // color
);
&lt;/pre&gt;

These could easily be parameters to the constructor for easy customization.

For more formatting options, see &lt;a href=&quot;http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/text/TextFormat.html&quot; rel=&quot;nofollow&quot;&gt;Adobe&#039;s documentation&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Sure, just put something in the constructor of <code>MarqueeTextField</code> like this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">defaultTextFormat</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextFormat</span><span style="color: #000000;">&#40;</span>
    <span style="color: #990000;">&quot;_typewriter&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #009900; font-style: italic;">// font</span>
    <span style="color: #000000; font-weight:bold;">14</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #009900; font-style: italic;">// size in points</span>
    0xff0000 <span style="color: #009900; font-style: italic;">// color</span>
<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>These could easily be parameters to the constructor for easy customization.</p>
<p>For more formatting options, see <a href="http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/text/TextFormat.html" rel="nofollow">Adobe&#8217;s documentation</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ilu</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-14411</link>
		<dc:creator>ilu</dc:creator>
		<pubDate>Wed, 19 Oct 2011 13:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-14411</guid>
		<description>Hai Its Very useful information.But the Size of text is Very Small,How Can i add the size and Color?</description>
		<content:encoded><![CDATA[<p>Hai Its Very useful information.But the Size of text is Very Small,How Can i add the size and Color?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cesar</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-749</link>
		<dc:creator>cesar</dc:creator>
		<pubDate>Tue, 27 Jul 2010 20:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-749</guid>
		<description>Hey nice job, a great class for as3!!!</description>
		<content:encoded><![CDATA[<p>Hey nice job, a great class for as3!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naive</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-571</link>
		<dc:creator>naive</dc:creator>
		<pubDate>Tue, 16 Mar 2010 08:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-571</guid>
		<description>Thanx bro .it helped a lot</description>
		<content:encoded><![CDATA[<p>Thanx bro .it helped a lot</p>
]]></content:encoded>
	</item>
</channel>
</rss>

