|
-
Preload Sound Object Problem
Hey gurus. Having a problem with a preloader for a sound object movie. Basically I'm calling up a preloader to load in an MC (clip holder) in my main movie.
The preloader loads fine in the MC (clip holder) but then the file it loads up places the SWF in the default location (top left of movie). How do I get the loader and the movie it calls up to play inside the MC (clip holder).
The MC (clip holder) has an instance "holder"
This is the main action from the frame with the clip holder in my main movie:
loadMovie("swf/loaddemo.swf", "holder");
// loaddemo.swf is the external movie I'm calling up in a SWF folder
These are the actions I have in my loading movie (loaddemo.swf):
onClipEvent (load) {
loadMovieNum("swf/demo.swf", 1);
}
onClipEvent (enterFrame) {
percentloaded = Math.floor((_level1.getBytesLoaded()/_level1.getBytesTotal())*100);
if (percentloaded == 100 && !initialize) {
_level1.mysound();
initialize = true;
_visible = false;
}
}
The problem is the preloader loads the new movie (demo.swf) onto level 1 in the main movie in the top left corner (not inside my clip holder MC). It seems logical that my problem is because it's loading onto level 1. But if I play with that number, my preloader doesn't work. Any thoughts?
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|