• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

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

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.
1 Solution
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) {


replace yaho with whatever u want

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 ()

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

stockblocksAuthor Commented:
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.
Don't get used to using that script on other projects because that will trap ANY click on anywhere on the stage...  ;)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now