xandeq
11-14-2010, 07:32 AM
Hi there,
I'm using Actionscript 3.0.
I have 3 layers on my stage.
The button is the last object to show on stage.
So i put the following action on its last frame:
stop();
function Example(s:Stage)
{
this.stageReference = s;
entrar_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
var link:URLRequest = new URLRequest("www.google.com");
navigateToURL(link);
}
}
It shows me no ERROR on compilation or execution.
BUT it doesnt open/navigate/redirect to the URL.
somebody please help.
Thank you.
I'm using Actionscript 3.0.
I have 3 layers on my stage.
The button is the last object to show on stage.
So i put the following action on its last frame:
stop();
function Example(s:Stage)
{
this.stageReference = s;
entrar_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
var link:URLRequest = new URLRequest("www.google.com");
navigateToURL(link);
}
}
It shows me no ERROR on compilation or execution.
BUT it doesnt open/navigate/redirect to the URL.
somebody please help.
Thank you.