# Help with "creating a simple website"

**URL:** https://forum.kirupa.com/t/help-with-creating-a-simple-website/219059
**Category:** flash
**Created:** [March 13, 2007, 2:58pm UTC](https://forum.kirupa.com/t/help-with-creating-a-simple-website/219059 "2007-03-13T14:58:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![croix](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/croix/32/3421_2.png) [@croix](https://forum.kirupa.com/u/croix)
#### Post date: [March 13, 2007, 2:58pm UTC](https://forum.kirupa.com/t/help-with-creating-a-simple-website/219059/1 "2007-03-13T14:58:35Z")

</div>

Threads keep dying here with no resolution, so I’m going to give it one more try.  
Here’s the tutorial:  
[http://www.actionscript.org/resources/articles/542/1/Creating-a-Simple-Website/Page1.html](http://www.actionscript.org/resources/articles/542/1/Creating-a-Simple-Website/Page1.html)

OK, here’s the link to the html page holding the flash:  
[http://www.voiceman.com/new/index.htm](http://www.voiceman.com/new/index.htm)

And the container .FLA file for download:  
[http://www.voiceman.com/new/containerpage.fla](http://www.voiceman.com/new/containerpage.fla)

And the first .FLA content page:  
[http://www.voiceman.com/new/index.fla](http://www.voiceman.com/new/index.fla)

Here’s some of my actionscript:  
1st frame of actions layer of the container swf:

```auto

var nextPage = "index.swf";
contents.loadMovie(nextPage);
stop();

```

And the buttons code (changes for each button):

```auto

on (release) 
{
     if (_root.nextPage == undefined)
     {
          _root.nextPage = "index.swf";
          _root.contents.loadMovie("index.swf");
     }
     else if (_root.nextPage != "index.swf")
     {
          if (_root.contents.midFrame >= _root.contents._currentframe)
          {
               _root.nextPage = "index.swf";
               _root.contents.play();
          }
     }
}

```

and on the index.swf:  
frame 1

```auto

var midFrame = 105;

```

frame 105

```auto

stop();

```

and the last frame

```auto

_root.contents.loadMovie(_root.nextPage);

```

As you can see from the links at the top, or the .FLA’s if yo u donwloaded them, the movie plays fine on load. The container shows up with the buttons, the index.swf loads into the empty movie container.

My problem is that the buttons don’t work once the index.swf is loaded.

If I open the index.swf by itself, the enter key starts and stops the movie properly.

Can anyone please point me in the right direction, or point out a diefferent tutorial I should implement with the .FLA’s I already have?

Thanks,  
Colin
