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

How to make a link in Flash ActionScript 2.0

New Here ,
Nov 20, 2009 Nov 20, 2009

Trying to figure out how to add a link that will open up in a new window using Action Script for something at work.  Have barely used Flash so I am totally lost.  People at work gave me a file with a blue box that is in its own layer, but I don't understand where to put the link at.  I know I have to use Action Script 2.0 and go to the Actions palette.  After that I am lost! HELP!

TOPICS
ActionScript
442
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

Community Expert , Nov 20, 2009 Nov 20, 2009

if clicking the blue box is supposed to open that link, right click the blue box, click convert to symbol, tick movieclip and click ok.  in the properties panel assign an instance name (say blueboxMC).  click on an empty part of the stage and in the actions panel paste:

blueboxMC.onRelease=function(){

getURL("http://www.adobe.com","_blank");

}

// upload your published swf, html and ac_fl_runcontent.js files to your server and test.

Translate
Community Expert ,
Nov 20, 2009 Nov 20, 2009
LATEST

if clicking the blue box is supposed to open that link, right click the blue box, click convert to symbol, tick movieclip and click ok.  in the properties panel assign an instance name (say blueboxMC).  click on an empty part of the stage and in the actions panel paste:

blueboxMC.onRelease=function(){

getURL("http://www.adobe.com","_blank");

}

// upload your published swf, html and ac_fl_runcontent.js files to your server and test.

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