Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get a movie to stop in Windows XP

Status
Not open for further replies.

alan137

Programmer
Jul 25, 2002
14
0
0
AU
My old computer has Win 98. I am now using Win XP on a new computer and when I clic the 'home' button the menu sxcreen appears but the movie continues on top. I need to get the movie to stop and and unload. Is there a difference with Win XP?

Thanks

Alan
 
No difference. One thing that may be different between the two is the version of the Flash player. Is that the same on both computers?

Wow JT that almost looked like you knew what you were doing!
 
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
 
Actually I was not referring to the Flash application but the Flash browser plug-in.

Can you provide a URL or post your fla?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top