PDA

View Full Version : Clickable Flash Banner


dustbuster
10-09-2002, 06:19 PM
Hello all,

I want to make a clickable Flash banner in an html page. I can make the mbanner clickable with an invisible button within the movie but what I really want to do is set the href location in my html so I can change it when ever I want to. I also don't want to use external text files that import a variable with location in it.

Here is some of the code I have been trying using a map but it doesn't seem to work on my swf (works on jpg's though).


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<map name="map">
<area shape="rect" coords="0,0,32,32" href="#">
</map>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="32" height="32">
<param name=movie value="Movie2.swf">
<param name=quality value=high>
<embed src="Movie2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="32" height="32" usemap="#map" >
</embed>
</object>
</body>
</html>

Can I do what I am planning or am I stuck with the methods I don't want to use?

Thanks,
D.

cobo
10-10-2002, 08:47 AM
maybe you could do it with a hidden txtfield in html ?!

the easiest way to do it would be a txt file. think about that.

cobo

sfa
10-10-2002, 08:48 AM
Just add ?url=whatever after the two html tags with the file name (ex. filename.swf?url=whatever). or place <PARAM NAME=FlashVars VALUE="url=whatever"> . Both methods sends the variable to the flash file. Then all you need to do is have a transparent button with -

on (release) {
getURL (url, "_blank");
}


Is this method ok for you?

SFA

cobo
10-10-2002, 08:49 AM
hi sfa,
thatīs something i havenīt known.

thanx for that...

:D cobo

sfa
10-10-2002, 08:51 AM
Well, I payed you back for your tip on the other thread ;)

SFA

dustbuster
10-11-2002, 04:29 PM
Thanks sfa!

I will try that. It sounds like just what I need.

D.