Hello everyone. I am having a problem using the Loadmovie command into a target. Basically, my site uses emptymovieclips to load the various elements of the site. For instance, for an emptymovieclip with instance name <holder>, I use the following code:
OnClipEvent(load) {
_root.holder.LoadMovie(“bubbles.swf”);
}
This does not seem to work correctly. Bubbles.swf is an swf that displays bubbles that have been generated using the duplicatemovieclip command. However, when I try to load this movie, it only displays one bubble.
I have also tried using the following command which DOES work:
OnClipEvent(load) {
LoadMovie(“bubbles.swf”,25);
}
Why isn’t the loadmovie into target command working? Thanks for all your help.
Check this:
on your external movie ‘bubbles.swf’, you may have on your duplicateMovieClip() command a ‘_root.’
_root. means the main timeline, so ‘bubbles.swf’ is going to look in the main movie for the movieClip to duplicate - hence it won’t find it because it’s somewhere else. You’re loadMovie command is working fine the first way.
Go into ‘bubbles.swf’ and remove the word ‘_root.’ on your commands - OR - target everything like:
duplicateMovieClip(_root.holder.bubble, "bubble"+i, i);
//guessing your movieClip is called bubble
Hope that helps!
Awesome…worked perfectly. Thanks very much.
NP