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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button to Go Back to Last Frame 2

Status
Not open for further replies.

wilcoHead

Programmer
Feb 2, 2005
85
Hello;

I have a flash presentation I am doing. I have a movie that loads into my presentation and wanted a button to go back to the main movie. How would i do this in action script?

Thanks for your input;
WilcoHEAD
 
Code:
myBtn.onPress = function(){
  //code here
  //if inside a movieclip
  unloadMovie(_root.movieclipname);
}
Please state more of what you mean by "back to the main movie".

does your base movie load a new movie inside a movieclip or something else?

Please be a bit clearer.

Regards,

Martin

Computing Help And Info:
 
Hello, sorry about that.

Ok, I have my main movie, then I have a navigation with button that will launch a swf file within the main movie.

My script for one of the buttons to launch the swf file is:
----------------------------------------------------
on (release) {
_root.Contents.loadMovie("MovieWindow.swf");
}
----------------------------------------------------
Once the swf file is loaded with the main movie there is another button that I would like to close out the swf file and go mack to the main navigation.

Thanks for your input;
WilcoHEAD
 
PERFECT!!

The second one did it.

Thank you so much!

Thanks for your input;
WilcoHEAD
 
Yes, sorry I thought it was the same person poting.

Thanks,



Thanks for your input;
WilcoHEAD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top