4 Replies Latest reply on Jan 18, 2007 12:01 PM by kglad

    Deperate help with AS

    Newbie1234 Level 1
      Basically I have lots of global variables assigned to my movieclip. When the movie loads, it plays fine, BUT still within this movie, when the movieclip plays again from the start, it just totally ignored all my if statements! So it goes all wrong!

      Why is this? Any help. Really desperate.
        • 1. Re: Deperate help with AS
          kglad Adobe Community Professional & MVP
          how do you know it ignores an if-statement?
          • 2. Re: Deperate help with AS
            Newbie1234 Level 1
            You are right. I dont know if it ignores my if statements. i do have lots of if statements so there could be contradiction?

            Do u know any other ways to get around it?
            • 3. Re: Deperate help with AS
              1Slim1Jim1
              Trace the variables would be the quickest. Sounds like a variable's value is changed in the course of the first run of the movie, thus changing how the if statements run the second timie around. Best way is to check the very first if statement and go from there. If it's ignoring ALL if statements the second time around, then the problem variable / condition lies in the first if statement, most likely.
              • 4. Re: Deperate help with AS
                kglad Adobe Community Professional & MVP
                first, what doesn't work? if you can't deduce the issue from the overall problem(s), then solve the problems one-by-one.

                now, knowing that your swf works, as intended, the first time it plays but not the second usually means you have objects and/or variables defined on subsequent (re)plays that were not defined initially. to resolve that issue, you need to reinitialize, at least, some of those objects and/or variables.