• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

navigateToURL outside of my domain

Explorer ,
Nov 02, 2008 Nov 02, 2008

Copy link to clipboard

Copied

This is the code I want to use to direct a user to a different web page-

function linkToBiblioteca(event:MouseEvent) {
var request = new URLRequest('www.biblioteca.buap.mx');
navigateToURL(request,"_blank");
}

- but it trys to open inside of my directory. How can I avoid this?
TOPICS
ActionScript

Views

445

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 02, 2008 Nov 02, 2008

Copy link to clipboard

Copied

Try to put http protocol into url:

var request = new URLRequest(' http://www.biblioteca.buap.mx');

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 02, 2008 Nov 02, 2008

Copy link to clipboard

Copied

It should work, Try it as:
var request = new URLRequest(' http://www.biblioteca.buap.mx');

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 02, 2008 Nov 02, 2008

Copy link to clipboard

Copied

LATEST
Perfect, thanks for your help!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines