# Syntax error ? ')' expected?

**URL:** https://forum.kirupa.com/t/syntax-error-expected/106154
**Category:** Uncategorized
**Created:** [April 2, 2004, 8:06pm UTC](https://forum.kirupa.com/t/syntax-error-expected/106154 "2004-04-02T20:06:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![AgentWhite](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@AgentWhite](https://forum.kirupa.com/u/AgentWhite)
#### Post date: [April 2, 2004, 8:06pm UTC](https://forum.kirupa.com/t/syntax-error-expected/106154/1 "2004-04-02T20:06:30Z")

</div>

I am trying to recreate the Falling Snow 2.0 tutorial, only instead of snow I have umbrellas, only am baffled by a small section of code…

snowflakes = 75;  
do {  
\*\* duplicateMovieClip(snow, “snow” + k, k);  
\*\* k++;  
} while (k != snowflakes);

this is the code provided in the tutorial. but i have changed a couple of the names so my code is this…

umbrellas = 75;  
do {  
\*\* duplicateMovieClip(umbrella, “umbrella” + k, k);  
\*\* k++;  
} while (k != umbrellas);

you’ll notice i have merely changed SNOWFLAKES to UMBRELLAS and SNOW to UMBRELLA. However, while the first bit of code works fine, the second either crashes flash, or presents me with these two errors…

**Error** Symbol=umbrella\_mc, layer=Actions, frame=1:Line 3: Syntax error.  
\*\* duplicateMovieClip(brolly, “brolly” + k, k);

**Error** Symbol=umbrella\_mc, layer=Actions, frame=1:Line 4: ‘)’ expected  
\*\* k++;

Can anyone help with why this is happening. Am using Flash MX 2004, if that makes any difference.

Thanks
