Snow in flash cs5 actionscript 2.0

I need help with snow effect in Flash CS5 Actionscript 2.0. I used the script from this site but two errorc ocured with the code:
if (snowparticles<150)
duplicateMovieClip(“snow”,“snow” add i,i)
setProperty(“snow” add i,_x,random(450))

setProperty("snow" add i,_xscale,scale)
setProperty("snow" add i,_yscale,scale)

The problem is in 3rd and 5th line and in Compiler error is written that in those two lines ‘)’ or ‘,’ is expected.
What should i do to correct it?
Please help

I used snow from this site

The code in that article is old style actionscript that is pretty much redundant. You should be able to find plenty newer alternative snowflake effects on google.

In fact here’s some code from a christmas e-card I made recently in as3. If you have a snowflake movieclip in your library with class set to snowflake:

var snowarr = new Array();
var maxflakes:int = 60;

for(var s:int = 0; s<maxflakes; s++)
      	var sf:snowflake = new snowflake();
      	addChild(sf as DisplayObject);
	 sf.x = Math.random()*stage.stageWidth;
	sf.y = 0-Math.random()*stage.stageWidth;
	var snowsize:Number = .3+(Math.random()*.6);
	sf.scaleX = sf.scaleY = sf.snowsize = snowsize;
	sf.cacheAsBitmap = true;

function updateFlakes(event:Event):void
	for(var f:int = 0; f<maxflakes; f++)

addEventListener(Event.ENTER_FRAME, updateFlakes);

tkank you very much :slight_smile: