Hi, welcome to the forums,
What you are looking for is an Event Handler for a button, then run a function.
So on your button, you could have some code like:
Code:
on(release) {
doFunction ('section');
}
then your function could be:
Code:
function doFunction (str_section) {
if (str_section == 'home') {
// some code for animation or another function
containerClip.loadMovie('file.swf', 1); // where 1 represents the depth within the containerClip
} else if (str_section == 'about') {
// some code again....
conatinerClip.loadMovie('file2.swf', 1);
}
}
This is very basic code, but should help you get started. Don't forget to search for other posts and tutorials on this, I know there are plenty.