<?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>Flex Examples &#187; roundedBottomCorners</title>
	<atom:link href="http://blog.flexexamples.com/tag/roundedbottomcorners/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adding a status message to a Flex Alert control</title>
		<link>http://blog.flexexamples.com/2007/10/23/adding-a-status-message-to-a-flex-alert-control/</link>
		<comments>http://blog.flexexamples.com/2007/10/23/adding-a-status-message-to-a-flex-alert-control/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 04:52:27 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Alert]]></category>
		<category><![CDATA[roundedBottomCorners]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[statusStyleName]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/10/23/adding-a-status-message-to-a-flex-alert-control/</guid>
		<description><![CDATA[<p>The following example shows how you can set and style a status message in a Flex Alert control by simply setting the status property (and statusStyleName style if you want to style the status message).</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Alert_status_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/10/23/adding-a-status-message-to-a-flex-alert-control/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set and style a status message in a Flex Alert control by simply setting the <code>status</code> property (and <code>statusStyleName</code> style if you want to style the status message).</p>
<p>Full code after the jump.</p>
<p><span id="more-251"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/Alert_status_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/10/23/adding-a-status-message-to-a-flex-alert-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        Alert {
            statusStyleName: "myStatus";
            roundedBottomCorners: false;
            dropShadowEnabled: false;
            cornerRadius: 10;
        }

        .myStatus {
            color: red;
            fontWeight: bold;
        }
    &lt;/mx:Style&gt;

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

            private var alert:Alert;

            private function init():void {
                var alertText:String = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse rutrum metus nonummy augue. In hac habitasse platea dictumst. Nulla arcu libero, nonummy non, suscipit a, mollis non, augue. Maecenas porttitor urna vel enim. Nam eget tortor. Mauris facilisis suscipit felis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin nunc turpis, venenatis non, laoreet at, fringilla nec, purus. Sed sodales. Sed turpis. Vestibulum sagittis justo id metus. Sed placerat, nibh lobortis mattis adipiscing, sapien wisi interdum arcu, nec vehicula sem tortor id nibh.";
                var alertTitle:String = "The quick brown fox jumped over the lazy dog.";
                alert = Alert.show(alertText, alertTitle);
                alert.status = "I'm a status message";
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button label="Show alert" click="init();" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/Alert_status_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/Alert_status_test/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Adding a status message to a Flex Alert control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/10/23/adding-a-status-message-to-a-flex-alert-control/',contentID: 'post-251',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'roundedBottomCorners,status,statusStyleName',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/10/23/adding-a-status-message-to-a-flex-alert-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

