Hallo, mit folgendem as im ersten frame, kann ich über button, die sich ebenfalls im ersten frame befinden externe swf ein- ausfaden.
Nun meine frage: kann ich dieses as auch über button die sich im eingeblendeten externen swf befinden steuern/ansprechen??? hm.
Gruß hrsflash
PHP-Code:
var tl = this;
tl.createEmptyMovieClip("watcher", 0);
tl.createEmptyMovieClip("loader1", 1);
tl.createEmptyMovieClip("loader2", 2);
tl.loader1._x = tl.loader2._x = 221
tl.loader1._y = tl.loader2._y = 28
function nextPic(i) {
b1_MC.enabled = b2_MC.enabled=b3_MC.enabled=b4_MC.enabled=b5_MC.enabled=b6_MC.enabled=b7_MC.enabled=false;
if (mc != tl.loader1) {
mc = tl.loader1;
} else {
mc = tl.loader2;
}
mc._alpha = 0;
mc.swapDepths(2);
mc.loadMovie("movies/movie"+i+".swf");
tl.watcher.onEnterFrame = function() {
if (mc.getBytesLoaded()>=mc.getBytesTotal() && mc.getBytesLoaded()>4) {
if (mc._alpha<100) {
mc._alpha += 4;
} else {
delete this.onEnterFrame;
b1_MC.enabled = b2_MC.enabled=b3_MC.enabled=b4_MC.enabled=b5_MC.enabled=b6_MC.enabled=b7_MC.enabled=true;
}
}
};
}
//
nextPic(1);
//
b1_MC.onRelease = function() {
nextPic(1);
};
b2_MC.onRelease = function() {
nextPic(2);
};
b3_MC.onRelease = function() {
nextPic(3);
};
b4_MC.onRelease = function() {
nextPic(4);
};
b5_MC.onRelease = function() {
nextPic(5);
};
b6_MC.onRelease = function() {
nextPic(6);
};