# Loading movie in lvl 1 doesnt work in html

**URL:** https://forum.kirupa.com/t/loading-movie-in-lvl-1-doesnt-work-in-html/17275
**Category:** flash
**Created:** [April 3, 2003, 9:23am UTC](https://forum.kirupa.com/t/loading-movie-in-lvl-1-doesnt-work-in-html/17275 "2003-04-03T09:23:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![d\_kAOs](https://avatars.discourse-cdn.com/v4/letter/d/b3f665/32.png) [@d\_kAOs](https://forum.kirupa.com/u/d_kAOs)
#### Post date: [April 3, 2003, 9:23am UTC](https://forum.kirupa.com/t/loading-movie-in-lvl-1-doesnt-work-in-html/17275/1 "2003-04-03T09:23:17Z")

</div>

Hello!

I am attaching the source files. Its a menu I was working now. Everything is complete except for the background music (“sound.swf”).

What I did was after the menu is loaded in frame 1 of the menu I created and empty movie clip in lvl 1 and tried to load sound.swf in that movie clip. It works fine when I do a control+enter in flash or export the movie clip and then double click menu.swf

But as soon as I put menu.swf in a html file the sound.swf doesnt load in the empty movie clip :(. Can someone please help me out on this?

You can download the source files from here:

[http://www.profilms-me.com/files/menu.zip](http://www.profilms-me.com/files/menu.zip)

Thanx.

---

<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, 2003, 9:31am UTC](https://forum.kirupa.com/t/loading-movie-in-lvl-1-doesnt-work-in-html/17275/2 "2003-04-03T09:31:05Z")

</div>

Are you saying it doesn’t work in HTML meaning when you upload it to the internet? If that’s the case then maybe you need a preloader for that sound.swf because it won’t load right away since it needs time to load. Testing it in flash means you’re doing it locally so there isn’t any loading 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 3, 2003, 9:55am UTC](https://forum.kirupa.com/t/loading-movie-in-lvl-1-doesnt-work-in-html/17275/3 "2003-04-03T09:55:59Z")

</div>

What I meant was that when I insert menu.swf in an html file and then view the html file locally it wont work.

Try it:

make a new html page and just insert menu.swf in to it. Save it along with the 2 swf files (menu & sound) in the same folder and then run the html. When u will run that html, the menu.swf will load but it fails to load sound.swf in that empty movie clip in level 1.

I hope I clarified my problem.

---

<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, 2003, 10:00am UTC](https://forum.kirupa.com/t/loading-movie-in-lvl-1-doesnt-work-in-html/17275/4 "2003-04-03T10:00:00Z")

</div>

I just downloaded it and tried it, the music loaded right away.

---

<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, 2003, 10:45am UTC](https://forum.kirupa.com/t/loading-movie-in-lvl-1-doesnt-work-in-html/17275/5 "2003-04-03T10:45:53Z")

</div>

Can u please make an index.htm or whatever html file and run menu.swf thru that please? See if sound.swf loads then.

---

<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, 2003, 10:57am UTC](https://forum.kirupa.com/t/loading-movie-in-lvl-1-doesnt-work-in-html/17275/6 "2003-04-03T10:57:25Z")

</div>

That’s what I did, I exported it as HTML and SWF and it gave me a HTML file with the flash embeded and it loaded the sound.swf just fine so I don’t know what’s the problem.
