Skip to main content
Known Participant
January 14, 2010
Answered

AS3 horizontal rotation- how to?

  • January 14, 2010
  • 1 reply
  • 1324 views

Hello:

I have this movie clip on stage (dsp), which I would like to keep rotating horizontally. With the following script it rotates in circular mode from left to right, but not horizontally (left to right or vice versa). How do I rotate it horizontally?

dsp.addEventListener(Event.ENTER_FRAME, rotateHorizontal);
function rotateHorizontal(event:Event): void
{
dsp.rotation += 0.5;

}

Thanks in advance

German

This topic has been closed for replies.
Correct answer kglad

then you probably want to use the rotationY property.  there are also rotationX and rotationZ properties you should check.

1 reply

kglad
Community Expert
January 14, 2010

are you using flash cs4 and publishing for fp 10?

german01Author
Known Participant
January 14, 2010

Kglad:

Yes, I'm using CS4 and publishing for flash player 10.

German

kglad
kgladCorrect answer
Community Expert
January 14, 2010

then you probably want to use the rotationY property.  there are also rotationX and rotationZ properties you should check.