# Help! Loadmovie using levels?

**URL:** <https://forum.kirupa.com/t/help-loadmovie-using-levels/42616>\
**Category:** flash\
**Created:** [February 11, 2004, 3:28am UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616 "2004-02-11T03:28:55Z")\
**Posts on this page:** 11\
**Page:** 2

<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:** [February 13, 2004, 11:05pm UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/21 "2004-02-13T23:05:08Z")

</div>

well its like the tutorial Preloader and Transition for Dynamic Files  
[http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm)  
and the little window that loads a picture goes off to the corner and buttons dont work

…but like i said:  
i also did this  
loadMovieNum(“tutorial\_complete.swf”,1);  
it worked fine except that it appeared on top left corner of where it was placed

---

<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:** [February 13, 2004, 11:17pm UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/22 "2004-02-13T23:17:16Z")

</div>

try putting in:

```auto

this._X=200//or wherever on the x axis you want the swf to load
this._y=300//or wherever on the y axis you want the swf to load

```

in the first frame of the fla that correspnds with the swf you are laoding. use the loadMovieNum like you did, but set the x and y positions to where you want them to appear.

---

<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:** [February 13, 2004, 11:20pm UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/23 "2004-02-13T23:20:39Z")

</div>

yeah this is my script now  
[AS]loadMovieNum(“tutorial\_complete.swf”,1);  
this.\_X=-397.9  
this.\_y=11[/AS]  
but it still appears in the top left corner

---

<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:** [February 13, 2004, 11:23pm UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/24 "2004-02-13T23:23:23Z")

</div>

you need to open up tutorial\_complete.fla and then put this:

```auto

this._X=-397.9
this._y=11

```

in the first frame of the main movie. you want tutorial\_complete to have this script in it, not the movie you’re loading tutorial\_complete.swf into.

p.s. make sure you save and publish tutorial\_complete before trying it, or it’s just going to bring up the unchanged turtorial\_complete.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:** [February 13, 2004, 11:49pm UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/25 "2004-02-13T23:49:46Z")

</div>

well those measurements didnt work and i kept on putting different ones till it appeared on where i wanted it:azn: :azn: thanks so much i got it working now!

---

<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:** [February 13, 2004, 11:57pm UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/26 "2004-02-13T23:57:32Z")

</div>

oh \*\*\*\*…it worked now but it stays where ever i go…is there anything to do so it gos away when i go to different section?

---

<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:** [February 14, 2004, 12:12am UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/27 "2004-02-14T00:12:15Z")

</div>

just use:

```auto

unloadMovieNum(1);//1 is the level you've loaded it into

```

if for some reason this doesn’t work, I’ve never used it, try this:

```auto

unloadMovieNum(_level1);

```

Adam

---

<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:** [February 14, 2004, 12:13am UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/28 "2004-02-14T00:13:15Z")

</div>

where would i put this?  
n the same place i put this first script on or in the tutorial\_ccomplete.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:** [February 14, 2004, 12:16am UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/29 "2004-02-14T00:16:08Z")

</div>

You had mentioned that you go to a different section…if you press a button, put that code on the button:

```auto

on (release){
unloadMovieNum(_level1);
}

```

or whatever it is you use to trigger the next section to load/appear. This code needs to go in your main movie, not in any swfs you load into it.

Adam

---

<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:** [February 14, 2004, 12:25am UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/30 "2004-02-14T00:25:27Z")

</div>

😃 thanks! youre such great 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:** [February 14, 2004, 12:26am UTC](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616/31 "2004-02-14T00:26:53Z")

</div>

No problem. 🙂

Adam

[Previous page](https://forum.kirupa.com/t/help-loadmovie-using-levels/42616.md?page=1)
