Ganeshflex’s Blog

Just another WordPress.com weblog

ItemEditorDropIn

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application
xmlns:mx=”http://www.adobe.com/2006/mxml”

viewSourceURL=”src/ItemEditorDropIn/index.html”
width=”470″ height=”340″
>
<mx:Model id=”artwork” source=”model/artwork.xml”/>

<mx:DataGrid
id=”artGrid”
rowCount=”10″ variableRowHeight=”true”
dataProvider=”{artwork.piece}”

editable=”false”
>
<mx:columns>

<!– Drop-in item renderer: Image control –>
<mx:DataGridColumn
dataField=”image” headerText=”Image”
itemRenderer=”mx.controls.Image”
/>

<mx:DataGridColumn headerText=”Name” dataField=”name”/>
<mx:DataGridColumn headerText=”Price” dataField=”price”/>

<!– Drop-in item editor: NumericStepper control –>
<mx:DataGridColumn
headerText=”Quantity”
dataField=”quantity”
itemEditor=”mx.controls.NumericStepper”

editorDataField=”value”
editorXOffset=”22″
editorYOffset=”25″
editorWidthOffset=”-40″
editorHeightOffset=”-50″

/>

</mx:columns>
</mx:DataGrid>

<!–<mx:LinkButton
textAlign=”center”

label=”Photos (c) 2006 geishaboy500 (CC Attribution License)”
click=”{navigateToURL(new URLRequest(&apos;http://www.flickr.com/photos/geishaboy500/&apos;));}”

/>–>

<mx:Script>
<![CDATA[
import flash.net.navigateToURL;
]]>

</mx:Script>

</mx:Application>

June 15, 2009 - Posted by ganeshflex | Uncategorized | | No Comments Yet

No comments yet.

Leave a comment