Hi,
I have a main movie in wich i load external swf’s. I would like to integrate a preloader in the main swf. I tried it with preloaders in the external swf’s but that is only the first time functional.
This is the code I have in the main movie:
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;
}
}
}
showContent("company");
for (var i in this) {
if (this*._name.substr(0, 4) == "btn_") {
setKnop(this*._name);
}
}
function setKnop(clip) {
var clip = eval(clip);
clip.onRollOver = function() {
new Color(this).setRGB(0xA10000);
};
clip.onRollOut = function() {
if (!this.pushed) {
new Color(this).setRGB(0xFFFFFF);
} else {
new Color(this).setRGB(0xA10000);
}
};
clip.onRelease = function() {
_root.resetKnop();
this.pushed = true;
this.useHandCursor = false;
new Color(this).setRGB(0xA10000);
pagina(this._name.substr(4));
};
}
Is there please somebody who can help me?
Thanks in advance