flash on 2010-6-11

by kihon
♥0 | Line 24 | Modified 2010-06-11 20:25:16 | 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/wrSR
 */

<?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">
	<mx:DataGrid dataProvider="{list}" x="100" y="100">
		<mx:columns>
			<mx:DataGridColumn dataField="title" />
			<mx:DataGridColumn id="price" visible="false" dataField="price" />
		</mx:columns>
	</mx:DataGrid>
	<s:Button label="切り替え" click="{price.visible = !price.visible;}"  x="168" y="291" fontFamily="MS 明朝"/>
	<fx:Declarations>
		<fx:XMLList id="list">
			<s>
				<title>FF</title>
				<price>6980</price>
			</s>
			<s>
				<title>DQ</title>
				<price>7140</price>
			</s>
		</fx:XMLList>
	</fx:Declarations>
</s:Application>