Results 1 to 3 of 3

Thread: srcollbar ครับ

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Location
    Thailand
    Posts
    0


    srcollbar ครับ

    ซอดโค้ก โหลดอิ้ง

    เอาละโพส swf ไม่ได้กะ อธิบายโค้ดหน่อยละกัน
    [src]
    //but ตือตัวกดที่สีชมพูเข้มๆ
    //bar คือสีชมพูอ่อนๆ
    but._y=bar._y;//ทำหั้ย but กับ bar หัวมันอยู่ตำแหน่งเท่ากัน
    mcxx_y=_root.mcxx._y;//สร้างตัวแปร mcxx_y
    but.onPress=function(){
    but.startDrag(false,0,bar._y,0,(bar._y+bar._height)-but._height);//กำหนดระยะที่เราสามารถเลื่อน but ได้
    _root.createEmptyMovieClip("barcontrol",0);//สร้าง mc barcontrol ขึ้นมา
    _root.barcontrol.onEnterFrame=function(){
    _root.mcxx._y=-((but._y/(bar._x+bar._height-but._height))*(_root.mcxx._height-bar._height+but._height))+(mcxx_y);//นี่สำคัญ อธิบายยาก ดู๔เอาเองนะ แต่สำคัญมากๆๆ ขอบอก
    trace(but._y/(bar._x+bar._height-but._height));//เอาไว้ตรวจสอบค่า ม่ายมีไรมาก มีอยู่ในไฟล์กั้บ (มีค่าตั้งแต่ 0-1)
    }
    }

    but.onRelease=function(){
    but.stopDrag();//ยกเลิกการลาก but
    _root.barcontrol.removeMovieClip();//ลบ mc barontrol ทิ้งปัย
    }
    [/src]

    มีเรื่องฝากพี่ admin 2 อยางฮะ
    1 เรื่อง quote มันเป็ฯตัวเอียงอ่านยากฮะ จะอธิบายโค้ดสักหน่อย อ่านยาก เลย ทำแบบธรรมดา
    2 swf โพสไม่ได้ฮะ T-T

    ไปเระ วุ่บๆ

  2. #2
    Junior Member
    Join Date
    Jan 2004
    Location
    Thailand
    Posts
    0


    Re: srcollbar กั้บ

    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="664" height="379">
    <param name="movie" value="http://seri.kmutt.ac.th/cs02/www/maxdezign/tutor/scrollbar2.swf">
    <param name="quality" value="high">
    <embed src="http://seri.kmutt.ac.th/cs02/www/maxdezign/tutor/scrollbar2.swf" width="664" height="379" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>

  3. #3
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    Re: srcollbar กั้บ

    เวลา post พวก sourcecode ให้ใช้ [src].... [/src] แทนนะครับ

Similar Threads

  1. เนื้อหาภาษาซี ครับ
    By MunkeyDluffe in forum Hacking/Security News (ภาษาไทย)
    Replies: 0
    Last Post: 20-11-2009, 12:46 PM
  2. Replies: 1
    Last Post: 14-05-2009, 09:47 PM
  3. Replies: 2
    Last Post: 20-02-2009, 07:05 PM
  4. Replies: 0
    Last Post: 29-01-2008, 05:33 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •