1 Reply Latest reply on Dec 31, 2008 7:19 AM by kglad

    how to fix this error?

    bmesta
      This is my code:
      on (rollOver) { gotoAndPlay("start");}
      on (rollOut, dragOut) { gotoAndPlay("stop");}
      on (release, releaseOutside) {
      _parent.change_page(no);
      _parent.play();
      getURL(" http://www.yahoo.com",_blank);
      }

      When i click the button to check if the the syntax of my action script is correct i get this weird error.
      Can someone tell em how to fix this please.

      **Error** Symbol=flashmo button, layer=invisible button, frame=1:Line 1: Mouse events are permitted only for button instances
      on (rollOver) {
      **Error** Symbol=flashmo button, layer=invisible button, frame=1:Line 4: Mouse events are permitted only for button instances
      on (rollOut, dragOut) {
      **Error** Symbol=flashmo button, layer=invisible button, frame=1:Line 7: Mouse events are permitted only for button instances
      on (release, releaseOutside) {

        • 1. Re: how to fix this error?
          kglad Adobe Community Professional & MVP
          that code is not attached to a movieclip or button.

          to fix it,

          1. cut that code
          2. click on an empty part of the stage
          3. click on the button/movieclip that should display that behavior
          4. paste that code in the actions panel.