第十八週期末考: (2020.06.23)
第十七週上課: (2020.06.16)
第十六週上課: (2020.06.09)
第十五週上課: (2020.06.02)
第十四週上課: (2020.05.26)
第十三週上課: (2020.05.19)
第十二週上課: (2020.05.12)
第十一週上課: (2020.05.05)
Object(this).walkman_mc.addEventListener(MouseEvent.MOUSE_OVER, walkbegin)
Object(this).cross_btn.addEventListener(MouseEvent.MOUSE_OVER, mybegin)
function mybegin (e:MouseEvent) {
Object(this).cross_btn.addEventListener(Event.ENTER_FRAME, mywalk);
}
function walkbegin (e:MouseEvent) {
Object(this).walkman_mc.addEventListener(Event.ENTER_FRAME, mywalk);
}
Object(this).walkman_mc.addEventListener(MouseEvent.MOUSE_OUT, walkend)
Object(this).cross_btn.addEventListener(MouseEvent.MOUSE_OUT, myend)
function myend (e:MouseEvent) {
Object(this).cross_btn.removeEventListener(Event.ENTER_FRAME, mywalk);
}
function walkend (e:MouseEvent) {
Object(this).walkman_mc.removeEventListener(Event.ENTER_FRAME, mywalk);
}
function mywalk(e:Event)
{
if (Object(this).walkman_mc.currentFrame == Object(this).walkman_mc.totalFrames)
{
Object(this).walkman_mc.gotoAndStop(1);
}
else
{
Object(this).walkman_mc.nextFrame();
}
}
第十週上課: (2020.04.28)
function mousetrace(e:Event) {
Object(this).mx_txt.text = String(stage.mouseX)
Object(this).my_txt.text = String(stage.mouseY)
Object(this).bx_txt.text = String(Object(this).ball_mc.x)
Object(this).by_txt.text = String(Object(this).ball_mc.y)
Object(this).ball_mc.x = Object(this).ball_mc.x + (stage.mouseX-Object(this).ball_mc.x)/10
Object(this).ball_mc.y = Object(this).ball_mc.y + (stage.mouseY-Object(this).ball_mc.y)/10
Object(this).ball_follow.x = Object(this).ball_follow.x + (Object(this).ball_mc.x - Object(this).ball_follow.x)/10
Object(this).ball_follow.y = Object(this).ball_follow.y + (Object(this).ball_mc.y - Object(this).ball_follow.y)/10
Object(this).ball_mc.rotation = Object(this).ball_mc.rotation + 1
Object(this).ball_follow.rotation = Object(this).ball_follow.rotation + 2
}
//displace = mouse position - ball positopn
// ball position = ball position + displace/10
// = ball position + (mouse position - ball positopn)/10
第九週期中考: (2020.04.21)
第八週期中考操作上課: (2020.04.14)
第七週上課: (2020.04.07)
第六週上課: (2020.03.31)
第五週上課: (2020.03.24)
function mybegin(e:MouseEvent) {
this.gotoAndPlay("_begin")
}
this.addEventListener(MouseEvent.MOUSE_OUT, myend)
function myend(e:MouseEvent) {
this.gotoAndPlay("_end")
}
複製所有影格,再製作一個新的元件為影片片段,貼上影格。把場景的東西刪到剩一個圖層的空影格,將元件拉入,執行看看滑鼠移入跟移出的動畫效果,拖拉幾個按鈕進來,同樣具有剛剛的效果。
第四週上課: (2020.03.17)
第三週上課: (2020.03.10)
Object(this).next_btn.addEventListener(MouseEvent.CLICK , mynext);
Object(this).prev_btn.addEventListener(MouseEvent.CLICK , myprev);
function mynext(event:MouseEvent){
Object(this).photo_mc.nextFrame()
}
function myprev(event:MouseEvent){
Object(this).photo_mc.prevFrame()
}。
第二週上課: (2020.03.03)
第一週上課: (2020.02.25)