flash on 2010-6-9

by kihon
♥0 | Line 19 | Modified 2010-06-09 21:21:43 | MIT License
play

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/9SXb
 */

<?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.events.FlexEvent;
			import mx.managers.ToolTipManager;

			protected function creationCompleteHandler(event:FlexEvent):void
			{
				ToolTipManager.showEffect = showEffect;
			}
		]]>
	</fx:Script>
	<fx:Declarations>
		<s:Move id="showEffect" xFrom="{button.x - 30}" xTo="{button.x}" />
	</fx:Declarations>
	<s:Button id="button" toolTip="button"/>
</s:Application>