<?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>Dusty Reagan &#187; ActionScript 3.0</title>
	<atom:link href="http://dustyreagan.com/tag/actionscript-3-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://dustyreagan.com</link>
	<description>On Technology &#38; Entrepreneurship</description>
	<lastBuildDate>Thu, 01 Dec 2011 08:00:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ActionScript 3.0 – Global Variable &amp; On Mouse Click Event</title>
		<link>http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/</link>
		<comments>http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 07:16:03 +0000</pubDate>
		<dc:creator>Dusty Reagan</dc:creator>
				<category><![CDATA[Web & Software Development]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[alt]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/</guid>
		<description><![CDATA[I got to do a little ActionScript 3.0 work today. I can&#8217;t help but wonder what type of things I could create using Flash and ActionScript. Seems like it could be pretty fun. Do ActionScript programmers make good rates compared &#8230; <a href="http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I got to do a little ActionScript 3.0 work today. I can&#8217;t help but wonder what type of things I could create using Flash and ActionScript. Seems like it could be pretty fun. Do ActionScript programmers make good rates compared to .Net programmers?</p>
<p>Anyways. Here&#8217;s a few examples of some really basic ActionScript 3.0 stuff.</p>
<p>Here&#8217;s an example of how to create and use a global variable in ActionScript 3.0.</p>
<pre>var intClicks:int = 0;

function showDoves():void {
	++intClicks;
	if(intClicks &gt;= 5){
		_movieDoves.visible = true;
	}
}</pre>
<p>And here is an example of how to add an &#8220;on click&#8221; mouse event listener function in ActionScript 3.0.</p>
<pre>_btnFact1.addEventListener(MouseEvent.CLICK, onClickBtnFact1);

function onClickBtnFact1(evt:MouseEvent):void {
	_fact1.visible = true;
}</pre>
<p>That&#8217;s all I got. I just wanted to document this so I can reference it later. I hope it&#8217;s helpful to you. <img src='http://dustyreagan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://dustyreagan.com/?ak_action=api_record_view&id=52&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://dustyreagan.com/actionscript-30-global-variable-on-mouse-click-event/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

