Flash error 1084: "Syntax error"
Posted
by
Elliot Broomhall
on Stack Overflow
See other posts from Stack Overflow
or by Elliot Broomhall
Published on 2012-04-08T11:02:42Z
Indexed on
2012/04/08
11:29 UTC
Read the original article
Hit count: 249
actionscript-3
|flash
Hi I'm getting two error messages in Flash when using actionscropt 3.0
"Topbar,Layer 'Action Layer',Frame 1,line 12 1084: syntax error: expection semicolon before add.
"Topbar,Layer 'Action Layer',Frame 1,line 12 1084: syntax error: expection rightbrace before semicolon
Here is my code could anyone give some insight to what is actually happening thanks and help on rectifying the issue thanks.
clip = Number(random(7)) + 1;
while (Number(clip) <= 7)
{
clip = Number(clip) + 1;
Scale = Number(random(80)) + 1;
setProperty("/star", _x, Number(random(800)) + 10);
setProperty("/star", _rotation, Number(random(330)) + 50);
setProperty("/star", _xscale, Scale);
setProperty("/star", _yscale, Scale);
setProperty("/star", _y, Number(random(800)) + 50);
n = Number(n) + 1;
bn = "star" add n;
duplicateMovieClip("star", bn, n);
set(bn add ":n", n);
} // end while
clip = "0";
© Stack Overflow or respective owner