Solved

Make Flash Banner Link: Action Script 1

Posted on 2009-04-09
1
623 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
1 Comment
 
LVL 5

Accepted Solution

by:
john_hollings earned 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Youtube video error 30 806
FlashBuilder allocate more memory using FlashBuilder.ini 18 271
YouTube video issue 28 121
What is needed to center a flash image to the center of the page? 4 103
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 how to record live broadcast.
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.

809 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