Solved

How do I insert Flash into a Blogger post

Posted on 2006-07-23
7
225 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
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
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 style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

828 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