Solved

Make Flash Banner Link: Action Script 1

Posted on 2009-04-09
1
626 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 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
anti-download video publishing site? 6 624
Flash being Disabled - help! 20 344
System Center Configuration Manager 2012R2 7 100
How to add jQuery and JavaScript(s) into Dreamweaver? 1 417
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…
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…
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 what frame rate is, how to control it and what effect it has on the video.

736 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