<?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; ProgressBar.labelPlacement</title>
	<atom:link href="http://blog.flexexamples.com/tag/progressbar-labelplacement/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>Positioning a label within a progress bar using the ProgressBar.labelPlacement property</title>
		<link>http://blog.flexexamples.com/2007/08/08/positioning-a-label-within-a-progress-bar-using-the-progressbarlabelplacement-property/</link>
		<comments>http://blog.flexexamples.com/2007/08/08/positioning-a-label-within-a-progress-bar-using-the-progressbarlabelplacement-property/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 03:07:12 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ProgressBar]]></category>
		<category><![CDATA[ProgressBar.labelPlacement]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/08/positioning-a-label-within-a-progress-bar-using-the-progressbarlabelplacement-property/</guid>
		<description><![CDATA[<p>We&#8217;ve looked at this briefly in a previous entry, but here&#8217;s a quick look at each of the five options for the ProgressBar.labelPlacement property.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ProgressBar_labelPlacement_test_2/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/08/08/positioning-a-label-within-a-progress-bar-using-the-progressbarlabelplacement-property/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Label text="ProgressBar.labelPlacement" /&#62; &#60;mx:HBox&#62; &#60;mx:VBox&#62; &#60;mx:RadioButtonGroup id="rbg" /&#62; &#60;mx:RadioButton label="left" [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve looked at this briefly in a previous entry, but here&#8217;s a quick look at each of the five options for the <code>ProgressBar.labelPlacement</code> property.</p>
<p>Full code after the jump.</p>
<p><span id="more-70"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ProgressBar_labelPlacement_test_2/main.mxml">View MXML</a></p>
<pre class="code" lang="actionscript">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/08/08/positioning-a-label-within-a-progress-bar-using-the-progressbarlabelplacement-property/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Label text="ProgressBar.labelPlacement" /&gt;
    &lt;mx:HBox&gt;
        &lt;mx:VBox&gt;
            &lt;mx:RadioButtonGroup id="rbg" /&gt;
            &lt;mx:RadioButton label="left" group="{rbg}" /&gt;
            &lt;mx:RadioButton label="center" group="{rbg}" /&gt;
            &lt;mx:RadioButton label="right" group="{rbg}" /&gt;
            &lt;mx:RadioButton label="top" group="{rbg}" /&gt;
            &lt;mx:RadioButton label="bottom" group="{rbg}" /&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox backgroundColor="white"
                horizontalAlign="center"
                verticalAlign="middle"
                width="200" height="100%"&gt;

            &lt;mx:ProgressBar id="progressBar"
                    barColor="haloOrange"
                    label="{rbg.selectedValue}"
                    labelPlacement="{rbg.selectedValue}"
                    mode="manual"
                    width="150"
                    creationComplete="progressBar.setProgress(50, 100)" /&gt;

        &lt;/mx:VBox&gt;
    &lt;/mx:HBox&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/ProgressBar_labelPlacement_test_2/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/ProgressBar_labelPlacement_test_2/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Positioning a label within a progress bar using the ProgressBar.labelPlacement property on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/08/08/positioning-a-label-within-a-progress-bar-using-the-progressbarlabelplacement-property/',contentID: 'post-70',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'ProgressBar.labelPlacement',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/08/08/positioning-a-label-within-a-progress-bar-using-the-progressbarlabelplacement-property/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

