# loadMovie() doesn't work when in HTML

**URL:** <https://forum.kirupa.com/t/loadmovie-doesnt-work-when-in-html/292071>\
**Category:** flash\
**Created:** [July 9, 2009, 4:24pm UTC](https://forum.kirupa.com/t/loadmovie-doesnt-work-when-in-html/292071 "2009-07-09T16:24:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dplows](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dplows](https://forum.kirupa.com/u/dplows)\
**Post date:** [July 9, 2009, 4:24pm UTC](https://forum.kirupa.com/t/loadmovie-doesnt-work-when-in-html/292071/1 "2009-07-09T16:24:13Z")

</div>

I have a flash file (main.fla) that contains an empty movie clip which has the action :

loadMovie(“myMovie.swf”);

When I test the movie in Flash it works fine.  
It also works fine when I have Flash closed & just open the (main.swf) file.  
And, of course, the loaded movie (myMovie.swf) plays fine too.

HOWEVER, when I embed the main movie file (main.swf) into an HTML page, it will NOT load “myMovie.swf” like it’s supposed to.

Note: when I embed “myMovie.swf” into the HTML page, it works fine.

Anyone know why it’s doing this?

[Both files are in the same folder]  
[I have tried embedding it into a fresh HTML multiple times]
