# Checking to see if .loadMovie has loaded?

**URL:** <https://forum.kirupa.com/t/checking-to-see-if-loadmovie-has-loaded/216612>\
**Category:** Uncategorized\
**Created:** [February 18, 2007, 11:46pm UTC](https://forum.kirupa.com/t/checking-to-see-if-loadmovie-has-loaded/216612 "2007-02-18T23:46:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgibz](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jgibz](https://forum.kirupa.com/u/jgibz)\
**Post date:** [February 18, 2007, 11:46pm UTC](https://forum.kirupa.com/t/checking-to-see-if-loadmovie-has-loaded/216612/1 "2007-02-18T23:46:11Z")

</div>

Hi everyone,

I’m pretty new at this, and couldn’t find anything on google. most of this seems above my level.

[http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00001585.html](http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00001585.html)

I’m trying to use .loadMovie to load a .swf that contains a high res background image for the website. I want it to load hidden behind a layer of black before the user is even presented with the oportunity to move forward.

Is it possible to put somthing like this on the first frame (a black screen)…

```auto

choice = Math.round(Math.random()*13);
    switch (choice) 
    {
    case 0 :
        location.loadMovie("background_image0.swf");
        break;
    case 1 :
        location.loadMovie("background_image1.swf");
        break;
    }
        

```

then have the second frame contain a button that will reveal the loaded image, but not until the code above is executed and the image is loaded?

Can I do this all on the first frame?

TIA for any help
