# Question: Loading External SWF as root file

**URL:** <https://forum.kirupa.com/t/question-loading-external-swf-as-root-file/284992>\
**Category:** flash\
**Created:** [March 25, 2009, 9:19pm UTC](https://forum.kirupa.com/t/question-loading-external-swf-as-root-file/284992 "2009-03-25T21:19:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eluded](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@Eluded](https://forum.kirupa.com/u/Eluded)\
**Post date:** [March 25, 2009, 9:19pm UTC](https://forum.kirupa.com/t/question-loading-external-swf-as-root-file/284992/1 "2009-03-25T21:19:16Z")

</div>

Ok, I’ve been going through online tutorials and so forthand yea I’m still a newb. I have a flash site I’m designing and this is probably a simple answer. I’ve figured out how to incorporate the external flashes using buttons and loader, please see the script below. The main problem I am having is I want to load my 1.swf file as the main home page. When I load the flash is comes up empty instead of loading the swf file when the flash is first opened. I can use the button to load it back, but how do you get it to appear once the flash is initailly loaded instead of just pulling up a blank page? Thanks in advance for any help on this.

```auto

on (release) {

    //load Movie Behavior
    if(this.home == Number(this.home)){
        loadMovieNum("1.swf",this.home);
    } else {
        this.home.loadMovie("1.swf");
    }
    //End Behavior

    //unload Movie Behavior
    if(this.movie == Number(this.movie)){
        unloadMovieNum(this.movie);
    } else {
        this.movie.unloadMovie();
    }
    //End Behavior

```
