Results 1 to 8 of 8

Thread: Adobe Flash ActionScript 3.0 Libs

  1. #1


    :: Adobe Flash ActionScript 3.0 Libs ::



    Actionscript Physics Engine

    APE (Actionscript Physics Engine) is a free AS3 open source 2D physics engine for use in Flash and Flex, released under the MIT License. APE is written and maintained by Alec Cove.

    features

    CircleParticles
    -fixed or non-fixed
    -variable mass, elasticity, and surface friction

    RectangleParticles
    -rotatable
    -fixed or non-fixed
    -variable mass, elasticity, and surface friction

    WheelParticles
    -traction and angular velocity
    -fixed or non-fixed
    -variable mass, elasticity, and surface friction

    SpringConstraints
    -stiffness
    -collidable or non-collidible
    -collidable constraints have variable width and scale

    Grouping
    -Composite class may contain Particles, and Constraints
    -Group class may contain Particles, Constraints, and Composites

    Collision
    -multisampling
    -static collision tests

    Licensing
    -non restrictive MIT License

    ลองเล่นดูนะครับ !

    DEMO 1 | DEMO 2


    **Hidden Content: To see this hidden content your post count must be 5 or greater.**


    ปล. จะแวะมาเพิ่มเติมเรื่อยๆ นะครับ มีตัวไหนน่าสนใจเด๋วจะมาแบ่ง ลองศึกษาดูนะครับ สำหรับผู้สนใจงาน Flash, ActionScript

  2. #2
    Junior Member
    Join Date
    Oct 2007
    Posts
    0


    น่าสนใจมากตัวนี้

  3. #3


    Tweener

    Tweener (caurina.transitions.Tweener) is a Class used to create tweenings and other transitions via ActionScript code for projects built on the Flash platform. It's released and maintained for these versions:

    * ActionScript 2.0, for Flash 7+ and Flash Lite 2.0+
    * ActionScript 2.0, for Flash 8+
    * ActionSctipt 3.0, for Flash 9+

    Ported versions are also available:

    * haXe version (ported by Baluta Cristian)
    * JavaScript version (ported by Yuichi Tateno)
    * JavaScript version (ported by Michael MacMillan)
    * vvvv version using nodes
    * vvvv version using a native C# dll (faster) (ported by by Rene Westhof)

    In layman's terms, Tweener helps you move things around on the screen using only code, instead of the timeline.

    The general idea of a tweening Class is that dynamic animation and transitions (created by code) are easier to maintain and control, and more stable than animation based on the regular Flash timeline, since you can control it by time rather than by frames.

    Aimed both for designers and advanced developers, the Tweener syntax is created with simplicity of use in mind, while still allowing access to more advanced features. Because of this, it follows a 'one-line' design mentality when creating new tweenings, with no instancing required (as it's a static Class) and a set of optional parameters. Also, there are no initialization methods required by Tweener, other than the mandatory 'import' command.

    Its fluid syntax allows it to be used to tween any numeric property of any object of any class, so it is not tied to specific properties of built-in Classes such as MovieClips or TextFields. This flexibility grants a wider control on how transitions are performed, and makes creating complex sequential transitions on any kind of object easier.

    Small file overhead is also one of the main goals of Tweener - once included on SWF movies, Tweener currently takes 8.8kb (AS2 FL2), 9.2kb (AS2) or 10.4kb (AS3) of the total compiled file size. It can be compiled with the Flash IDE, MTASC, or Flex SDK (even with strict rules on), with no errors or warnings thrown during compilation.

    Tweener is also the spiritual successor to MC Tween. However, it follows ActionScript's more strict OOP rules, and gets rid of the fixed parameter order syntax imposed by MC Tween. As a result, code written with Tweener is a lot more readable even for developers not versed on the Class.

    Development wise, modularity is one of the main aspects of Tweener. The code is built in a way that new features such as transitions and special tweenings can be added (or removed) easily: for example, properties that are only acessible through methods and functions can be tweened by creating and registering new special properties. Expanding the feature set of the original Class can be done on a per-project basis, with no change to the original files.

    From this page, you can download the latest stable (heavily tested) version of Tweener, check out a few examples with source, or read the documentation. There's also a mailing list for Tweener discussion.

    If you prefer, you can also get the very latest versions from Subversion, before they're considered stable and featured on the download list (the changelog is available here). The repository can also be viewed with a web browser.

    And although the project has been started on June 2005, it has only 'gone public' very recently, so in most accounts, Tweener's still on its infancy: there's still some work to be done, more features to be added, optimizations to be performed, more examples to be created, the documentation is lacking, and the discussion list still has low traffic.

    However, a new stable version is released every 20 days (on average), there are a lot of nice features on the queue, and the engine's flexibility already allows for a wide range of different uses. The future is looking bright.

    ตัวนี้ผมใช้งานอยู่ครับใช้งานได้ดีทีเดียว มีเอฟเฟคหลายตัวน่าใช้งาน ลองค้นดูนะครับ Libs ตัวนี้เพื่อความสะดวกจริงๆ ไปเรียกคลาสมาใช้งานได้เลย ไม่ต้องมานั่งเขียนคำสั่งเอง เพื่อทำเอฟเฟค หรือลูกเล่นต่างๆ มีทั้งของ AS2 AS3 เลยครับ AS Developer ไม่ควรพลาด

    **Hidden Content: To see this hidden content your post count must be 5 or greater.**

  4. #4
    Senior Member
    Join Date
    Jul 2007
    Posts
    122


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

  5. #5


    edit : ข้อความตัวสีแดงขอแก้ไขนะครับ ผมสับสนจำผิดกับอีกตัวหนึ่ง Effect ตัวนี้ขื่อ Tweener มีคำสั่งเดียว แต่มีความหลากหลายในการใช้งาน เดี๋ยวผมจะเอาวิธีการใช้งานมาแปะให้ครับ พร้อมไฟล์ตัวอย่าง แต่พอดีช่วงนี้งานมันรัดตัว เลยยังไม่ได้ทำตัวอย่างให้ครับ :P

  6. #6


    การใช้งานขั้นพื้นฐานของ Tweener

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

    edit : เนื่องจากผมไม่ใช่โปรแกรมเมอร์(จะอธิบายไงดี)ไม่ได้เรียนมาว่างั้น
    จึงอาจทำให้การจัดรูปแบบ อาจทำให้เข้าใจยาก ต้องขออภัยไว้ล่วงหน้านะครับ

    **Hidden Content: To see this hidden content your post count must be 5 or greater.**

  7. #7


    การใช้งานขั้นพื้นฐานของ Tweener

    มากันต่อกับ Libs ตัวเดิม แต่เป็นการใช้งานที่หลากหลายขึ้น
    เนื่องจากงานค่อนข้างยุ่งเลย ทิ้งไว้นานกว่าจะมาต่อ แต่ผมก็ไม่ทิ้ง
    ห้องนี้หลอกนะ มีอะไรใหม่ๆ แปลกๆ ก็จะเข้ามาแปะไว้ให้
    คราวนี้ก็ต้องขออภัยไว้ก่อนเนื่องจากเรื่องเดิมคือ ไม่มีเวลา
    เลยขอแปะตัวงานทดสอบที่ผมมีอยู่ (โหลดมานั่นเอง)
    ให้ดูกัน แล้วลองไปต่อยอดดูครับ เป็นการใช้ Tweener
    สั่งที่ Button (ปุ่ม) มีอยู่ 4 แบบ แต่ไฟล์งานนั้น
    เค้าเขียนในโปรแกรมอโดบีแฟลช ถ้าจะนำมาใช้งาน
    ในโปรแกรม AS Editor อื่นๆ เช่น Flash Develop
    ก็ต้องมีการดัดแปลงกันเล็กน้อย (เดี๋ยวจะมาแปะทีหลังครับ)

    ตัวอย่าง
    http://video.google.com/googleplayer.swf?d...187345393848829
    ขออภัยตัวอย่างไม่ค่อยชัด แนะนำลองโหลดงานไปดูจะดีกว่า เหอๆ

    **Hidden Content: To see this hidden content your post count must be 5 or greater.**

  8. #8


    3D Physics Engine : WOW-Engine (Wow Physics Engine SVN)



    Simple Wow Engine Demo

    เห็นว่าน่าสนใจเลยเอามาฝากครับ ยอดเยี่ยมไปเลยทีเดียว ดูภาพดูโค๊ดอาจจะยังไม่เข้าใจ

    ก็ลองตามลิ้งค์ไปดูเอานะครับ ผมยังไม่ได้ลองเขียนตามดูนะครับ



    /**

    * v0.3 code by dehash.com 2008

    * Released as open source under the BSD License

    * http://www.opensource.org/licenses/bsd-license.php

    */

    package com.dehash.pv3d.examples.physics {

    import org.papervision3d.materials.WireframeMaterial;

    import org.papervision3d.materials.utils.MaterialsList;

    import org.papervision3d.objects.DisplayObject3D;

    import org.papervision3d.objects.primitives.Sphere;

    import org.papervision3d.objects.primitives.Cube;

    import org.papervision3d.view.BasicView;

    import fr.seraf.wow.primitive.WSphere;

    import fr.seraf.wow.core.WOWEngine;

    import fr.seraf.wow.primitive.WBoundArea;

    import fr.seraf.wow.core.data.WVector;

    import org.papervision3d.view.stats.StatsView;

    import flash.events.Event;

    [SWF(width="800", height="600", backgroundColor="0x000000")]

    public class WowDemo extends BasicView {

    private var wow:WOWEngine;

    private var wowObjects:Array;

    private var pv3DObjects:Array;

    private var worldisplayObject3D;

    public function WowDemo(viewportWidth:Number = 800, viewportHeight:Number = 600,

    scaleToStage:Boolean=true, interactive:Boolean=false, cameraType:String="CAMERA3D")

    {

    super(viewportWidth, viewportHeight, scaleToStage, interactive, cameraType);

    var stats:StatsView = new StatsView(renderer);

    stage.addChild(stats);

    world = new DisplayObject3D();

    pv3DObjects = new Array();

    for(var i:uint = 0; i <5; i++){

    var sphere:Sphere = new Sphere();

    world.addChild(sphere);

    pv3DObjects.push(sphere);

    }

    scene.addChild(world);

    camera.target = world;

    camera.zoom = 50;

    wow= new WOWEngine(0.5);

    wow.collisionResponseMode = wow.STANDARD;

    var bound:WBoundArea = new WBoundArea(800,600,600);

    bound.setPosition(0, 0, 0);

    wow.setBoundArea(bound);

    wowObjects = new Array();

    for (var i:uint = 0; i <5; i++){

    var wSphere:WSphere = new WSphere(0, 0, 0, 5, false, 0.005, 0.9, 0.01);

    wSphere.px = rand(100, 50);

    wSphere.py = rand(100, 50);

    wSphere.pz = rand(100, 50);

    wow.addParticle(wSphere);

    wSphere.addForce( new WVector( rand(1,4), rand(1,4), rand(1,4) ) ) ;

    wowObjects.push(wSphere);

    }

    var materialsList:MaterialsList = new MaterialsList();

    materialsList.addMaterial(new WireframeMaterial(0x333333), "all");

    scene.addChild(new Cube(materialsList, 1000, 800, 800));

    startRendering();

    }

    protected override function onRenderTick(event:Event = null):void {

    var rotY: Number = (mouseY-(stage.stageHeight/2))/(stage.height/2)*(1600);

    var rotX: Number = (mouseX-(stage.stageWidth/2))/(stage.width/2)*(-1600);

    camera.x= camera.x+(rotX-camera.x)/5;

    camera.y = camera.y + (rotY - camera.y) / 5

    wow.step();

    for(var i:uint = 0; i <pv3DObjects.length; i++) {

    pv3DObjects[i].x = wowObjects[i].px

    pv3DObjects[i].y = wowObjects[i].py

    pv3DObjects[i].z = wowObjects[i].pz

    }

    renderer.renderScene(scene, camera, viewport)

    }

    private function rand(max:Number, min:Number):Number {

    return Math.random()*(max-min) + min;

    }

    }

    }

    [/b]

    **Hidden Content: To see this hidden content your post count must be 5 or greater.**




Similar Threads

  1. เว็บสอน ActionScript 3.0 Flash CS3 + CS4
    By asylu3 in forum Flash & Multimedia
    Replies: 1
    Last Post: 18-06-2009, 08:06 PM
  2. VTC Adobe Flash CS4
    By SheLLniX in forum E-Book, Video หรือบทความทั่วไปด้าน Computer
    Replies: 0
    Last Post: 21-04-2009, 10:19 AM
  3. Replies: 2
    Last Post: 25-12-2008, 12:02 AM
  4. ~Foundation.Actionscript.3.0.With.Flash.CS3.And.Flex~
    By hooligan in forum E-Book, Video หรือบทความทั่วไปด้าน Computer
    Replies: 0
    Last Post: 17-04-2008, 01:30 PM
  5. Replies: 2
    Last Post: 08-09-2007, 01:35 AM

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
  •