7 Replies Latest reply on Nov 16, 2007 12:51 AM by pandxsg

    Is actionscript processed sequential (line by line)?

      Ok, so long story short, I have a loop that fills three different arrays. As soon as the loop finishes, on the next line, a function is called that loads dynamic images into movie clips. However, this isn't working as I thought. Instead, the function is being called at the same time as the loop is running. Therefor, the first few images don't show up and I get undefined errors. However, if I delay the function being called by 50ms, I don't get the error. This means that it is a timing problem and that flash is executing the loop and the function call at the same time.

      Does anybody have any experience/advice on what or why this might be happening?

      Thanks in advance.

      Edit: Also, my entire movie is implemented using actionscript in the first frame of the movie.