Hi,
I have a menu (mc_menu) with 6 button mc’s (btn_home, btn_about, …btn_contact) I also have 6 containerson the stage (content_home, content_about, …content_contact)
Right now I’m loading different external swf’s(home, about,…contact) with the following AS code:
function pagina(page) {
showContent(page);
}
function showContent(page) {
var c = this["content_"+page];
for (var i in this) {
if (this*._name.substr(0, 8) == "content_") {
this*._visible = (this*._name.substr(8) == page);
c.loadMovie(page+".swf");
}
loadingPage = page;
}
}
and on the buttons I call that functions:
function setButton() {
for (var i in menuMc) {
if (menuMc*._name.substr(0, 4) == "btn_") {
clip = menuMc*;
//RollOver and RollOut stuf goes here
clip.onRelease = function() {
[color=red]pagina(this._name.substr(4));[/color]
};
}
}
}
But I want the external swf’s to load in just one container with fade in and fade out. How can I reach this?
Thanks in advance