# Problems w/ race conditions when using attachmovie

**URL:** <https://forum.kirupa.com/t/problems-w-race-conditions-when-using-attachmovie/292577>\
**Category:** flash\
**Created:** [July 15, 2009, 10:46pm UTC](https://forum.kirupa.com/t/problems-w-race-conditions-when-using-attachmovie/292577 "2009-07-15T22:46:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clem\_c\_rock](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@clem\_c\_rock](https://forum.kirupa.com/u/clem_c_rock)\
**Post date:** [July 15, 2009, 10:46pm UTC](https://forum.kirupa.com/t/problems-w-race-conditions-when-using-attachmovie/292577/1 "2009-07-15T22:46:39Z")

</div>

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
