關於x軸與mc的大小問題

0 views
Skip to first unread message

Kate

unread,
Jan 15, 2010, 12:57:10 AM1/15/10
to 台灣 Adobe 使用者俱樂部
大大好~..

目前場景有下述的元件
1. mc(mcAll)..
影格1(mcSource):包含了原始的狀態
影格2(mcBig):包含了放大之後的狀態

2. 左右移動箭頭
3. 可視範圍(imgLimit)

當mcAll點下後..即會跳至mcBig..

現在希望可以在左右的移動加入判斷..
(1) 如果在可視範圍的大小..則左右的按鈕將無作用
(2) 因為mcAll會有n個..所放的尺寸都不一樣..

另外..老是被x.y軸與mc的尺寸搞亂..
不知道有沒有建議的書籍可以參考呢?..

謝謝!!

ps 有作了一個簡單的原始檔..如果有幫忙的大大需要..再麻煩大大提mail..讓我寄送哦~..不好意思..3Q~

吳偉民

unread,
Jan 15, 2010, 1:28:53 AM1/15/10
to au...@googlegroups.com
直接附上程式吧 這樣子會讓想為你解答的看不懂喔

2010/1/15 Kate <rei...@msn.com>
--
您收到此郵件,是因為您訂閱了 Google 網上論壇的「台灣 Adobe 使用者俱樂部 」群組。
如要在此群組張貼留言,請寄電子郵件至 au...@googlegroups.com
如要取消訂閱此群組,請寄電子郵件至 augtw-un...@googlegroups.com
如需更多選項,請造訪此群
組:http://groups.google.com.tw/group/augtw?hl=zh-TW?hl=zh-TW

Kate

unread,
Jan 15, 2010, 1:38:05 AM1/15/10
to 台灣 Adobe 使用者俱樂部
程式碼如下@@..謝謝唷~..

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;
}
}

Ben Chang

unread,
Jan 15, 2010, 10:54:53 AM1/15/10
to au...@googlegroups.com
你是不是想要製作 "放大鏡" 的效果ㄚ?

還是只是想在有限的寬高範圍內,看超過此寬高的大尺寸畫面~





2010/1/15 Kate <rei...@msn.com>

Kate

unread,
Jan 17, 2010, 8:03:38 PM1/17/10
to 台灣 Adobe 使用者俱樂部
是想作上下左右移動的效果..
可是因為點選進去之後..還會再包含movie clip..每個區塊的尺寸會不一樣..上下左右按鈕顯示就會呈現不同@@....(例:寬度在可視的
範圍時..上下的鍵就沒有作用)

目前已用自己的方法解決..可是感覺在觀念上還很虛..
不曉得大大們能不能提供..關於元件變化與x.y軸..較進階的書籍呢??..謝謝~

Reply all
Reply to author
Forward
0 new messages