loadMovie not waiting for dynamic content
I am creating a site where it is loading dynamic images and text within the SWF. Currently for images I am using the loadMovie command. This works typically when I do not have images of significant size, however I am having trouble getting the movie to check up if a larger image needs to be loaded. Here is my current code below, it does not seem to be checking to see if the clip is loaded and simply ignores it if the timeline reaches the actionscript before the image is loaded.
_root.generalVars.homeImg is a variable that I define outside of flash
//creating empty placeholder
this.createEmptyMovieClip("tester",1)
tester.onData=function(){
trace("hey")
}
//check if loaded
tester.onLoad=function(){
trace("loaded")
}
tester.loadMovie(_root.generalVars.homeImg)
tester._x=38.4
tester._y=88