# Rotating menu - problem with flash 8

**URL:** <https://forum.kirupa.com/t/rotating-menu-problem-with-flash-8/209178>\
**Category:** Uncategorized\
**Created:** [December 6, 2006, 4:47pm UTC](https://forum.kirupa.com/t/rotating-menu-problem-with-flash-8/209178 "2006-12-06T16:47:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zero\_one1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zero_one1/32/948_2.png) [@zero\_one1](https://forum.kirupa.com/u/zero_one1)\
**Post date:** [December 6, 2006, 4:47pm UTC](https://forum.kirupa.com/t/rotating-menu-problem-with-flash-8/209178/1 "2006-12-06T16:47:15Z")

</div>

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

```auto
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;
        }
   }

}

```
