FORUMS: list search recent posts

How do I link a button to a external website?

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ellen Pak
How do I link a button to a external website?
on Feb 24, 2010 at 11:37:31 am

Hi, I'm trying to link a button to a external website and it's not working well.
can someone help me with this issue please?


Return to posts index

demetri tashie
Re: How do I link a button to a external website?
on Feb 25, 2010 at 1:38:37 pm

that is done through a URLRequest and then navigateToURL, which should be written into your button function.

the most concise code would be:

urlBtn.addEventListener(MouseEvent.CLICK, goesToURL);

function goesToURL(evt:MouseEvent):void {
navigateToURL(new URLRequest("http://www.google.com"));
}



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]