?
Solved

Make Flash Banner Link: Action Script 1

Posted on 2009-04-09
1
Medium Priority
?
629 Views
Last Modified: 2013-11-11
Using Action Script 1 how do I make an entire Flash banner link to http://www.google.com ?
0
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
john_hollings earned 2000 total points
ID: 24106990
Create an invisible button, do this by drawing a rectangle without a border only fill colour, the same size of you banner.  With it selected press F8 to bring up the create symbol box, and select button and give it a name 'invis_btn'.  With it still selected in the properties panel give it an instance name of link_btn.

On your root timeline create a layer and name it actions. Select the first frame and ensure it is a blank keyframe and then open the actions panel.

Here use the following code and it should work.
link_btn.onRelease = function()
{
    //first provide the url, then the window option i.e same browser with
    //_self or new with _blank etc, can't remember if you need the this
    //encapsulated in "" or not.
    getURL("http://www.google.com", "_self");
}

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question