Groups | Blog | Home
all groups > flash (macromedia) > may 2004 >

flash (macromedia) : banner hyperlink - newbie Q


dkmiles
5/17/2004 10:09:28 PM
I'm sure this is real simple because everybody in the world does it, but I'll
be darned if I can find in the manuals or the forum how to set up a hyperlink
in a flash banner I've created that I want to add to a site.

Essentially I just want the viewer to be able to click on the banner and be
sent to another page. I thought I could create a hotspot in dreamweaver over
the flash image, but that doesn't seem to work.

Any help would be greatly appreciated.

Thanks!


mlangner-MMTS
5/18/2004 1:49:57 AM
HTML hyperlinks do not get applied to Active Objects like Flash movies. You
need to create the link inside Flash itself using getURL(). Try creating a
large, transparent movieclip on the top layer of your banner and apply the "Go
To Webpage" behavior with an "onRelease" Event.

Regards,

-- Mike
urami_
5/18/2004 12:02:43 PM

[quoted text, click to view]

place in first frame of your movie :
_root.onMouseDown = function() {
getURL("http://www.yahoo.com", "_blank");
};

it's a global events, does mot require instance , it will work whenever clicked
within flash area .


--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

dkmiles
5/18/2004 3:31:51 PM
dkmiles
5/19/2004 6:32:16 PM
One more question on this subject if I may....

I was able to get the hyperlink set up to work fine. However is there a way to
get the mouse-over finger to show when the mouse moves over the flash movie?

Thanks!
urami_
5/20/2004 11:20:00 AM


[quoted text, click to view]

If you want Hand than you must have instance of movie clip or button.
Tho you don't need to make button , you can build it dynamically .

Just paste the following in first frame of your timeline

this.createEmptyMovieClip("button", 1);
button.beginFill(0xCCCCCC, 0);
button.lineTo(Stage.width, 0);
button.lineTo(Stage.width, Stage.height);
button.lineTo(0, Stage.height);
button.endFill();
button.onRelease = function() {
trace("done");
getURL("http://wwww.yahoo.com", "_blank");
};


If you want to see it on preview , change the alpha opacity , I set it to zero
to make it invisible but you can set it to any value you wish , edit :

button.beginFill(0xCCCCCC, 0);

to
button.beginFill(0xCCCCCC, 100);


--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

dkmiles
5/20/2004 12:22:17 PM
Urami -- you are a MAESTRO!

Many thanks! (Man this stuff is DEEP!)

AddThis Social Bookmark Button