# Load movie problem (yeah, me too)

**URL:** <https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428>\
**Category:** Uncategorized\
**Created:** [March 30, 2002, 8:31am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428 "2002-03-30T08:31:26Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 30, 2002, 8:31am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/1 "2002-03-30T08:31:26Z")

</div>

I’ve made a flash-menu, menu.fla, and now I want to load it into the “main” flash-movie. I’ve made an empty movieclip, named it menuMC, and added this script,

onClipEvent ( load ) {  
&nbsp &nbsp &nbsp &nbsp loadMovie (“menu.fla”, menuMC);  
}

but it wont happen.  
the menuMC is equally big as the menu.fla but I’m a bit unsure what to put into the menuMC. It has to be something, right? I tried just making the stroke and leave out the fill in case menuMC somehow was _infront_ of the loaded movie but that wasn’t it. I’ve read plenty of tutes but I can’t wrap my head around them. It really shouldn’t be that hard, I’m confused.

The main movie and the menu.fla is in the same dir on my HD.

Suggestions?

Thanks

Achnor

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 30, 2002, 10:57am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/2 "2002-03-30T10:57:43Z")

</div>

You have to publish the fla, into an swf, and then use that swf name in the loadMovie command.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 30, 2002, 11:17am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/3 "2002-03-30T11:17:12Z")

</div>

Yes! Thank you. Problem solved…

Achnor

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 30, 2002, 11:19am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/4 "2002-03-30T11:19:49Z")

</div>

yep that’s where I went wrong!!! I was trying to load file.html, not file.swf 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2002, 5:42am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/5 "2002-03-31T05:42:42Z")

</div>

I hate asking these stupid questions when I’m certain there is an easy explanation, if nothing else, it keeps you occupied 😉

Ok. I can see the loaded movie now, but that is also all that is visible? I’ve got other stuff in the movie too (on different layers) but all I can see is the inserted movie? Maybe I thought wrong. What I wanted to do was to incorporate several “smaller” movies (like an anomated logo, a menu, a vertical menu) into one big final movie, these sub-movies running independently from each other. Is this possible?

Also, I would like to control the size and position of the inserted movies. Maybe this will become clear if someone can educate me regarding my first problem.

Thanks

Achnor

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2002, 10:05am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/6 "2002-03-31T10:05:23Z")

</div>

You can load multiple movies by loading them to different levels/targets.

I don’t know about the resizing… Maybe if you load the movie inside a MovieClip and then set property of the MovieClip (\_root.MovieClip.\_yscale, \_root.MovieClip.\_xscale)

Tough I’m not sure if it’ll work…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2002, 11:12pm UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/7 "2002-03-31T23:12:55Z")

</div>

Yes it will… in fact, the loaded movie will take on any transformations which have already been set on the clip you’re loading it into.

possitioning is based upon the upper left corner of the movie clip… so, if you had a movie clip called “holder” and you loaded a movie into it, you could simply use action script to change it’s location, color, alpha, etc, in any number of the following ways. (note I use root here. this means that holder movie clip would be on the main timeline… if it’s located elsewhere then you’ll need to address it differently.)

\_root.holder.\_alpha=50;  
\_root.holder.\_y=0;  
\_root.holder.\_y=0;  
\_root.holder.\_yscale=50;

This would set the movie clip to 50% alpha, set it in the upper left corner of the stage, and scale it’s width 50%.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2002, 12:26am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/8 "2002-04-02T00:26:31Z")

</div>

Thanks, but it is still not working.

The loaded movie is not confined to the movieclip.  
I’ve tried several different things:

onClipEvent (load) {  
&nbsp &nbsp &nbsp &nbsp loadMovieNum (“menu.swf”, 1);  
}

if I set the level to be 0, I will only see the loaded movie. If I set it to 1, I can see everything, but the menu is sort of “on top” of the movieclip, not inside it.

I’ve also tried:  
onClipEvent (load) {  
&nbsp &nbsp &nbsp &nbsp loadMovie (“menu.swf”, “menuMC”);  
}

where menuMC is the menu holder movieclip. Now I see everything except for the loaded movie.

