1 Reply Latest reply on May 15, 2009 4:44 PM by kglad

    Dosn't work in player 7 or above Only 6

    diryux

      Hi all

      i used this code to create a slide website bau i have 2 problems

       

      - the code dosn't work at player 7 or any later flash player

      - how can i add buttons to goto a specific pag

       

      The Code----------------------------------------------------

       

      SlideMenu() {

                this._x += (newX-this._x)/7;

                //this._y += (newY-this._y)/7;

           }

       

           WindowIN.Contents.onEnterFrame = SlideMenu;

           newX = 0;

           newY = 0;

       

      PageTotal = 5;

       

      CounterDisplay = 1;

       

      Forward.onPress = function() {

           CounterNumber++;

           XNumber++;

           if (CounterNumber>PageTotal-1){

                CounterNumber = 0;

                XNumber = 0;

                YNumber = 0;

           }

           CounterDisplay = CounterNumber+1;

           if (XNumber>9) {

           XNumber = 0;

           YNumber++; }

           newX = -XNumber*294;

           newY = -YNumber*50;

           };

       

       

      Back.onPress = function() {

           CounterNumber--;

           XNumber--;

           if (CounterNumber<0) {

                CounterNumber = PageTotal-1;

                XNumber = 9;

                YNumber = 9;

           } CounterDisplay = CounterNumber+1;

           if (XNumber<0) {

                XNumber = 9;

                YNumber--;

           }

           newX = -XNumber*294;

           newY = -YNumber*50;

           };

       

      Thanks in advance