Web Design Forum HTML CSS JavaScript PHP Graphic Design SEO forum
"Flash Script - Falling Snow Effect" - Printable Version

+- Web Design Forum HTML CSS JavaScript PHP Graphic Design SEO forum (http://www.webdesignforum.com.au)
+-- Forum: Web and Graphic Design (/forumdisplay.php?fid=1)
+--- Forum: Scripts (/forumdisplay.php?fid=9)
+--- Thread: "Flash Script - Falling Snow Effect" (/showthread.php?tid=116)



"Flash Script - Falling Snow Effect" - justinOrel - 01-12-2011 09:53 AM

do you have any script for "Flash Script - Falling Snow Effect"


RE: "Flash Script - Falling Snow Effect" - dianna - 08-01-2011 09:59 PM

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]


RE: "Flash Script - Falling Snow Effect" - dianna - 08-06-2011 04:35 PM

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


RE: "Flash Script - Falling Snow Effect" - dianna - 08-11-2011 11:14 PM

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);


RE: "Flash Script - Falling Snow Effect" - netshet - 08-12-2011 08:46 PM

how does code work


RE: "Flash Script - Falling Snow Effect" - jackkelly - 08-16-2012 09:31 PM

thanks for this stuff good share


RE: "Flash Script - Falling Snow Effect" - markslatter - 09-01-2012 08:46 PM

this is very informative stuff u have share here good work keep posting