7 Replies Latest reply on Aug 11, 2009 8:07 AM by Levsky

    Need help ( what else is new)

    Levsky

      Good morning

      I has been a while since I as for help ( It is Good......)

      How ever noe I think I am loosing my mind

      Simple button script and sound stop button do not work,

       

      here is script

      mySound = new Sound();
      mySound.attachSound("destination.mp3");
      sound_btn.onRelease = function() {
      mySound.Stop();
      }

      btn_skip.onRelease = function() {
         getURL("../pages/main.htm");
      }

      If i test fro error inside Action Editor window I get  no errors

      but if I run app I buttons do not work and I get errorlike this:

      **Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 1: Statement must appear within on handler
            mySound = new Sound();

      **Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 2: Statement must appear within on handler
           mySound.attachSound(" destination.mp3");

      **Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 3: Statement block must be terminated by '}'
           sound_btn.onRelease = function() {

      **Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 5: Operator '=' must be followed by an operand

      **Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 3: Statement must appear within on handler
           sound_btn.onRelease = function() {

      **Error** Scene=Scene 1, layer=Layer 7, frame=1:Line 1: Statement must appear within on handler
           btn_skip.onRelease = function() {

      Total ActionScript Errors: 6   Reported Errors: 6

       

      Any help would be appreciated

       

       

      Thanx

       

      Lev