Hallo,
ich habe aus dem Forum eine Vorlage für Konfetti heruntergeladen und in meine Datei in der Hauptzeitleiste eingebaut (d.h. Script und MC Clip).
Ich beschäftige mich schon länger mit Flash, aber ein umfangreicheres Actionscript lässt mich aber noch alt aussehen.
Zwei Probleme sind bei mir aufgetreten:
1. Wie kann ich den Konfettiregen wieder stoppen?
2. In meiner Datei sind es "irgendwie" weniger Konfettis, obwohl ich nichts am Script geändert habe
Kann mir bitte jemand helfen?
Und hier der Code:
Zitat:
MovieClip.prototype.klon = function(clip) {
if (this.clipCount<1000) {
this.cName = "Clip"+String(this.ClipCount);
eval(clip).duplicateMovieClip(this.cName, this.clipCount);
this.clipCount++;
}
};
MovieClip.prototype.katapult = function(hoehe, propX, propY, checkProp, faktor) {
if (this.signal != true) {
this.dim = random(100)/faktor;
this._width = 5+(this.dim/2);
this._height = 5+(this.dim/2);
}
this.signal = true;
this[propY] += this.dim;
this[propX] += (random(10)/5);
this[propX] -= (random(10)/5);
if (this[checkProp]>hoehe) {
this[checkProp] = 0;
}
};
MovieClip.prototype.zufallfarbe = function() {
this.obj = new Color(this);
this.farbe = new Object();
this.farbe.ra = random(255);
this.farbe.rb = 0;
this.farbe.ga = random(128);
this.farbe.gb = 0;
this.farbe.ba = 100;
this.farbe.bb = random(128);
this.farbe.aa = 100;
this.farbe.ab = 0;
this.obj.setTransform(this.farbe);
};
fscommand("allowscale", "false");
klon("run");
klon("run2");
klon("run3");
klon("run4");
klon("run5");
|