目前場景有下述的元件
1. mc(mcAll)..
影格1(mcSource):包含了原始的狀態
影格2(mcBig):包含了放大之後的狀態
2. 左右移動箭頭
3. 可視範圍(imgLimit)
當mcAll點下後..即會跳至mcBig..
現在希望可以在左右的移動加入判斷..
(1) 如果在可視範圍的大小..則左右的按鈕將無作用
(2) 因為mcAll會有n個..所放的尺寸都不一樣..
另外..老是被x.y軸與mc的尺寸搞亂..
不知道有沒有建議的書籍可以參考呢?..
謝謝!!
ps 有作了一個簡單的原始檔..如果有幫忙的大大需要..再麻煩大大提mail..讓我寄送哦~..不好意思..3Q~
--
您收到此郵件,是因為您訂閱了 Google 網上論壇的「台灣 Adobe 使用者俱樂部 」群組。
如要在此群組張貼留言,請寄電子郵件至 au...@googlegroups.com
如要取消訂閱此群組,請寄電子郵件至 augtw-un...@googlegroups.com
如需更多選項,請造訪此群
組:http://groups.google.com.tw/group/augtw?hl=zh-TW?hl=zh-TW 。
var intSourceX = mvTest1._x;
var intSourceY = mvTest1._y;
var intMoveSpeed = 10;
mvTest1.onRelease = function(){
mvTest1._x = intSourceX;
mvTest1._y = intSourceY;
mvTest1.gotoAndStop(2);
}
mvLeft.onRollOver=function(){strMoveSts="MoveLeft";}
mvLeft.onRollOut=function(){strMoveSts="";}
mvRight.onRollOver=function(){strMoveSts="MoveRight";}
mvRight.onRollOut=function(){strMoveSts="";}
mvTop.onRollOver=function(){strMoveSts="MoveTop";}
mvTop.onRollOut=function(){strMoveSts="";}
mvBottom.onRollOver=function(){strMoveSts="MoveBottom";}
mvwBottom.onRollOut=function(){strMoveSts="";}
_root.onEnterFrame = function (){
switch(strMoveSts){
case "MoveLeft":
mvTest1._x = mvTest1._x - intMoveSpeed;
break;
case "MoveRight":
mvTest1._x = mvTest1._x + intMoveSpeed;
break;
case "MoveTop":
mvTest1._y = mvTest1._y - intMoveSpeed;
break;
case "MoveBottom":
mvTest1._y = mvTest1._y + intMoveSpeed;
break;
}
}
目前已用自己的方法解決..可是感覺在觀念上還很虛..
不曉得大大們能不能提供..關於元件變化與x.y軸..較進階的書籍呢??..謝謝~