Rotate a movie clip with Actionscript 2.

Posted on 2011-04-20
Last Modified: 2012-05-11
Hi all, I am creating a some Flash Animation using actionScript2,

Basically I have three buttons (movie clips) say button1_mc, button2_mc, and button3_mc.

I have three cogs (movie clips) cogg1_mc, cogg2_mc and cogg_3mc.

What I need is some smooth rotation animation on the coggs when I roll over, roll out on the button mc's.

I need cogg 1 to rotate clockwise, cogg2 anti-clockwise and cogg three clockwise. But I want the rotation to start slowly then gradually speed up to a constant speed, then when you roll off the button they gradually slow down and stop. I want to be able to adust the start and rotation script/speed to my liking.

Any help much apprecitaed.

Question by:DJSharepoint
    LVL 39

    Accepted Solution

    Hi there. i'm assuming you know how to handle the mouse events (roll over etc)
    for the rotation with the slowing down etc, i'd recommend you have a look here
    these are free packages to use, for what you you want have a look at TweenLite - the site is full with examples on how to implement it.
    just make sure you download the AS2 packages.

    LVL 29

    Assisted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    shockwave problems 3 214
    Link puzzle piece images together and change color on hover 2 417
    Flash movie or gif/animation? 3 809
    Flash Converter 8 96
    This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    The goal of the tutorial is to teach the user how to how to record live broadcast.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now