Jump to content
xisto Community
Sign in to follow this  
srawr42

Flash Image Map Multiple Link - No Compiler Error, But Not Working

Recommended Posts

Hello,I've made an image map in Flash using AS3, however it does not seem to be working properly.The links only work in a strange succession. In order to click all the links you must first click the last link followed by the first link, then the second link. After that the image map behaves as it is supposed to. I'm not sure why this is happening.It complies without error and aside from the little quirk mentioned above, it works beautifully.I've checked and double checked the AS, even copied and pasted some code from one button to another to see if it would make a difference, but to no avail.I am using the code listed below:

button1.addEventListener(MouseEvent.CLICK, callLink1);function callLink1 (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, "_parent");        }         catch (e:Error) {            trace ("Error occurred!");}

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.