PDA

View Full Version : Adding a URL link to an SWF after being compiled


Sunnah
02-05-2009, 09:32 AM
This question has been asked before but has not been addresed adequately. I have a bit of flash code and i want to know how I can add an external link to it. I do not have access to the project file so editing the ActionScript is not an option. I have been using an archaic counter which works for clicks and view for GIFs and JPGs but not SWF files.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="150" height="150">
<param name="movie" value="http://www.stc.org/intercom/advertise/Web/adobe-TCsuite2.swf" />
<param name="quality" value="high" />
<embed src="http://www.stc.org/intercom/advertise/Web/adobe-TCsuite2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="150"></embed>
</object>

Unconscious
02-05-2009, 05:25 PM
You should use a SWF decompiler, and then search through the messy code for what you want to add a link into.

That's the only thing I can suggest, I'm afraid. I'm not aware of any way to add an external link into a pre-compiled flash without decompiling it first.

RysChwith
02-06-2009, 07:28 AM
Does the onclick handler work on the object tag? That'd be the only thing I can think of.

Rys