Hi all,
I have an empty movie on the stage in the _root called ConMovie, this is a container for loading other movies into - quite default menu behaviour, and all works fine except I have a couple of questions, especially with sound.
summary of what is in the _root movie:
FRAME1 is initing everything
FRAME2 stage has only the menu movie (doesnt have ConMovie), and the execution stops here, waiting for you to select something. if you select something it goes to FRAME3
FRAME3 stage has no menu, only ConMovie, and this is where ConMovie.attachMovie(MovieID, “Content”, 3333) is called
FRAME4 execution stops, only ConMovie is on stage with the new movie (MovieID) attached to it (there is an Event sound on frame 2 of this movie, so short music is looping), and a back button. If you press back it does ConMovie[“Content”].removeMovieClip(); gotoAndStop(2);
my questions are:
-
Do I actually need to do removeMovieClip as when the playhead goes to FRAME2 the ConMovie is no longer on stage, so is presumably destroyed, along with its contents?
-
Do I need to do ConMovie[“Content”].unloadMovie(); to free memory or was it destroyed like in my first question.
-
When the playhead comes back to FRAME2 (and the menu is back and ConMovie is gone) the audio wont stop!!! why!!! I’ve tried doing removemovie and unloadmovie, but the audio is still there!! in fact in FRAME2, ConMovie isnt even on the stage but the audio still loops!!
So in ConMovie I created a sound object which I dont use for anything except if you press back in FRAME4 I do ConMovie.MySound.stop(); as well as the unloadmovie etc…and that worked, audio shuts up (I should bloody well hope so!!)…however what worries me is do I have to do that? why isnt the sound stopped and unloaded from memory when I do removeMovie or attachMovie?
thx if you read this far!!
Memo.