Solved

How do I insert Flash into a Blogger post

Posted on 2006-07-23
7
227 Views
Last Modified: 2010-04-09
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!
0
Comment
Question by:drodey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 

Author Comment

by:drodey
ID: 17164955
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>
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 17166746
<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.
0
 

Author Comment

by:drodey
ID: 17167604
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" />
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:drodey
ID: 17189467
Anyone have any ideas?
0
 
LVL 19

Accepted Solution

by:
DreamMaster earned 125 total points
ID: 17194036
It is valid HTML, maybe for the blog post to work you need to use:

<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"></embed>
</object>

Regards,
Max.
0
 

Author Comment

by:drodey
ID: 17197623
FYI, I posted this question in the Programming section and found a working version there.
http://www.experts-exchange.com/Programming/Q_21933369.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!
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 17198804
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.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question