hi
i have this rotating meny, basically, a button, which moves and scales to give the impression of rotation… it works perfectly in flash 6, but does not work in flash 8… the button is just inserted on stage and doesn’t move.
code
onClipEvent (load) {
startx1 = 120;
starty = 210;
// linkage name, new name, level
this.attachMovie("1", "one", 1);
}
onClipEvent (enterFrame){
if (!_root.Off) {
//varibales for item 1
radius = 100;
perspective = 300;
anglespeed = Math.PI/75;
tilt = 5;
//movement of item 1
for (i=1; i<=1; i++) {
one.angle += anglespeed;
a = Math.sin(one.angle)*radius;
b = Math.cos(one.angle)*radius;
scalar = perspective/(b+perspective);
one._x = a*scalar+startx1;
one._y = b*scalar/tilt+starty;
one._xscale = scalar*100;
one._yscale = scalar*100;
one._alpha = (200-b)/2;
}
}
}