# Rotation of two different images in flash

**URL:** <https://forum.kirupa.com/t/rotation-of-two-different-images-in-flash/516>\
**Category:** Uncategorized\
**Created:** [July 20, 2002, 7:02am UTC](https://forum.kirupa.com/t/rotation-of-two-different-images-in-flash/516 "2002-07-20T07:02:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uma](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@Uma](https://forum.kirupa.com/u/Uma)\
**Post date:** [July 20, 2002, 7:02am UTC](https://forum.kirupa.com/t/rotation-of-two-different-images-in-flash/516/1 "2002-07-20T07:02:38Z")

</div>

Sir,Madam,

```
  Now iam doing project in flash.I need a help from u.I want the two different pictures to be rotated as one picture.ie.one at the front and one at the back.how can i do this.
```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 20, 2002, 7:13am UTC](https://forum.kirupa.com/t/rotation-of-two-different-images-in-flash/516/2 "2002-07-20T07:13:04Z")

</div>

Crank up the FPS (Frames Per Second) to about 25 or higher and then turn each picture into a movie clip and use this script on the movie clip that you want to go clockwise:

```auto
onClipEvent(enterFrame) {
     this._rotation += 5;
}

```

And put this code on the movie clip that you want to go counter-clockwise:

```auto
onClipEvent(enterFrame) {
     this._rotation -= 5;
}

```

You can change the 5 to whatever you want its just making the movie clip rotate that many degrees every frame so the higher the number the faster the frames…the higher the frame rate (FPS) the smoother the animation will be!

Good Luck!
