Error In Tutorial?

I think I found an error in another tutorial. I was reviewing the snow tutorial and noticed that the code on this page: http://www.kirupa.com/developer/mx2004/snow.htm

that says this:

 
[left][font=Courier New]snowflakes = 75;
[color=#003366]do[/color] {
   [color=#003366]duplicateMovieClip[/color](snow, [color=#003366]"snow"[/color]+k, k);
   k++;
} [color=#003366]while[/color] (k != snowflakes);[/font]
[/left]
 

Does not work.

The ‘k’ variable is never initialized and therefore is returning a NaN.

If you do this,

 
[left][font=Courier New]snowflakes = 75;[/font]
[font=Courier New]k = 1; 
[color=#003366]do[/color] {
   [color=#003366]duplicateMovieClip[/color](snow, [color=#003366]"snow"[/color]+k, k);
   k++;
} [color=#003366]while[/color] (k != snowflakes);[/font][/left]
 

It works fine.

Its this a problem with the tutorial or with my flash player?

Thanks,