6 Replies Latest reply on Nov 25, 2008 4:03 PM by Matthew_Nowell

    Flash button problem

    aspidistra Level 1
      Hi
      I am quite new to actionscript but when building a simple app that calculates amounts when you press on a button it only works if I use a library button and not my customised one. I have checked that the button is a button symbol and has four states but whenever I use my own customised button I get error message...the library button works fine with the actionscript.

      Here is the error message I get with my custom button - any idea why?

      thanks
      Em

      ---------------------
      **Error** Scene=Scene 1, layer=buttons, frame=1:Line 2: Invalid mouse event specified.
      on(click) {

      **Error** Scene=Scene 1, layer=buttons, frame=1:Line 3: Statement must appear within on handler
      with(_parent){

      **Error** Scene=Scene 1, layer=buttons, frame=1:Line 6: Unexpected '}' encountered
      }

      Total ActionScript Errors: 3 Reported Errors: 3