Link to home
Start Free TrialLog in
Avatar of drodey
drodey

asked on

How do I insert Flash into a Blogger post

I'm using Blogger and have Flash videos I'd like to display within the blog entries.  The flash files are stored online as .SWF files.
Can someone provide the HTML code to properly display the video within the blog?

I've tried this but it just shows a blank white square:

<object data="http://www.whatever.com/testvideo.swf" height="320" width="240"
type="application/x-shockwave-flash">
</object>

Thanks!
Avatar of drodey
drodey

ASKER

FYI, I also tried below code, which was generated from http://freevideocoding.com/ but it just shows a blank white square:

<embed src="http://www.wherever.com/video.swf" width="320" height="240" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
<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="320" height="240" id="video" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="movie" value="http://www.wherever.com/video.swf" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#ffffff" />
      <embed src="http://www.wherever.com/video.swf" quality="high" bgcolor="#ffffff" width="320" height="240" name="video" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Should work.

Regards,
Max.
Avatar of drodey

ASKER

Hmm... I get the following error from Blogger when I click on the PUBLISH POST button.

Your HTML cannot be accepted: Tag is not closed: <embed src="http://www.wherever.com/video.swf" quality="high" bgcolor="#ffffff" width="320" height="240" name="video" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
Avatar of drodey

ASKER

Anyone have any ideas?
ASKER CERTIFIED SOLUTION
Avatar of DreamMaster
DreamMaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of drodey

ASKER

FYI, I posted this question in the Programming section and found a working version there.
https://www.experts-exchange.com/questions/21933369/How-do-I-insert-a-Flash-video-into-a-Blogger-post.html

<embed src="http://www.whatever.com/testvideo.swf" height="320" width="240" type="application/x-shockwave-flash">
</embed>


But, I tested your code and it works now. I'll award you the points.

So I understand, what is the difference between your code and the one above?  They both work.

Thanks!
Using both object and embed is more browser compatible ;) Strange however that you need to use </embed> That is actually invalid HTML, but I guess the blog doesn't allow empty tags (the ones that end with /> )

Regards,
Max.