0
所以我有一個拖放操作,被拖動的數據是一些XML。我drophandler看起來是這樣的:從對象中訪問xml
protected function dragDropHandler(event:DragEvent):void
{
var item:XML = XML(event.dragSource.dataForFormat("itemsByIndex"));
Alert.show(item);
}
警報看起來是這樣的:
我如何能夠例如得到這個XML的ID?以警報爲例。
'Alert.show(item.artist.id)'http://www.republicofcode.com/tutorials/flash/as3xml/ – joncys 2012-08-09 11:03:18