# MC的控制

1.分別製作1立體小球、1箭頭按鈕和2個放大鏡按鈕（“+”和“-”）的元件，可根據自己喜好自行設計形狀和樣式；
2.將上面製作的影片拖入到情境中，再複製三個箭頭按鈕，並旋轉，使它們分別朝上、下、左、右四個方向。調整好各元件的位置；
3.給小球取一執行個體名，如：“qiu”；
4.接下來給這些按鈕寫AS：

on (release) {
setProperty("/qiu", _y, (getProperty ( "/qiu", _y))-10);
}

on (release) {
setProperty("/qiu", _y, (getProperty ( "/qiu", _y))+10);
}

on (release) {
setProperty("/qiu", _x, (getProperty ( "/qiu", _x))-10);
setProperty("/qiu", _rotation, (getProperty("/qiu", _rotation))-10);
}

on (release) {
setProperty("/qiu", _x, (getProperty ( "/qiu", _x))+10);
setProperty("/qiu", _rotation, (getProperty("/qiu", _rotation))+10);
}

on (release) {
setProperty("/qiu", _xscale, (getProperty ( "/qiu", _xscale))*0.9);
setProperty("\"/qiu", _y, "");
setProperty("/qiu", _yscale, (getProperty ( "/qiu", _yscale))*0.9);
}

on (release) {
setProperty("/qiu", _xscale, (getProperty ( "/qiu", _xscale))*1.1);
setProperty("/qiu", _yscale, (getProperty ( "/qiu", _yscale))*1.1);
}
5.OK，一切完成，ctrl+enter測試影片。

## E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

## Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

## Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth \$300-1200 USD