Link to home
Start Free TrialLog in
Avatar of stockblocks
stockblocks

asked on

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.
Avatar of FLAASHER
FLAASHER
Flag of Saudi Arabia image

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
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of stockblocks
stockblocks

ASKER

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...  ;)

CyanBlue