ไม่มีหมวดหมู่

download font

ดาวน์โหลดฟอนต์ download font

download icon

ดาวน์โหลด ไอค่อน จากสะดุ้ง

download template

ดาวน์โหลด เทมเพลตเว็บต่างๆ

Download Vector

ดาวน์โหลดภาพเว็กเตอร์ จากสะดุ้ง

ของเสริม photoshop

brush style patterns

Home » เทคนิค flash cs

เทคนิคการทำ flash cs ด้วย Action script เอฟเฟคเมาส์สวยๆ

Submitted by on วันพฤหัส, 31 กรกฎาคม 200844 Comments


คำค้นหา: , , , ,

ลองเอาเมาส์ลากผ่าน baground ดูสิครับ ถ้าสนใจก็เข้ามาดูวิธีทำได้เลยครับ ง่ายมากขอบอก

1.import รูปพื้นหลังที่ต้องการเข้ามา file > Import > Import to stage (Shortcut key: Ctrl+R)  แล้วกำหนด  frame rate ให้เป็น 44
2.เปลี่ยนชื่อ layer1 ให้เป็น background
3.สร้างเลเยอร์มาใหม่ ชื่อ star แล้ว import รูปดาวเข้ามา

action flash3 เทคนิคการทำ flash cs ด้วย Action script เอฟเฟคเมาส์สวยๆ

4.กด F8 เพื่อ conver to symbol ในเลเยอร์ stars

action flash4 เทคนิคการทำ flash cs ด้วย Action script เอฟเฟคเมาส์สวยๆ

5. ดูที่ Properties Panel   Instance name ให้เลือกMovie Clip และใส่ “star_mc”. ตามรูปด้านล่าง

action flash5 เทคนิคการทำ flash cs ด้วย Action script เอฟเฟคเมาส์สวยๆ

6.สร้างเลเยอร์ใหม่มาอีกหนึ่งเลเยอร์ ชือ action ให้อยู่เหนือ เลเยอร์ stars

action flash6 เทคนิคการทำ flash cs ด้วย Action script เอฟเฟคเมาส์สวยๆ

7.เลือกใช้เครื่องมือ Selection Tool (V) ที่เฟรมแรกในเลเยอร์ action แล้วกด F9
8. นำสคิปต์ด้านล่างไปใส่

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
stop();
import mx.transitions.Tween;
import mx.transitions.easing.*;
star_mc._visible = false;
var i:Number = 1;
var total:Number = 1000;
var effect_duration:Number = 1.4;
 
