?
Solved

Configure a Flash file to proceed to a URL when clicked anywhere.

Posted on 2007-03-26
5
Medium Priority
?
167 Views
Last Modified: 2010-04-03
Haven't touched Flash in almost a year.  And I forget how to do this easy task...   I created a flash file, but want to configure it so when clicked anywhere, it proceeds to a URL.  I.e., I want the flash to be a simple link to a website.  No buttons, etc.

I know this is a simple thing, but can't remember how/where to do it.  Someone please remind me.
0
Comment
Question by:stockblocks
[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
5 Comments
 
LVL 13

Expert Comment

by:FLAASHER
ID: 18795632
draw any thing or write some word then sellect it with ur mouse
press F8 to convert it to button or a movie clip
then sellect the new movieclip with ur mouse and press F9 to open action panel
paste this code on it :

on (press) {
      getURL("http://yahoo.com");

}

replace yaho with whatever u want


FLAASHER
0
 
LVL 37

Accepted Solution

by:
CyanBlue earned 500 total points
ID: 18795742
Don't know if it is going to be more annoying or not, but you don't need a button/movieClip with the onMouseDown handler...

this.onMouseDown = function ()
{
      getURL("http://www.domain.com");
}

CyanBlue
0
 
LVL 23

Expert Comment

by:Zeffer
ID: 18795775
I think you mean an invisible button or 'hotspot.
make a new button symbol..put a blank keyframe in the 'hit' frame
draw a small square shape in the hit frame
back on the stage drag an instance of the button to the topmost layer..size it to the stage size..
put code on it
you see the button in authoring..but it is invisible at runtime

Z
0
 

Author Comment

by:stockblocks
ID: 18809041
Thanks to the other people's responses as well!  But the one given by CyanBlue is exactly what I needed. I simply dropped that code to an "actions" layer, and it works great.
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 18809149
Don't get used to using that script on other projects because that will trap ANY click on anywhere on the stage...  ;)

CyanBlue
0

Featured Post

Industry Leaders: 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…
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): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

777 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