| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Nov 2009
Beiträge: 3
| Schnee-Script stoppen
Hallo, ich mache die 4 Jahreszeiten in Flash. Mein Problem ist, wenn ich in die Winterjahreszeit gehe funktioniert das Schnee-Script. Aber wenn ich dann über die Navigation in eine andere Jahreszeit springe, regnet es auch in dem Schlüsselbild weiter. Wie kann ich es einstellen, dass es nur im Winter schneit? Gruß Code: function schnee(pAnzahl, pBreite, pHoehe,pFlockenDim,pFlockenDichte) {
for (var i = -900; i<=pAnzahl; i++) {
this.attachMovie("fClip", "flocke"+i, i);
this["flocke"+i].skal = 50+(Math.random()*pFlockenDim);
this["flocke"+i].alpha = 20+(Math.random()*pFlockenDichte);
this["flocke"+i]._xscale = this["flocke"+i].skal;
this["flocke"+i]._yscale = this["flocke"+i].skal;
this["flocke"+i]._alpha = this["flocke"+i].alpha;
this["flocke"+i].xpos = this["flocke"+i]._x;
this["flocke"+i]._x = -10+(Math.random()*pBreite);
this["flocke"+i].zufall = 1+(Math.random()*2);
this["flocke"+i]._y = -10+(Math.random()*pHoehe);
this["flocke"+i].wind = -Math.PI+(Math.random()*Math.PI);
this["flocke"+i].onEnterFrame = function() {
this.rad += ((this.wind/180)*Math.PI);
this._x -= Math.cos(this.rad);
this._y += this.zufall;
if (this._y>=pHoehe) {
this._y = -5;
}
if ((this._x>=pBreite) || (this._x<=0)) {
this._x = -10+(Math.random()*pBreite);
}
};
}
}
// Aufruf der Funktion (Schnee-Effekt ausführen)
schnee(100,Stage.width,Stage.height,100,50); |
| | |
| | #3 (permalink) |
| ................ Registriert seit: Jun 2004
Beiträge: 15.890
|
...oder du löschst beim Seitenwechsel die Flocken: PHP-Code:
__________________ ternärer Konditionaloperator +++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++ |
| | |
| | #5 (permalink) |
| ................ Registriert seit: Jun 2004
Beiträge: 15.890
|
Wie jetzt "unten dranhäng"? Weiß ja nicht, wie deine Navi aussieht, aber im Prinzip so: PHP-Code:
__________________ ternärer Konditionaloperator +++ Bitte keine Privat-Nachrichten bezüglich Flashfragen! +++ |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Schnee-Animation stoppen??? | intercorni | Flash Einsteiger | 2 | 29-11-2006 16:30 |
| script stoppen | killfactory | ActionScript 1 | 10 | 21-01-2006 15:25 |
| Schnee-AS stoppen per Button | schnuffel1603 | ActionScript 1 | 6 | 22-10-2004 04:02 |
| Schnee Script bei loadMovie | snake44 | ActionScript 1 | 2 | 19-08-2003 16:16 |
| Script stoppen | harego | ActionScript 1 | 2 | 12-01-2002 17:14 |