Jump to content
xisto Community
Sign in to follow this  

As3: Error 1084

Recommended Posts

Hello,I have created an image map which links to various external pages. I'm not sure what went wrong but the links worked fine when I had just a couple buttons on the page, but once I added more I started getting the 1084 compiler error.I am using the following code:

button1.addEventListener(MouseEvent.CLICK, callLink51);function callLink51 (event: MouseEvent) :void { var url:String = ("https://www.google.de/?gfe_rd=cr&ei=BwkjVKfAD8uH8QfckIGgCQ&gws_rd=ssl;); var request:URLRequest = new URLRequest (url);try { navigateToURL (request, "_blank");} catch (e:Error) {trace ("Error occurred!");}

Whenever I try to view the .flv I get around 42 errors saying the same thing."1084: Syntax error: expecting rightbrace before end of program."The location of the error is listed as "Scene 1, Layer 'button1', Frame 1"I have double checked all of my code, added right braces left and right, and even tried deleting the layer. Whichever layer is listed last becomes the source of the error, which is the same every time.Any and all help would be much appreciated. Thank you!

Share this post

Link to post
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
Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.