Can't go back to previous external swf file

  • viki9
  • Novice
  • Novice
  • viki9
  • Posts: 16

Post 3+ Months Ago

Hi i created the Master.fla file and i have several swf files that i want to load through the external swf loading method .....
So here is the problem
I can load all the external files and all but i have a problem on how i'm suppose to go back to previous page....For example

I have Mainmenu.swf and from there when clicked "Exit" button it will link to Exit.swf
So far i'm able to load it correctly .....there is a "Back" button in the Exit.swf that should link back to Mainmenu.swf....
Here is the code
Code: [ Select ]
 
Mainmenu code
loadMovieNum("Mainmenu.swf", 1); // loads the main menu
unloadMovieNum("Exit.swf" ,2);////to unload the exit swf when go back to main menu
 
Exit code
loadMovieNum("Exit.swf", 2); // loads the exitpage
unloadMovieNum("Mainmenu.swf" ,1);////to unload the mainmenu swf when go to exit
 
back button
back.onPress = function() {
    this.play();
    _level0.gotoAndPlay(3);// the mainemenu frame in master.fla
    unloadMovie(_level3);
};
  1.  
  2. Mainmenu code
  3. loadMovieNum("Mainmenu.swf", 1); // loads the main menu
  4. unloadMovieNum("Exit.swf" ,2);////to unload the exit swf when go back to main menu
  5.  
  6. Exit code
  7. loadMovieNum("Exit.swf", 2); // loads the exitpage
  8. unloadMovieNum("Mainmenu.swf" ,1);////to unload the mainmenu swf when go to exit
  9.  
  10. back button
  11. back.onPress = function() {
  12.     this.play();
  13.     _level0.gotoAndPlay(3);// the mainemenu frame in master.fla
  14.     unloadMovie(_level3);
  15. };

This code works fine but one problem in all my other swf files i have the exit page, it links and loads the exit page when clicked on the button BUT i can't go back to any previous page i was before i clicked on the ERxit button. Is there away to go back to any previous page....

please HELP

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.