<?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>Andrew M. Whalen &#187; actionscript</title>
	<atom:link href="http://amwhalen.com/archives/tag/actionscript/feed" rel="self" type="application/rss+xml" />
	<link>http://amwhalen.com</link>
	<description>Thoughts on the web, programming and other nerdery by Andrew M. Whalen.</description>
	<lastBuildDate>Thu, 29 Dec 2011 14:13:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Andrew M. Whalen Photography</title>
		<link>http://amwhalen.com/archives/2007/05/18/andrew-m-whalen-photography</link>
		<comments>http://amwhalen.com/archives/2007/05/18/andrew-m-whalen-photography#comments</comments>
		<pubDate>Fri, 18 May 2007 16:08:19 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[webdevelopment]]></category>

		<guid isPermaLink="false">http://amwhalen.com/blog/archives/2007/05/18/andrew-m-whalen-photography/</guid>
		<description><![CDATA[As my final project for my Interactive Web Animation (Flash) class this semester, I decided to make a web site. I&#8217;ve had the idea now for awhile to have a site that is just intended to showcase some of my better photography. In 2004 I started a photoblog, which lasted for awhile, but I grew [...]]]></description>
			<content:encoded><![CDATA[<p>As my final project for my Interactive Web Animation (Flash) class this semester, I decided to make a web site. I&#8217;ve had the idea now for awhile to have a site that is just intended to showcase some of my better photography. In 2004 I started a photoblog, which lasted for awhile, but I grew tired of taking photos just for that. The next step was keeping an updated <a href="http://amwhalen.com/photos/">photo gallery</a>, but with that the photos are too scattered and inefficient to scan through. My final project gave me an excuse to finally make a site that just has the best of the best, displayed in an easy-to-browse fashion.</p>
<p>Enter <a href="http://amwhalen.com/photography/">Andrew M. Whalen Photography</a>. The site features a spiffy Flash version, and also an HTML version if your browser doesn&#8217;t have at least Flash Player 8. Even if you do have Flash Player 8, there&#8217;s an option at the bottom to switch your browsing session between Flash and HTML. The About section contains links to featured photography of mine. Eventually, I may want to offer some sort of print ordering of the photos, to see if the site can produce a little cash.</p>
]]></content:encoded>
			<wfw:commentRss>http://amwhalen.com/archives/2007/05/18/andrew-m-whalen-photography/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash, _lockroot, Stage, and hitTest</title>
		<link>http://amwhalen.com/archives/2007/04/03/flash-_lockroot-stage-and-hittest</link>
		<comments>http://amwhalen.com/archives/2007/04/03/flash-_lockroot-stage-and-hittest#comments</comments>
		<pubDate>Wed, 04 Apr 2007 03:35:35 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://amwhalen.com/blog/archives/2007/04/03/flash-_lockroot-stage-and-hittest/</guid>
		<description><![CDATA[While working on my portfolio project for my Flash class, I realized that _lockroot doesn&#8217;t help at all with Stage and hitTest when loading one SWF from another. I had to search around the Internet until I finally found something about _lockroot and hitTest on this guy&#8217;s blog. This is what I found to remedy [...]]]></description>
			<content:encoded><![CDATA[<p>While working on my portfolio project for my Flash class, I realized that _lockroot doesn&#8217;t help at all with Stage and hitTest when loading one SWF from another. I had to search around the Internet until I finally found something about _lockroot and hitTest on <a href="http://www.bit-101.com/blog/?p=499">this guy&#8217;s blog</a>. This is what I found to remedy the hitTest situation. This code overrides the hitTest function, and translates the coordinates to the global frame. It should go in the SWF that&#8217;s being imported.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">MovieClip</span>.<span style="color: #0066CC;">prototype</span>.<span style="color: #006600;">oldHitTest</span> = <span style="color: #0066CC;">MovieClip</span>.<span style="color: #0066CC;">prototype</span>.<span style="color: #0066CC;">hitTest</span>;
<span style="color: #0066CC;">MovieClip</span>.<span style="color: #0066CC;">prototype</span>.<span style="color: #0066CC;">hitTest</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>x, y, sf<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> obj = <span style="color: #66cc66;">&#123;</span>x:x, y:y<span style="color: #66cc66;">&#125;</span>;
	<span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">_parent</span>.<span style="color: #0066CC;">localToGlobal</span><span style="color: #66cc66;">&#40;</span>obj<span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">return</span> <span style="color: #0066CC;">this</span>.<span style="color: #006600;">oldHitTest</span><span style="color: #66cc66;">&#40;</span>obj.<span style="color: #006600;">x</span>, obj.<span style="color: #006600;">y</span>, sf<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><strong>Warning:</strong> this still doesn&#8217;t work for the version of the hitTest function that takes in a MovieClip as its parameter. That&#8217;s that, and hopefully I won&#8217;t have that problem again.</p>
]]></content:encoded>
			<wfw:commentRss>http://amwhalen.com/archives/2007/04/03/flash-_lockroot-stage-and-hittest/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

