Trying to add an swf using embed widget but can´t seem to make it work. I would love to see a sample embed code for linking to an swf, hosted on a server/dropbox etc. Thanks
What is the dropbox file URL you're trying to use?
hi vincent, here´s a link.
But that would never work because it's not the direct link to file. You need to replace the domain by https://dl.dropboxusercontent.com
So your direct link can only be https://dl.dropboxusercontent.com/s/jggxt9mjywguf7l/test2.swf
ok, got it -but how would the code look like, placing this swf into a webflow file using the embed widget?
Step 1: Add the following code for the SWFobject plugin. It is free. Add this to the HEAD section of your Custom Code tab in your site dashboard:
After adding this code, Save Changes.
Step 2: Add an html embed widget on your page in design mode, and in the html embed, paste the following code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420"> <param name="movie" value="https://dl.dropboxusercontent.com/s/jggxt9mjywguf7l/test2.swf" /> <!--[if !IE]>--> <object type="application/x-shockwave-flash" data="https://dl.dropboxusercontent.com/s/jggxt9mjywguf7l/test2.swf" width="780" height="420"> <!--<![endif]--> <p>Alternative content</p> <!--[if !IE]>--> </object> <!--<![endif]--> </object>
Change the width and height to match the dimension of your swf file.
Step 3: Make sure your changes are saved on your page and publish your site. Go check if SWF appears. I made a quick test site: http://example-swf-embed.webflow.com/
Can you try that, and let us know how it goes? Cheers, Dave
works perfect, thanks a lot to both of you.
Worked perfectly for me too - thanks!