# Movie to rotate whitout tween

**URL:** <https://forum.kirupa.com/t/movie-to-rotate-whitout-tween/28440>\
**Category:** Uncategorized\
**Created:** [August 13, 2003, 7:45pm UTC](https://forum.kirupa.com/t/movie-to-rotate-whitout-tween/28440 "2003-08-13T19:45:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tast](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@tast](https://forum.kirupa.com/u/tast)\
**Post date:** [August 13, 2003, 7:45pm UTC](https://forum.kirupa.com/t/movie-to-rotate-whitout-tween/28440/1 "2003-08-13T19:45:43Z")

</div>

I have had alot of problems, with having my Flash page look nice on a older computer.  
I find out that the problem is all the “tweens” that i have on my page, it wont run smooth whit them.

So now i may have found another solution.  
The inly problem is that i´m not that bright, that i can make this code myself.  
This code is for 1 picture to turn,- can anybody show me the best way to make the same pic. rotate 6 different places on the site(i want to place them in specific places)

Here is the code:

// declare and set initial variables and properties  
with (PlasmaRotere) {  
initx = \_x;  
inity = \_y;  
top = \_y-97;  
bottom = \_y+97;  
left = \_x-97;  
right = \_x+97;  
}  
//  
\_root.onEnterFrame = function() {  
with (PlasmaRotere) {  
// make circle continuously rotate  
\_rotation += 10;  
//  
// calculate distance from starting point  
delta\_x = \_x-initx;  
delta\_y = \_y-Inity;  
distance = Math.sqrt((delta\_x_delta\_x)+(delta\_y_delta\_y));  
}  
//  
// calculate the angle from the starting point in radians  
radians = Math.atan2(delta\_y, delta\_x);  
if (delta\_y\<0) {  
radians += (2\*Math.PI);  
}  
//  
// convert radians to degrees  
degrees = Math.floor(radians/(Math.PI/180));  
};

---

<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:** [August 13, 2003, 8:03pm UTC](https://forum.kirupa.com/t/movie-to-rotate-whitout-tween/28440/2 "2003-08-13T20:03:21Z")

</div>

Hei, i´m smarter than i thoard 😉

\_root.onEnterFrame = function() {  
with (PlasmaRotere) {  
\_rotation += 10;  
}  
with (PlasmaRotere2) {  
\_rotation += 10;  
}  
with (PlasmaRotere3) {  
\_rotation += 10;  
} with (PlasmaRotere4) {  
\_rotation += 10;  
}  
}
