2 Replies Latest reply on Aug 29, 2006 1:10 AM by yumicken

    Noob Actionscript Question

      I know a little programming, but it has been a while since I've done flash actionscript. I am utterly confused as to why this simple task won't work. I went to flash help, what am I doing wrong?

      var a:Number = 2;
      if(a = 1) {

      Whether I set the variable to 1 or 2 it still goes to play frame 3 even though it appears within the if statement. I created a brand new document, and this is the only actionscript, to make sure that nothing else was interferring. I guess I am doing something wrong, but it looks like flash help tells me to do this. I like to think I am not an complete idiot.
      Thanks for the help