Preloader and Transition for Dynamic Files

Hey, I am adapting the tutorial “[size=4][color=#003366]Preloader[font=Verdana] and Transition for Dynamic Files” [size=2][color=#000000]to use on a online portfolio I am building. Is it possible to change this script so that if a file (profile.swf for instance) isn’t present nothing will happen. My client will be adding content after the build so I am building all the button functional. If he dosen’t have a 2nd or 3rd file it is just leaving the screen blank. [/color][/size][/font][/color][/size]

I HOPE THIS MAKES SENSE!!


b1.onRelease = function() {
 if (_root.section != "profile.swf") {
  _root.section = "profile.swf";
  _root.transition.gotoAndPlay("closing");
 }
};
b2.onRelease = function() {
 if (_root.section != "gallery.swf") {
  _root.section = "gallery.swf";
  _root.transition.gotoAndPlay("closing");
 }
};
b3.onRelease = function() {
 if (_root.section != "photos.swf") {
  _root.section = "photos.swf";
  _root.transition.gotoAndPlay("closing");
 }
};