Yes pix8 the version Flash MX is the same. When the movie comes to the end it stops and returns to the mainmenu as it should. However when the 'home' button is activated it continues to play. Also When I place an audio file in a movie in Flash it also doesn't stop when the stop button on the controller is activated.
So I am using the same Flash MX Studio program simply loaded onto my new computer. I have (obviously) changed the computer and the operating system from Win 98 to Win XP.
This is the code I have on the actions layer.
#include "presentationScripts.as"
myController._visible = false;
mainMenu.button1.onPress = function(){
loadMovieToTarget("FACILITIES.swf", _root.movieTarget);
showMenu(false);
}
mainMenu.button2.onPress = function(){
loadMovieToTarget("ETHOS.swf", _root.movieTarget);
showMenu(false);
}
mainMenu.button3.onPress = function(){
loadMovieToTarget("COMMUNITY.swf", _root.movieTarget);
showMenu(false);
}
mainMenu.button4.onPress = function(){
loadMovieToTarget("ACHEIVEMENTS.swf", _root.movieTarget);
showMenu(false);
}
mainMenu.button5.onPress = function(){
loadMovieToTarget("PROGRAMS.swf", _root.movieTarget);
showMenu(false);
}
backToMainMenu.onPress = function(){
showMenu(true);
}
And this is the presentations script
function loadMovieToTarget(movieLoc, target)
{
target.loadMovie( movieLoc );
myController._visible = true;
this.onEnterFrame = function()
{
if(target.getBytesLoaded()>4){
if(myController.movieTarget == undefined)
{
myController.setMovie(target, true)
}
if( (target._totalframes-2) < target._currentframe){
this.onEnterFrame = undefined;
showMenu(true);
myController._visible = false;
myController.movieTarget= undefined;
target.unloadMovie();
}
}
}
}
function showMenu(flag)
{
mainMenu._visible = flag
}
Hope you can help.
ALan