1 Reply Latest reply on Dec 29, 2006 4:06 PM by Rothrock

    Script Crashes Flash

    kernst1
      Hello all,

      I am having problems with the attatched script. I have an if statement in a loop that keeps crashing flash. If I takw out the if statement it works. So I replaced the if statement with something I knew was true and it still crashed the Flash Authouring system. see attached code. NOTICE: The if statement " if ((1+2) == (2+1)) " is surely true. Thanks for any help I can get!!!

      -- Kevin
        • 1. Re: Script Crashes Flash
          Rothrock Level 5
          Well I wouldn't count on that expressing being true. I'm sure it is, but stranger things have happened. If you want to be sure a conditional evaluates to true:

          if(true){
          //code
          }

          Really is the only way to be sure.

          However I don't see why that would be the problem. Is it crashing Flash or is it the dreaded "Slow Script" message? What do you get from the trace statements? What if you put something flase into the if statement?