Hello there, i realise there are already similar questions being asked on this board but i think mines a bit different… i think
I have a menu with 6 buttons. When i click a button it loads a movie into a holder MC. But when the user picks another menu option i dont want the new SWF to load instantly, i want the existing loaded SWF to play a loadout sequence then disapear, then have the new movie the user clicked on load.
It’s a bit complicated to explain but I hope you get the gist.
Thankyou for any help, u kirupa lot havent let me down yet
i needed a similar thing for my site…
for the button, just get it to play the external movie “to play a loadout sequence then disapear”
then on the last frame you can have a gotoAndPlay() to a frame in the main movie where the new movie will be loaded… did i make any sense??
try using moveClip.clear(); loadMovie(section, this); on that frame where section would be a variable with the path to that external file…
if you were using levels, you could go as simple as _level#.clear()
Here’s what I did for my most recent site I worked on.
In the middle of the stage, I had a movieclip named “swipe”. Inside the movieclip swipe, first frame was a stop command. Second frame I named the frame “close”, and had my animation of the doors closing. That animation went to frame 40. On frame 40 and 41 The doors remain closed and i have a “loading” mc that keeps looping. on frame 40 I have the actions :
Frame 42 is named “open” and then the animation of the doors opening happens. Once it reaches the end of the animation for the opening of the doors the movie below it plays like it should.
Now to know when that movie is loaded, you see there is something in my “swipe” mc that looks to see the value of a variable.
_root.loaded
In the first frame of my loading swf’s I have :
_root.loaded = "yes";
Once the movie is loaded into its placeholder, it recognizes that line of code, my doors open, and my movie underneath the doors is fully loaded and ready to be seen!
I just added the
_root.loaded = "yes";
to the first of each frame of .swf’s that I am loading.
Wow thanks for the replies guys, I’m finding them a little hard to understand though, i kinda get what your meaning. I’ll sit down and try to figure it out and get your idea’s into my head.
Anyone else got any good solutions for this problem?
Happy new year everyone by the way !! woohoOOOO!!!
I’ve attached a file, could someone have a look at it and see if they can help me out I know its asking alot…
there are 3 fla’s:
mainmovie.swf
external.swf
external2.swf
The mainmovie loads the externals into itself when buttons are pressed. But when externa1.swf is loaded, then external2.swf button is pressed to load, i want external 1 to unload first, not just disappear then external2 appear.