Loading External SWFs using Variables?

Its hard to explain my problem but ill give it a go.
I am currently making a band website and im going to have just the 1 html page and just have a series of different SWF files for each section. I would like it so when u click the button called ‘band’ the current page which you are viewing animates out then the ‘band’ page animates in. because there is animation of each page disappearing on their own SWF before it actually loads the next i cant think how i can let flash know which page i want to load after. I thought the only way to do it would be through using variables. im not very strong with this but here is the code i came up with.
I have 1 button for each page and there are 3 pages. (just as a test)
When the red button is clicked

[COLOR=red]on(release) {[/COLOR]
[COLOR=red]gotoAndPlay(11);[/COLOR]
[COLOR=red]_global.webPage = “red”;[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=#ff0000][/COLOR]
Then on the last frame of this SWF i put.

[COLOR=red]if (webPage = “red”) {[/COLOR]
[COLOR=red]unloadMovieNum(1);[/COLOR]
[COLOR=red]loadMovieNum(“red.swf”, 1);[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]if (webPage = “blue”) {[/COLOR]
[COLOR=red]unloadMovieNum(1);[/COLOR]
[COLOR=red]loadMovieNum(“blue.swf”, 1);[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=red]if (webPage = “green”) {[/COLOR]
[COLOR=red]unloadMovieNum(1);[/COLOR]
[COLOR=red]loadMovieNum(“green.swf”, 1);[/COLOR]
[COLOR=red]}[/COLOR]
[COLOR=#ff0000][/COLOR]
[COLOR=black]Is this even the correct way of doing such a thing. I hope you guys can understand what im trying to achieve, sorry it was hard to explain :([/COLOR]
thanks.
max