Transition script A/S

[COLOR=black][FONT=Verdana]Oh my god I really hope someone can help me cos ive tried everything I can think of and I can’t make this work.[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]I’m currently building a web site and ive hit a brick wall, how the site should work is[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]Main home page loads up [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]There are 6 buttons btn1 - btn6, when the button is clicked a screen appears over the top of the home page which starts from a dot in the middle of the screen then the dot expands to span the width of the screen then fully opens to span the height of the screen (completely covering the home page displayed behind, except the button which are still showing) the new screen that has just opened will display another swf file which shows the information for that button. When another button is clicked I want the animation to reverse so the screen closes from top to bottom leaving a line in the middle of the screen then the line closes to a dot in the middle of the screen, then the animation open up again displaying the new swf information.[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]The problem I am having is, when I click one of the buttons the animation opens but displays a blank screen, if I click another button the animation opens and displays the correct swf, then if I click the button I clicked first again the animation runs and the information is now displayed? I haven’t even attempted getting the closing animation working I don’t even know where to start with the action script for that…eekk![/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]The actionscripts are taken from a tutorial which I have tried to change to do what I want them to do [/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]The Button Script: -[/FONT][/COLOR][COLOR=black][FONT=Verdana][/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]btn1.onRelease = function() {
if (_root.section != “btn1.swf”) {
_root.section = “btn1.swf”;
_root.transition.gotoAndPlay(“open”);
}
};btn2.onRelease = function() {
if (_root.section != “btn2.swf”) {
_root.section = “btn2.swf”;
_root.transition.gotoAndPlay(“open”);
}
};[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]The Transition script :-[/FONT][/COLOR][COLOR=black][FONT=Verdana][/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]loadMovie(_root.section, content);
stop();[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]The content Script:-[/FONT][/COLOR][COLOR=black][FONT=Verdana][/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.transition.gotoAndPlay(“open”);
}
}
}[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]I have moved the content window into the transition time line as it is part of a mask.[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]Please can you help me so that the Opening animation loads the correct swf as soon as the button is clicked so when animation is complete the information is displayed.[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]and can you point me in the right direction to create the closing animation script so that if a button is clicked and the open animation is active, play close animation. [/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]I hope this make sense ??[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]Cheers[/FONT][/COLOR]
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]