01-12-2011, 09:53 AM
08-01-2011, 09:59 PM
Flash Script – Falling Snow Effect
view plainprint?
mov = 0; <br>
ran = getProperty("", _x); [/quote]
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:
mov = 0; <br>
ran = getProperty("", _x); [/quote]
08-06-2011, 04:35 PM
I'm using this little script for an xmas ad right now 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...
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...
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);
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);
08-12-2011, 08:46 PM
how does code work
08-16-2012, 09:31 PM
thanks for this stuff good share
09-01-2012, 08:46 PM
this is very informative stuff u have share here good work keep posting