itemCheckedChange="dataGridCheckedItemChange(event)"
new Event Tag : "itemCheckedChange"
new Event name : DeviceGroupAndListGridEvent
=========== org =====================
[device:DeviceGroupAndListGrid
id="dataGridT" width="100%" height="100%"
variableRowHeight="true"
sortExpertMode="true"
itemCheckedChange="dataGridCheckedItemChange(event)"/]
- script part
private function dataGridCheckedItemChange(event:DeviceGroupAndListGridEvent):void
{
Alert.show("sr");
}
============= component ================
[mx:Metadata]
[Event(name="itemCheckedChange",type="com.DeviceGroupAndListGridEvent")]
[/mx:Metadata]
============ actionscript file ==================
public class DeviceGroupAndListGridEvent extends Event
{
public static const ITEM_CHECKED_CHANGE:String = "itemCheckedChange";
public function DeviceGroupAndListGridEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}
}
Wednesday, 9 December 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment