Hey there- Love the site/forum section but I can’t seem to find an answer to my problem. Maybe someone can enlighten…
I’m using the Flash Snow app to develop snow effects for my header graphic. Anyway, I’d like to incorporate other objects along with the snow. Can someone show me how to add additional objects?
Here’s the mods I’ve made (but the mc won’t duplicate, it just drops one “cash” image at a time…???)
[COLOR=DarkRed]for (k=0; k<50; k++) {
duplicateMovieClip(_root.snow, "snow"+k, k);
duplicateMovieClip(_root.cash, "cash"+k, k);
}[/COLOR]
[COLOR=DarkRed]onClipEvent (load) {
//specifies the size of the movie stage
movieWidth = 810;
movieHeight = 100;
//variables that will modify the falling snow
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;
//giving each snowflake unique characteristics
this._xscale = this._yscale=50+Math.random()*100;
this._alpha = 75+Math.random()*100;
this._x = -10+Math.random()*movieWidth;
this._y = -10+Math.random()*movieHeight;
spin = (Math.random() * 6) - 3;
}
onClipEvent (enterFrame) {
//spinning the flake
this._rotation = this._rotation + spin;
//drifting the flake
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y += i;
if (this._y>=movieHeight) {
this._y = -5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
this._x = -10+Math.random()*movieWidth;
this._y = -5;
}
}[/COLOR]