gonda
09-26-2003, 10:37 AM
Can anyone help me with this?
"balk.swf" is my navigation and contains 8 MC's
I want to load (attach) "balk.swf" in another file and then when I click my navigation I want another file to be attached (my content). So my main fla contains 2 attached fla's "balk.swf" and the the "content.swf".
This script is the "balk.swf" but it's not working!!!
var i = 1;
while(i <= 8) {
// movieclip on stage
_root.attachMovie("balk"+i,"balk"+i,i);
// position
_root["balk"+i]._x = 0;
_root["balk"+i]._y = 90 + (i*20);
// store data
//_root["balk"+i].id = welkeBalk[i];
_root["balk"+i].onRollOver = function() {
this.gotoAndPlay("over");
}
_root["balk"+i].onRollOut = function() {
this.gotoAndPlay("out");
}
_root["balk"+i].onPress = function() {
this.gotoAndStop("press");
//["balk"+i] == ["balkb"+i]
}
_root["balk"+i].onRelease = function() {
//this.gotoAndStop("press");
createEmptyMovieClip("externalMovie",20);
externalMovie.loadMovie("content.swf");
externalMovie._x = 200;
externalMovie._y = 0;
}
// keyframe
_root["balk"+i].gotoAndPlay("start");
counter
i++;
}
When I run a test movie on "balk.fla" it works, but if I attach it in my main file, it doesn't. This is the script of the main file :
createEmptyMovieClip("externalMovie",30);
externalMovie.loadMovie("balk.swf");
externalMovie._x = 50;
externalMovie._y = 50;
externalMovie.getDepth();
I tried to leave _root or put it in front, but it doesn't help, and I think the depths are quite alright like this. Right??? :(
please help me out ...
;)
"balk.swf" is my navigation and contains 8 MC's
I want to load (attach) "balk.swf" in another file and then when I click my navigation I want another file to be attached (my content). So my main fla contains 2 attached fla's "balk.swf" and the the "content.swf".
This script is the "balk.swf" but it's not working!!!
var i = 1;
while(i <= 8) {
// movieclip on stage
_root.attachMovie("balk"+i,"balk"+i,i);
// position
_root["balk"+i]._x = 0;
_root["balk"+i]._y = 90 + (i*20);
// store data
//_root["balk"+i].id = welkeBalk[i];
_root["balk"+i].onRollOver = function() {
this.gotoAndPlay("over");
}
_root["balk"+i].onRollOut = function() {
this.gotoAndPlay("out");
}
_root["balk"+i].onPress = function() {
this.gotoAndStop("press");
//["balk"+i] == ["balkb"+i]
}
_root["balk"+i].onRelease = function() {
//this.gotoAndStop("press");
createEmptyMovieClip("externalMovie",20);
externalMovie.loadMovie("content.swf");
externalMovie._x = 200;
externalMovie._y = 0;
}
// keyframe
_root["balk"+i].gotoAndPlay("start");
counter
i++;
}
When I run a test movie on "balk.fla" it works, but if I attach it in my main file, it doesn't. This is the script of the main file :
createEmptyMovieClip("externalMovie",30);
externalMovie.loadMovie("balk.swf");
externalMovie._x = 50;
externalMovie._y = 50;
externalMovie.getDepth();
I tried to leave _root or put it in front, but it doesn't help, and I think the depths are quite alright like this. Right??? :(
please help me out ...
;)