1 Reply Latest reply on Jan 22, 2011 5:09 PM by kglad

    CLICK TO PLAY HELP!

    LULUMACK222 Level 1

      Is there a way that I can have my flash not play automatically, but rather click a b

      utton like click to play to start it?

        • 1. Re: CLICK TO PLAY HELP!
          kglad Adobe Community Professional & MVP

          sure.  just apply a stop() to its first frame and use actionscript to make it play:

           

          as2:

           

          this.onMouseDown=function(){

          this.play();

          delete this.onMouseDown;

          }

           

           

          as3:

           

          this.addEventListener(MouseEvent.CLICK,f);

           

          function f(e:Event){

          this.play();

          this.removeEventListener(MouseEvent.CLICK,f);

          }