<?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>solemone design&#039;art &#187; free</title>
	<atom:link href="http://www.solemone.de/tag/free/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.solemone.de</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 03 Jun 2010 12:46:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>AS3 fullsize background image with pixel pattern</title>
		<link>http://www.solemone.de/flash/as3-fullsize-background-image/</link>
		<comments>http://www.solemone.de/flash/as3-fullsize-background-image/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 18:28:20 +0000</pubDate>
		<dc:creator>solemone</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[free stuff]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[free]]></category>

		<guid isPermaLink="false">http://www.solemone.de/?p=705</guid>
		<description><![CDATA[I have written a small class, which you may be interested.  With this class you can create a fullsize background image which fits to the width of the stage. The height of the image is proportional to the width. So it´s good to use an image with a ratio of 4:3 otherwise empty bars can show [...]]]></description>
			<content:encoded><![CDATA[<p>I have written a small class, which you may be interested.  With this class you can create a fullsize background image which fits to the width of the stage. The height of the image is proportional to the width. So it´s good to use an image with a ratio of 4:3 otherwise empty bars can show up.</p>
<p>To round it up I create a pixel pattern overlay so the image quality is acceptable by streching it. Known from other sites&#8230;</p>
<p><a id="downloadbutton" title="download the files" href="http://www.solemone.de/wp-content/uploads/2009/11/as3FullsizeBackgroundImage.zip">Download<span>get the source</span></a><a id="previewbutton" title="show a demo" href="http://solemone.de/wp-content/uploads/2009/11/fullsizebackgroundflash/index.html" target="_blank">Demo<span>see an example</span></a></p>
<p>So thats the way to do it:</p>
<div class="codecolorer-container actionscript3 vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900; font-style: italic;">// import the class</span><br />
<span style="color: #0033ff; font-weight: bold;">import</span> com<span style="color: #000066; font-weight: bold;">.</span>fullsizeBackgroundImage<span style="color: #000066; font-weight: bold;">.</span>fullsizeBackgroundImage<span style="color: #000066; font-weight: bold;">;</span><br />
<br />
<span style="color: #009900; font-style: italic;">// create a new object, give the url to the image as string</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> backgroundImage<span style="color: #000066; font-weight: bold;">:</span>fullsizeBackgroundImage = <span style="color: #0033ff; font-weight: bold;">new</span> fullsizeBackgroundImage<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;images/background.jpg&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
<span style="color: #009900; font-style: italic;">// add the object to stage</span><br />
<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>backgroundImage<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></div></div>
<p>If you have any question about the script feel free to leave a comment <img src='http://www.solemone.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.solemone.de/flash/as3-fullsize-background-image/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
