Web Design Forum HTML CSS JavaScript PHP Graphic Design SEO forum

Full Version: "Flash Script - Falling Snow Effect"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
do you have any script for "Flash Script - Falling Snow Effect"
Flash Script – Falling Snow Effect
Code:
type = ‘application/x-shockwave-flash’
data = ‘http://sitepointstatic.com/flash/snow.swf’
width = ’400′
height = ’400′
bgcolor = ‘black’
>
1. Create a small snowflake I used a small circle filled with white color.

2. Convert this snowflake object to a movie clip, and give it an instance name of "snow".

3. Now, go in to the time line of this snow movie clip, and create three keyframes in this layer.

4. In the first key frame give action:
view plainprint?

mov = 0; <br>
ran = getProperty("", _x); [/quote]
I'm using this little script for an xmas ad right now Smile The snow disappears to the right after some time due to this code:

ran = ran - 10;

Just remove this line and the snow should start at the top of the screen again.

I'm still having problems with some flickering in the top section of the window.

I replaced this:
setProperty ("", _y, 50);
with this:
setProperty ("", _y, 0);

and that seemed to help.

Wonder why... Smile
ow go back to the main timeline, and create three key frames in this layer.

8. Insert these actions into the first key frame:

snowparticles = 0;
i = 0;

9. Insert this action into the second key frame:

if (snowparticles<150)
{
duplicateMovieClip("snow","snow" add i,i)
scale=random(60)+10
setProperty("snow" add i,_x,random(450))
setProperty("snow" add i,_xscale,scale)
setProperty("snow" add i,_yscale,scale)
snowparticles++
i++
}

10. Insert this action into the third key frame:

gotoAndPlay (2);
how does code work
thanks for this stuff good share
this is very informative stuff u have share here good work keep posting
Reference URL's