hallo leutz
ich folgendes problem:
ich hab eine swf in der ich ein soundobjekt habe. Diesen preloade ich über eine andere swf. wenn ich die erste teste, wird der ton abgespielt. teste ich sie über den preloader geht der ton nicht. root hab ich abgeschlossen (rootlock), daran liegt es nicht.
soundobjekt:
PHP-Code:
nein.onRelease=function(){
falsch++
antwort.scaleTo(100,2,"easeOutElastic");
antwort.alphaTo(100,1);
antwort.richtig._visible=0;
//antwort.farbfeld.colorTo(0xcc0000,1);
var my_sound:Sound = new Sound();
my_sound.attachSound("falsch_sound");
my_sound.start();
}
preloader:
PHP-Code:
stop();
_global.tiefe =10;
/////////////////////////////////////////////////////////
this.createEmptyMovieClip("container", _global.tiefe++);
this.container._x = 0;
this.container._y = 0;
/////////////////////////////////////////////////////////
extern_laden = function (clip) {
// -------------------------------------------------
this.container.loadMovie(clip);
this.createEmptyMovieClip("control", _global.tiefe++);
// -------------------------------------------------
tl = this;
this.control.onEnterFrame = function() {
if (tl.container.getBytesLoaded()>=4) {
// -----------------------------------------
container.setMask(maske);
// -----------------------------------------
gesamt = tl.container.getBytesTotal();
bereits = tl.container.getBytesLoaded();
prozent = Math.floor((bereits/gesamt)*100);
// ---------------- -------------------------
tl.text_txt.txtStatus.text =prozent + "%";
tl.text_txt.txtStatus.setTextFormat(tl.formatNormal);
balken._xscale += (prozent-balken._xscale)/4;
// -----------------------------------------
if (prozent ==100) {
hupfer.scaleTo(0,1,"easeInBack");
balken.alphaTo(0,1);
maske.scaleTo(100,2,"easeInOutExpo");
tl.text_txt.txtStatus.alphaTo(0,1);
laden.alphaTo(0,1);
delete this.onEnterFrame;
}
}
};
};
//////////////////////////////////////////////////////////
extern_laden("sounds.swf")
//////////////////////////////////////////////////////////
text_txt.swapDepths(104);
hupfer.swapDepths(102);
balken.swapDepths(101);
laden.swapDepths(103);
sieht jemand was, das ich nicht kenne bzw falsch gemacht habe?
liebe grüße
daniel