Skip to main content
January 29, 2013
Answered

pop up window in action script 2.0 using a text link

  • January 29, 2013
  • 1 reply
  • 1606 views

hello adobe cummunity,

I have a website (www.freshwaterbeats.com) which is created in action script 2.0 and I am having trouble turning my links into pop up windows.

I have a set code for the thumbnail links which works with the text tool and not the button command.

Actions:

var Lnk = Link_URL.text;

Button actions:

on (rollOver) {

          Background.gotoAndPlay("Over");

}

on (rollOut) {

          Background.gotoAndPlay("Out");

}

on (release, releaseOutside) {

          getURL(Lnk);

}

This code works fine to set up the links to open new pages but it navigates away from my index page. I would like to create a pop up window by editing the code above.

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

If you add a second argument to the getURL command you can have the linked pages open in a separate browser window...

getURL(Lnk, "_blank");

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
January 29, 2013

If you add a second argument to the getURL command you can have the linked pages open in a separate browser window...

getURL(Lnk, "_blank");

January 29, 2013

I tried it before it gives me an error message because it is not a web address

Ned Murphy
Legend
January 29, 2013

If it is not a web address, what are you trying to link?  getURL is for linking web addresses.