FrankyTheFish
Programmer
Hey guys, we're looking at one of the final problem flash is causing us.
In the following code you can see what we do load our flash game. WE have 2 seperate levels which we call. Now once we're in level 1 what can be done to tell level 1 to end so that level 2 can start from the main file?
Again thanks for all the help. You guys are great.
Frank
// used right now to know which level to load for testing purposes.
var level:Number = 1;
menu=function()
{
////////////
// menu //
///////////
attachMovie("header_gui","GUI",1);
GUI._x=0;
GUI._y=0;
GUI._xscale=118;
GUI._yscale=120;
GUI.onPress=function()
{
GUI.play();
if(!level)
{
loadMovie("Level1.swf",5);
level=1-level;
}
else
{
loadMovie("Level2.swf",5);
level=1-level;
}
}
}
menu();
In the following code you can see what we do load our flash game. WE have 2 seperate levels which we call. Now once we're in level 1 what can be done to tell level 1 to end so that level 2 can start from the main file?
Again thanks for all the help. You guys are great.
Frank
// used right now to know which level to load for testing purposes.
var level:Number = 1;
menu=function()
{
////////////
// menu //
///////////
attachMovie("header_gui","GUI",1);
GUI._x=0;
GUI._y=0;
GUI._xscale=118;
GUI._yscale=120;
GUI.onPress=function()
{
GUI.play();
if(!level)
{
loadMovie("Level1.swf",5);
level=1-level;
}
else
{
loadMovie("Level2.swf",5);
level=1-level;
}
}
}
menu();