# loadMovie is capricious

**URL:** https://forum.kirupa.com/t/loadmovie-is-capricious/63072
**Category:** flash
**Created:** [September 2, 2004, 7:38pm UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072 "2004-09-02T19:38:05Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![jwhitmill](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jwhitmill](https://forum.kirupa.com/u/jwhitmill)
#### Post date: [September 2, 2004, 7:38pm UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/1 "2004-09-02T19:38:05Z")

</div>

I’m having very inconsistent results with loadMovie - one time it works, the next time it doesn’t, even though I’m doing things the same way.

In my latest farce, in a movie called home.swf I created an empty movie clip and placed an instance of it named dateTime on the stage. I then called a movie named digitalclock.swf with the statement:

```
loadMovie("digitalclockJeff.swf","dateTime");

```

It works perfectly.

Next I created another empty movie clip and placed an instance of it named sliders on the stage of the original movie, home.swf. I then called a movie named sliders01.swf with the statement:

```
loadMovie("sliders01.swf","sliders");

```

It doesn’t work at all.

Just to try to find the problem, I treid loading digitalclock.swf into the second movie clip with

```
loadMovie("digitalclockJeff.swf","sliders");

```

It works perfectly.

The problem would appear to lie with sliders01.swf, but I can’t see how. It’s a very simple movie where a picture frame slides down from the top and a picture slides into the picture frame from the side - 50 frames, 2 motion tweens, 2 layers - that’s it.

I don’t understand why this movie won’t 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: [September 2, 2004, 7:44pm UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/2 "2004-09-02T19:44:13Z")

</div>

It could be a problem with the code in the loaded movie (sliders01.swf). Could you post the code or attach the FLA? 🙂

---

<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: [September 2, 2004, 8:01pm UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/3 "2004-09-02T20:01:48Z")

</div>

There’s no actionScript code to speak of - I simply created the 2 graphics and omved them around. I’d happily attach the .fla for you, but I don’t understand how that can be done here.

---

<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: [September 2, 2004, 8:12pm UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/4 "2004-09-02T20:12:13Z")

</div>

So, there’s no code? Weird… 😛

Anyway… click on the “Go Advanced” button under the “Quick Reply” form and then click on the “Manage Attachments” button to attach the file(s).

---

<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: [September 2, 2004, 8:21pm UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/5 "2004-09-02T20:21:25Z")

</div>

I really appreciate your help - I found the attachment controls, but the file was disallowed because it’s too large - something like 300K, where the limit is 74 K. The imported graphics account for the size of the .fla.

I need to leave now; I’ll try making a version of the movie using very small graphics. If I get the same behavior - failure to load - I’ll try to attach that file later tonight.

Thanks for your willingness to help.

---

<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: [September 2, 2004, 8:45pm UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/6 "2004-09-02T20:45:06Z")

</div>

Just FYI - if you have a server you can load it onto then do that and put a link here, i.e.

[www.yoursite.com/yourfla.fla](http://www.yoursite.com/yourfla.fla)

:hr:

---

<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: [September 3, 2004, 3:17am UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/7 "2004-09-03T03:17:24Z")

</div>

I’ve got a server, and I’ve put it there, but can’t particularly see how that helps - if I call it, I just get a screen full of gibberish:

[www.whitmill.net/flash/sliders01.fla](http://www.whitmill.net/flash/sliders01.fla)

---

<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: [September 3, 2004, 4:11am UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/8 "2004-09-03T04:11:05Z")

</div>

Yeah so do I. That’s weird - usually it triggers the download window. ☹

---

<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: [September 3, 2004, 4:17am UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/9 "2004-09-03T04:17:03Z")

</div>

I’d be happy to e-mail it as an attachment to anyone who wants to look at it - bearing in mind it’s 316K, which some mail systems may not like. E-mail me at [jeff@whitmill.net](mailto:jeff@whitmill.net) if you’d like me to e-mail it to you.

Thanks.

---

<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: [September 5, 2004, 5:14am UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/10 "2004-09-05T05:14:46Z")

</div>

Here’s another piece to the puzzle:

loadMovieNum works fine, but loadMovie doesn’t.

The problem is, I can’t position the loaded movie with loadMovieNum.

---

<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: [September 5, 2004, 5:32am UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/11 "2004-09-05T05:32:18Z")

</div>

> [@jwhitmill](#):
>
> Here’s another piece to the puzzle:
> 
> loadMovieNum works fine, but loadMovie doesn’t.
> 
> The problem is, I can’t position the loaded movie with loadMovieNum.

Actually, you can. 😉

```auto
// load movie.swf into level 7
loadMovieNum("movie.swf", 7);
// check for the existence of level 7 using an onEnterFrame handler
// you could also use the setInterval() function or a frame loop
this.onEnterFrame = function() {
	if (_level7) {
		// the level has been registered, now we can modify its properties
		_level7._x = 100;
		_level7._y = 50;
		delete this.onEnterFrame;
	}
};

```

By the way, could you upload home.fla as well? 🙂

---

<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: [September 5, 2004, 6:34am UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/12 "2004-09-05T06:34:20Z")

</div>

Thank you!

---

<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: [September 5, 2004, 6:37am UTC](https://forum.kirupa.com/t/loadmovie-is-capricious/63072/13 "2004-09-05T06:37:45Z")

</div>

You’re welcome!
