1 Reply Latest reply on Aug 14, 2006 11:51 AM by crazyjoemilan

    demo code error

    berniepack


      I am stepping through the beginners tutorial of Flash 8.
      In placing the action script on a button, exactly as defined in the tutorial:-
      inv_btn.onRelease = function(){
      getURL(" http://gnome.deseloper.com", "_blank");
      };
      then the script assist reports the following errors:-
      **Error** Scene=Scene 1, layer=button, frame=1:Line 1: Statement must appear within on handler
      inv_btn.onRelease = function(){

      Total ActionScript Errors: 1 Reported Errors: 1

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

      **Error** Scene=Scene 1, layer=button, frame=1:Line 1: ',' expected
      on(release:inv_btn) {

      **Error** Scene=Scene 1, layer=button, frame=1:Line 3: Statement must appear within on handler
      };

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

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

      Anybody help with this???????