[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 913
  • Last Modified:

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.

0
casinnola
Asked:
casinnola
  • 2
  • 2
2 Solutions
 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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