Effetto neve. La neve è bianca ma dovrei cambiargli colore. Ho provato con currentSnow.Color.setRGB(000000); ma non va.codice:MovieClip.prototype.attach = function(num) { var xadd:Number = 1; var yadd:Number = 2; for (i=0; i<num; i++) { this.attachMovie("neve", "neve"+count, count); currentSnow = _root["neve"+count]; count++; currentSnow._x = random(550); currentSnow._y = random(400); currentSnow._alpha = random(200); currentSnow._width = random(10); currentSnow._height = random(10); currentSnow._width = currentSnow._height; currentSnow.onEnterFrame = function() { this._x += xadd; this._y += yadd; if (this._y>stageHeight+(this._height/2)) { this._y = 0-(this._height/2); } if (this._x>stageWidth+(this._width/2)) { this._x = 0-(this._width/2); } }; } }; init = function () { stageHeight = 400; stageWidth = 550; count = 100; attach(950); }; init();
Un aiuto?
Grazie.

Rispondi quotando