<?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; toolTipShown</title>
	<atom:link href="http://blog.flexexamples.com/tag/tooltipshown/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>Using the ToolTipManager class to determine the current tool tip in a Flex application</title>
		<link>http://blog.flexexamples.com/2008/04/06/using-the-tooltipmanager-class-to-determine-the-current-tool-tip-in-a-flex-application/</link>
		<comments>http://blog.flexexamples.com/2008/04/06/using-the-tooltipmanager-class-to-determine-the-current-tool-tip-in-a-flex-application/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 07:41:49 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ToolTipEvent]]></category>
		<category><![CDATA[currentToolTip]]></category>
		<category><![CDATA[ToolTipManager]]></category>
		<category><![CDATA[toolTipShown]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/06/using-the-tooltipmanager-class-to-determine-the-current-tool-tip-in-a-flex-application/</guid>
		<description><![CDATA[<p>The following example shows how you can get the currently visible tool tip in a Flex application by using the static ToolTipManager.currentToolTip property and the toolTipShown event.</p> <p>Full code after the jump.</p> <p></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/04/06/using-the-tooltipmanager-class-to-determine-the-current-tool-tip-in-a-flex-application/ --&#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.Alert; import mx.controls.ToolTip; import mx.events.ToolTipEvent; import mx.managers.ToolTipManager; private [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can get the currently visible tool tip in a Flex application by using the static <code>ToolTipManager.currentToolTip</code> property and the <code>toolTipShown</code> event.</p>
<p>Full code after the jump.</p>
<p><span id="more-586"></span></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/04/06/using-the-tooltipmanager-class-to-determine-the-current-tool-tip-in-a-flex-application/ --&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.Alert;
            import mx.controls.ToolTip;
            import mx.events.ToolTipEvent;
            import mx.managers.ToolTipManager;

            private function button_toolTipShown(evt:ToolTipEvent):void {
                var toolTip:ToolTip = ToolTipManager.currentToolTip as ToolTip;
                Alert.show(evt.toString(), toolTip.text);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button id="button"
                label="Roll over button to display tool tip"
                toolTip="The quick brown fox jumped over the lazy dog"
                toolTipShown="button_toolTipShown(event);" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using the ToolTipManager class to determine the current tool tip in a Flex application on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/04/06/using-the-tooltipmanager-class-to-determine-the-current-tool-tip-in-a-flex-application/',contentID: 'post-586',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'currentToolTip,ToolTipManager,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/04/06/using-the-tooltipmanager-class-to-determine-the-current-tool-tip-in-a-flex-application/feed/</wfw:commentRss>
		<slash:comments>1</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>
	</channel>
</rss>

