flash on 2010-6-9
♥0 |
Line 19 |
Modified 2010-06-09 14:43:05 |
MIT License
archived:2017-03-30 02:17:34
ActionScript3 source code
/**
* Copyright kihon ( http://wonderfl.net/user/kihon )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/lcSr
*/
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="creationCompleteHandler(event)">
<fx:Script>
<![CDATA[
import mx.controls.ToolTip;
import mx.events.FlexEvent;
import mx.events.ToolTipEvent;
protected function creationCompleteHandler(event:FlexEvent):void
{
button.addEventListener(ToolTipEvent.TOOL_TIP_CREATE, function(event:*):void { text.text += "ツールヒントが表示されました\n";});
button.addEventListener(ToolTipEvent.TOOL_TIP_HIDE, function(event:*):void { text.text += "ツールヒントが消えました\n";});
}
]]>
</fx:Script>
<s:Button id="button" toolTip="ss" x="200" y="100"/>
<mx:TextArea id="text" width="200" height="200" x="100" y="250" fontFamily="MS 明朝"/>
</s:Application>