How to make entire flash movie a clickable link? Flash CS3, AS 3.0

How do I make the whole movie a clickable link?

I'm pretty sure I put a layer beneath all other layers, put a rectangle on that layer, turn that rectangle into a button, and then put an action on that button, right?

But how? I'm a Flash n00b.

I already have a layer called "actions." It has a key frame in the last frame with a stop(); action.

LVL 6
casinnolaAsked:
Who is Participating?
 
CyanBlueCommented:
0
 
biyikCommented:
Nope! Not beneath... Create a layer and place it on the top. Put a rectange which covers the stage. Turn it into a MovieClip. Give an instance name to it and change "Color" mode to Alpha with the value 0%.
Now start coding:
(If you want hand cursor you can add " yourMoveClipInstanceName.buttonMode = true; " to your code!)

import flash.net.navigateToURL; 
var link1:URLRequest = new URLRequest("yourLink.htm");
yourMoveClipInstanceName.addEventListener(MouseEvent.CLICK, gotoLink);
function gotoLink(event:MouseEvent):void {
	navigateToURL(link1, "_blank");
	//trace("I'm going to: "+link1.url);
}

Open in new window

0
 
mpcsplymouthCommented:
Hi all
I know a little about Flash CS3, but how to make a movie clickable evades me; I followed the above, altering to myneeds:.

import flash.net.navigateToURL;
var link1:URLRequest = new URLRequest("www.mpphotographic.co.uk/index.html");
modeling_sectionInstanceName.buttonMode = true;
modeling_sectionInstanceName.addEventListener(MouseEvent.CLICK, gotoLink);
function gotoLink(event:MouseEvent):void {
      navigateToURL(www.mpphotographic.co.uk/index.html, "_blank");
      //trace("I'm going to: "+link1.url);
}

Doesn't work, the movie plays, but no hyperlink.  Have I copied literally and forgotten something simple?
"modeling_section" is the name of my movie.
Many thanks for any help!
0
 
CyanBlueCommented:
Did you solve the issue???

CyanBlue
0
 
mpcsplymouthCommented:
Hi CyanBlue, I *think* so, thanks, no-one responded in the time I was hoping (no big problem), but managed to find a way to do it, although trials haven't taken place on my website just yet.  If I get problems, I'll come back here...
0
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.

All Courses

From novice to tech pro — start learning today.