Reply
Embedded Shockwave movies
Old 05-02-2005, 11:20 PM Embedded Shockwave movies
Skorch's Avatar
Super Talker

Posts: 115
Location: California
I am using shockwave movies on my site(cliff jumping not ads) They are treated as embedded articles and require an attribute called pluginspage=yadayadayada. I used macromedia flash to make the movies. Is there a validatable way to embed swf movies in a webpage? When it goes through the validator the swf code to embed and play the file create at least 10 errors. I am a relative newbie in the webmastter world and am just totally lost on this subject. I also don't think IE recognizes these as swf files either though it could be a local problem with my browser(Firefox is great!)

Any help would be much appreciated! Thanks.

My url for a page with this problem is http://12feetunder.com/CliffJumpingCalifornia.htm
Skorch is offline
Reply With Quote
View Public Profile Visit Skorch's homepage!
 
When You Register, These Ads Go Away!
Old 05-03-2005, 01:06 PM
Brian07002's Avatar
Webmaster Talker

Posts: 524
Name: Brian
Location: United States
Hey I am not too good at flash, however, my main reason for replying was that I seen your pics on your site, and man..You guys ROCK! Cliff Diving Rocks!! REALLY IT DOES! Looks crazy, yet exciting, but d-a-m-n, I never seen it before!

An interesting sight for sore eyes, that's for d-a-m-n sure!
Just my thoughts ~

-Brian
__________________
Brian
TMS BBS: 201-471-2205
Open Friday thru Sunday Eastern Time (US & Canada)
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 05-03-2005, 01:38 PM Thanks
Skorch's Avatar
Super Talker

Posts: 115
Location: California
Did you happen to check out the videos page? Thanks!
Skorch is offline
Reply With Quote
View Public Profile Visit Skorch's homepage!
 
Old 05-03-2005, 04:18 PM
CasaPages's Avatar
SillyPhilly

Posts: 758
Location: between here an somewhere else
You want validity you got it buddy......

Here is the XHTML code
HTML Code:
     <div style="text-align: center;">
 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='5,0,42,0'"
       id="Movie1" width="374" height="224">
       <param name="moviename" value="moviename.swf" />
       <param name="quality" value="High" />
       <param name="bgcolor" value="#000000" />
       <param name="allowScriptAccess" value="sameDomain" />
     <script type="text/javascript" src="moviename.js">
       <noscript>
        javascript support required
       </noscript>
     </object>
     </div> 




and create the following "moviename.js" file

Code:
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) {
   
document.writeln(' <embed name="moviename" src="moviename.swf"'); document.writeln(' quality="high" bgcolor="#000000" swLiveConnect="true" allowScriptAccess="sameDomain"'); document.writeln(' width="374" height="224"'); document.writeln(' type="application/x-shockwave-flash"'); document.writeln(' pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'); } else { document.writeln('No flash player plugin installed'); }




The Java Script controls how the flash is viewed in FireFox and the xhtml controls how the flash is viewed in IE

set your height and width according to your file size, make sure to do this in both the XHTML and java file....

you may have to mess with the "ref" locations.....

I personally keep the .js file with the flash movie in their own folder


and this is all valid code....
__________________
It Happens
FreelanceKillers.com
CasaPages is offline
Reply With Quote
View Public Profile Visit CasaPages's homepage!
 
Reply     « Reply to Embedded Shockwave movies
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12144 seconds with 12 queries