<?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; ToolTip</title>
	<atom:link href="http://blog.flexexamples.com/category/tooltip/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>Styling tooltips in Flex 4</title>
		<link>http://blog.flexexamples.com/2009/08/30/styling-tooltips-in-flex-4/</link>
		<comments>http://blog.flexexamples.com/2009/08/30/styling-tooltips-in-flex-4/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 13:34:32 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta1]]></category>
		<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[CSSStyleDeclaration]]></category>
		<category><![CDATA[getStyleDeclaration()]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[needsSWF]]></category>
		<category><![CDATA[setStyle()]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/?p=1769</guid>
		<description><![CDATA[<p>The following example shows how you can customize the appearance of a ToolTip in Flex 4 by overriding the ToolTip selector in an &#60;fx:Style/&#62; block, or using the StyleManager in ActionScript.</p> <p>Full code after the jump.</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2009/08/30/styling-tooltips-in-flex-4/ --&#62; &#60;s:Application name=&#34;Halo_ToolTip_test&#34; xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34; xmlns:mx=&#34;library://ns.adobe.com/flex/mx&#34;&#62; &#160; &#60;fx:Style&#62; @namespace s &#34;library://ns.adobe.com/flex/spark&#34;; @namespace mx [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can customize the appearance of a ToolTip in Flex 4 by overriding the ToolTip selector in an &lt;fx:Style/&gt; block, or using the StyleManager in ActionScript.</p>
<p>Full code after the jump.</p>
<p><span id="more-1769"></span></p>
<p class="alert">The following example(s) require Flash Player 10 and the Adobe Flex 4 SDK. To download the Adobe Flash Builder 4 trial, see <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. To download the latest nightly build of the Flex 4 SDK, see <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4</a>.<br/><strong>For more information on getting started with Flex 4 and Flash Builder 4, see the official <a href="http://bit.ly/dCkecm">Adobe Flex Team blog</a>.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2009/08/30/styling-tooltips-in-flex-4/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> name=<span style="color: #ff0000;">&quot;Halo_ToolTip_test&quot;</span></span>
<span style="color: #000000;">        xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        @namespace s &quot;library://ns.adobe.com/flex/spark&quot;;
        @namespace mx &quot;library://ns.adobe.com/flex/mx&quot;;
&nbsp;
        mx|ToolTip {
            backgroundAlpha: 1.0;
            backgroundColor: black;
            color: white;
            cornerRadius: 0;
            fontSize: 24;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Button</span> id=<span style="color: #ff0000;">&quot;btn&quot;</span></span>
<span style="color: #000000;">            label=<span style="color: #ff0000;">&quot;Spark Button&quot;</span></span>
<span style="color: #000000;">            creationComplete=<span style="color: #ff0000;">&quot;btn.toolTip = mx_internal::VERSION;&quot;</span></span>
<span style="color: #000000;">            horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/spark/Halo_ToolTip_test/bin/srcview/">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/spark/Halo_ToolTip_test/bin/main.html" width="100%" height="150"></iframe></p>
<div span="googleAdsLeaderboard">
<script type="text/javascript"><!--
google_ad_client = "pub-3325829455487492";
/* 728x90, created 7/15/09 */
google_ad_slot = "6403511741";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
</div>
<p>Or you can set the ToolTip CSS declaration using ActionScript, as seen in the following example:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2009/08/30/styling-tooltips-in-flex-4/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> name=<span style="color: #ff0000;">&quot;Halo_ToolTip_test&quot;</span></span>
<span style="color: #000000;">        xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span></span>
<span style="color: #000000;">        initialize=<span style="color: #ff0000;">&quot;init();&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            private function init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                var cssDecl:CSSStyleDeclaration = StyleManager.getStyleDeclaration<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;mx.controls.ToolTip&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                if <span style="color: #66cc66;">&#40;</span>!cssDecl<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                    cssDecl = new CSSStyleDeclaration<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;mx.controls.ToolTip&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">                cssDecl.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;backgroundAlpha&quot;</span>, <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                cssDecl.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;backgroundColor&quot;</span>, <span style="color: #ff0000;">&quot;black&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                cssDecl.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;color&quot;</span>, <span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                cssDecl.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;cornerRadius&quot;</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">                cssDecl.setStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;fontSize&quot;</span>, <span style="color: #cc66cc;">24</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Button</span> id=<span style="color: #ff0000;">&quot;btn&quot;</span></span>
<span style="color: #000000;">            label=<span style="color: #ff0000;">&quot;Spark Button&quot;</span></span>
<span style="color: #000000;">            creationComplete=<span style="color: #ff0000;">&quot;btn.toolTip = mx_internal::VERSION;&quot;</span></span>
<span style="color: #000000;">            horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p class="alert">This entry is based on a beta version of the Flex 4 SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex 4 SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Styling tooltips in Flex 4 on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/08/30/styling-tooltips-in-flex-4/',contentID: 'post-1769',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'CSSStyleDeclaration,getStyleDeclaration(),Gumbo,needsSWF,setStyle()',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/2009/08/30/styling-tooltips-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Setting the tooltip on the full screen button on a Spark VideoPlayer control in Flex 4</title>
		<link>http://blog.flexexamples.com/2009/05/10/setting-the-tooltip-on-the-full-screen-button-on-a-spark-videoplayer-control-in-flex-gumbo/</link>
		<comments>http://blog.flexexamples.com/2009/05/10/setting-the-tooltip-on-the-full-screen-button-on-a-spark-videoplayer-control-in-flex-gumbo/#comments</comments>
		<pubDate>Mon, 11 May 2009 06:59:22 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[beta1]]></category>
		<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[VideoPlayer (Spark)]]></category>
		<category><![CDATA[fullScreenButton]]></category>
		<category><![CDATA[Gumbo]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2009/05/10/setting-the-tooltip-on-the-full-screen-button-on-a-spark-videoplayer-control-in-flex-gumbo/</guid>
		<description><![CDATA[<p>The following example shows how you can set the tooltip on the full screen button on a Spark VideoPlayer control in Flex 4 by setting the toolTip property on the fullScreenButton reference.</p> <p></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2009/05/10/setting-the-tooltip-on-the-full-screen-button-on-a-spark-videoplayer-control-in-flex-gumbo/ --&#62; &#60;s:Application name="Spark_VideoPlayer_fullScreenButton_toolTip_test" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"&#62; &#60;fx:Script&#62; &#60;![CDATA[ private function init():void { videoPlayer.fullScreenButton.toolTip = "Toggle full screen"; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the tooltip on the full screen button on a Spark VideoPlayer control in Flex 4 by setting the <code>toolTip</code> property on the <code>fullScreenButton</code> reference.</p>
<p><span id="more-1075"></span></p>
<p class="alert">The following example(s) require Flash Player 10 and the Adobe Flex 4 SDK. To download the Adobe Flash Builder 4 trial, see <a href="http://bit.ly/crThlI">http://www.adobe.com/products/flex/</a>. To download the latest nightly build of the Flex 4 SDK, see <a href="http://bit.ly/Flex4SDK">http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4</a>.<br/><strong>For more information on getting started with Flex 4 and Flash Builder 4, see the official <a href="http://bit.ly/dCkecm">Adobe Flex Team blog</a>.</strong></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/05/10/setting-the-tooltip-on-the-full-screen-button-on-a-spark-videoplayer-control-in-flex-gumbo/ --&gt;
&lt;s:Application name="Spark_VideoPlayer_fullScreenButton_toolTip_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"&gt;

    &lt;fx:Script&gt;
        &lt;![CDATA[
            private function init():void {
                videoPlayer.fullScreenButton.toolTip = "Toggle full screen";
            }
        ]]&gt;
    &lt;/fx:Script&gt;

    &lt;s:SimpleText id="lbl"
            text="Roll over full screen button to see tool tip."
            fontWeight="bold"
            left="10"
            top="10" /&gt;

    &lt;s:VideoPlayer id="videoPlayer"
            source="http://helpexamples.com/flash/video/cuepoints.flv"
            muted="true"
            horizontalCenter="0"
            verticalCenter="0"
            initialize="init();" /&gt;

&lt;/s:Application&gt;
</pre>
<div span="googleAdsLeaderboard">
<script type="text/javascript"><!--
google_ad_client = "pub-3325829455487492";
/* 728x90, created 7/15/09 */
google_ad_slot = "6403511741";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
</div>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/spark/Spark_VideoPlayer_fullScreenButton_toolTip_test/bin/srcview/">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/spark/Spark_VideoPlayer_fullScreenButton_toolTip_test/bin/main.html" width="100%" height="350"></iframe></p>
<p>Due to popular demand, here is the &#8220;same&#8221; example in a more ActionScript friendly format:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2009/05/10/setting-the-tooltip-on-the-full-screen-button-on-a-spark-videoplayer-control-in-flex-gumbo/ --&gt;
&lt;s:Application name="Spark_VideoPlayer_fullScreenButton_toolTip_test"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        initialize="init();"&gt;

    &lt;fx:Script&gt;
        &lt;![CDATA[
            import mx.events.FlexEvent;
            import flash.text.engine.FontWeight;
            import spark.components.VideoPlayer;
            import spark.primitives.SimpleText;

            private var lbl:SimpleText;
            private var videoPlayer:spark.components.VideoPlayer;

            private function init():void {
                lbl = new SimpleText();
                lbl.text = "Roll over full screen button to see tool tip.";
                lbl.setStyle("fontWeight", FontWeight.BOLD);
                lbl.left = 10;
                lbl.top = 10;
                addElement(lbl);

                videoPlayer = new VideoPlayer();
                videoPlayer.source = "http://helpexamples.com/flash/video/cuepoints.flv";
                videoPlayer.muted = true;
                videoPlayer.horizontalCenter = 0;
                videoPlayer.verticalCenter = 0;
                videoPlayer.addEventListener(FlexEvent.INITIALIZE, videoPlayer_initialize);
                addElement(videoPlayer);
            }

            private function videoPlayer_initialize(evt:FlexEvent):void {
                videoPlayer.fullScreenButton.toolTip = "Toggle full screen";
            }
        ]]&gt;
    &lt;/fx:Script&gt;

&lt;/s:Application&gt;
</pre>
<p class="alert">This entry is based on a beta version of the Flex 4 SDK and therefore is very likely to change as development of the Flex SDK continues. The API can (and will) change causing examples to possibly not compile in newer versions of the Flex 4 SDK.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the tooltip on the full screen button on a Spark VideoPlayer control in Flex 4 on FlexExamples.com',url: 'http://blog.flexexamples.com/2009/05/10/setting-the-tooltip-on-the-full-screen-button-on-a-spark-videoplayer-control-in-flex-gumbo/',contentID: 'post-1075',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'fullScreenButton,Gumbo',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/2009/05/10/setting-the-tooltip-on-the-full-screen-button-on-a-spark-videoplayer-control-in-flex-gumbo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically styling error tips in Flex</title>
		<link>http://blog.flexexamples.com/2008/09/26/dynamically-styling-error-tips-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/09/26/dynamically-styling-error-tips-in-flex/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 06:34:15 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[getStyleDeclaration()]]></category>
		<category><![CDATA[StyleManager]]></category>
		<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[.errorTip]]></category>
		<category><![CDATA[borderColor]]></category>
		<category><![CDATA[errorColor]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/09/26/dynamically-styling-error-tips-in-flex/</guid>
		<description><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2008/05/22/changing-the-background-color-of-an-error-tip-in-flex/">&#8220;Changing the background color of an error tip in Flex&#8221;</a>, we saw how you could change the background color of a Flex error tip by setting the borderColor style on the .errorTip CSS selector.</p> <p>The following example shows how you can style the Flex .errorTip style dynamically using ActionScript using [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous example, <a href="http://blog.flexexamples.com/2008/05/22/changing-the-background-color-of-an-error-tip-in-flex/">&#8220;Changing the background color of an error tip in Flex&#8221;</a>, we saw how you could change the background color of a Flex error tip by setting the <code>borderColor</code> style on the <code>.errorTip</code> CSS selector.</p>
<p>The following example shows how you can style the Flex <code>.errorTip</code> style dynamically using ActionScript using the static <code>StyleManager.getStyleDeclaration()</code> and <code>setStyle()</code> methods.</p>
<p>Full code after the jump.</p>
<p><span id="more-809"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/errorTip_borderColor_test_2/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/09/26/dynamically-styling-error-tips-in-flex/ --&gt;
&lt;mx:Application name="errorTip_borderColor_test_2"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.FlexEvent;

            private function comboBox_valueCommit(evt:FlexEvent):void {
                if (comboBox.selectedIndex &gt; -1) {
                    var value:String = comboBox.selectedItem.data;
                    var cssObj:CSSStyleDeclaration;
                    cssObj = StyleManager.getStyleDeclaration(".errorTip");
                    cssObj.setStyle("borderColor", value);
                    textInput.setStyle("errorColor", value);
                    textInput.errorString = errStr;
                } else {
                    textInput.errorString = "";
                }
            }

            private function button_click(evt:MouseEvent):void {
                comboBox.selectedIndex = -1;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Array id="arr"&gt;
        &lt;mx:Object label="Red"    data="red" /&gt;
        &lt;mx:Object label="Orange" data="haloOrange" /&gt;
        &lt;mx:Object label="Yellow" data="yellow" /&gt;
        &lt;mx:Object label="Green"  data="haloGreen" /&gt;
        &lt;mx:Object label="Blue"   data="haloBlue" /&gt;
    &lt;/mx:Array&gt;

    &lt;mx:String id="errStr"&gt;Oh noes, an errata!&lt;/mx:String&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="errorColor:"&gt;
                &lt;mx:ComboBox id="comboBox"
                        dataProvider="{arr}"
                        prompt="Please select a color:"
                        valueCommit="comboBox_valueCommit(event);" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
        &lt;mx:Spacer width="100%" /&gt;
        &lt;mx:Button label="Deselect ComboBox"
                click="button_click(event);" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:TextInput id="textInput" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/errorTip_borderColor_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/errorTip_borderColor_test_2/bin/main.html" width="100%" height="150"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Dynamically styling error tips in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/09/26/dynamically-styling-error-tips-in-flex/',contentID: 'post-809',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: '.errorTip,borderColor,errorColor,getStyleDeclaration()',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/09/26/dynamically-styling-error-tips-in-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Changing the background color of an error tip in Flex</title>
		<link>http://blog.flexexamples.com/2008/05/22/changing-the-background-color-of-an-error-tip-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/05/22/changing-the-background-color-of-an-error-tip-in-flex/#comments</comments>
		<pubDate>Thu, 22 May 2008 19:27:07 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[.errorTip]]></category>
		<category><![CDATA[borderColor]]></category>
		<category><![CDATA[errorColor]]></category>
		<category><![CDATA[errorString]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/22/changing-the-background-color-of-an-error-tip-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can change the background color of a Flex error tip by setting the borderColor style on the .errorTip CSS selector.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/errorTip_borderColor_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/05/22/changing-the-background-color-of-an-error-tip-in-flex/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Style&#62; @font-face { src: local("Base 02"); fontFamily: Base02Embedded; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can change the background color of a Flex error tip by setting the <code>borderColor</code> style on the <code>.errorTip</code> CSS selector.</p>
<p>Full code after the jump.</p>
<p><span id="more-639"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/errorTip_borderColor_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/05/22/changing-the-background-color-of-an-error-tip-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local("Base 02");
            fontFamily: Base02Embedded;
        }

        .errorTip {
            borderColor: haloOrange;
            color: black;
            fontFamily: Base02Embedded;
            fontSize: 16;
            fontWeight: normal;
        }

        TextInput {
            errorColor: haloOrange;
        }
    &lt;/mx:Style&gt;

    &lt;mx:TextInput id="textInput"
            errorString="Hey, you missed a spot!" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/errorTip_borderColor_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/errorTip_borderColor_test/bin/main.html" width="100%" height="150"></iframe></p>
<p class="new">For an example of setting the <code>.errorTip</code> selector&#8217;s <code>borderColor</code> style dynamically using ActionScript, see <a href="http://blog.flexexamples.com/2008/09/26/dynamically-styling-error-tips-in-flex/">&#8220;Dynamically styling error tips in Flex&#8221;</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Changing the background color of an error tip in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/05/22/changing-the-background-color-of-an-error-tip-in-flex/',contentID: 'post-639',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: '.errorTip,borderColor,errorColor,errorString',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/05/22/changing-the-background-color-of-an-error-tip-in-flex/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Using embedded fonts with tool tips in Flex</title>
		<link>http://blog.flexexamples.com/2008/03/26/using-embedded-fonts-with-tool-tips-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/03/26/using-embedded-fonts-with-tool-tips-in-flex/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 04:33:46 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[ToolTipEvent]]></category>
		<category><![CDATA[.errorTip]]></category>
		<category><![CDATA[errorString]]></category>
		<category><![CDATA[toolTipShown]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/26/using-embedded-fonts-with-tool-tips-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can use an embedded font with an error tool tip in Flex.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/errorTip_fontFamily_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/03/26/using-embedded-fonts-with-tool-tips-in-flex/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="init();"&#62; &#60;mx:Style&#62; @font-face { src: local("Comic Sans MS"); fontWeight: normal; fontFamily: ComicSansMSEmbedded; } .errorTip { borderStyle: [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use an embedded font with an error tool tip in Flex.</p>
<p>Full code after the jump.</p>
<p><span id="more-547"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/errorTip_fontFamily_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/03/26/using-embedded-fonts-with-tool-tips-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init();"&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: local("Comic Sans MS");
            fontWeight: normal;
            fontFamily: ComicSansMSEmbedded;
        }

        .errorTip {
            borderStyle: "errorTipAbove";
            fontFamily: "ComicSansMSEmbedded";
            fontSize: 12;
            fontWeight: normal;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.ToolTipEvent;
            import mx.controls.ToolTip;

            private function init():void {
                ToolTip.maxWidth = textInput.width;
            }

            private function textInput_toolTipShown(evt:ToolTipEvent):void {
                var tt:ToolTip = evt.toolTip as ToolTip;
                tt.x = textInput.x;
                tt.y = (textInput.y - tt.height);
                tt.rotation = 5;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:TextInput id="textInput" text="{new Date().toDateString()}"
            errorString="The quick brown fox jumped over the lazy dog"
            toolTipShown="textInput_toolTipShown(event);" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/errorTip_fontFamily_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/errorTip_fontFamily_test/bin/main.html" width="100%" height="200"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using embedded fonts with tool tips in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/03/26/using-embedded-fonts-with-tool-tips-in-flex/',contentID: 'post-547',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: '.errorTip,errorString,toolTipShown',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/03/26/using-embedded-fonts-with-tool-tips-in-flex/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Creating a tool tip on a Flex TextInput control with password masked text</title>
		<link>http://blog.flexexamples.com/2008/01/28/creating-a-tool-tip-on-a-flex-textinput-control-with-password-masked-text/</link>
		<comments>http://blog.flexexamples.com/2008/01/28/creating-a-tool-tip-on-a-flex-textinput-control-with-password-masked-text/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 14:38:23 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[TextInput]]></category>
		<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[displayAsPassword]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/01/28/creating-a-tool-tip-on-a-flex-textinput-control-with-password-masked-text/</guid>
		<description><![CDATA[<p>The following example shows you how you can use a tool tip on a Flex TextInput control with its displayAsPassword property set to true. By mousing over the credit card number field in the form below, you can see your credit card number in a readable tool tip.</p> <p>Want the short version? Use a simple [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows you how you can use a tool tip on a Flex TextInput control with its <code>displayAsPassword</code> property set to <code>true</code>. By mousing over the credit card number field in the form below, you can see your credit card number in a readable tool tip.</p>
<p>Want the short version? Use a simple binding to bind the tool tip text to the TextInput control&#8217;s text, as seen in the following snippet:</p>
<pre class="code">
&lt;mx:TextInput id=&quot;ccNumber&quot;
        text=&quot;4111111111111111&quot;
        displayAsPassword=&quot;true&quot;
        <strong style="color:red;">toolTip=&quot;{ccNumber.text}&quot;</strong> /&gt;
</pre>
<p>Looking for a longer version? Read on!</p>
<p>Full code after the jump.</p>
<p><span id="more-486"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/TextInput_toolTip_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/01/28/creating-a-tool-tip-on-a-flex-textinput-control-with-password-masked-text/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.formatters.DateBase;
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Form&gt;
        &lt;mx:FormItem label="Name:"&gt;
            &lt;mx:TextInput id="ccName"
                    text="JOHN DOE" /&gt;
        &lt;/mx:FormItem&gt;
        &lt;mx:FormItem label="Number:"&gt;
            &lt;mx:TextInput id="ccNumber"
                    text="4111111111111111"
                    displayAsPassword="true"
                    toolTip="{ccNumber.text}" /&gt;
        &lt;/mx:FormItem&gt;
        &lt;mx:FormItem label="Type:"&gt;
            &lt;mx:ComboBox id="ccType"
                    dataProvider="[American Express,MasterCard,Visa]" /&gt;
        &lt;/mx:FormItem&gt;
        &lt;mx:FormItem label="Expiration:" direction="horizontal"&gt;
            &lt;mx:ComboBox id="ccExpMM"
                    initialize="ccExpMM.dataProvider = DateBase.monthNamesShort;" /&gt;
            &lt;mx:ComboBox id="ccExpYYYY"
                    dataProvider="[2008,2009,2010]" /&gt;
        &lt;/mx:FormItem&gt;
    &lt;/mx:Form&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/TextInput_toolTip_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/TextInput_toolTip_test/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Creating a tool tip on a Flex TextInput control with password masked text on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/01/28/creating-a-tool-tip-on-a-flex-textinput-control-with-password-masked-text/',contentID: 'post-486',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'displayAsPassword',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/01/28/creating-a-tool-tip-on-a-flex-textinput-control-with-password-masked-text/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating tool tips on the Flex RichTextEditor control</title>
		<link>http://blog.flexexamples.com/2007/11/21/creating-tool-tips-on-the-flex-richtexteditor-control/</link>
		<comments>http://blog.flexexamples.com/2007/11/21/creating-tool-tips-on-the-flex-richtexteditor-control/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 03:26:42 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[RichTextEditor]]></category>
		<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[showToolTips]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/11/21/creating-tool-tips-on-the-flex-richtexteditor-control/</guid>
		<description><![CDATA[<p>The following example shows you how you can set tool tips on each element of the RichTextEditor control in Flex.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/RichTextEditor_showToolTips_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0"?&#62; &#60;!-- http://blog.flexexamples.com/2007/11/21/creating-tool-tips-on-the-flex-richtexteditor-control/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:RichTextEditor id="richTextEditor" title="I'm a rich text editor" showToolTips="true" fontFamilyToolTip="Select a font family." fontSizeToolTip="Select a font [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows you how you can set tool tips on each element of the RichTextEditor control in Flex.</p>
<p>Full code after the jump.</p>
<p><span id="more-319"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/RichTextEditor_showToolTips_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/11/21/creating-tool-tips-on-the-flex-richtexteditor-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:RichTextEditor id="richTextEditor"
            title="I'm a rich text editor"
            showToolTips="true"
            fontFamilyToolTip="Select a font family."
            fontSizeToolTip="Select a font size."
            boldToolTip="I'm bold"
            italicToolTip="I'm italic"
            underlineToolTip="I'm an underline"
            colorPickerToolTip="Select a color."
            alignToolTip="Left | Center | Right | Justified"
            bulletToolTip="I'm a bullet"
            linkToolTip="I'm a link" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/RichTextEditor_showToolTips_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/RichTextEditor_showToolTips_test/bin/main.html" width="100%" height="400"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Creating tool tips on the Flex RichTextEditor control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/11/21/creating-tool-tips-on-the-flex-richtexteditor-control/',contentID: 'post-319',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'showToolTips',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/11/21/creating-tool-tips-on-the-flex-richtexteditor-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting a Flex tool tip&#8217;s maximum width</title>
		<link>http://blog.flexexamples.com/2007/09/05/setting-a-flex-tool-tips-maximum-width/</link>
		<comments>http://blog.flexexamples.com/2007/09/05/setting-a-flex-tool-tips-maximum-width/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 15:22:02 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[maxWidth]]></category>
		<category><![CDATA[ToolTipManager]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/05/setting-a-flex-tool-tips-maximum-width/</guid>
		<description><![CDATA[<p>The following example shows how you can use the static ToolTip.maxWidth property in Flex to control the maximum width of a tool tip.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ToolTip_maxWidth_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/09/05/setting-a-flex-tool-tips-maximum-width/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Script&#62; &#60;![CDATA[ import mx.controls.ToolTip; ]]&#62; &#60;/mx:Script&#62; &#60;mx:ApplicationControlBar dock="true"&#62; &#60;mx:Label text="ToolTip.maxWidth:" /&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use the static <code>ToolTip.maxWidth</code> property in Flex to control the maximum width of a tool tip.</p>
<p>Full code after the jump.</p>
<p><span id="more-156"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ToolTip_maxWidth_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/09/05/setting-a-flex-tool-tips-maximum-width/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.ToolTip;
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Label text="ToolTip.maxWidth:" /&gt;
        &lt;mx:HSlider id="slider"
                minimum="50"
                maximum="300"
                value="{ToolTip.maxWidth}"
                liveDragging="true"
                snapInterval="5"
                tickInterval="10"
                dataTipPrecision="0"
                change="ToolTip.maxWidth = slider.value" /&gt;
        &lt;mx:Label text="{slider.value}" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Button label="Roll over to see tool tip"
            toolTip="The quick brown fox jumped over the lazy dog." /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/ToolTip_maxWidth_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/ToolTip_maxWidth_test/bin/main.html" width="100%" height="150"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting a Flex tool tip\&#039;s maximum width on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/09/05/setting-a-flex-tool-tips-maximum-width/',contentID: 'post-156',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'maxWidth,ToolTipManager',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/09/05/setting-a-flex-tool-tips-maximum-width/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding animations and effects to Flex tool tips</title>
		<link>http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/</link>
		<comments>http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 05:15:56 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[hideDelay]]></category>
		<category><![CDATA[hideEffect]]></category>
		<category><![CDATA[showEffect]]></category>
		<category><![CDATA[ToolTipManager]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/</guid>
		<description><![CDATA[<p>The following example shows how you can add custom animation and effects when displaying a tool tip in Flex.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ToolTipManager_showEffect_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="init()"&#62; &#60;mx:Script&#62; &#60;![CDATA[ import mx.managers.ToolTipManager; private function init():void { ToolTipManager.hideDelay = 2000; ToolTipManager.showEffect = rotate; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can add custom animation and effects when displaying a tool tip in Flex.</p>
<p>Full code after the jump.</p>
<p><span id="more-155"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ToolTipManager_showEffect_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/09/04/adding-animations-and-effects-to-flex-tool-tips/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        creationComplete="init()"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.managers.ToolTipManager;

            private function init():void {
                ToolTipManager.hideDelay = 2000;
                ToolTipManager.showEffect = rotate;
                ToolTipManager.hideEffect = zoom;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Style&gt;
        @font-face {
            src: url("./fonts/arial.ttf");
            fontFamily: "ArialEmbedded";
        }

        ToolTip {
            fontFamily: ArialEmbedded;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Rotate id="rotate" /&gt;
    &lt;mx:Zoom id="zoom" /&gt;

    &lt;mx:Button label="Roll over me to see tool tip"
            toolTip="The quick brown fox..." /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/ToolTipManager_showEffect_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/ToolTipManager_showEffect_test/bin/main.html" width="100%" height="200"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Adding animations and effects to Flex tool tips on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/',contentID: 'post-155',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'hideDelay,hideEffect,showEffect,ToolTipManager',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/09/04/adding-animations-and-effects-to-flex-tool-tips/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Controlling a Flex tool tip&#8217;s show delay, hide delay, and scrub delay</title>
		<link>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/</link>
		<comments>http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 06:56:40 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ToolTip]]></category>
		<category><![CDATA[hideDelay]]></category>
		<category><![CDATA[scrubDelay]]></category>
		<category><![CDATA[showDelay]]></category>
		<category><![CDATA[ToolTipManager]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/</guid>
		<description><![CDATA[<p>The following example shows how you can control how long Flex will wait to display a tool tip after the user moves the mouse over a control, how long the tool tip will be visible before disappearing and how long a user can take when moving the mouse between controls before Flex waits to display [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can control how long Flex will wait to display a tool tip after the user moves the mouse over a control, how long the tool tip will be visible before disappearing and how long a user can take when moving the mouse between controls before Flex waits to display a ToolTip.</p>
<p>Full code after the jump.</p>
<p><span id="more-154"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/ToolTipManager_showDelay_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/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="init()"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.managers.ToolTipManager;

            private function init():void {
                showDelayMS = ToolTipManager.showDelay;
                hideDelayMS = ToolTipManager.hideDelay;
                scrubDelayMS = ToolTipManager.scrubDelay;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Number id="showDelayMS" /&gt;
    &lt;mx:Number id="hideDelayMS" /&gt;
    &lt;mx:Number id="scrubDelayMS" /&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Label text="showDelay:" /&gt;
        &lt;mx:NumericStepper id="showDelayNS"
                minimum="0"
                maximum="2000"
                value="{showDelayMS}"
                stepSize="100"
                change="ToolTipManager.showDelay = showDelayNS.value" /&gt;

        &lt;mx:Spacer width="50%" /&gt;

        &lt;mx:Label text="hideDelay:" /&gt;
        &lt;mx:NumericStepper id="hideDelayNS"
                minimum="0"
                maximum="15000"
                value="{hideDelayMS}"
                stepSize="100"
                change="ToolTipManager.hideDelay = hideDelayNS.value" /&gt;

        &lt;mx:Spacer width="50%" /&gt;

        &lt;mx:Label text="scrubDelay:" /&gt;
        &lt;mx:NumericStepper id="scrubDelayNS"
                minimum="0"
                maximum="15000"
                value="{scrubDelayMS}"
                stepSize="100"
                change="ToolTipManager.scrubDelay = scrubDelayNS.value" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Tile&gt;
        &lt;mx:Button label="Button 1" toolTip="Tool tip 1" /&gt;
        &lt;mx:Button label="Button 2" toolTip="Tool tip 2" /&gt;
        &lt;mx:Button label="Button 3" toolTip="Tool tip 3" /&gt;
        &lt;mx:Button label="Button 4" toolTip="Tool tip 4" /&gt;
        &lt;mx:Button label="Button 5" toolTip="Tool tip 5" /&gt;
        &lt;mx:Button label="Button 6" toolTip="Tool tip 6" /&gt;
        &lt;mx:Button label="Button 7" toolTip="Tool tip 7" /&gt;
    &lt;/mx:Tile&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/ToolTipManager_showDelay_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/ToolTipManager_showDelay_test/bin/main.html" width="100%" height="250"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Controlling a Flex tool tip\&#039;s show delay, hide delay, and scrub delay on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/',contentID: 'post-154',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'hideDelay,scrubDelay,showDelay,ToolTipManager',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/09/03/controlling-a-flex-tool-tips-show-delay-hide-delay-and-scrub-delay/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

