Solved

How do I insert Flash into a Blogger post

Posted on 2006-07-23
7
222 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now