Hi there, hopefully someone can help me with this,
What I’ll have eventually is a main.swf, and about 8 external.swf’s loadmove-ing into the main.swf. But I want to preload the external swf’s.
So the main.swf loads.
The user presses a menu button. For example an ‘about’ section.
The about.swf will preload (the loadbar will appear), then start playing the movie once loaded.
The movie will fade in the picture and then stop.
When the user picks another menu option, I want the current movie to start playing so it fades out.
Then the new external.swf will preload and then play.
Its just basically so I can have my sections load in, then load out once another selection has been made. I can already do this with code I have but not to work with a preloader bar.
I’ve tried to get it to work but the preloader bar doesnt appear.
I had a look at claudios example, but its not really what i’m after. I’ve searched the board for help too.
I wrote a tutorial on the exact effect that you want, but I’m only not sure if the preloader that I added will work. So this is a great chance to test if the preloader from my tutorial works. You can find it here. And if the preloader doesn’t work, you’d still have the effect =)
[EDIT] Oh, bummer, you already have the effect :P[/EDIT]
Yeah that works, but the currently loaded movie doesnt play out. When a user loads the first movie it fades in. Then when they press the other button, the movie should just fade out, then preloader the new movie and fade it in.
Hello again haha, i’m maybe chancing my luck a bit but…
The zip you provided is great if there are only 2 menu options, but I want to be able to have many menu options, as I stated in my inital post.
‘What I’ll have eventually is a main.swf, and about 8 external.swf’s’
When it comes to the end of one of the external.swf’s the actionscript points to the other swf. But if there were more than two externals? Do you see my problem?
Sorry about this, all your help is much appreciated! I dont mean to be ungrateful.
Just so long as you mention me & ‘oldnewbie’ from the flashkit forums, I altered his code to make the original zip file you saw.
So in this new version, is it simple enough to add more than 8 externals if need be? Im just having a look at it just now, so i’ll probably find out! looks good, well done!
EDIT: Oh and just a tiny tiny thing, how about if you didnt want an external file to load initially, only on the first button press?
Here it is =) Ah, something I forgot to tell you: when you have a look at the FLA you’ll see that on the buttons, there’s this AS:
[AS]
_root.curmovie = “external1”;
[/AS]
This is a name given to the first external movie. You have to make sure that the filename of the swf you want to load has to be this variable.swf. So if you’d change this value to “home”, you have to change the filename of your swf to “home.swf”. If you stick to that, it’ll work fine =)