# loadMovieNum settings?

**URL:** <https://forum.kirupa.com/t/loadmovienum-settings/42303>\
**Category:** Uncategorized\
**Created:** [February 7, 2004, 4:04pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303 "2004-02-07T16:04:39Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bonna](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@Bonna](https://forum.kirupa.com/u/Bonna)\
**Post date:** [February 7, 2004, 4:04pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/1 "2004-02-07T16:04:39Z")

</div>

i use this AS to load an extrnal movie (song1.swf)

[AS]loadMovieNum(“song1.swf”, 66);[/AS]

but dont know how give it a \_root.“name” so that i can call it later.

Thanks in advance  
Bonna

---

<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 7, 2004, 4:35pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/2 "2004-02-07T16:35:08Z")

</div>

When a SWF file is  
loaded into a level, you can use the syntax, \_levelN, where N is the level number, to target the  
SWF file.

This is out of the AS Dictionary…don’t know if this can help or not. It also says:

If you want to specify a target instead of a level, use loadMovie() instead of loadMovieNum().

That’s about all I can help.

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 7, 2004, 4:42pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/3 "2004-02-07T16:42:00Z")

</div>

thank you…

If i use “\_level66” get this error  
"Left side of assignment operator must be variable or property."

and when i use “66” i get this ?

Scene=Scene 1, Layer=action, Frame=2: Line 87: ‘)’ expected  
if (66.getBytesLoaded() == 66.getBytesTotal()) { loadinglamp.\_visible = false; }

??dont understand much of it, because as far as i can count there are just as many “(” as there is “)” ??

hmm but thanks anyway

---

<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 7, 2004, 4:46pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/4 "2004-02-07T16:46:24Z")

</div>

what if you try \_level66.song1? Sorry if I’m wasting your time with this, just made the jump to mx2004 from flash 5 a week ago, but I can fill in the blanks until the people who know what they’re doing show up 🙂

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 7, 2004, 5:03pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/5 "2004-02-07T17:03:17Z")

</div>

no doesnt mater at all, better some help than no, so thank you very much, i would be completly blank if you hadn’t replyed. So thank you.

Now there is no error but i cant see if it works (but thats maby because there is an error in my preloader scrip). but i have a question. Does the debug also work on extarnal movies (song1.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 7, 2004, 5:45pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/6 "2004-02-07T17:45:03Z")

</div>

I’m not sure about the debug, but is there anyway you could post a link to your fla? And, have you tried any kind of a trace to see if it’s working even a little bit? So maybe you could narrow down the problem?

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 7, 2004, 5:50pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/7 "2004-02-07T17:50:10Z")

</div>

hmm okay you kinda lost me there with the trace. What is a trance ?

[http://www.jksdesign.dk/controller/controller2.html](http://www.jksdesign.dk/controller/controller2.html)

i wanted the loading lamp to turn on will the song1.swf was loading, just like the pause lamp i showen when the song is paused. but as you can see nothing happens.

---

<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 7, 2004, 5:55pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/8 "2004-02-07T17:55:20Z")

</div>

you can use a trace to see if something is actually working or not, ie:

```auto

onClipEvent(enterFrame){
if (this.hitTest(_root.ball)){
	trace("YO");
}
}

```

What this does is if the “if” statement is true, the word YO appears in the output window when tested. You had said:

"Now there is no error but i cant see if it works (but thats maby because there is an error in my preloader scrip). "

I thought maybe you could add a trace in there to see if it is indeed working, and yet being held up by something else instead.

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 7, 2004, 6:31pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/9 "2004-02-07T18:31:36Z")

</div>

oh okay thank a lot.

but should i just make my action script like this or what ?  
[AS]  
if (\_level66.song1.hitTest(\_root.ball)){  
trace(“YO”);  
}  
[/AS]

---

<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 7, 2004, 6:42pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/10 "2004-02-07T18:42:05Z")

</div>

nevermind my last question i found the asawer.

and i have now tested the movie with a trace, and all the resault show that it shoud work, but it just doen’t look like it does.

[http://www.jksdesign.dk/controller/controller3.html](http://www.jksdesign.dk/controller/controller3.html)

---

<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 7, 2004, 8:56pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/11 "2004-02-07T20:56:00Z")

</div>

Is there anyway you can post you fla? I tried going to those links, but with my dial-up, I couldn’t get the song1.swf to load…I waited 5 minutes or so, but it was still loading.

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 7, 2004, 9:12pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/12 "2004-02-07T21:12:25Z")

</div>

here is the fla

[http://www.jksdesign.dk/controller.fla](http://www.jksdesign.dk/controller.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:** [February 7, 2004, 10:13pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/13 "2004-02-07T22:13:14Z")

</div>

Ok I came up with a solution for you. Each time you hit the play button, the movie is advanced one frame. The if statement at the bottom tells the loadinglamp to turn off if the song is loaded. If you add this:

```auto

loadinglamp._visible=true;

```

under the stop() in each frame’s actionscript, the loading lamp should stay on until the if statement at the bottom turns it off. It’s hard to gauge when the files are all on one machine, hence too little of a loading time to tell. Try this, though, it should work.

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 8, 2004, 11:19am UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/14 "2004-02-08T11:19:01Z")

</div>

I didnt get mush of that post ?

i should add the

[AS]loadinglamp.\_visible=true;[/AS]

to the stop(); in the top off the actionscript like:

[AS]stop(loadinglamp.\_visible=true;);[/AS]

or what ? and how shoud it work ? sorry if its just me but i can’t see any logic in that ?

---

<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 8, 2004, 5:19pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/15 "2004-02-08T17:19:18Z")

</div>

The way it seems to me is that each time you press the play button, the framehead is advanced one frame. Each new frame has a new song in it. The loadinglamp.\_visible = false is working, but the light isn’t going on to begin with. At least that was what was happening for me, but like I said, with all the files being on one computer, the loading time was too quick for me to notice the lamp being on. Sorry, it seemed like it should work. I meant more like this:

```auto

stop();
loadinglamp._visible=true;

```

sorry I couldn’t be more help…  
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 8, 2004, 5:22pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/16 "2004-02-08T17:22:27Z")

</div>

no its okay… but when i upload it to my webhotel, i cant see the lamp ether ? thats what i fine wierd ?

---

<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 8, 2004, 6:28pm UTC](https://forum.kirupa.com/t/loadmovienum-settings/42303/17 "2004-02-08T18:28:25Z")

</div>

When you are loading the songs, does it take long enough for you that it should show? I did a trace on the lamp being true and false and they both show like they’re working, I think it’s just too fast for me to see.

Like, have a look at this, you’ll see the light becomes true and then false again.

> **[Yahoo Small Business - Cheap Domains, Web Hosting, Website Builder, Ecommerce...](https://smallbusiness.yahoo.com/)**
>
> Yahoo Small Business Offers Cheap Domain Names, Web Hosting, Easy Website Builder, Business Email, Local Listings, and Ecommerce Solutions for Your Small Business.
