Jump to content
GreenSock

learner_7n

Getting error: 1084: Syntax error: expecting rightparen befo

Moderator Tag

Recommended Posts

Hi,

 

Please help me to correct the following code:

 

TweenMax.fromTo(TA_mc, 6, {rotation:0, alpha:1}, (rotation:"-360", alpha:0});

I am getting the below error:

1084: Syntax error: expecting rightparen before rightbrace.

Link to comment
Share on other sites

You used a parenthesis instead of a brace:

 

BAD: TweenMax.fromTo(TA_mc, 6, {rotation:0, alpha:1}, (rotation:"-360", alpha:0});

GOOD: TweenMax.fromTo(TA_mc, 6, {rotation:0, alpha:1}, {rotation:"-360", alpha:0});

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×