smogg
smogg

Reputation: 1494

SWF file as a HTML link

I have swf file, im using code below to display it on my website:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="160" height="264">
<param name="movie" value="http://www.example.com/baner.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent">
<embed src="http://www.example.com/baner.swf" quality="high" type="application/x-shockwave-flash" width="160" height="264" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

How can I convert this swf file into link? Im trying to achieve it with flashVars so I've added something like that:

<param name=FlashVars value="targetURL="http://example.com/">

But what's next? Can I make a link from this .swf file without having .fla?

Upvotes: 0

Views: 4713

Answers (3)

Urosan
Urosan

Reputation: 321

You can't make swf a link without source (fla).

But you can put html href over it and make that a link (positionet absolute).

Upvotes: 1

James Allardice
James Allardice

Reputation: 165971

Unfortunately, you cannot use the FlashVars method without being able to edit the FLA file. My only suggestion would be to absolutely position a transparent element over the top of the SWF, and have this element as a link.

Upvotes: 2

Kirk Strobeck
Kirk Strobeck

Reputation: 18589

You should be using swfobject

I think the answer if I remember right is that you call the file test.swf?thing=1&stuff=hello thing and stuff are now available in your swf as _root.thing and _root.test

Upvotes: 0

Related Questions