<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Styling the Flex Alert control</title>
	<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 10:27:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-12329</link>
		<author>peterd</author>
		<pubDate>Mon, 28 Apr 2008 00:27:47 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-12329</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-12323" rel="nofollow"&gt;Ali Tan Ucer&lt;/a&gt;,

Does something like this work for you?
&lt;pre class="code"&gt;
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&#62;

    &#60;mx:Script&#62;
        &#60;![CDATA[
            import mx.managers.PopUpManager;
            import mx.controls.Alert;

            private var alert:Alert;

            private function init():void {
                alert = new Alert();
                alert.width = 500;
                alert.height = 400;
                alert.text = lorem;
                PopUpManager.addPopUp(alert, this);
                PopUpManager.centerPopUp(alert);
            }
        ]]&#62;
    &#60;/mx:Script&#62;

    &#60;mx:String id="lorem" source="lorem.html" /&#62;

    &#60;mx:Button click="init();" /&#62;

&#60;/mx:Application&#62;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-12323" rel="nofollow">Ali Tan Ucer</a>,</p>
<p>Does something like this work for you?</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.managers.PopUpManager;
            import mx.controls.Alert;

            private var alert:Alert;

            private function init():void {
                alert = new Alert();
                alert.width = 500;
                alert.height = 400;
                alert.text = lorem;
                PopUpManager.addPopUp(alert, this);
                PopUpManager.centerPopUp(alert);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:String id="lorem" source="lorem.html" /&gt;

    &lt;mx:Button click="init();" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali Tan Ucer</title>
		<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-12323</link>
		<author>Ali Tan Ucer</author>
		<pubDate>Sun, 27 Apr 2008 14:22:59 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-12323</guid>
		<description>How and why we can not be able to resize the Alert popup. 
It is set to a certain size and i still couldnt find a way to resize it.
If you use large typeface everything is overlaping. It is just really anoying.</description>
		<content:encoded><![CDATA[<p>How and why we can not be able to resize the Alert popup.<br />
It is set to a certain size and i still couldnt find a way to resize it.<br />
If you use large typeface everything is overlaping. It is just really anoying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip</title>
		<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-11863</link>
		<author>Philip</author>
		<pubDate>Fri, 11 Apr 2008 18:00:58 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-11863</guid>
		<description>I solved as following:
&lt;pre class="code"&gt;
a.defaultButton.addEventListener(MouseEvent.CLICK, setClick);
private function setClick(evt:MouseEvent):void
{
    // my actions...
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I solved as following:</p>
<pre class="code">
a.defaultButton.addEventListener(MouseEvent.CLICK, setClick);
private function setClick(evt:MouseEvent):void
{
    // my actions...
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip</title>
		<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-11862</link>
		<author>Philip</author>
		<pubDate>Fri, 11 Apr 2008 17:51:48 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-11862</guid>
		<description>How do you switch the yesButton/noButton actions ?</description>
		<content:encoded><![CDATA[<p>How do you switch the yesButton/noButton actions ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-5693</link>
		<author>peterd</author>
		<pubDate>Wed, 02 Jan 2008 03:57:00 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-5693</guid>
		<description>nocturnalfrog,

Check out the following styles: &lt;code&gt;modalTransparencyBlur&lt;/code&gt;, &lt;code&gt;modalTransparency&lt;/code&gt;, &lt;code&gt;modalTransparencyColor&lt;/code&gt;, and &lt;code&gt;modalTransparencyDuration&lt;/code&gt;.

For more information, and an example, see &lt;a href="http://blog.flexexamples.com/2007/08/14/changing-a-modal-alert-controls-blur-transparency-and-transparency-color/" rel="nofollow"&gt;&lt;u&gt;"Changing a modal Alert control's blur, transparency and transparency color"&lt;/u&gt;&lt;/a&gt;.

Hope that helps,
Peter</description>
		<content:encoded><![CDATA[<p>nocturnalfrog,</p>
<p>Check out the following styles: <code>modalTransparencyBlur</code>, <code>modalTransparency</code>, <code>modalTransparencyColor</code>, and <code>modalTransparencyDuration</code>.</p>
<p>For more information, and an example, see <a href="http://blog.flexexamples.com/2007/08/14/changing-a-modal-alert-controls-blur-transparency-and-transparency-color/" rel="nofollow"><u>&#8220;Changing a modal Alert control&#8217;s blur, transparency and transparency color&#8221;</u></a>.</p>
<p>Hope that helps,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nocturnalfrog</title>
		<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-5688</link>
		<author>nocturnalfrog</author>
		<pubDate>Tue, 01 Jan 2008 22:24:23 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-5688</guid>
		<description>Hi, I was wondering if there is a way to change the blur en transparant white effect of the Alert class...</description>
		<content:encoded><![CDATA[<p>Hi, I was wondering if there is a way to change the blur en transparant white effect of the Alert class&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nl</title>
		<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-1875</link>
		<author>nl</author>
		<pubDate>Wed, 12 Sep 2007 08:54:45 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-1875</guid>
		<description>ok!

That makes sense.
Thanks for the info.</description>
		<content:encoded><![CDATA[<p>ok!</p>
<p>That makes sense.<br />
Thanks for the info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-1779</link>
		<author>peterd</author>
		<pubDate>Tue, 11 Sep 2007 18:17:41 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-1779</guid>
		<description>nl,

I believe the "skin" style is new to Flex 3.

http://livedocs.adobe.com/flex/201/langref/mx/controls/Button.html#styleSummary (Flex 2.0.1)
http://livedocs.adobe.com/labs/flex3/langref/mx/controls/Button.html#styleSummary (Flex 3 beta)

In Flex 2 you may need to set the various skin states (disabledSkin, downSkin, overSkin, upSkin, and the various selected*Skin styles) separately.

Sorry for the confusion, I primarily do all these entries in Flex 3 and don't do much backwards compatibility testing (as you probably discovered).

Peter</description>
		<content:encoded><![CDATA[<p>nl,</p>
<p>I believe the &#8220;skin&#8221; style is new to Flex 3.</p>
<p><a href="http://livedocs.adobe.com/flex/201/langref/mx/controls/Button.html#styleSummary" rel="nofollow">http://livedocs.adobe.com/flex/201/langref/mx/controls/Button.html#styleSummary</a> (Flex 2.0.1)<br />
<a href="http://livedocs.adobe.com/labs/flex3/langref/mx/controls/Button.html#styleSummary" rel="nofollow">http://livedocs.adobe.com/labs/flex3/langref/mx/controls/Button.html#styleSummary</a> (Flex 3 beta)</p>
<p>In Flex 2 you may need to set the various skin states (disabledSkin, downSkin, overSkin, upSkin, and the various selected*Skin styles) separately.</p>
<p>Sorry for the confusion, I primarily do all these entries in Flex 3 and don&#8217;t do much backwards compatibility testing (as you probably discovered).</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nl</title>
		<link>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-1774</link>
		<author>nl</author>
		<pubDate>Tue, 11 Sep 2007 17:01:29 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/#comment-1774</guid>
		<description>I tried compiling this example and it does work fine except for the button face which still have the rounded borders.

The same thing happened when i tried another example from this site.

i'm not sure, but i think it's the line

skin: ClassReference(null);

that does not work.

any idea?


I'm using the flex sdk 2.0.1 with hotfix 1.

I'd like to be able to use the button class without the standard face so i'd really like this to work.</description>
		<content:encoded><![CDATA[<p>I tried compiling this example and it does work fine except for the button face which still have the rounded borders.</p>
<p>The same thing happened when i tried another example from this site.</p>
<p>i&#8217;m not sure, but i think it&#8217;s the line</p>
<p>skin: ClassReference(null);</p>
<p>that does not work.</p>
<p>any idea?</p>
<p>I&#8217;m using the flex sdk 2.0.1 with hotfix 1.</p>
<p>I&#8217;d like to be able to use the button class without the standard face so i&#8217;d really like this to work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
