A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How to make a Circular Motion by using action script ???

  1. #1
    Think about yourself
    Join Date
    Mar 2003
    Posts
    48

    How to make a Circular Motion by using action script ???

    Hello everyone,

    There is a simple question but a bit confusing one for me.
    I want to make a circular motion of any round or arbitrary shaped object by using action script. Should i use a for loop, and if i use it what will be the syntax of it?
    !!!Practice Makes a Man Perfect!!!

  2. #2
    I have an icon and U dont! johnwun's Avatar
    Join Date
    Nov 2000
    Location
    Santa Cruz, CA
    Posts
    258
    you mean like:

    Code:
    onClipEvent (enterFrame) {
    	this._rotation +=_parent.myRot;
    }
    or do you mean orbiting a point?
    [a.fun>b.fun ? trace("do(a)") : trace("do(b)");

    wundes.com

  3. #3
    I have an icon and U dont! johnwun's Avatar
    Join Date
    Nov 2000
    Location
    Santa Cruz, CA
    Posts
    258
    I have a more advanced example here:

    rotation tutorial

    hope it helps...[
    [a.fun>b.fun ? trace("do(a)") : trace("do(b)");

    wundes.com

  4. #4
    Junior Member
    Join Date
    Mar 2010
    Posts
    2

    Tutorial For Circular Motion in AS3

    Here is a tutorial I put together for just this problem:

    http://whit.info/blog/2010/03/04/cir...-in-flash-as3/

    Good luck!

    Whit

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center