<?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; horizontalDividerCursor</title>
	<atom:link href="http://blog.flexexamples.com/tag/horizontaldividercursor/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>Setting the horizontal divider cursor on an HDividedBox container in Flex</title>
		<link>http://blog.flexexamples.com/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 06:58:13 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[HDividedBox]]></category>
		<category><![CDATA[horizontalDividerCursor]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can set a horizontal divider cursor on a Flex HDividedBox container by setting the horizontalDividerCursor style.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/HDividedBox_horizontalDividerCursor_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/ --&#62; &#60;mx:Application name="HDividedBox_horizontalDividerCursor_test" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:HDividedBox id="hDividedBox" horizontalDividerCursor="@Embed('assets/arrow_refresh.png')" width="100%" height="100%"&#62; &#60;mx:HBox backgroundColor="haloGreen" width="100%" height="100%"&#62; &#60;/mx:HBox&#62; &#60;mx:HBox [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set a horizontal divider cursor on a Flex HDividedBox container by setting the <code>horizontalDividerCursor</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-823"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/HDividedBox_horizontalDividerCursor_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/ --&gt;
&lt;mx:Application name="HDividedBox_horizontalDividerCursor_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:HDividedBox id="hDividedBox"
            horizontalDividerCursor="@Embed('assets/arrow_refresh.png')"
            width="100%"
            height="100%"&gt;
        &lt;mx:HBox backgroundColor="haloGreen"
                width="100%"
                height="100%"&gt;
        &lt;/mx:HBox&gt;
        &lt;mx:HBox backgroundColor="haloBlue"
                width="100%"
                height="100%"&gt;
        &lt;/mx:HBox&gt;
    &lt;/mx:HDividedBox&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/HDividedBox_horizontalDividerCursor_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/HDividedBox_horizontalDividerCursor_test/bin/main.html" width="100%" height="250"></iframe></p>
<p>You can also set the <code>horizontalDividerCursor</code> style using an external .CSS file or &lt;mx:Style /&gt; block, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/HDividedBox_horizontalDividerCursor_test/bin/srcview/source/main2.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/ --&gt;
&lt;mx:Application name="HDividedBox_horizontalDividerCursor_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        HDividedBox {
            horizontalDividerCursor: Embed("assets/arrow_refresh.png");
        }
    &lt;/mx:Style&gt;

    &lt;mx:HDividedBox id="hDividedBox"
            width="100%"
            height="100%"&gt;
        &lt;mx:HBox backgroundColor="haloGreen"
                width="100%"
                height="100%"&gt;
        &lt;/mx:HBox&gt;
        &lt;mx:HBox backgroundColor="haloBlue"
                width="100%"
                height="100%"&gt;
        &lt;/mx:HBox&gt;
    &lt;/mx:HDividedBox&gt;

&lt;/mx:Application&gt;
</pre>
<p>Or, you can set the <code>horizontalDividerCursor</code> style using ActionScript, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/HDividedBox_horizontalDividerCursor_test/bin/srcview/source/main3.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/ --&gt;
&lt;mx:Application name="HDividedBox_horizontalDividerCursor_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            [Embed("assets/arrow_refresh.png")]
            private const ArrowRefreshIcon:Class;

            private function hDividedBox_init():void {
                hDividedBox.setStyle("horizontalDividerCursor", ArrowRefreshIcon);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:HDividedBox id="hDividedBox"
            width="100%"
            height="100%"
            initialize="hDividedBox_init();"&gt;
        &lt;mx:HBox backgroundColor="haloGreen"
                width="100%"
                height="100%"&gt;
        &lt;/mx:HBox&gt;
        &lt;mx:HBox backgroundColor="haloBlue"
                width="100%"
                height="100%"&gt;
        &lt;/mx:HBox&gt;
    &lt;/mx:HDividedBox&gt;

&lt;/mx:Application&gt;
</pre>
<p>Due to popular demand, here is the &#8220;same&#8221; example in a more ActionScript friendly format:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/HDividedBox_horizontalDividerCursor_test/bin/srcview/source/main4.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/ --&gt;
&lt;mx:Application name="HDividedBox_horizontalDividerCursor_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        initialize="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.containers.HBox;
            import mx.containers.HDividedBox;

            [Embed("assets/arrow_refresh.png")]
            private const ArrowRefreshIcon:Class;

            private var hDividedBox:HDividedBox;
            private var hBox1:HBox;
            private var hBox2:HBox;

            private function init():void {
                hBox1 = new HBox();
                hBox1.percentWidth = 100;
                hBox1.percentHeight = 100;
                hBox1.setStyle("backgroundColor", "haloGreen");

                hBox2 = new HBox();
                hBox2.percentWidth = 100;
                hBox2.percentHeight = 100;
                hBox2.setStyle("backgroundColor", "haloBlue");

                hDividedBox = new HDividedBox();
                hDividedBox.percentWidth = 100;
                hDividedBox.percentHeight = 100;
                hDividedBox.addChild(hBox1);
                hDividedBox.addChild(hBox2);
                hDividedBox.setStyle("horizontalDividerCursor",
                            ArrowRefreshIcon);
                addChild(hDividedBox);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the horizontal divider cursor on an HDividedBox container in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/',contentID: 'post-823',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'horizontalDividerCursor',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/2008/10/09/setting-the-horizontal-divider-cursor-on-an-hdividedbox-container-in-flex/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

