<?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>The Original Jelani Harris &#187; flash</title>
	<atom:link href="http://jelaniharris.com/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://jelaniharris.com</link>
	<description>The original website of Jelani Harris the original of course</description>
	<lastBuildDate>Tue, 28 Feb 2012 21:11:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Changing the pointer into the hand cursor in AS3</title>
		<link>http://jelaniharris.com/2010/changing-the-pointer-into-the-hand-cursor-in-as3/</link>
		<comments>http://jelaniharris.com/2010/changing-the-pointer-into-the-hand-cursor-in-as3/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 10:29:51 +0000</pubDate>
		<dc:creator>Jelani Harris</dc:creator>
				<category><![CDATA[Code Gems]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://jelaniharris.com/?p=133</guid>
		<description><![CDATA[One of the problems that I ran into while migrating from Actionscript 2 (AS2) to ActionScript 3 (AS3) was the fact that not only was setting a mouse event of a MovieClip different, so does how the mouse cursor acts. In AS2, setting the onPress event for a MovieClip would automatically cause the cursor to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the problems that I ran into while migrating from Actionscript 2 (AS2) to ActionScript 3 (AS3) was the fact that not only was setting a mouse event of a MovieClip different, so does how the mouse cursor acts.</p>
<p>In AS2, setting the onPress event for a MovieClip would automatically cause the cursor to switch the hand whenever you hovered over the element. However in AS3 I discovered that in order to get the same functionality it has to be done manually to get the same effect:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//These are properties of the MovieClip class</span>
targetMc.<span style="color: #006633;">buttonMode</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
targetMc.<span style="color: #006633;">useHandCursor</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span></pre></div></div>

<p>Upon discovering this bit of code, I noticed that I had already created more than a dozen of clickable instances that could use this code and not all of them had classes for them. I had searched for some kind of global variable that I could set to see if I could get this working with all of them the easy way. Alas, I came up with nothing. So instead I decided to create a base class to implement this functionality for me.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">flash.display.MovieClip</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.jelaniharris</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">class</span> ButtonMovieClip <span style="color: #000000; font-weight: bold;">extends</span> MovieClip <span style="color: #009900;">&#123;</span>
          <span style="color: #666666; font-style: italic;">//Override the default constructor and make this movieclip indicate it's a button to the user</span>
          <span style="color: #000000; font-weight: bold;">public</span> function ButtonMovieClip <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">void</span> <span style="color: #009900;">&#123;</span>
               <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">buttonMode</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
               <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">useHandCursor</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
          <span style="color: #009900;">&#125;</span>
     <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Then all I needed to do was to go to my library and set the Base Class of all of my button-like elements to the ButtonMovieClip class.</p>
<p>I hoped this helped someone out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://jelaniharris.com/2010/changing-the-pointer-into-the-hand-cursor-in-as3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Increasing performance of Adobe CS3 Flash in Vista</title>
		<link>http://jelaniharris.com/2009/increasing-performance-of-adobe-cs3-flash-in-vista/</link>
		<comments>http://jelaniharris.com/2009/increasing-performance-of-adobe-cs3-flash-in-vista/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 22:47:30 +0000</pubDate>
		<dc:creator>Jelani Harris</dc:creator>
				<category><![CDATA[Code Gems]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[cs3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://jelaniharris.com/?p=42</guid>
		<description><![CDATA[When I first started to use Flash CS3 in Vista I noticed that all of my flash movies were performing very very slowly. Honestly .. I'm not sure why. But, here's how you can make it perform better. Navigate to your Program Files -&#62; Adobe folder(s) -&#62; Adobe Flash CS3 and find the Flash.exe. Right [...]]]></description>
			<content:encoded><![CDATA[<p>When I first started to use Flash CS3 in Vista I noticed that all of my flash movies were performing very very slowly.</p>
<p>Honestly .. I'm not sure why. But, here's how you can make it perform better.</p>
<div id="attachment_77" class="wp-caption aligncenter" style="width: 550px"><img class="size-full wp-image-77" title="speeding-up-flash-for-vista" src="http://jelaniharris.com/blog/wp-content/uploads/2009/09/speeding-up-flash-for-vista.jpg" alt="Here's how to speed up flash CS3 for vista" width="540" height="399" /><p class="wp-caption-text">Here&#39;s how to speed up flash CS3 for vista</p></div>
<ol>
<li>Navigate to your Program Files -&gt; Adobe  folder(s) -&gt; Adobe Flash CS3 and find the Flash.exe.</li>
<li>Right click on that file and goto the Compatibility tab.</li>
<li>Check "run this program in compatibility mode", and voila, suddenly it's running as fast as it did on XP. Happy coding!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jelaniharris.com/2009/increasing-performance-of-adobe-cs3-flash-in-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

