![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
After the movie clip plays, you need a way to remove the movie clip from the Stage when the user goes to Scene 2. You can modify your script for the goScene_btn to "unload" the movie clip.
gotoAndStop("Scene 2", 1);
unloadMovie("trio_mc");
Your entire function for the goScene_btn should appear as follows:
//This script takes user to Scene 2 when goScene_btn instance is released goScene_btn.onRelease = function() { gotoAndStop("Scene 2", 1); unloadMovie("trio_mc"); };
Your entire script should appears as follows:
//stops the playhead at Frame 1 stop(); //This script takes user to Scene 2 when goScene_btn instance is released goScene_btn.onRelease = function (){ gotoAndStop("Scene 2", 1); unloadMovie("trio_mc"); }; //This function plays trio_mc when attachMovie_btn instance is released. attachMovie_btn.onRelease = function(){ _root.attachMovie("MCTrio", "trio_mc", 1); trio_mc._x = 275; trio_mc._y = 200;
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |