This code works perfect if exported or published for flash player 6, if placed into a 8 publish document,doesnt work. This is rotating menu
PHP Code:onClipEvent (load) {
hx = 390/2;
hy = 325/2;
r = 100;
a = 30;
r2 = 50;
function speed(num) {
speedX = -(_root._xmouse-hx)/num;
return speedX;
}
function trans() {
p += speed(100);
range = ((p+180)*Math.PI)/180;
re1 = ((Math.sin(range))*r);
re2 = ((Math.cos(range))*a);
re3 = ((Math.cos(range))*r2);
}
function property() {
trans();
_x = hx+re1;
_y = hy+re3;
_xscale = _yscale=_alpha=re2+70;
this.swapDepths(_alpha);
}
}
onClipEvent (enterFrame) {
property();
}




Reply With Quote