<?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: Tile background in AS3</title>
	<atom:link href="http://abrahamyan.com/2009/03/02/tile-background-in-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://abrahamyan.com/2009/03/02/tile-background-in-as3/</link>
	<description>Flash, Flex Developer  &#124;  personal playground</description>
	<pubDate>Fri, 12 Mar 2010 19:21:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tile Saws</title>
		<link>http://abrahamyan.com/2009/03/02/tile-background-in-as3/comment-page-1/#comment-70</link>
		<dc:creator>Tile Saws</dc:creator>
		<pubDate>Mon, 18 May 2009 16:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=95#comment-70</guid>
		<description>Great post. I'll try it out!</description>
		<content:encoded><![CDATA[<p>Great post. I&#8217;ll try it out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://abrahamyan.com/2009/03/02/tile-background-in-as3/comment-page-1/#comment-65</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 04 May 2009 04:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=95#comment-65</guid>
		<description>Source files are updated, you can set width and height in setBitmap and loadBitmap methods, and use setSize when stage resizes.
thx</description>
		<content:encoded><![CDATA[<p>Source files are updated, you can set width and height in setBitmap and loadBitmap methods, and use setSize when stage resizes.<br />
thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://abrahamyan.com/2009/03/02/tile-background-in-as3/comment-page-1/#comment-61</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 30 Apr 2009 17:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=95#comment-61</guid>
		<description>Hi Pieter, thanks for finding that, I don't have dual screen :)

Well, then the only way i see u can set it right: is use stage resize event, and every time stage resizes u just redrew tile bg.

I will post new updated version as soon as I back home :)</description>
		<content:encoded><![CDATA[<p>Hi Pieter, thanks for finding that, I don&#8217;t have dual screen <img src='http://abrahamyan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Well, then the only way i see u can set it right: is use stage resize event, and every time stage resizes u just redrew tile bg.</p>
<p>I will post new updated version as soon as I back home <img src='http://abrahamyan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pieter</title>
		<link>http://abrahamyan.com/2009/03/02/tile-background-in-as3/comment-page-1/#comment-60</link>
		<dc:creator>Pieter</dc:creator>
		<pubDate>Thu, 30 Apr 2009 17:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=95#comment-60</guid>
		<description>Thanks for your class Armen.

I found a little drawback in a dual monitor setup, though. Stretching the browser window over two monitors crops the tiling. Capabilities.screenResolution returns the resolution of only one screen.

Pieter</description>
		<content:encoded><![CDATA[<p>Thanks for your class Armen.</p>
<p>I found a little drawback in a dual monitor setup, though. Stretching the browser window over two monitors crops the tiling. Capabilities.screenResolution returns the resolution of only one screen.</p>
<p>Pieter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 菲克斯咨询 &#187; Blog Archive &#187; 3月第一周精彩博客整理</title>
		<link>http://abrahamyan.com/2009/03/02/tile-background-in-as3/comment-page-1/#comment-52</link>
		<dc:creator>菲克斯咨询 &#187; Blog Archive &#187; 3月第一周精彩博客整理</dc:creator>
		<pubDate>Wed, 01 Apr 2009 14:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=95#comment-52</guid>
		<description>[...] 为Flex高级表格定制renderer 使用AS3将背景图平铺 一种较好的Math.Sin()实现 使用TimeRenderer和TimeEditor来编辑和显示时间 *** [...]</description>
		<content:encoded><![CDATA[<p>[...] 为Flex高级表格定制renderer 使用AS3将背景图平铺 一种较好的Math.Sin()实现 使用TimeRenderer和TimeEditor来编辑和显示时间 *** [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://abrahamyan.com/2009/03/02/tile-background-in-as3/comment-page-1/#comment-28</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sun, 15 Mar 2009 14:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=95#comment-28</guid>
		<description>Hi Armen,

I was searching for a Tiling utility but couldn't find one quickly, but I found your blog article.

I thought the tiling functionality might be improved by encapsulating it in a static class - hope you can find this useful, thanks for the article.

Dan.

&lt;code&gt;
package {
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.geom.Rectangle;	

	public class GraphicUtil {
		
		public static function TileBitmap(tileLayer:Sprite, area:Rectangle, tile:BitmapData):Sprite{
			
			with(tileLayer.graphics){
				clear();
				beginBitmapFill(tile);
				moveTo(0, 0);
				lineTo(area.width, 0);
				lineTo(area.width, area.height);
				lineTo(0, area.height);
				lineTo(0, 0);
				endFill();
			}
			
			return tileLayer;
		}
		
	}
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Armen,</p>
<p>I was searching for a Tiling utility but couldn&#8217;t find one quickly, but I found your blog article.</p>
<p>I thought the tiling functionality might be improved by encapsulating it in a static class - hope you can find this useful, thanks for the article.</p>
<p>Dan.</p>
<p><code><br />
package {<br />
	import flash.display.BitmapData;<br />
	import flash.display.DisplayObject;<br />
	import flash.display.Sprite;<br />
	import flash.geom.Rectangle;	</p>
<p>	public class GraphicUtil {</p>
<p>		public static function TileBitmap(tileLayer:Sprite, area:Rectangle, tile:BitmapData):Sprite{</p>
<p>			with(tileLayer.graphics){<br />
				clear();<br />
				beginBitmapFill(tile);<br />
				moveTo(0, 0);<br />
				lineTo(area.width, 0);<br />
				lineTo(area.width, area.height);<br />
				lineTo(0, area.height);<br />
				lineTo(0, 0);<br />
				endFill();<br />
			}</p>
<p>			return tileLayer;<br />
		}</p>
<p>	}<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://abrahamyan.com/2009/03/02/tile-background-in-as3/comment-page-1/#comment-27</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 03 Mar 2009 13:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=95#comment-27</guid>
		<description>Hi Adrian.
If you use stage.stageWidth,for the full browser flash sites you have to take care of resizing. If new size bigger than prev one, you have to redraw background. Using Capabilities.screenResolutionX, Y- just sets max available size and skips checking for resizing.</description>
		<content:encoded><![CDATA[<p>Hi Adrian.<br />
If you use stage.stageWidth,for the full browser flash sites you have to take care of resizing. If new size bigger than prev one, you have to redraw background. Using Capabilities.screenResolutionX, Y- just sets max available size and skips checking for resizing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Parr</title>
		<link>http://abrahamyan.com/2009/03/02/tile-background-in-as3/comment-page-1/#comment-26</link>
		<dc:creator>Adrian Parr</dc:creator>
		<pubDate>Tue, 03 Mar 2009 09:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=95#comment-26</guid>
		<description>Hi Armen,

Thanks for posting this.

Would it be better to use stageWidth rather than Capabilities.screenResolutionX?

_maxStageWidth = stage.stageWidth;
_maxStageHeight = stage.stageHeight;

Cheers,

Adrian</description>
		<content:encoded><![CDATA[<p>Hi Armen,</p>
<p>Thanks for posting this.</p>
<p>Would it be better to use stageWidth rather than Capabilities.screenResolutionX?</p>
<p>_maxStageWidth = stage.stageWidth;<br />
_maxStageHeight = stage.stageHeight;</p>
<p>Cheers,</p>
<p>Adrian</p>
]]></content:encoded>
	</item>
</channel>
</rss>
