7 Replies Latest reply on Oct 18, 2009 10:49 AM by help_needed_asap

    help with nav buttons please

    help_needed_asap

      Hey there, i've recently been following a tutorial and I have come across a problem with the AS for the nav buttons,  http://www.flash-game-design.com/flash-tutorials/basic-flash-website-tutorial-6.html, the tutorial says to write:

      btnabout.onRelease = function(){
          content.gotoAndStop("about")
      }
      btnport.onRelease = function(){
          content.gotoAndPlay("port")
      }
      btncont.onRelease = function(){
          content.gotoAndStop("contact")
      }

       

      I have done this and it came with an error saying needs to be in handler, so i re-entered this:

      btnabout.on(release) = function(){
          content.gotoAndStop("about")
      }
      btnport.on(release) = function(){
          content.gotoAndPlay("port")
      }
      btncont.on(release) = function(){
          content.gotoAndStop("contact")
      }

       

      This code then came back with a Expected a field name after '.' operator.  btnabout.on(release) = function(){ can anyone please help me i'm starting to pull hairs out?!

       

      Thanks

       

      P.S it must be AS 2.0 as that is what my portfolio page uses.