หน้าแรก > Flash > การทำ Flash animation แบบ smooth

การทำ Flash animation แบบ smooth

มิถุนายน 2, 2008 ใส่ความเห็น Go to comments

วิธีการทำ animation แบบ smooth ในกรณีที่ใช้ mouseOver ซ้ำๆ

ที่เฟรมแรก ใส่ script ดังนี้
[กำหนด event ก่อน]
this.onRollOver = function(){
over = true;
}
this.onRollOut = function(){
over = false;
}
////////////////////////////////////////////////////////////////////////////////
[เขียน function ตรวจสอบการทำงาน]
this.onEnterFrame = function(){
if(over){
nextFrame();
}else{
prevFrame();
}
}
stop();

Categories: Flash ป้ายกำกับ:
  1. ยังไม่มีความเห็น
  1. No trackbacks yet.

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Connecting to %s

Follow

Get every new post delivered to your Inbox.