<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: ActionScript 3 Full Browser Tiled Background</title>
	<atom:link href="http://www.blog.noponies.com/2008/04/actionscript-3-full-browser-tiled-background/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.noponies.com/2008/04/actionscript-3-full-browser-tiled-background/</link>
	<description>I want a pony for xmas! Flash, ActionScript, Drawing, Code, Illustration from New Zealand.</description>
	<lastBuildDate>Mon, 30 Aug 2010 14:49:07 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Graham</title>
		<link>http://www.blog.noponies.com/2008/04/actionscript-3-full-browser-tiled-background/comment-page-1/#comment-12023</link>
		<dc:creator>Graham</dc:creator>
		<pubDate>Thu, 28 May 2009 20:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.noponies.com/?p=86#comment-12023</guid>
		<description>hello... thanks for creating this! saved me a lot of time. i did, however, run into the same problem that RUBEN was getting:

TypeError: Error #2007: Parameter bitmap must be non-null.
at flash.display::Graphics/beginBitmapFill()
at noponies.display::NpTileBg/resize()

Luckily, I figured it out. I solved it by wrapping the 2 addEventListener statements inside the addedToStageHandler function in an: if(obj is BitmapData){ } block. Then I added the same 2 addEventListener functions to the loaderComplete function so that if you&#039;re loading an external image they&#039;re only added once the bitmap is finished loading. Seems that the Event.RESIZE was calling the resize() function the moment it was added for some reason, well before the HTTP bitmap had a chance to load, therefore screwing up in the resize() function.

Hope that helps. Thanks again!</description>
		<content:encoded><![CDATA[<p>hello&#8230; thanks for creating this! saved me a lot of time. i did, however, run into the same problem that RUBEN was getting:</p>
<p>TypeError: Error #2007: Parameter bitmap must be non-null.<br />
at flash.display::Graphics/beginBitmapFill()<br />
at noponies.display::NpTileBg/resize()</p>
<p>Luckily, I figured it out. I solved it by wrapping the 2 addEventListener statements inside the addedToStageHandler function in an: if(obj is BitmapData){ } block. Then I added the same 2 addEventListener functions to the loaderComplete function so that if you&#8217;re loading an external image they&#8217;re only added once the bitmap is finished loading. Seems that the Event.RESIZE was calling the resize() function the moment it was added for some reason, well before the HTTP bitmap had a chance to load, therefore screwing up in the resize() function.</p>
<p>Hope that helps. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alyda</title>
		<link>http://www.blog.noponies.com/2008/04/actionscript-3-full-browser-tiled-background/comment-page-1/#comment-10801</link>
		<dc:creator>Alyda</dc:creator>
		<pubDate>Wed, 06 May 2009 18:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.noponies.com/?p=86#comment-10801</guid>
		<description>wow, great script, thanks so much, especially the error comments in the output window, VERY HELPFUL. thanks again :)</description>
		<content:encoded><![CDATA[<p>wow, great script, thanks so much, especially the error comments in the output window, VERY HELPFUL. thanks again <img src='http://www.blog.noponies.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.blog.noponies.com/2008/04/actionscript-3-full-browser-tiled-background/comment-page-1/#comment-7615</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Sat, 28 Feb 2009 15:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.noponies.com/?p=86#comment-7615</guid>
		<description>Hi Dale,

My computer crashed this week and I had to reinstall Flash and rewrite my project, but it seems to be ok now! Still don&#039;t know why I got this error... Sometimes computers lead a life on its own :)

Sorry to have bothered you with this, anyway thanks for your help!</description>
		<content:encoded><![CDATA[<p>Hi Dale,</p>
<p>My computer crashed this week and I had to reinstall Flash and rewrite my project, but it seems to be ok now! Still don&#8217;t know why I got this error&#8230; Sometimes computers lead a life on its own <img src='http://www.blog.noponies.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Sorry to have bothered you with this, anyway thanks for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale</title>
		<link>http://www.blog.noponies.com/2008/04/actionscript-3-full-browser-tiled-background/comment-page-1/#comment-7355</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Thu, 19 Feb 2009 19:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.noponies.com/?p=86#comment-7355</guid>
		<description>How are you passing in the bitmap to the class.

For instance, if its in your library, it needs to be passed to the class like this;

NpTileBgInstance.newBgTileImage = new Header(0, 0);

Header is the export for ActionScript class name of the bitmap in the library.

If you check the online demo, I&#039;ve changed it to use a library bitmap for the second tile.</description>
		<content:encoded><![CDATA[<p>How are you passing in the bitmap to the class.</p>
<p>For instance, if its in your library, it needs to be passed to the class like this;</p>
<p>NpTileBgInstance.newBgTileImage = new Header(0, 0);</p>
<p>Header is the export for ActionScript class name of the bitmap in the library.</p>
<p>If you check the online demo, I&#8217;ve changed it to use a library bitmap for the second tile.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.blog.noponies.com/2008/04/actionscript-3-full-browser-tiled-background/comment-page-1/#comment-7346</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Thu, 19 Feb 2009 11:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.noponies.com/?p=86#comment-7346</guid>
		<description>Hi Dale,

Thanks for your time, I&#039;m working with CS3 and Flash player9, could this be the problem? Maybe just a bug in Flash...</description>
		<content:encoded><![CDATA[<p>Hi Dale,</p>
<p>Thanks for your time, I&#8217;m working with CS3 and Flash player9, could this be the problem? Maybe just a bug in Flash&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
