Easier way?

is there an easier way to tell flash that when a MC is loaded all other MC’s on the screen to go to a frame?

this is what i have but i think it’s bad programming:

company.onPress = function() {

tellTarget ("company") {
	gotoAndPlay(2);
}
            tellTarget ("contact") {
	gotoAndStop(1);
}
tellTarget ("services") {
	gotoAndStop(1);
}
            tellTarget ("about") {
	gotoAndStop(1);
}
            tellTarget ("info") {
	gotoAndStop(1);
}
            tellTarget ("pricing") {
	gotoAndStop(1);
}
            tellTarget ("shopping") {
	gotoAndStop(1);
}

};

what i’m trying to do is if the “company” button is pressed for example, I would like the company section to come up and any other section that is on screen to dissapear. (Frame 2 being a visible state and frame 1 being blank)

tellTarget has been deprecated [AS]tellTarget (“shopping”) {
gotoAndStop(1);
}[/AS] can be re-written as [AS]shopping.gotoAndStop(1)[/AS] Much easier eh?

Also… keeping all your sections in movie clip symbols isn’t very efficient at all. What I would recommend is creating an empty movie clip symbol to load to (either manually or via the AS command createEmptyMovieClip()) and then creating each of your sections in a seperate .fla and exporting them as .swf files where you can then call those .swf files into your other file using [AS]emptyMcInstanceName.loadMovie(“fileName.swf”)[/AS] (quotes important for “file.swf”)

Everytime you load a new movie to emptyMcInstanceName the old movie will automatically be unloaded to make way for the new movie.