1 Reply Latest reply on Nov 20, 2015 5:53 AM by kglad

    Issue with making slideshow on Flash CS6

    a1ex580

      I followed an older youtube video explaining the process. It was a flash slideshow using buttons with pictures on different frames. Code below:

      stop()

       

       

      Back1.addEventListener(MouseEvent.CLICK,backward);

      Foward1.addEventListener(MouseEvent.CLICK,Foward);

       

       

      function foward(event:MouseEvent){

        if(this.currentFrame == this.totalFrames){

        gotoAndStop(1);

        }

        else{

        nextFrame();

        }

      }

       

       

      function backward(event:MouseEvent){

        if(this.currentFrame == 1){

        gotoAndStop(this.totalFrames);

        }

        else{

        prevFrame();

        }

      }

       

      Flash said there were two errors:

      1.

      Scene=Scene 1, layer=Actions, frame=1, Line 6The class or interface 'MouseEvent' could not be loaded.

      2.

      Scene=Scene 1, layer=Actions, frame=1, Line 15The class or interface 'MouseEvent' could not be loaded.

       

      If you can help and see what is wrong and how i fix it that would be great!

       

      Video I followed \/

      Flash Tutorial: Create an Image Gallery with Next and Previous Buttons! -HD- - YouTube