habe ein filmchen mit 4 bildern;
im ersten bild: nichts, um preloader effekt zu erzielen(kann das jetzt net besser beschreiben);
zweites bild:
PHP-Code:
stop();
bang = new Sound();
bang.loadSound("bang.mp3", false);
Movieclip.prototype.preload = function() {
var totalBytes = _root.getBytesTotal();
var totalbang = bang.getBytesTotal();
var prozent = 0;
gesamtBytes = totalBytes+totalbang;
this.balken._xscale = prozent;
this.T_prozent.autoSize = "LEFT";
this.onEnterFrame = function() {
loadedBytes = _root.getBytesLoaded();
loadedbang = bang.getBytesLoaded();
loaded = loadedBytes+loadedbang;
prozent = Math.round(loaded*100/gesamtBytes);
if (prozent<100) {
this.T_prozent.text = "loading WroDDs intro..."+prozent+"% loaded";
this.balken._xscale = prozent;
} else {
this.T_prozent.text = "complete loaded...100 %";
this.balken._xscale = 100;
var iv = setInterval(function () {
_root.nextFrame();
clearInterval(iv);
}, 1000);
delete this.onEnterFrame;
}
};
};
MC_preloader.preload();
im dritten bild:
PHP-Code:
bang.start(0, 1);
MovieClip.prototype.doMove = function(targetX, targetY, delay) {
this._y = Math.random()*800;
this._x = Math.random()*200;
if (this._x != targetX || this._y != targetY) {
this.onEnterFrame = function() {
var difX = -this._x+targetX;
var difY = -this._y+targetY;
if (Math.round(Math.abs(difX))>0 || Math.round(Math.abs(difY))>0) {
this._x += difX/delay;
this._y += difY/delay;
} else {
this._x = targetX;
this._y = targetY;
delete this.onEnterFrame;
//nextFrame();//das ist momentane notlösung, aber erzielt nicht den effekt;
}
};
}
};
MC_band_1.doMove(75, 50, 2);
MC_band_2.doMove(75, 150, 2);
MC_band_3.doMove(75, 250, 2);
MC_band_4.doMove(359, 50, 2);
MC_band_5.doMove(254.4, 150, 2);
MC_band_6.doMove(321.3, 250, 2);
MC_band_7.doMove(359, 350, 2);
MC_christian_1.doMove(75, 350, 2);
MC_christian_2.doMove(183.5, 150, 2);
MC_christian_3.doMove(250, 50, 2);
MC_mario_1.doMove(183.5, 250, 2);
MC_mario_2.doMove(392.1, 150.2, 2);
MC_lukas_1.doMove(183.5, 50, 2);
MC_lukas_2.doMove(250.5, 250, 2);
MC_lukas_3.doMove(392.3, 250, 2);
MC_michael_1.doMove(183.5, 350, 2);
MC_michael_2.doMove(325.4, 150.2, 2);
MC_michael_3.doMove(250.3, 350, 2);
//stop();
sobald ich delay auf 8 setzen würde, dann ist die notlösung
"
"
unbrauchbar
im vierten bild, welches
NICHT abgespielt wird:
PHP-Code:
stop();
MC_titel._xscale = MC_titel._yscale=500;
onEnterFrame = function () {
if (MC_titel._xscale=MC_titel._yscale != 100) {
MC_titel._xscale = MC_titel._yscale -= 100;
} else if (MC_titel._xscale=MC_titel._yscale<=100) {
MC_titel._xscale = MC_titel._yscale=100;
// delete MC_titel.onEnterFrame;
}
};
ich glaube, ich habe ein generelles verständnisproblem, was das abspielen eines filchens anbelangt, irgendwie habe ich da immer meine probleme;