Unload swfs

is there a way to script each button in a nav system to unload the current
movie and load the swf the button selected is related too?