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
OK, here’s the link to the html page holding the flash:
http://www.voiceman.com/new/index.htm
And the container .FLA file for download:
http://www.voiceman.com/new/containerpage.fla
And the first .FLA content page:
http://www.voiceman.com/new/index.fla
Here’s some of my actionscript:
1st frame of actions layer of the container swf:
var nextPage = "index.swf";
contents.loadMovie(nextPage);
stop();
And the buttons code (changes for each button):
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
var midFrame = 105;
frame 105
stop();
and the last frame
_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