<?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>R:N:M &#187; actionscript 3</title>
	<atom:link href="http://www.robotninjamonkey.com/tag/actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.robotninjamonkey.com</link>
	<description>Robots, ninjas and monkeys: three out of four of my favorite things.</description>
	<lastBuildDate>Fri, 21 Aug 2009 01:39:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flash CS3 &#8217;stage.stageHeight&#8217; Bug</title>
		<link>http://www.robotninjamonkey.com/2008/08/flash-cs3-stagestageheight-bug/</link>
		<comments>http://www.robotninjamonkey.com/2008/08/flash-cs3-stagestageheight-bug/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 15:37:59 +0000</pubDate>
		<dc:creator>Gary Wilson</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flash cs3]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://www.robotninjamonkey.com/?p=69</guid>
		<description><![CDATA[If you&#8217;ve developed for Flash for any amount of time, you&#8217;ll have noticed Flash has some annoying bugs. Last night, I learned of a new one. It took a while to narrow down with the amount of code I was working through and, as usual, I assumed it was something I was doing wrong.
In ActionsScript [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve developed for Flash for any amount of time, you&#8217;ll have noticed Flash has some annoying bugs. Last night, I learned of a new one. It took a while to narrow down with the amount of code I was working through and, as usual, I assumed it was something I was doing wrong.</p>
<p><span id="more-69"></span>In ActionsScript 3.0, to get the height of the stage you&#8217;d use &#8217;stage.stageHeight.&#8217; In my case, I was working with a 600 x 400 Flash file with movieclips that needed to be vertically centered. After publishing, the vertically centered elements were not centered properly. This led me to re-examine my code and math quite heavily. Nothing appeared to be in error.  Tracing out &#8217;stage.stageHeight&#8217; reported back a height of 300.  This was obviously wrong since my project was 400 pixels tall.  Resizing the stage to 300 made my trace report back a height of 200.  I reset my stage to 400 tall and thought about the problem.  So everything was off vertically by 100 pixels.  Odd.</p>
<p>On a whim I did a test movie.  I then, ever-so-slightly, resized the preview window and hit the &#8216;test movie&#8217; hot key again.  A had adjusted the window only a few pixels.  Instead of reporting back, say, 303 pixels it was now reporting 403 pixels.  Ah-hah!  Now I had an idea what was wrong: Flash was being a pain in the butt.  Continuing my whim, I turned off the bandwidth profiler I often leave open and recompiled . . .  400!  Stupid Flash!  The bandwidth profiler seems to have an issue eating up vertical pixels.  Bad Flash.  Very, very bad.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.robotninjamonkey.com/2008/08/flash-cs3-stagestageheight-bug/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
