Skip to main content
Participant
May 12, 2009
Answered

link to url help

  • May 12, 2009
  • 1 reply
  • 524 views

Hi

I've been following some tutorial to make a link to a website in flash, this is my code:

-------------------------------------------------------------------------------

pro.addEventListener(MouseEvent.CLICK, product);


function product(event:MouseEvent):void
{
navigateToURL(new URLRequest("www.google.com"));
}

--------------------------------------------------------------------------------

Instead of linking me to "www.google.com" when click

it take me to "file:///C:/Documents%20and%20Settings/H%20K/My%20Documents/www.google.com"

If anyone know how to fix this please let me know.

Thanks

This topic has been closed for replies.
Correct answer Ned Murphy

Try using a complete URL address: http://www.google.com

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
May 12, 2009

Try using a complete URL address: http://www.google.com

nguye1rAuthor
Participant
May 12, 2009

Its working now, thanks for the help

Ned Murphy
Legend
May 12, 2009

You're welcome