Scene Transitions

I have one swf file that pulls in a bunch of other swf files when you click on buttons. Right now I have it set so that certain boxes fade in or out bases on what button your just pressed. For example. I have 7 total boxes. click on on the home swf there is box1 is faded in. On about box1, box2, box3, and box4 are faded in. So when you go from home to about I only want box2, 3, and 4 to fade in. I’m really close but for some reason I get a flash where they all fade back in for a second. [COLOR=red]Take a look at my site[/COLOR] to see what I mean. after it loads click on the smiley face then click on the top button on the left. As you go back and forth you will see how they flash in for just a second. [URL=“http://www.frozenmusicstudios.com/stahl/stahl.zip”][COLOR=red]Here are the fla files, they are too big to post.[/COLOR] The AS is basically the same for the loaded swfs.

Main timeline last frame does this for the buttons (all buttons are similar.)

//buttons
home_bt.onRelease = function() {
 if (_root.currMovie != "homenav") {
  if (container._currentframe>=container.midframe) {
   _root.startAt = 1;
   _root.currMovie = "homenav";
   container.play();
  }
 }
};
about_bt.onRelease = function() {
 if (_root.currMovie != "aboutnav") {
  if (container._currentframe>=container.midframe) {
   _root.startAt = 1;
   _root.currMovie = "aboutnav";
   container.play();
  }
 }
};

First frame of loaded swf:

 midframe  = 38;
import mx.transitions.Tween;
//
if (_root.rightbox1._alpha >= 0){
  var fadeIn:Tween = new Tween(_root.rightbox1, "_alpha", mx.transitions.easing.Strong.easeIn, 80, 0, 15, false);
}
else if (_root.rightbox1._alpha == 0){
  _root.rightbox1._alpha == 0;
}
//
if (_root.rightbox2._alpha <= 80){
  var fadeIn:Tween = new Tween(_root.rightbox2, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 80, 15, false);
}
else if (_root.rightbox2._alpha === 80){
  _root.rightbox2._alpha === 80;
}
//
if (_root.rightbox3._alpha <= 80){
  var fadeIn:Tween = new Tween(_root.rightbox3, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 80, 15, false);
}
else if (_root.rightbox3._alpha === 80){
  _root.rightbox3._alpha === 80;
}
//
if (_root.rightbox4._alpha <= 80){
  var fadeIn:Tween = new Tween(_root.rightbox4, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 80, 15, false);
}
else if (_root.rightbox4._alpha === 80){
  _root.rightbox4._alpha === 80;
} 
//
if (_root.rightbox5._alpha <= 80){
  var fadeIn:Tween = new Tween(_root.rightbox5, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 80, 15, false);
}
else if (_root.rightbox5._alpha === 80){
  _root.rightbox5._alpha === 80;
} 
//
if (_root.rightbox6._alpha <= 80){
  var fadeIn:Tween = new Tween(_root.rightbox6, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 80, 15, false);
}
else if (_root.rightbox6._alpha === 80){
  _root.rightbox6._alpha === 80;
}
//
if (_root.thumbbox._alpha <= 80){
  var fadeIn:Tween = new Tween(_root.thumbbox, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 80, 15, false);
}
else if (_root.thumbbox._alpha === 80){
  _root.thumbbox._alpha === 80;
} 

Midframe:

 stop();

Last Frame:

_root.loadNewMovie();

All my swf are basically the same. I also have a bit of stuff on the main timeline but too much to put here. I think my problem is how i’m checking to see what the alpha is and then what I’m telling it to do based on what it finds. I just dont know how else to do it.

Thanks,
Josh