Jump to content
Search Community

How can I get this effect with Tween Max

vdubplate test
Moderator Tag

Recommended Posts

I'm trying to get a constant rotation from Tween max on rollover. I'm able to do it with actionscript but I am going to need to do this several times for different objects so I don't want to use this code.

Can someone take a look at my code and point me n the right direction?

 

// Add Listener to the Rotate Button

mc2_mc.addEventListener(MouseEvent.MOUSE_OVER, rotateButtonOver);

 

function rotateButtonOver(evt:MouseEvent):void {

// Add ENTER_FRAME Event Listener to the stage

addEventListener(Event.ENTER_FRAME, startRotate);

}

 

function startRotate(evt:Event):void {

// Call function rotateSquare

rotateSquare();

}

 

function rotateSquare():void {

// Rotate the MovieClip

mc2_mc.rotation += 10;

 

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...