Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 11th, 2011, 06:02 PM
justinneng
Guest
 
Posts: n/a
Question swfobject video playback

i was trying to make a flash video playback using swfobject java script. there is a folder called flash in the root folder (site) and there is the video called flash_sample.swf in there. i dont know why doesn't it work. it's just a blank page with the text that i enter in the body section: This element can contain.....


Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Adding a flash video playback</title>
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript">
        swfobject.embedSWF("flash/flash_sample.swf", "flash_movie", "300", "200", "8.0.0");
    </script>
        
</head>

<body>

    <div id="flash_movie">This element can contain content that search engines can index, and which is helpful to those who do not have Flash installed.</div>

</body>

</html>
 
Old December 12th, 2011, 06:12 AM
Registered User
 
Join Date: Dec 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: playing flash file

Hi, you should check the link to your script folder also. this is because src="swfobject.js"> has indicate link to swfobject.js file.
 
Old December 12th, 2011, 08:15 AM
justinneng
Guest
 
Posts: n/a
Thumbs up Thanks @abkatsina

hey thanks a lot!

I just can't believe how could i make this silly miss!!!! the script was in a different folder! i got it sorted out! Thanks a lot!





Similar Threads
Thread Thread Starter Forum Replies Last Post
flash video player using swfobject.js justinneng BOOK: Beginning HTML, XHTML, CSS, and JavaScript 2 December 12th, 2011 09:35 AM
Video gallery varunbwj ASP.NET 3.5 Basics 0 November 3rd, 2009 05:45 AM
play online video or video rajanikrishna ASP.NET 2.0 Basics 1 September 17th, 2007 01:01 PM
Video buffering, streaming, and displaying video t CurvyBabe C# 1 March 9th, 2007 01:17 PM
Please Help!! Video?? jamyz VB How-To 0 October 15th, 2005 01:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.