Results 1 to 2 of 2

Thread: Problems w/ race conditions when using attachmovie

  1. #1
    Join Date
    Jul 2009
    Posts
    2

    Default Problems w/ race conditions when using attachmovie

    Hello,
    I'm having a strange problem w/ race conditions when using attachmovie.
    I have a class linked to a movie clip that I'm attaching to the stage. The class is
    fired off when the movie clip is attached but also other classes are getting loaded at the same time
    while the movie clips is attached. Even though the other classes are called after the
    movieclip is attached, they are getting loaded faster and therefor the class linked to the attached movie clip
    cannot access their functions.

    I'm looking for a listener that will fire off an event ONLY when the attached movieclip is fully loaded but I can't
    seem to find any examples of associating a listener to a attachmovie method.

    Any ideas?

    Thanks,
    Clem C

  2. #2
    Join Date
    Jul 2009
    Posts
    2

    Default

    sorry for the long reply and thanks for all help. We solved the problem and have had great success.

    Basically, we had to build a loader function that looped through an array of objects and loaded them in order with an onEnterFrame event that fires a complete function once each component is loaded.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •