flash on 2010-5-28

by kihon
♥0 | Line 22 | Modified 2010-05-28 16:04:00 | 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/vkcz
 */

<?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.ListEvent;
			
			protected function changeHandler(event:ListEvent):void
			{
				label.text = combo.selectedItem + "が選択されました";
			}

		]]>
	</fx:Script>
	<mx:ComboBox x="70" y="84" id="combo" change="changeHandler(event)">
		<s:ArrayCollection>
			<fx:String>FLASH</fx:String>
			<fx:String>AS3</fx:String>
			<fx:String>999</fx:String>
		</s:ArrayCollection>
	</mx:ComboBox>
	<s:Label x="41" y="33" text="" id="label"  fontFamily="MS ゴシック"/>
</s:Application>