//dragStop函數,定義放開圖片發生動作 function dragStop(me:MouseEvent):void{ me.target.stopDrag();//停止拖曳 var object=me.target;//取得目標實體 switch(object){ case pic1_mc : if (me.currentTarget.hitTestObject(hittest1)){ pic1_mc.x=59;pic1_mc.y=95;} break; case pic2_mc : if (me.currentTarget.hitTestObject(hittest2)){ pic2_mc.x=224.9;pic2_mc.y=95;} break; case pic3_mc : if (me.currentTarget.hitTestObject(hittest3)){ pic3_mc.x=59;pic3_mc.y=323;} break; case pic4_mc : if (me.currentTarget.hitTestObject(hittest4)){ pic4_mc.x=224.9;pic4_mc.y=323;} break; } }