<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Development London UK &#187; flash</title>
	<atom:link href="http://hsmoore.com/blog/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://hsmoore.com</link>
	<description>Web Development London UK</description>
	<lastBuildDate>Wed, 01 Feb 2012 12:10:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Super Easy Email Validation AS2</title>
		<link>http://hsmoore.com/blog/super-easy-email-validation-as2/</link>
		<comments>http://hsmoore.com/blog/super-easy-email-validation-as2/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 09:45:21 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[actionscript 2]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=963</guid>
		<description><![CDATA[I needed a quick and easy way to check for the basics of an email address. Does it contain &#8220;@&#8221; and &#8220;.&#8221; symbols. This is by no meals a foolproof method, so don&#8217;t use it for anything big, but if you want to just do a quick test then here you go: var email:String =...]]></description>
			<content:encoded><![CDATA[<p>I needed a quick and easy way to check for the basics of an email address.</p>
<p>Does it contain &#8220;@&#8221; and &#8220;.&#8221; symbols.</p>
<p>This is by no meals a foolproof method, so don&#8217;t use it for anything big, but if you want to just do a quick test then here you go:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> email:<span class="kw3">String</span> = <span class="st0">&quot;name@server.com&quot;</span>;</p>
<p><span class="kw1">if</span> <span class="br0">&#40;</span>email.<span class="kw3">indexOf</span><span class="br0">&#40;</span><span class="st0">&quot;@&quot;</span><span class="br0">&#41;</span><span class="sy0">!</span>=-1 <span class="sy0">&amp;&amp;</span> email.<span class="kw3">indexOf</span><span class="br0">&#40;</span><span class="st0">&quot;.&quot;</span><span class="br0">&#41;</span><span class="sy0">!</span>=-1<span class="br0">&#41;</span> <span class="kw3">trace</span><span class="br0">&#40;</span><span class="st0">&quot;false&quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw1">else</span> <span class="kw3">trace</span> <span class="br0">&#40;</span><span class="st0">&quot;true&quot;</span><span class="br0">&#41;</span>;</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/super-easy-email-validation-as2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random Number In ASP for no Flash Caching</title>
		<link>http://hsmoore.com/blog/random-number-in-asp-for-no-flash-caching/</link>
		<comments>http://hsmoore.com/blog/random-number-in-asp-for-no-flash-caching/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 08:12:37 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=864</guid>
		<description><![CDATA[This is an example of how to create a random number in Classic ASP in order to append to a swf file so that the browser does not cache the swf file. &#60;% Dim SwfRndNum Randomize SwfRndNum = Rnd %&#62; You can then add it to your swf embed code as follow, bear in mind...]]></description>
			<content:encoded><![CDATA[<p>This is an example of how to create a random number in Classic ASP in order to append to a swf file so that the browser does not cache the swf file.</p>
<div class="codesnip-container" >
<div class="vb codesnip" style="font-family:monospace;">&lt;%<br />
<span class="kw1">Dim</span> SwfRndNum<br />
Randomize<br />
SwfRndNum = Rnd<br />
%&gt;</div>
</div>
<p>You can then add it to your swf embed code as follow, bear in mind that I am only showing the snippet around the swf file name and not the entire embed code.</p>
<div class="codesnip-container" >
<div class="vb codesnip" style="font-family:monospace;">mySwfFile.swf?a=&lt;% Response.Write SwfRndNum %&gt;</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/random-number-in-asp-for-no-flash-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Actionscript2: Split string by line length with &amp; without word-wrap</title>
		<link>http://hsmoore.com/blog/split-string-by-line-length-with-and-without-word-wrap-using-actionscript-2/</link>
		<comments>http://hsmoore.com/blog/split-string-by-line-length-with-and-without-word-wrap-using-actionscript-2/#comments</comments>
		<pubDate>Wed, 05 May 2010 10:04:25 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[wordwrap]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=778</guid>
		<description><![CDATA[Split string into sentences by max line length. This uses a character array but doesn&#8217;t use word-wrapping. var personalMessage:String = &#34;You got this far so we reckon that you could be curious enough to learn a little more, we’ll contact you shortly to answer any questions you may have.&#34;; _root.myArray = new Array&#40;&#41;; _root.myArray =...]]></description>
			<content:encoded><![CDATA[<p>Split string into sentences by max line length.<br />
This uses a character array but doesn&#8217;t use word-wrapping.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> personalMessage:<span class="kw3">String</span> = <span class="st0">&quot;You got this far so we reckon that you could be curious enough to learn a little more, we’ll contact you shortly to answer any questions you may have.&quot;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">myArray</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">myArray</span> = personalMessage.<span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">&quot;&quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">mySentences</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">var</span> currentCharCount:<span class="kw3">Number</span> = <span class="nu0">0</span>;<br />
<span class="kw2">var</span> currentCharItem:<span class="kw3">Number</span> = <span class="nu0">0</span>;<br />
<span class="kw2">var</span> currentCharString:<span class="kw3">String</span> = <span class="st0">&quot;&quot;</span>;<br />
<span class="kw2">var</span> maxLength:<span class="kw3">Number</span> = <span class="nu0">65</span>;</p>
<p><span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw2">var</span> i=<span class="nu0">0</span>; i<span class="sy0">&lt;</span>_root.<span class="me1">myArray</span>.<span class="kw3">length</span>; i++ <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>currentCharCount<span class="sy0">&lt;</span>maxLength<span class="br0">&#41;</span> currentCharString += <span class="kw3">_root</span>.<span class="me1">myArray</span><span class="br0">&#91;</span>i<span class="br0">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>currentCharCount==maxLength <span class="sy0">||</span> currentCharItem==<span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">myArray</span>.<span class="me1">length</span>-1<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">_root</span>.<span class="me1">mySentences</span>.<span class="kw3">push</span><span class="br0">&#40;</span>currentCharString<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; currentCharCount = <span class="nu0">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; currentCharString = <span class="st0">&quot;&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; currentCharCount++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; currentCharItem++;<br />
<span class="br0">&#125;</span></p>
<p><span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span>.<span class="kw3">length</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>0<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>1<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>2<span class="br0">&#93;</span><span class="br0">&#41;</span>;</div>
</div>
<p>This outputs the following:</p>
<div class="codesnip-container" >
<div class="c codesnip" style="font-family:monospace;"><span class="nu0">3</span><br />
You got this far so we reckon that you could be curious enough to<br />
learn a little more<span class="sy0">,</span> we’ll contact you shortly to answer any que<br />
tions you may have.</div>
</div>
<p>Split string into sentences by max line length and use word-wrapping.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> personalMessage:<span class="kw3">String</span> = <span class="st0">&quot;You got this far so we reckon that you could be curious enough to learn a little more, we’ll contact you shortly to answer any questions you may have.&quot;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">myArray</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">myArray</span> = personalMessage.<span class="kw3">split</span><span class="br0">&#40;</span><span class="st0">&quot; &quot;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">_root</span>.<span class="me1">mySentences</span> = <span class="kw2">new</span> <span class="kw3">Array</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">var</span> currentCharString:<span class="kw3">String</span> = <span class="st0">&quot;&quot;</span>;<br />
<span class="kw2">var</span> maxLength:<span class="kw3">Number</span> = <span class="nu0">60</span>;</p>
<p><span class="kw1">for</span> <span class="br0">&#40;</span><span class="kw2">var</span> i=<span class="nu0">0</span>; i<span class="sy0">&lt;</span>_root.<span class="me1">myArray</span>.<span class="kw3">length</span>; i++ <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>currentCharString.<span class="me1">length</span><span class="sy0">&lt;</span>maxLength<span class="br0">&#41;</span> currentCharString += <span class="kw3">_root</span>.<span class="me1">myArray</span><span class="br0">&#91;</span>i<span class="br0">&#93;</span> + <span class="st0">&quot; &quot;</span>;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span>currentCharString.<span class="kw3">length</span> <span class="sy0">&gt;</span>= <span class="br0">&#40;</span>maxLength-1<span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="sy0">||</span> <span class="br0">&#40;</span>i==<span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">myArray</span>.<span class="me1">length</span>-1<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">_root</span>.<span class="me1">mySentences</span>.<span class="kw3">push</span><span class="br0">&#40;</span>currentCharString<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; currentCharString = <span class="st0">&quot;&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> currentCharCount++;<br />
<span class="br0">&#125;</span></p>
<p><span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span>.<span class="kw3">length</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>0<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>1<span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
<span class="kw3">trace</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="me1">mySentences</span><span class="br0">&#91;</span>2<span class="br0">&#93;</span><span class="br0">&#41;</span>;</div>
</div>
<p>This outputs the following:</p>
<div class="codesnip-container" >
<div class="c codesnip" style="font-family:monospace;"><span class="nu0">3</span><br />
You got this far so we reckon that you could be curious enough<br />
to learn a little more<span class="sy0">,</span> we’ll contact you shortly to answer<br />
any questions you may have.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/split-string-by-line-length-with-and-without-word-wrap-using-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set line leading / line spacing in flash actionscript 2</title>
		<link>http://hsmoore.com/blog/set-line-leading-line-spacing-in-flash-actionscript-2/</link>
		<comments>http://hsmoore.com/blog/set-line-leading-line-spacing-in-flash-actionscript-2/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 15:14:40 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[actionscript 2]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[line spacing]]></category>
		<category><![CDATA[text leading]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=629</guid>
		<description><![CDATA[This is how to add text leading using Actionscript 2 for Flash. var txtFormat:TextFormat = new TextFormat&#40;&#41;; txtFormat.leading = 5; // change this to whatever you need it to be ttt.setTextFormat&#40;txtFormat&#41;; ttt2.setTextFormat&#40;txtFormat&#41;;&#60;/span&#62; There is also a GUI way of doing this: Select your textfield and and under the paragraph section, set the top/right hand icon...]]></description>
			<content:encoded><![CDATA[<p><strong>This is how to add text leading using Actionscript 2 for Flash.</strong></p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> txtFormat:<span class="kw3">TextFormat</span> = <span class="kw2">new</span> <span class="kw3">TextFormat</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
txtFormat.<span class="kw3">leading</span> = <span class="nu0">5</span>; <span class="co1">// change this to whatever you need it to be</span><br />
ttt.<span class="kw3">setTextFormat</span><span class="br0">&#40;</span>txtFormat<span class="br0">&#41;</span>;<br />
ttt2.<span class="kw3">setTextFormat</span><span class="br0">&#40;</span>txtFormat<span class="br0">&#41;</span>;<span class="sy0">&lt;/</span>span<span class="sy0">&gt;</span></div>
</div>
<p><strong>There is also a GUI way of doing this:</strong></p>
<p>Select your textfield and and under the paragraph section, set the top/right hand icon (Line Spacing) to whatever you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/set-line-leading-line-spacing-in-flash-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a date to a date in Actionscript 2</title>
		<link>http://hsmoore.com/blog/add-a-date-to-a-date-in-actionscript2/</link>
		<comments>http://hsmoore.com/blog/add-a-date-to-a-date-in-actionscript2/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 20:19:42 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[date]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=564</guid>
		<description><![CDATA[I needed to work out a date range according to the date 3weeks away from the current date. After a bit of thinking, I found that it&#8217;s actually quite easy to achieve. var theDate:Date = new Date&#40;&#41;; dateDay = theDate.getDate&#40;&#41;; dateMonth = theDate.getMonth&#40;&#41;; dateYear = theDate.getFullYear&#40;&#41;; var theDate2:Date = new Date&#40;dateYear,dateMonth,dateDay&#41;; theDate2.setDate&#40;theDate2.getDate&#40;&#41; + 21&#41;; dateDay2...]]></description>
			<content:encoded><![CDATA[<p>I needed to work out a date range according to the date 3weeks away from the current date.<br />
After a bit of thinking, I found that it&#8217;s actually quite easy to achieve.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> theDate:<span class="kw3">Date</span> = <span class="kw2">new</span> <span class="kw3">Date</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
dateDay = theDate.<span class="kw3">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
dateMonth = theDate.<span class="kw3">getMonth</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
dateYear = theDate.<span class="kw3">getFullYear</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</p>
<p><span class="kw2">var</span> theDate2:<span class="kw3">Date</span> = <span class="kw2">new</span> <span class="kw3">Date</span><span class="br0">&#40;</span>dateYear,dateMonth,dateDay<span class="br0">&#41;</span>;<br />
theDate2.<span class="kw3">setDate</span><span class="br0">&#40;</span>theDate2.<span class="kw3">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span> + 21<span class="br0">&#41;</span>;<br />
dateDay2 = theDate2.<span class="kw3">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
dateMonth2 = theDate2.<span class="kw3">getMonth</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
dateYear2 = theDate2.<span class="kw3">getFullYear</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<span class="sy0">&lt;/</span>span<span class="sy0">&gt;</span></div>
</div>
<p>The above code gets the current date and adds 21days/3weeks to it.<br />
Remember that if you use getMonth to output the final month number, you will want to add 1 to it as it starts at 0;<br />
Example:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;">dateMonth2 = theDate2.<span class="kw3">getMonth</span><span class="br0">&#40;</span><span class="br0">&#41;</span>+<span class="nu0">1</span>;</div>
</div>
<p>So you would do it like this:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;">theDate2.<span class="kw3">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span> +<span class="st0">&quot;/&quot;</span>+ <span class="br0">&#40;</span>theDate2.<span class="kw3">getMonth</span><span class="br0">&#40;</span><span class="br0">&#41;</span>+<span class="nu0">1</span><span class="br0">&#41;</span> +<span class="st0">&quot;/&quot;</span>+ theDate2.<span class="kw3">getFullYear</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/add-a-date-to-a-date-in-actionscript2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a month to selectable date range &#8211; Date Chooser &#8211; Actionscript 2</title>
		<link>http://hsmoore.com/blog/add-a-month-to-selectable-date-range-date-chooser-actionscript-2/</link>
		<comments>http://hsmoore.com/blog/add-a-month-to-selectable-date-range-date-chooser-actionscript-2/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 12:40:20 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[datechooser]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=562</guid>
		<description><![CDATA[I have been working on a project where I need to select a date range starting today and ending a month from now, so the user cannot select anything in the past or over a month from now. This is how I did it: There is an instance of DateChooser on the stage with Instance...]]></description>
			<content:encoded><![CDATA[<p>I have been working on a project where I need to select a date range starting today and ending a month from now, so the user cannot select anything in the past or over a month from now.</p>
<p>This is how I did it:</p>
<p>There is an instance of DateChooser on the stage with Instance Name &#8220;calDate&#8221;.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> todayDate:<span class="kw3">Date</span> = <span class="kw2">new</span> <span class="kw3">Date</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
dateBeginDay = todayDate.<span class="kw3">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
dateBeginMonth = todayDate.<span class="kw3">getMonth</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
dateBeginYear = todayDate.<span class="kw3">getFullYear</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</p>
<p><span class="kw1">if</span> <span class="br0">&#40;</span><span class="br0">&#40;</span>todayDate.<span class="kw3">getMonth</span><span class="br0">&#40;</span><span class="br0">&#41;</span>+1<span class="br0">&#41;</span>==12<span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; dateEndDay = todayDate.<span class="kw3">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; dateEndMonth = <span class="nu0">1</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; dateEndYear = todayDate.<span class="kw3">getFullYear</span><span class="br0">&#40;</span><span class="br0">&#41;</span>+<span class="nu0">1</span>;<br />
<span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; dateEndDay = todayDate.<span class="kw3">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; dateEndMonth = todayDate.<span class="kw3">getMonth</span><span class="br0">&#40;</span><span class="br0">&#41;</span>+<span class="nu0">1</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; dateEndYear = todayDate.<span class="kw3">getFullYear</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span><br />
calDate.<span class="me1">selectableRange</span> = <span class="br0">&#123;</span>rangeStart: <span class="kw2">new</span> <span class="kw3">Date</span><span class="br0">&#40;</span>dateBeginYear, dateBeginMonth, dateBeginDay<span class="br0">&#41;</span>, rangeEnd: <span class="kw2">new</span> <span class="kw3">Date</span><span class="br0">&#40;</span>dateEndYear, dateEndMonth, dateEndDay<span class="br0">&#41;</span><span class="br0">&#125;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/add-a-month-to-selectable-date-range-date-chooser-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animator vs Animation</title>
		<link>http://hsmoore.com/blog/animator-vs-animation/</link>
		<comments>http://hsmoore.com/blog/animator-vs-animation/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 09:51:56 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[adobe]]></category>
		<category><![CDATA[Funny]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[alan becker]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[animator]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=550</guid>
		<description><![CDATA[An animation done showing the battle between animator and the animation in a Flash environment. Thanks to Alan Becker for this one.]]></description>
			<content:encoded><![CDATA[
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swfobj_0" width="600" height="500">
      <param name="movie" value="http://fc01.deviantart.com/fs13/f/2007/077/2/e/Animator_vs__Animation_by_alanbecker.swf" />
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="http://fc01.deviantart.com/fs13/f/2007/077/2/e/Animator_vs__Animation_by_alanbecker.swf" width="600" height="500">
      <!--<![endif]-->
        <p>The Flash plugin is required to view this object.</p>
      <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>

<p>An animation done showing the battle between animator and the animation in a Flash environment.</p>
<p>Thanks to Alan Becker for this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/animator-vs-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embed pound symbol (£) in flash textfield</title>
		<link>http://hsmoore.com/blog/embed-pound-symbol-in-flash-textfield/</link>
		<comments>http://hsmoore.com/blog/embed-pound-symbol-in-flash-textfield/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 13:55:36 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[font]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=522</guid>
		<description><![CDATA[If you use a dynamic textbox in Flash and you want to embed the British Pound symbol (£) then you will want to also embed the &#8220;Latin I&#8221; glyphs with your textfield.]]></description>
			<content:encoded><![CDATA[<p>If you use a dynamic textbox in Flash and you want to embed the British Pound symbol (£) then you will want to also embed the &#8220;Latin I&#8221; glyphs with your textfield.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/embed-pound-symbol-in-flash-textfield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable / Disable Cursor Hand in Actioncsript 2</title>
		<link>http://hsmoore.com/blog/enable-disable-cursor-hand-in-actioncsript-2/</link>
		<comments>http://hsmoore.com/blog/enable-disable-cursor-hand-in-actioncsript-2/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 14:40:40 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[useHandCursor]]></category>

		<guid isPermaLink="false">http://blog.andrewodendaal.com/?p=428</guid>
		<description><![CDATA[If you have a movieclip that by default has the hand cursor showing on RollOver and you don&#8217;t really want this, you can disable it by doing the following: myMC.onRollOver = function&#40;&#41; &#123; &#160; &#160; &#160; &#160; this.useHandCursor=false; &#125; So the main code here is: this.useHandCursor=false; False disables it and true shows it.]]></description>
			<content:encoded><![CDATA[<p>If you have a movieclip that by default has the hand cursor showing on RollOver and you don&#8217;t really want this, you can disable it by doing the following:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;">myMC.<span class="kw3">onRollOver</span> = <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">this</span>.<span class="kw3">useHandCursor</span>=<span class="kw2">false</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p>So the main code here is: <span style="color: #0000ff;">this.useHandCursor=false;</span><br />
False disables it and true shows it.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/enable-disable-cursor-hand-in-actioncsript-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Calling event functions from movieclips in actionscript 2</title>
		<link>http://hsmoore.com/blog/calling-event-functions-from-movieclips-in-actionscript-2/</link>
		<comments>http://hsmoore.com/blog/calling-event-functions-from-movieclips-in-actionscript-2/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 17:41:03 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[actionscript2]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[_root]]></category>

		<guid isPermaLink="false">http://blog.andrewodendaal.com/?p=422</guid>
		<description><![CDATA[In a flash movie I usually have a frame of actionscript that controls all elements in the file to keep everything in one place. Sometimes I have an onPress(etc) function that refers to something happening in the scene when something is pressed, but what happens if we want another element to refer to that event...]]></description>
			<content:encoded><![CDATA[<p>In a flash movie I usually have a frame of actionscript that controls all elements in the file to keep everything in one place.</p>
<p>Sometimes I have an onPress(etc)  function that refers to something happening in the scene when something is pressed, but what happens if we want another element to refer to that event for some reason?</p>
<p>Here&#8217;s an example of that code without anything &#8220;flashy&#8221;:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw3">_root</span>.<span class="me1">myMC</span>.<span class="kw3">onPress</span> = <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//code goes here</span><br />
<span class="br0">&#125;</span></div>
</div>
<p>..and here&#8217;s our slightly more intersting flashy version:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw3">_root</span>.<span class="me1">myMC</span>.<span class="kw3">onPress</span> = <span class="kw3">_root</span>.<span class="me1">funcOnPress</span> = <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//code goes here</span><br />
<span class="br0">&#125;</span></div>
</div>
<p>So now we can call the following from another place in the code to call the same event&#8217;s function:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="co1">//somewhere else in our flash file</span><br />
<span class="kw3">_root</span>.<span class="me1">funcOnPress</span><span class="br0">&#40;</span><span class="br0">&#41;</span></div>
</div>
<p>That&#8217;s about it folks!<br />
Now you can call things from other places.<br />
Just remember to not use &#8220;_root&#8221; if you are including your final swf inside another swf.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/calling-event-functions-from-movieclips-in-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

