Link flash to HTML page

2 min read >

Link flash to HTML page

Blog & Engineering Insights

This is a small one, but I banged my head several times now before fixing it. Although many have written about it, I decided to write also. More resources are always better than fewer resources.

So you’ve created the flash object, and correctly set the URL, but when embedding it on the web page on your web server, the link doesn’t work. The solution is quite simple: you need to set allowScriptAccess to sameDomain or even always if sameDomain doesn’t do the job.

And of course, you need to do that for both the object and the embedtag. For example:

<object width="295" height="240" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">    <param name="allowScriptAccess" value="always" />    <param name="allowFullScreen" value="false" />    <param name="movie" value="http://server/flash.swf" />    <param name="quality" value="high" />    <embed src="https://server/flash.swf" quality="high" allowscriptaccess="always" allowfullscreen="allowfullscreen" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="295" height="240" /></object>

Using this parameter, the flash object will now allow linking to the HTML page set in the flash object.

Get in touch

We are always happy to talk

Phone

+40-21-223-7700

Email

hello@tremend.com

Address

165 Splaiul Unirii, Timpuri Noi Square,
TN Office 2 building, 4th floor,
District 3, Bucharest, Romania, 030134