Zurück   Flashforum > Flash > Flash Fortgeschritten > Flash MX

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 29-11-2007, 14:32   #1 (permalink)
Neuer User
 
Benutzerbild von area80
 
Registriert seit: Jun 2005
Beiträge: 26
Problem mit Konfetti-Script

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");
area80 ist offline   Mit Zitat antworten
Alt 30-11-2007, 15:44   #2 (permalink)
{flasher}
 
Benutzerbild von Majo
 
Registriert seit: Mar 2003
Ort: on water
Beiträge: 2.823
run.removeMovieClip(); löscht deinen clip auf der bühne
__________________
hang loose

Geändert von Majo (30-11-2007 um 15:45 Uhr)
Majo ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 23:50 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele