flash on 2010-6-14

by kihon
♥0 | Line 32 | Modified 2010-06-14 19:46:28 | 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/e2m4
 */

<?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}" editable="true">
		<mx:columns>
			<mx:DataGridColumn dataField="title" />
			<mx:DataGridColumn dataField="quantity" editorDataField="value">
				<mx:itemEditor>
					<fx:Component>
						<mx:NumericStepper maximum="100" />
					</fx:Component>
				</mx:itemEditor>
			</mx:DataGridColumn>
			<mx:DataGridColumn dataField="date"/>
		</mx:columns>
	</mx:DataGrid>
	<fx:Declarations>
		<fx:XMLList id="list">
			<s>
				<title>FF</title>
				<quantity>3</quantity>
				<date>12/24</date>
			</s>
			<s>
				<title>DQ</title>
				<quantity>7</quantity>
				<date>7/3</date>
			</s>
		</fx:XMLList>
	</fx:Declarations>
</s:Application>