Solved

Make Flash Banner Link: Action Script 1

Posted on 2009-04-09
1
620 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now