The script you gave me regarding size and position works for the holder movie, menuMC but not the loaded movie, menu.swf. I guess that is because the menu.swf is not loaded in the menuMC clip. _sigh_ this is getting complicated

My scenario: I’ve made a movie-symbol, dragged an instance on the main timeline, called it menuMC, added the loadMovie-script to the clip. I have only one layer, and the menuMC is just a rectangle, nothing fancy. I try to make as basic as possible to find out where the mistake is but I’m lost.

Thank you for your time.

Achnor

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2002, 2:07am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/9 "2002-04-02T02:07:40Z")

</div>

Check your instance panel. Make sure that the movie clip “holder” has been given an “instance” name. The name from the library will not work for those commands.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2002, 2:14am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/10 "2002-04-02T02:14:33Z")

</div>

Yes, it is the instance that is called menuMC.

If I can ask you a favour. Could you make two movies, one with a big circle, one with a square. Load the circle into the square and resize it so it fits and send it to [achnor@gmx.net](mailto:achnor@gmx.net). This way I can be sure that I’ve put the actionscript in the rigt place etc. etc.

I know I ask much, I will also try to help out in the forums when I get better, I promise! 🙂

Achnor

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2002, 4:31am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/11 "2002-04-02T04:31:21Z")

</div>

Yeah, no problem. I think that I can get that out to you tomarrow some time.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2002, 7:10am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/12 "2002-04-02T07:10:25Z")

</div>

Are you entering the A/S on the MovieClip itself? (from the main stage). Because I think you need to put the actions INSIDE the MovieClip, on one of its frames (when editing the MovieClip).

Then you can try this:

loadMovie (“menu.swf”, \_this);  
Stop;

But I’m not sure it’ll work… Could give it a try tough…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2002, 8:47pm UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/13 "2002-04-02T20:47:26Z")

</div>

Just correcting syntax a little bit :  
loadMovie (“menu.swf”, this);  
stop ();  
is more likely to work. Still I don’t know if it will.

pom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2002, 11:05pm UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/14 "2002-04-02T23:05:00Z")

</div>

ok here it is and the associated downloads.

[www.centerspin.com/downlo…Loader.swf](http://www.centerspin.com/download/squareLoader.swf)

On thing to note, and the reason I left the cut out of the circle. The movie that’s being loaded uses a registration point of the upper left corner of the movie, The movie clip that has stuff loaded into it, is blank, and therefore has a reg point of where ever it is. This means that the loaded movie is offset by it’s upper left corner. When you open the file you’ll see what I mean. The links to the zip with all orginals is here.

[www.centerspin.com/downlo…Square.zip](http://www.centerspin.com/download/circleSquare.zip)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 12:48am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/15 "2002-04-03T00:48:41Z")

</div>

I love you guys 🙂

Looking at upuaut8’s files I finally got it! Instead of doing a onClipEvent (load) { loadmovie etc. etc.) in the A/S of the movieclip, I did only a loadmovie (etc. etc.) in the A/S of the frame and it works! I also successfully applied the size/position formatting to the holderMC (in the holdeMC’s A/S) and the loaded movie changed accordingly!

I’ve always read that the loadmovie() should be executed within the holdeMC but that would never work (with an onClipEvent). Doing it through the frame does. Don’t know why I couldn’t make it work the “normal” way but I don’t care, it works and I can manipulate it as seems intuitive.

Thank you very much!

Achnor

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 5:51am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/16 "2002-04-03T05:51:05Z")

</div>

I’ll see if I can figure out that method too. I think that I’ve gotten it to work in the past with an onClipEvent(load){}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 11:32am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/17 "2002-04-03T11:32:36Z")

</div>

See? I told you to do it in the frame! 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 11:38pm UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/18 "2002-04-03T23:38:16Z")

</div>

But it’s not in a frame INSIDE the movie…it’s on the main timeline 😛

Achnor

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 4, 2002, 7:17am UTC](https://forum.kirupa.com/t/load-movie-problem-yeah-me-too/2428/19 "2002-04-04T07:17:43Z")

</div>

oh… ok…
