Hello,
I have created a series of about 7 swf files that make up the individual pages of my site.
I am using the following code on buttons to load my swfs…
on (release) {
contents.loadMovie(“mymovie.swf”);
}
The problem is that all the buttons from the previous pages are still active and if you happen to mouse over the area where a button was on a previous page the hand appears and you can click on it.
Is there a way to remove the previous swf file when you load the next swf file.
I tried the following with no success…
on (release) {
contents.loadMovie(“nextmovie.swf”);
}
on (release) {unloadMovie(“currentmovie.swf”);
}
Any other suggestions?
Heres a link to the site if it helps
Hey, I’ve had a look over the .fla files, and I do have 1 suggestion, don’t have all the separate files. It’s a good idea to have the preloader on a separate one, but personally, I’ve found that it’s easier to have it all on one file, and that often involves making more movieclips, it just makes it easier not only to combine things, but to edit. I have started working on this, I will let you know when I finish, and see what you think of it.
What are the fonts you have used? I’ve worked out that the title is Perpetua Titling MT, but i cant find the other one, if you could please upload the .ttf file, that would be good. Thanks…
argh… this is stupidity… I cannot do this for some reason, It isn’t letting me move things from one library into another, I can’t do this, sorry, I tried
ah! a flash of inspiration! (no pun intended)
to get rid of those buttons that aren’t meant to be there, if you put a blank frame or duplicate frame with no buttons after it, with the command something like:
gotoAndPlay(x);
which would obviously do as it says, and should get rid of the phantom buttons…
I had a look at your files, the problem with the bottom is due to the fact that you load eveything on top of each other. So the suggestions in previous post aren’t working, because the buttons aren’t in the content mc.
I’ve made a litlle different setup (for index/site/portfolio and personal). All the buttons are now mc’s, he code you can find in the action layer(s).
In this setup, only the necessary buttons are in the fla.
Lean back, have a look and if you have questions, feel free to ask:)
You can find the files here: zip (4.7 MB)
Scotty,
It is working! Thank you so much!
I understand most of what you did, I understand the theory and why it works, it’s too bad I could never write code like that myself.
I have added the rest of the pages and it is working really well.
Thanks so much, I have been trying to figure this out forever!
I am probally going to take my fla’s off the server, but can I post the code you used in case someone else is having the same problem?