onMouseMove = function()
{
var fm = star_mc.duplicateMovieClip("fm" + i, i );
fm.gotoAndStop( random(fm._totalframes) + 1 );
position_x = _xmouse + random(100) - 50;
position_y = _ymouse + random(100) - 50;
 
new Tween(fm, "_xscale", Strong.easeOut, 60, 30, effect_duration, true);
new Tween(fm, "_yscale", Strong.easeOut, 60, 30, effect_duration, true);
new Tween(fm, "_alpha", Strong.easeInOut, 100, 0, effect_duration, true);
new Tween(fm, "_x", Strong.easeOut, _xmouse, position_x, effect_duration, true);
fm_tween = new Tween(fm, "_y", Strong.easeOut, _ymouse, position_y, effect_duration, true);
 
fm_tween.onMotionFinished = function()
{
removeMovieClip(fm);
}
if(i >= total)
{
i = 1;
}
i++;
}
var fm_menu:ContextMenu = new ContextMenu();
fm_menu.hideBuiltInItems(); _root.menu = fm_menu;
var item:ContextMenuItem = new ContextMenuItem("จากสะดุ้ง.คอม", sadung);
fm_menu.customItems[0] = item;
function sadung() { getURL("<a href="http://www.sadung.com">http://www.sadung.com</a>"); }

สุดท้ายกด CTRL+ENTER ดูผลคับ

ดาวน์โหลดไฟล์ตัวอย่างที่นี่คับ

>>> DOWNLOAD FILE FLA

<<< google Plus (กูเกิ้ล พลัส)ซัดที่นี่


Related Posts

คุณอาจจะสนใจ บทความต่อไปนี้(มั้ง)

  สามารถนำบทความไปเผยแพร่ต่อได้ แต่ต้องทำ ลิงค์กับมาที่บทความนั้นๆด้วยนะครับ หากไม่ทำตามจะมีความผิดทางกฏหมายตาม พรบ. เกี่ยวกับลิขสิทธิ์ นะครับ


44 Comments »

  • bon said:

    ตอนเปิดโปรแกรมครั้งแรก เลือกอะไรครับ
    http://tinypic.info/files/ktsad6yvlbppsrykys76.jpg

    Reply to this commentตอบกลับความเห็นนี้
  • ฟฟฟ said:

    สวยจัง ขอบคุณนะค่ะ อิๆเสร็จโจร 500 และ อิๆ

    Reply to this commentตอบกลับความเห็นนี้
  • *-* said:

    actionscript 3.0 คับ

    Reply to this commentตอบกลับความเห็นนี้
  • thank said:

    ใจจ้า

    Reply to this commentตอบกลับความเห็นนี้
  • mashiplay said:

    script 2.0 ทำได้ไหมคับ ?

    Reply to this commentตอบกลับความเห็นนี้
  • โฟกัส said:

    รบกวนทีคะ เริ่ม copy ตั้งแต่ตรงไหน ถึงตรงไหน ตอบมาในเมล หรือ ในคอมเม้นท์ก้อได้คะ
    เห็นสวยดีอยากทำได้บั้งคะ ขอบคุณล่วงหน้าคะ

    Reply to this commentตอบกลับความเห็นนี้
  • admin said:

    script 2.0 ได้คับ
    copy ตามตัวอย่างเลยคับ

    Reply to this commentตอบกลับความเห็นนี้
  • kj2002 said:

    ใช้ Flash CS3 ลองทำดูแล้ว Error ขึ้นเต็มเลยครับ ไม่ทราบว่า Scipt มันมีอะไรผิดเปล่าครับ ขอตัวอย่างไฟล์มาสำรวจดูหน่อยได้มั๊ยครับ

    Reply to this commentตอบกลับความเห็นนี้
  • แมวสะดุ้ง (author) said:

    จัดไปคับ ดาวน์โหลดตัวอย่างไปดูคับผมตามลิ้งเลยครับ

    Reply to this commentตอบกลับความเห็นนี้
  • Rusadakorn said:

    ขอตัวอย่างหน่อยๆ

    Reply to this commentตอบกลับความเห็นนี้
  • jjj said:

    ตัวอย่างก็อยู่ ข้างบนนิครับ
    ” ดาวน์โหลดไฟล์ตัวอย่างที่นี่คับ >>> DOWNLOAD FILE FLA” บันทัดสุดท้ายเลย

    Reply to this commentตอบกลับความเห็นนี้
  • Rusadakorn said:

    ขอตัวอย่างวิธีทำอะที่เป้นไฟล์ .fla อะครับขอหน่อยนะทำไม่เป็นลองแล้ว

    Reply to this commentตอบกลับความเห็นนี้
  • แมวสะดุ้ง (author) said:

    โอเคคับ อัพให้ใหม่แล้วนะครับ ที่ทำไม่ได้เพราะว่าเครื่องหมายเวลาโพสไปมันเปลี่ยนเองจาก ” เป็น ” เลยเกิด error คับ หากไม่เข้าใจลองดูจากตัวอย่างที่ให้ไปคับ

    Reply to this commentตอบกลับความเห็นนี้
  • Rusadakorn said:

    ขอบใจจ้าได้ละครับ สวยมากๆเลย

    Reply to this commentตอบกลับความเห็นนี้
  • น้องใหม่สะดุ้ง said:

    โอ้…โว้…ยอดมากเลยครับ

    Reply to this commentตอบกลับความเห็นนี้
  • กระบองเพชร said:

    สุดยอดเลยครับ
    เคยเห็นแต่ไม่คิดว่า จะมีคนใจดีเอามาแจกกัน อย่างนี้

    ขอบคุณครับ
    กระบองเพชร

    Reply to this commentตอบกลับความเห็นนี้
  • nakido said:

    ขอบคุณ…… อีกครั้งคะแวะมาโหลด พร้อมศึกษาคะ…….

    Reply to this commentตอบกลับความเห็นนี้
  • tom said:

    สวยมากเลยครับ

    แต่ไม่ทราบว่า ใช้กับ Flash 8 ได้ป่าวครับ

    Reply to this commentตอบกลับความเห็นนี้
  • tom said:

    ใครเคยเห็น รูปที่เป็นลูกโลกหมุนๆ

    เขาใช้ Flash ทำป่าวครับ

    ใครรู้บ้าง ว่าทำไง

    ช่วยแนะนำข้าน้อยด้วยยย

    Reply to this commentตอบกลับความเห็นนี้
  • แมวสะดุ้ง (author) said:

    ไม่แน่ใจนะครับ ถ้าผมทำ ต้องสร้างรูป โลก ที่มี 3 มิติ มากก่อน แล้วค่อยมาทำให้มันหมุน อีกทีนึงคับ

    Reply to this commentตอบกลับความเห็นนี้
  • bee said:

    รบกวนส่งไฟล์ที่สร้างสำเร็จแล้วมาให้หน่อยนะค่ะ เพราะลองทำแล้วมัน error ค่ะ
    ขอบคุณค่ะ ส่งเข้าเมล์ก็ได้ค่ะ

    Reply to this commentตอบกลับความเห็นนี้
  • แมวสะดุ้ง (author) said:

    DOWNLOAD FILE FLA ด้านล่างบทความ อะครับ โหลดเอาคับ

    Reply to this commentตอบกลับความเห็นนี้
  • hookghost said:

    ขอบคุณมากครับ ได้ความรู้เยอะเลย
    ผมนำไปใส่ค่าBlurแล้วเปลี่ยนปุ่มดาวเป็นกลมๆ จะได้ลักษณะเป็นควันวิ่งตามเม้าส์อะครับ ^ ^

    Reply to this commentตอบกลับความเห็นนี้
  • Fa said:

    thank very much

    Reply to this commentตอบกลับความเห็นนี้
  • Songwut said:

    ถ้าผมมีไฟล์ FLA อยู่แล้ว แต่ทำม่ายมองไม่เห็น Script ที่เหลือเลยครับ เห็นเฉพาะ stop(); เพียงอย่างเดียว อย่างงี้ผมต้องทำอย่างไงครับ เพราะผมจะต้องไปเปลี่ยน URL ของไฟล์ดังกล่าวครับ ช่วยด้วยนะครับ

    Reply to this commentตอบกลับความเห็นนี้
  • Paman said:

    สวยอ่ะแต่ทำตามไม่ได้ครับ แง ๆๆๆๆ ตัวอย่างไม่มีให้โหลดแล้วอ่ะ

    Reply to this commentตอบกลับความเห็นนี้
  • Paman said:

    มันบอกสคริป error

    Reply to this commentตอบกลับความเห็นนี้
  • Paman said:

    ถ้าดีกว่านี้นะครัอธิบายสคริปใฟ้ด้วยก็ดีอ่ะผมไม่ค่อยเก่ง

    Reply to this commentตอบกลับความเห็นนี้
  • ยุ said:

    หารูปดาวไม่ได้

    Reply to this commentตอบกลับความเห็นนี้
  • แมวสะดุ้ง (author) said:

    ลองเอารูปอะไรมาแทนก็ได้เล็กๆหน่อยครับ หรือจะลองเป็นรูปหัวใจก็เท่ห์ไปอีกแบบ นึงครับ..

    Reply to this commentตอบกลับความเห็นนี้
  • ยุ said:

    ทำไม่ได้

    Reply to this commentตอบกลับความเห็นนี้
  • vary said:

    สวยดีค่ะ

    Reply to this commentตอบกลับความเห็นนี้
  • puy said:

    ขอบคุณนะค่ะ ได้ความรู้จิงๆเลยค่ะ

    Reply to this commentตอบกลับความเห็นนี้
  • bank said:

    รูปดาว อยู่ไหนอ่ะ

    Reply to this commentตอบกลับความเห็นนี้
  • แมวสะดุ้ง (author) said:

    อ่อ ไม่ไ้ด้เอามาลงให้เลยครับ สงสัยลืมลอง หารูปอื่นแทนเลยครับ

    Reply to this commentตอบกลับความเห็นนี้
  • ยุ said:

    ลองก๊อบโค๊ด จากไฟล์ตัวอย่าง แล้ว เออเรอร์บานเลย ค่ะ

    Reply to this commentตอบกลับความเห็นนี้
  • แมวสะดุ้ง (author) said:

    ลองดาวน์โหลดตัวอย่างไปดูครับ

    Reply to this commentตอบกลับความเห็นนี้
  • amigo said:

    รบกวนหน่อยค่ะ ใครรู้ช่วยบอกทีว่า ภาษาที่เขียน ขั้นตอนการเขียน กลุ่มคำสั่ง และคำสั่งพื้นฐานactionscript อะ มันมีอย่างไรบ้าง รบกวนช่วยส่ง ตาม e-mail นี้เลยนะค่ะ amigo_bang@hotmail.com ขอบคุนล่วงหน้าค่ะ

    Reply to this commentตอบกลับความเห็นนี้
  • gootooyoo.com said:

    good web site.

    Reply to this commentตอบกลับความเห็นนี้
  • o_o said:

    ขอบคุณมากๆๆๆคับ

    Reply to this commentตอบกลับความเห็นนี้
  • Beer said:

    ทำตามหมดแล้วอะคะ แต่เหมือนคริปจะไม่ใช่หรือป่าวคะเพราะเห็นมีภาษาไทยแล้วก็ลิงค์ของเวบ จะต้องลบอะไรออกไหมคะ งง

    Reply to this commentตอบกลับความเห็นนี้
  • Saru said:

    ไฟล์ดาวน์โหลดไม่ได้แล้วอ่ะคะ T^T

    Reply to this commentตอบกลับความเห็นนี้
  • motorcycle tech school said:

    Heya i’m for the primary time here. I came across this board and I in finding It truly helpful & it helped me out much. I am hoping to present something again and aid others like you aided me.

    Reply to this commentตอบกลับความเห็นนี้
  • amp said:

    เออเร่อเหมือนกันค่ะ

    Reply to this commentตอบกลับความเห็นนี้

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can add images to your comment by clicking here.