A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how do I make a spining wheel?

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    1

    Question how do I make a spining wheel?

    i'm trying to make a car, and i can't get the wheels to spin. please help.

  2. #2
    Member
    Join Date
    Oct 2010
    Posts
    55
    I personally use caurina whenever I need to do a motion tween.

    in this case, you would put the 'wheel' movie clip inside the 'car' movie clip..

    Code:
    import caurina.transitions.*
    import caurina.transitions.properties.ColorShortcuts;
    ColorShortcuts.init();
    import caurina.transitions.properties.DisplayShortcuts;
    DisplayShortcuts.init();
    
    Tweener.addTween(car.wheel, {rotation:430, time:3});

    adjust the 'rotation' and 'time' values so it becomes the way you want it to.

    there should be an simpler way to do it, but this will do.

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