Loading movie

I have a button that I want to have load a movie when pressed. It works, howerver, the movie loads in a separate window instead of the the main timeline where I would like it to. How can I correct this?

Here’s how I have it scripted now:

on(release) {
_root.loadMovie(“microphones.swf”, “placeholder”);
}

on(release) {
_root.placeholder.loadMovie(“microphones.swf”);
}

Might work :wink:

THANKS!

You replied to my other thread about preloading an external file.
I still havent gotten it to work yet. I think my problem with it logically is that the loadMovie command comes after the if - then condition. How can I get the preloader to calculate bytesLoaded from a movie that hasnt loaded onto the timeline yet?

Schematically, this is how my path looks like:

_root.

    _movieclip

            _placeholderMC

                   _external movie .swf                    

I have a movieclip on the main timeline that contains a placeholder into which the external .swf movie loads.

Where in the world would I put the preloader??

I just reviewed my other post and forgot this : you should have this right ?

[AS]
_root.bytes_loaded = Math.round(this.getBytesLoaded());
_root.bytes_total = Math.round(this.getBytesTotal());
_root.getPercent = _root.bytes_loaded/_root.bytes_total;
[/AS]

Should be

[AS]
_root.bytes_loaded = Math.round(_parent.getBytesLoaded());
_root.bytes_total = Math.round(_parent.getBytesTotal());
_root.getPercent = _root.bytes_loaded/_root.bytes_total;
[/AS]

And the loadMovie command should indeed before this code. If that doesn’t work, post again :slight_smile: