| |||||||
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: Sep 2006
Beiträge: 11
| Flash 6 AS geht in Flash 8 nicht.
Guten abend ihr allwissenden Flashgurus ![]() Ich hab folgendes Problem: Code: MovieClip.prototype.schnee = function(pObj, pAnzahl, pBreite, pHoehe) {
for (var i = 0; i<=pAnzahl; i++) {
this.attachMovie(pObj, "flocke"+i, i);
this["flocke"+i]._x = Math.round(Math.random()*pBreite);
this["flocke"+i]._y = Math.round(Math.random()*pHoehe);
this["flocke"+i].faktor = ((this["flocke"+i]._alpha=Math.random()*100));
this["flocke"+i]._height = (this["flocke"+i]._width=500/this["flocke"+i].faktor);
this["flocke"+i].zufall = 1+(Math.random()*5);
this["flocke"+i].onEnterFrame = function() {
this.kante = pBreite+this._width;
this.spos = -this._width;
this.xpos = this._x;
this.tempo += this.zufall;
this.rad = (this.tempo/180)*Math.PI;
if (this.rad>Math.PI*2) {
this.rad = this.rad-Math.PI*2;
}
if (this.xpos<this.kante) {
this._x = this._x+this.zufall;
this._y = this._y+Math.cos(this.rad);
} else {
this._x = this.spos;
}
};
}
};
schnee("fClip", 100, Stage.width, Stage.height); Vielen dank schonmal für alle die sich damit auseinandersetzen. |
| | |
| | #2 (permalink) |
| . Registriert seit: May 2003 Ort: bayern
Beiträge: 1.117
|
du mußt tempo zunächst definieren, also PHP-Code:
__________________ [mooseMash] |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |