2 Replies Latest reply on Nov 21, 2007 4:07 AM by mfitzgerald123

    If Fuction not working

      hey, ive used this code on a button to show and hide something, ive had a few people look at it and no one can figure out why it doesn't work , its a really simple piece of code and i can't work out why it isn't working :S any help would be much appreciated . sorry about the layout of this post, im new :P

      the code looks something like this and at the bottom the .fla file is available to download and check

      if (buttonPressed = 0) {
      buttonPressed = 1
      } else {

      buttonPressed = 0