<?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; adobe</title>
	<atom:link href="http://hsmoore.com/blog/category/adobe/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>Adobe drops flash for mobiles!</title>
		<link>http://hsmoore.com/blog/adobe-drops-flash-for-mobiles/</link>
		<comments>http://hsmoore.com/blog/adobe-drops-flash-for-mobiles/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 17:54:54 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[adobe]]></category>

		<guid isPermaLink="false">http://hsmoore.com/?p=1373</guid>
		<description><![CDATA[..and it&#8217;s official &#8211; so says Adobe&#8217;s blog (read it here). Adobe will be dropping support for Flash on future devices due to performance and a few other things, pushing the future more towards the HTML5 route, which isn&#8217;t neccessarily a bad thing, I just find it quite ironic and somewhat comical that they waited...]]></description>
			<content:encoded><![CDATA[<p>..and it&#8217;s official &#8211; so says Adobe&#8217;s blog (<a title="Opens in a new tab/window" href="http://blogs.adobe.com/flashplatform/2011/11/flash-to-focus-on-pc-browsing-and-mobile-apps-adobe-to-more-aggressively-contribute-to-html5.html" target="_blank">read it here</a>). Adobe will be dropping support for Flash on future devices due to performance and a few other things, pushing the future more towards the HTML5 route, which isn&#8217;t neccessarily a bad thing, I just find it quite ironic and somewhat comical that they waited for Steve Jobs (Apple) to die before giving up their long time fight with Apple about Flash being or not being supported on mobile devices, namely the iPhone.</p>
<p>Read more here: <a title="Opens in a new tab/window" href="http://blogs.adobe.com/flashplatform/2011/11/flash-to-focus-on-pc-browsing-and-mobile-apps-adobe-to-more-aggressively-contribute-to-html5.html" target="_blank">http://blogs.adobe.com/flashplatform/2011/11/flash-to-focus-on-pc-browsing-and-mobile-apps-adobe-to-more-aggressively-contribute-to-html5.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/adobe-drops-flash-for-mobiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1180 Call to a possibly undefined method navigateToURL</title>
		<link>http://hsmoore.com/blog/1180-call-to-a-possibly-undefined-method-navigatetourl/</link>
		<comments>http://hsmoore.com/blog/1180-call-to-a-possibly-undefined-method-navigatetourl/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 09:50:58 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[navigateToURL]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=886</guid>
		<description><![CDATA[1180 Call to a possibly undefined method navigateToURL If you get the above error when trying to run your flash actionscript 3 file, you are obviously trying to use the navigateToURL() function but have not imported the flash.net library code. The following code before everything will correct the problem. import flash.net.*; ..or a more of...]]></description>
			<content:encoded><![CDATA[<p><em><strong><span style="color: #ff0000;">1180 Call to a possibly undefined method navigateToURL</span></strong></em></p>
<p>If you get the above error when trying to run your flash actionscript 3 file, you are obviously trying to use the navigateToURL() function but have not imported the flash.net library code.</p>
<p>The following code before everything will correct the problem.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw3">import</span> flash.<span class="me1">net</span>.<span class="sy0">*</span>;</div>
</div>
<p>..or a more of a direct unbloated method is as follows:</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw3">import</span> flash.<span class="me1">net</span>.<span class="me1">navigateToURL</span>;</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/1180-call-to-a-possibly-undefined-method-navigatetourl/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to use a Timer in Actionscript 3</title>
		<link>http://hsmoore.com/blog/how-to-use-a-timer-in-actionscript-3/</link>
		<comments>http://hsmoore.com/blog/how-to-use-a-timer-in-actionscript-3/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 09:16:47 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[timer]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=878</guid>
		<description><![CDATA[It is really easy to create a Timer in Actionscript 3. Instantiate the Timer Class and pass a time in millions of 1000 to it to work in seconds. var myTimer:Timer = new Timer&#40;1000&#41;; Setup an event listener to call a function. myTimer.addEventListener&#40;&#34;timer&#34;, myTimerEventHandler&#41;; Start the Timer. myTimer.start&#40;&#41;; Start the Timer. function myTimerEventHandler&#40;event:TimerEvent&#41;:void &#123; &#160;...]]></description>
			<content:encoded><![CDATA[<p>It is really easy to create a Timer in Actionscript 3.</p>
<p>Instantiate the Timer Class and pass a time in millions of 1000 to it to work in seconds.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> myTimer:Timer = <span class="kw2">new</span> Timer<span class="br0">&#40;</span>1000<span class="br0">&#41;</span>;</div>
</div>
<p>Setup an event listener to call a function.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;">myTimer.<span class="me1">addEventListener</span><span class="br0">&#40;</span><span class="st0">&quot;timer&quot;</span>, myTimerEventHandler<span class="br0">&#41;</span>;</div>
</div>
<p>Start the Timer.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;">myTimer.<span class="kw3">start</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</div>
<p>Start the Timer.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">function</span> myTimerEventHandler<span class="br0">&#40;</span>event:TimerEvent<span class="br0">&#41;</span>:<span class="kw3">void</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">trace</span><span class="br0">&#40;</span>myTimer.<span class="me1">currentCount</span>+<span class="st0">&quot; seconds have passed.&quot;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p>So altogether we have this.</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw2">var</span> myTimer:Timer = <span class="kw2">new</span> Timer<span class="br0">&#40;</span>1000<span class="br0">&#41;</span>;<br />
myTimer.<span class="me1">addEventListener</span><span class="br0">&#40;</span><span class="st0">&quot;timer&quot;</span>, myTimerEventHandler<span class="br0">&#41;</span>;<br />
myTimer.<span class="kw3">start</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw2">function</span> myTimerEventHandler<span class="br0">&#40;</span>event:TimerEvent<span class="br0">&#41;</span>:<span class="kw3">void</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">trace</span><span class="br0">&#40;</span>myTimer.<span class="me1">currentCount</span>+<span class="st0">&quot; seconds have passed.&quot;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p>Now you know how to use a Timer in Actionscript 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/how-to-use-a-timer-in-actionscript-3/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>Error 1046: Type was not found or was not a compile-time constant: Event.</title>
		<link>http://hsmoore.com/blog/error-1046-type-was-not-found-or-was-not-a-compile-time-constant-event/</link>
		<comments>http://hsmoore.com/blog/error-1046-type-was-not-found-or-was-not-a-compile-time-constant-event/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 20:10:48 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[1046]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=566</guid>
		<description><![CDATA[Error 1046: Type was not found or was not a compile-time constant: Event. You need to import the Event class! import flash.events.Event]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">Error 1046: Type was not found or was not a compile-time constant: Event.</span></p>
<p>You need to import the Event class!</p>
<p><span style="color: #0000ff;">import flash.events.Event</span></p>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/error-1046-type-was-not-found-or-was-not-a-compile-time-constant-event/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>hitTest and Actionscript2</title>
		<link>http://hsmoore.com/blog/hittest-and-actionscript2/</link>
		<comments>http://hsmoore.com/blog/hittest-and-actionscript2/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 11:42:31 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[hitTest]]></category>

		<guid isPermaLink="false">http://www.andrewodendaal.com/?p=560</guid>
		<description><![CDATA[if &#40;mc.hitTest&#40;_root._xmouse, _root._ymouse, true&#41;&#41;&#41; &#123; &#160; &#160; &#160; &#160; trace&#40;&#34;hitTest Run&#34;&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw1">if</span> <span class="br0">&#40;</span>mc.<span class="kw3">hitTest</span><span class="br0">&#40;</span><span class="kw3">_root</span>.<span class="kw3">_xmouse</span>, <span class="kw3">_root</span>.<span class="kw3">_ymouse</span>, <span class="kw2">true</span><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; <span class="kw3">trace</span><span class="br0">&#40;</span><span class="st0">&quot;hitTest Run&quot;</span><span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hsmoore.com/blog/hittest-and-actionscript2/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>
	</channel>
</rss>

