mx.controls.Alert.show('デバッグ文', 'メッセージ');
別途selectedItem変数は定義しておきます。
<mx:DataGrid id="list" width="100%" height="100%" dataProvider="{dataObject}" change="selectedItem=event.target.selectedItem;mx.controls.Alert.show(selectedItem.name, 'メッセージ');"> <mx:columns> <mx:Array> <mx:DataGridColumn headerText="Name" columnName="name" width="300"/> <mx:DataGridColumn headerText="Price" columnName="price" textAlign="right" marginRight="4"/> </mx:Array> </mx:columns> </mx:DataGrid>
この記事は
現在のアクセス:9220