flash on 2010-5-29

by kihon
♥0 | Line 23 | Modified 2010-05-29 10:52:33 | 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/iOdS
 */

<?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[
			import mx.events.ItemClickEvent;
	
			protected function itemClickHandler(event:ItemClickEvent):void
			{
				label.text = groupA.selectedValue + "がクリックされました";
			}
	
		]]>
	</fx:Script>
	<fx:Declarations>
		<s:RadioButtonGroup id="groupA" itemClick="itemClickHandler(event)" />
	</fx:Declarations>
	<s:VGroup>
		<s:RadioButton groupName="groupA" label="FLASH" />
		<s:RadioButton groupName="groupA" label="AS3" />
		<s:RadioButton groupName="groupA" label="Flex" />
	</s:VGroup>
	<s:Label x="38" y="122" fontFamily="MS 明朝" id="label" fontSize="20"/>
</s:Application>