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_xdelta_x)+(delta_ydelta_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));
};