Link to home
Start Free TrialLog in
Avatar of Delidumrul
Delidumrul

asked on

1084: Syntax Error

Hi all,

I have a piece of code written in Actionscript. When I checked syntax, I got the following error message;

"1084: Syntax error: expecting rightparen before add."

duplicateMovieClip(tremble, "tremble" add c, c) code leads to the above error.

Additionally, I am using actionscript 3 and also tremble is an instance name of movieclip

How can I fix this problem?

Thanks in advance,


a = 3;
b = 6;
c = 9;
duplicateMovieClip(tremble, "tremble" add c, c);
tremble._x = random(a);
tremble._y = random(b);
tremble._alpha = random(45);
tremble._rotation = random(a);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of moagrius
moagrius
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Delidumrul
Delidumrul

ASKER

it is a very quick and helpful solution.

Thanks a lot,