[問題] 如何讓載入進來的檔案,可以拖曳
我有一個FLASH
圖片是外部load進來的
我希望圖片可以拖曳移動
這樣寫有不對的地方嗎?
_root.opena.onRelease = function() {
for (i=1; i<=3; i++) {
targetpic = "pic"+i;
createEmptyMovieClip(targetpic, getNextHighestDepth()+i);
loadMovie("images/"+i+".jpg", targetpic);
setProperty(targetpic, _x, i*100);
setProperty(targetpic, _y, 60);
}
this.targetpic.onPress = function(){
this.startDrag();
}
this.targetpic.onRelease = function(){
this.stopDrag();
}
};
希望有人可以幫忙也決問題
謝謝!小弟感激不盡!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.133.54.44
推
06/23 00:15, , 1F
06/23 00:15, 1F
→
06/23 00:16, , 2F
06/23 00:16, 2F
→
06/23 00:16, , 3F
06/23 00:16, 3F
→
06/23 00:34, , 4F
06/23 00:34, 4F
→
06/23 00:34, , 5F
06/23 00:34, 5F
→
06/23 00:42, , 6F
06/23 00:42, 6F
推
06/23 12:48, , 7F
06/23 12:48, 7F
推
06/23 17:07, , 8F
06/23 17:07, 8F
推
06/24 11:52, , 9F
06/24 11:52, 9F
→
06/24 13:52, , 10F
06/24 13:52, 10F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):