Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 11th, 2011, 05:02 PM
Authorized User
Points: 68, Level: 1
Points: 68, Level: 1 Points: 68, Level: 1 Points: 68, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
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>
Reply With Quote
  #2 (permalink)  
Old December 12th, 2011, 05:12 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #3 (permalink)  
Old December 12th, 2011, 07:15 AM
Authorized User
Points: 68, Level: 1
Points: 68, Level: 1 Points: 68, Level: 1 Points: 68, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08:35 AM
Video gallery varunbwj ASP.NET 3.5 Basics 0 November 3rd, 2009 04: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 12:17 PM
Please Help!! Video?? jamyz VB How-To 0 October 15th, 2005 01:22 PM



All times are GMT -4. The time now is 08:04 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.