# Flash player causing syntax error

**URL:** https://forum.kirupa.com/t/flash-player-causing-syntax-error/198922
**Category:** Uncategorized
**Created:** [August 29, 2006, 5:38pm UTC](https://forum.kirupa.com/t/flash-player-causing-syntax-error/198922 "2006-08-29T17:38:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![billy\_talent](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@billy\_talent](https://forum.kirupa.com/u/billy_talent)
#### Post date: [August 29, 2006, 5:38pm UTC](https://forum.kirupa.com/t/flash-player-causing-syntax-error/198922/1 "2006-08-29T17:38:20Z")

</div>

Hi there folks, I have downloaded a component using the duplicate symbol function, it works fine when published with Flash Player 7 but when I try to update it to Flash Player 8 and publish it produces this error message:

**Error** Symbol=flame, layer=Layer 1, frame=2:Line 1: ‘)’ or ‘,’ expected  
duplicateMovieClip(“mcFlame”, “Flame” add index, index);

Could someone tell me how to fix this in the code as I’m not quite up to speed with Actionscript quite yet! below is the code from the keyframe:

```auto
duplicateMovieClip("mcFlame", "Flame" add index, index);

xcoord=Math.random()*10;
xStretch=Math.random()*50;
yStretch=Math.random()*100;
opacity=Math.random()*60;

setProperty("Flame" add index, _x, xcoord);
setProperty("Flame" add index, _xscale, xStretch);
setProperty("Flame" add index, _yscale, yStretch);
setProperty("Flame" add index, _alpha, opacity);

++index;

```

thanks so much for any help!🙂
