<?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: Changing the close button skin on a Flex TitleWindow container</title>
	<atom:link href="http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/</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: Fletch</title>
		<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/comment-page-1/#comment-8929</link>
		<dc:creator>Fletch</dc:creator>
		<pubDate>Fri, 28 Jan 2011 11:48:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/#comment-8929</guid>
		<description>I find the cross is just a little small - don&#039;t you? I went to enlarge it but unfortunately it&#039;s been exported by a drawing tool. If someone can give me the codes that I need to stick in to replace the three lines that look like: data=&quot;M 3 5 L 4 5 L 4 6 L 5 6 L 5 7 L 4 7 L 4 8 L 3 8 L 3 9 L 4 9 L 4 10 L 5 10 L 5 9 L 6 9 L 6 8 L 7 8 L 7 9 L 8 9 L 8 10 L 9 10 L 9 9 L 10 9 L 10 8 L 9 8 L 9 7 L 8 7 L 8 6 L 9 6 L 9 5 L 10 5 L 10 4 L 9 4 L 9 3 L 8 3 L 8 4 L 7 4 L 7 5 L 6 5 L 6 4 L 5 4 L 5 3 L 4 3 L 4 4 L 3 4 L 3 5 Z&quot; in order to make it larger then I would be extremely grateful. I know how to do the rest (reposition it and enlarge the box).</description>
		<content:encoded><![CDATA[<p>I find the cross is just a little small &#8211; don&#8217;t you? I went to enlarge it but unfortunately it&#8217;s been exported by a drawing tool. If someone can give me the codes that I need to stick in to replace the three lines that look like: data=&#8221;M 3 5 L 4 5 L 4 6 L 5 6 L 5 7 L 4 7 L 4 8 L 3 8 L 3 9 L 4 9 L 4 10 L 5 10 L 5 9 L 6 9 L 6 8 L 7 8 L 7 9 L 8 9 L 8 10 L 9 10 L 9 9 L 10 9 L 10 8 L 9 8 L 9 7 L 8 7 L 8 6 L 9 6 L 9 5 L 10 5 L 10 4 L 9 4 L 9 3 L 8 3 L 8 4 L 7 4 L 7 5 L 6 5 L 6 4 L 5 4 L 5 3 L 4 3 L 4 4 L 3 4 L 3 5 Z&#8221; in order to make it larger then I would be extremely grateful. I know how to do the rest (reposition it and enlarge the box).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/comment-page-1/#comment-7083</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 23 Feb 2010 06:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/#comment-7083</guid>
		<description>Hi, my close button is having size 10*10 and it becomes stretchy. What I do is to resize the image to 16*16 and the problem solved.</description>
		<content:encoded><![CDATA[<p>Hi, my close button is having size 10*10 and it becomes stretchy. What I do is to resize the image to 16*16 and the problem solved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/comment-page-1/#comment-6175</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 30 Oct 2009 15:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/#comment-6175</guid>
		<description>@guy,

I don&#039;t know. If it isn&#039;t in the documentation (http://livedocs.adobe.com/flex/3/langref/), it may be documented in some code somewhere. You could file a bug at http://bugs.adobe.com/flex/ and somebody could take a look. You may be able to work around it by using a scale-grid or something (or just resizing your icon to 16x16).

Peter</description>
		<content:encoded><![CDATA[<p>@guy,</p>
<p>I don&#8217;t know. If it isn&#8217;t in the documentation (<a href="http://livedocs.adobe.com/flex/3/langref/" rel="nofollow">http://livedocs.adobe.com/flex/3/langref/</a>), it may be documented in some code somewhere. You could file a bug at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a> and somebody could take a look. You may be able to work around it by using a scale-grid or something (or just resizing your icon to 16&#215;16).</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guy</title>
		<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/comment-page-1/#comment-6173</link>
		<dc:creator>guy</dc:creator>
		<pubDate>Fri, 30 Oct 2009 15:03:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/#comment-6173</guid>
		<description>Ok, I see now that the image should be 16*16 mine was 11*11.

Is this stuff documented anywhere?</description>
		<content:encoded><![CDATA[<p>Ok, I see now that the image should be 16*16 mine was 11*11.</p>
<p>Is this stuff documented anywhere?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guy</title>
		<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/comment-page-1/#comment-6170</link>
		<dc:creator>guy</dc:creator>
		<pubDate>Fri, 30 Oct 2009 14:08:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/#comment-6170</guid>
		<description>Hi Peter,

This solution works but it stretches my close button, do you have any idea?

Thanks
Guy</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>This solution works but it stretches my close button, do you have any idea?</p>
<p>Thanks<br />
Guy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/comment-page-1/#comment-2180</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Mon, 29 Sep 2008 20:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/#comment-2180</guid>
		<description>Hi Peter,

Great stuff as usual.

Im curious if you might consider doing a blog entry on how to add additional &#039;buttons&#039; to the titlewindow header.  Is this possible?</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Great stuff as usual.</p>
<p>Im curious if you might consider doing a blog entry on how to add additional &#8216;buttons&#8217; to the titlewindow header.  Is this possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MArcio</title>
		<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/comment-page-1/#comment-2181</link>
		<dc:creator>MArcio</dc:creator>
		<pubDate>Thu, 31 Jul 2008 23:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/#comment-2181</guid>
		<description>Because in Module not appear a image in CLose Button ?</description>
		<content:encoded><![CDATA[<p>Because in Module not appear a image in CLose Button ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/comment-page-1/#comment-2179</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Tue, 03 Jun 2008 15:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/#comment-2179</guid>
		<description>Melvin,

Does the following work in your app.css?
&lt;pre class=&quot;code&quot;&gt;
/* CSS file */
TitleWindow {
    &lt;strong style=&quot;color:red;&quot;&gt;closeButtonSkin: Embed(&quot;../images/cancel.png&quot;);&lt;/strong&gt;
    /* Set values from defaults.css to null. */
    closeButtonDisabledSkin: ClassReference(null);
    closeButtonDownSkin: ClassReference(null);
    closeButtonOverSkin: ClassReference(null);
    closeButtonUpSkin: ClassReference(null);
}
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Melvin,</p>
<p>Does the following work in your app.css?</p>
<pre class="code">
/* CSS file */
TitleWindow {
    <strong style="color:red;">closeButtonSkin: Embed(&quot;../images/cancel.png&quot;);</strong>
    /* Set values from defaults.css to null. */
    closeButtonDisabledSkin: ClassReference(null);
    closeButtonDownSkin: ClassReference(null);
    closeButtonOverSkin: ClassReference(null);
    closeButtonUpSkin: ClassReference(null);
}
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melvin</title>
		<link>http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/comment-page-1/#comment-2178</link>
		<dc:creator>Melvin</dc:creator>
		<pubDate>Tue, 03 Jun 2008 05:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/31/changing-the-close-button-skin-on-a-flex-titlewindow-container/#comment-2178</guid>
		<description>Interesting .. but need further help.

This is a very helpful blog. Thank you very much for sharing it.
This is the first time that I have to deal with skin class and I do not completely following your example. So here is what I am doing.

I am using flex 2. My file structure is

src
&#160;&#160; app.mxml
&#160;&#160; com
&#160;&#160;&#160;&#160; myapp
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; components
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myPopup.mxml
&#160;&#160;css
&#160;&#160;&#160;&#160; app.css
&#160;&#160; images
&#160;&#160;&#160;&#160; cancel.png

The cancel.png is exactly following your example

So here is the issue, when I added the styles into my css, whatever I did, the new cancel button did not show up.





I actually copied cancel.png to all the possible locations and it still would not work. I am using Flex Builder 2 right now. Could you please let me know what I did wrong? Thank you again</description>
		<content:encoded><![CDATA[<p>Interesting .. but need further help.</p>
<p>This is a very helpful blog. Thank you very much for sharing it.<br />
This is the first time that I have to deal with skin class and I do not completely following your example. So here is what I am doing.</p>
<p>I am using flex 2. My file structure is</p>
<p>src<br />
&nbsp;&nbsp; app.mxml<br />
&nbsp;&nbsp; com<br />
&nbsp;&nbsp;&nbsp;&nbsp; myapp<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; components<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; myPopup.mxml<br />
&nbsp;&nbsp;css<br />
&nbsp;&nbsp;&nbsp;&nbsp; app.css<br />
&nbsp;&nbsp; images<br />
&nbsp;&nbsp;&nbsp;&nbsp; cancel.png</p>
<p>The cancel.png is exactly following your example</p>
<p>So here is the issue, when I added the styles into my css, whatever I did, the new cancel button did not show up.</p>
<p>I actually copied cancel.png to all the possible locations and it still would not work. I am using Flex Builder 2 right now. Could you please let me know what I did wrong? Thank you again</p>
]]></content:encoded>
	</item>
</channel>
</rss>

