SWF with link

I’m inserting a swf that contains a web link directly into my global template. The swf plays fine but the link doesn’t work. Any ideas?

Can you provide some more information here. So, you’re editing your global template in the workbench and have added some HTML code which includes a SWF element (which I assume is not stored in the CMS) into the page?

What does the generated/published HTML look like? I guess its wrong somewhere, but where/how I guess is the question…

The more info you can provide the better.

Hi David,

Thanks for your reply.

Yes, the swf is not in the CMS. I have created the file with a getURL command in flash and published the swf to the remote server. I am then calling it into the global template with the following code:

<!–url’s used in the movie–>
<a href=“http://www.ccrs.qmul.ac.uk/conferences/specialoffers/14772.html”></a>
<!–text used in the movie–>
<!-- saved from url=(0013)about:internet -->
<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=“450” height=“100” id=“banner” align=“middle”>
<param name=“allowScriptAccess” value=“sameDomain” />
<param name=“movie” value=“http://www.scs.qmul.ac.uk/flash/banner.swf” /><param name=“quality” value=“high” /><param name=“bgcolor” value="#ffffff" /><embed src=“http://www.scs.qmul.ac.uk/flash/banner.swf” quality=“high” bgcolor="#ffffff" width=“450” height=“100” name=“banner” align=“middle” allowScriptAccess=“sameDomain” type=“application/x-shockwave-flash” pluginspage=“http://www.macromedia.com/go/getflashplayer” />
</object>

The browser recognises the link, in that the cursor changes on hover, but the command doesn’t actually work.

thanks
Rich

sorry, code is this:

<!--url's used in the movie-->
<a href="http://www.ccrs.qmul.ac.uk/conferences/specialoffers/14772.html"></a>
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<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="450" height="100" id="banner" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.scs.qmul.ac.uk/flash/banner.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://www.scs.qmul.ac.uk/flash/banner.swf" quality="high" bgcolor="#ffffff" width="450" height="100" name="banner" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Shouldn’t the </a> tag be after the </object> tag? (although I’ve never tried putting an anchor around a flash element in the first place).

you can’t wrap an object with an a href, that is just part of the code flash generates as

--url's used in the movie-->
<a href="http://www.ccrs.qmul.ac.uk/conferences/specialoffers/14772.html"></a>

Excuse my ignorance here, but what is Rhythmyx breaking exactly?

Does the code you have work in a standalone HTML page? If so, then I guess(hope) the code must differ on the previewed/published page…

You should probably be using SWFObject to load your Flash file. This has multiple benefits, one of which is easily passing variables to the SWF you are loading.

Assuming you are trying to make the link to a Percussion-managed page, this would complicate matters. You probably want to create custom template instead of just linking, where the template has the code for the Flash file, and drops in the link for the page in the params section. You would then add the path to the SWF yourself.

You could probably have Percussion manage the whole thing. Maybe a bit harder to set up, but could be easier in the long run.