flash on 2010-5-28

by kihon
♥0 | Line 21 | Modified 2010-05-28 19:59:39 | 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/aCHj
 */

<?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 spark.events.IndexChangeEvent;
			
			protected function bar_changeHandler(event:IndexChangeEvent):void
			{
				label.text = bar.selectedItem + "が選択されました";
			}
			
		]]>
	</fx:Script>
	
	<s:ButtonBar requireSelection="true" x="104" y="119" id="bar" change="bar_changeHandler(event)">
		<s:ArrayCollection>
			<fx:String>FLASH</fx:String>
			<fx:String>AS3</fx:String>
		</s:ArrayCollection>
	</s:ButtonBar>
	<s:Label x="35" y="30" text="" id="label" fontFamily="MS 明朝"/>
</s:Application>