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

pop up window in action script 2.0 using a text link

Guest
Jan 29, 2013 Jan 29, 2013

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.

TOPICS
ActionScript
1.5K
Translate
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

correct answers 1 Correct answer

LEGEND , Jan 29, 2013 Jan 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");

Translate
LEGEND ,
Jan 29, 2013 Jan 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");

Translate
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
Guest
Jan 29, 2013 Jan 29, 2013

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

Translate
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 ,
Jan 29, 2013 Jan 29, 2013

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

Translate
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
Guest
Jan 29, 2013 Jan 29, 2013

sorry I ment its writtin "Lnk"  in stead of (www.example.com).

Translate
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 ,
Jan 29, 2013 Jan 29, 2013

I don't know what that means.  Fix it to be a real url and use "http://" in front of it.

Translate
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
Guest
Jan 31, 2013 Jan 31, 2013

Sorry ned the (Lnk, "_blank"); Does work im not sure what went wrong the 1st time. but how do I make It a resize able pop up window?

Message was edited by: FreshwaterBeatz

Translate
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 ,
Jan 31, 2013 Jan 31, 2013
LATEST

Here's a link to an article that covers the various approaches for making popup windows in Flash:

http://helpx.adobe.com/flash-player/kb/create-pop-browser-windows-flash.html

Translate
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