PDA

View Full Version : about _rotation



paopei
July 28th, 2002, 10:55 PM
i have a problem again, this is about method _rotation.
i have attached a script as following in certain movie clip.

onClipEvent(enterFrame){
myMovieClip._rotation = 50;
}

when i test my movie, myMovieClip doesn't rotate as i expected. so how is the solution ? please help me.....:ninja:

Iammontoya
July 28th, 2002, 11:10 PM
I think you want..



onClipEvent(enterFrame){
myMovieClip._rotation = myMovieClip._rotation +5;
}

KarenInPA
July 29th, 2002, 08:21 AM
Yep. It also depends on where myMovieClip resides.

If myMovieClip is the clip you're trying to rotate, try:

...
this._rotation = this._rotation +5;
...

If myMovieClip is a different clip, you'll need the full path to it. Assuming it's on the main timeline:

...
_root.myMovieClip._rotation = _root.myMovieClip._rotation + 5;
...

-Karen