<?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: Setting a background image on a Spark Application in Flex 4</title>
	<atom:link href="http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chiheb Ben jemia</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-10057</link>
		<dc:creator>Chiheb Ben jemia</dc:creator>
		<pubDate>Mon, 17 Oct 2011 13:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-10057</guid>
		<description>hi Robert !
did you find a solution to put a bakcground image dynamically ?

is it with [bindable] !?</description>
		<content:encoded><![CDATA[<p>hi Robert !<br />
did you find a solution to put a bakcground image dynamically ?</p>
<p>is it with [bindable] !?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-9463</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 03 Aug 2011 22:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-9463</guid>
		<description>All examples show embedding an image.  How do I pull one dynamically from the web via URL?</description>
		<content:encoded><![CDATA[<p>All examples show embedding an image.  How do I pull one dynamically from the web via URL?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: digsafe</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-9189</link>
		<dc:creator>digsafe</dc:creator>
		<pubDate>Tue, 03 May 2011 18:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-9189</guid>
		<description>I got this to work (thanks a million for all of these posts bte) but Flex give a warning;
&quot;This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.&quot;
How do you set the option to true?</description>
		<content:encoded><![CDATA[<p>I got this to work (thanks a million for all of these posts bte) but Flex give a warning;<br />
&#8220;This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.&#8221;<br />
How do you set the option to true?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-9020</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Sat, 05 Mar 2011 05:26:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-9020</guid>
		<description>I think you can use a BorderContainer as root container, and put anything else inside it.thus you can use BorderContainer&#039;s backgroundimage property.
see: http://www.roseindia.net/tutorial/flex/flex4/components/borderContainerbgimage.html</description>
		<content:encoded><![CDATA[<p>I think you can use a BorderContainer as root container, and put anything else inside it.thus you can use BorderContainer&#8217;s backgroundimage property.<br />
see: <a href="http://www.roseindia.net/tutorial/flex/flex4/components/borderContainerbgimage.html" rel="nofollow">http://www.roseindia.net/tutorial/flex/flex4/components/borderContainerbgimage.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinoth</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-8971</link>
		<dc:creator>vinoth</dc:creator>
		<pubDate>Tue, 15 Feb 2011 12:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-8971</guid>
		<description>I dont know who proposed such idea. Do you think its makes fun making it so complicated.</description>
		<content:encoded><![CDATA[<p>I dont know who proposed such idea. Do you think its makes fun making it so complicated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-8895</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 25 Jan 2011 04:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-8895</guid>
		<description>@andy,

Sorry, I&#039;ve never used Flex mobile. You may need to ask on the forums.

Peter</description>
		<content:encoded><![CDATA[<p>@andy,</p>
<p>Sorry, I&#8217;ve never used Flex mobile. You may need to ask on the forums.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-8894</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Tue, 25 Jan 2011 04:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-8894</guid>
		<description>Peter...

I can get the bg image to display, but once I do, my content vanishes. I even have the contentGroup s:Group container in there. I&#039;m trying this code with a Flex Mobile Project if that matters.</description>
		<content:encoded><![CDATA[<p>Peter&#8230;</p>
<p>I can get the bg image to display, but once I do, my content vanishes. I even have the contentGroup s:Group container in there. I&#8217;m trying this code with a Flex Mobile Project if that matters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristian</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-8601</link>
		<dc:creator>Cristian</dc:creator>
		<pubDate>Sat, 04 Dec 2010 18:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-8601</guid>
		<description>Thanks

work&#039;s fine.</description>
		<content:encoded><![CDATA[<p>Thanks</p>
<p>work&#8217;s fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-8589</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 02 Dec 2010 18:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-8589</guid>
		<description>Hey Peter, that worked perfectly. Thank you so much.</description>
		<content:encoded><![CDATA[<p>Hey Peter, that worked perfectly. Thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/comment-page-1/#comment-8581</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 30 Nov 2010 19:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2009/03/22/setting-a-background-image-on-an-fxapplication-in-flex-gumbo/#comment-8581</guid>
		<description>@Greg,

There are a few examples above, but this should also work:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
               xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
               xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;
               skinClass=&quot;skins.CustomApplicationSkin&quot;&gt;
    &lt;s:controlBarContent&gt;
        &lt;s:Button id=&quot;sdkVer&quot; initialize=&quot;sdkVer.label = mx_internal::VERSION;&quot; click=&quot;System.setClipboard(sdkVer.label);&quot; /&gt;
    &lt;/s:controlBarContent&gt;
    
    &lt;s:DropDownList id=&quot;ddl&quot;
                    labelField=&quot;fontName&quot;
                    requireSelection=&quot;true&quot;
                    horizontalCenter=&quot;0&quot; y=&quot;20&quot;&gt;
        &lt;s:dataProvider&gt;
            &lt;s:ArrayList source=&quot;{Font.enumerateFonts(true).sortOn(&#039;fontName&#039;)}&quot; /&gt;
        &lt;/s:dataProvider&gt;
    &lt;/s:DropDownList&gt;
    
&lt;/s:Application&gt;
&lt;/pre&gt;

And the custom Spark Application container skin, &lt;em&gt;skins/CustomApplicationSkin.mxml&lt;/em&gt;, is as follows:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;spark:ApplicationSkin xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
                       xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
                       xmlns:spark=&quot;spark.skins.spark.*&quot;&gt;
    
    &lt;fx:Script&gt;
        &lt;![CDATA[
            import mx.graphics.BitmapFill;
            import mx.graphics.BitmapFillMode;
            
            [Embed(&quot;skins/pattern_149.gif&quot;)]
            protected const BG_FILL:Class;
            
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
                var bmpFill:BitmapFill = new BitmapFill();
                bmpFill.source = BG_FILL;
                bmpFill.fillMode = BitmapFillMode.REPEAT;
                backgroundRect.fill = bmpFill;
                super.updateDisplayList(unscaledWidth, unscaledHeight);
            }
        ]]&gt;
    &lt;/fx:Script&gt;
    
&lt;/spark:ApplicationSkin&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@Greg,</p>
<p>There are a few examples above, but this should also work:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">               xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">               xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span></span>
<span style="color: #000000;">               skinClass=<span style="color: #ff0000;">&quot;skins.CustomApplicationSkin&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Button</span> id=<span style="color: #ff0000;">&quot;sdkVer&quot;</span> initialize=<span style="color: #ff0000;">&quot;sdkVer.label = mx_internal::VERSION;&quot;</span> click=<span style="color: #ff0000;">&quot;System.setClipboard(sdkVer.label);&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:controlBarContent</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:DropDownList</span> id=<span style="color: #ff0000;">&quot;ddl&quot;</span></span>
<span style="color: #000000;">                    labelField=<span style="color: #ff0000;">&quot;fontName&quot;</span></span>
<span style="color: #000000;">                    requireSelection=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">                    horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> y=<span style="color: #ff0000;">&quot;20&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ArrayList</span> source=<span style="color: #ff0000;">&quot;{Font.enumerateFonts(true).sortOn('fontName')}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:dataProvider</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:DropDownList</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>And the custom Spark Application container skin, <em>skins/CustomApplicationSkin.mxml</em>, is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;spark:ApplicationSkin</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">                       xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">                       xmlns:spark=<span style="color: #ff0000;">&quot;spark.skins.spark.*&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            import mx.graphics.BitmapFill;</span>
<span style="color: #000000;">            import mx.graphics.BitmapFillMode;</span>
&nbsp;
<span style="color: #000000;">            <span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;skins/pattern_149.gif&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span></span>
<span style="color: #000000;">            protected const BG_FILL:Class;</span>
&nbsp;
<span style="color: #000000;">            override protected function updateDisplayList<span style="color: #66cc66;">&#40;</span>unscaledWidth:Number, unscaledHeight:Number<span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                var bmpFill:BitmapFill = new BitmapFill<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                bmpFill.source = BG_FILL;</span>
<span style="color: #000000;">                bmpFill.fillMode = BitmapFillMode.REPEAT;</span>
<span style="color: #000000;">                backgroundRect.fill = bmpFill;</span>
<span style="color: #000000;">                super.updateDisplayList<span style="color: #66cc66;">&#40;</span>unscaledWidth, unscaledHeight<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/spark:ApplicationSkin</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

