user1158756
user1158756

Reputation: 11

Syntax error 1084: Expecting semicolon before leftbrace

Did make a Flash banner and it all works fine. But when I want to put with the rectangle tool a button over the whole banner and put in the action tab the code:

Symbol16.onRelease() {
getURL('http://www.domainname.nl/');
}

I will get an error:

Scene 1, Layer 'Layer 5', Frame 1, Line 1 1086: Syntax error: expecting semicolon before leftbrace

I've already searched for many hours to the solution but couldn't find anything on the web.

Does anyone know how to solve this problem?

If more info is needed let me know.

Upvotes: 1

Views: 20006

Answers (2)

Harut
Harut

Reputation: 1

You should change your script version if you are on ActionScript 3.0.

To do this press Ctrl+Shift+F12, Flash Tab → Script: ActionScript 2.0 → Press OK.

Upvotes: 0

Emin A. Alekperov
Emin A. Alekperov

Reputation: 1067

You should add a method by this way:

Symbol16.onRelease = function() {
getURL('http://www.domainname.nl/');
}

Upvotes: 2

Related Questions