flash on 2010-5-23

by kihon
♥0 | Line 16 | Modified 2010-05-23 22:10:29 | 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/gV2F
 */

<?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">

	<fx:Script>
		<![CDATA[
			protected function click(event:MouseEvent):void
			{
				var button:Button = event.currentTarget as Button;
				if (button.label != "FLASH") button.label = "FLASH";
				else button.label = "AS3";
			}
		]]>
	</fx:Script>

	<s:Button x="101" y="195" label="ボタン"  click="click(event)"/>
</s:Application>