Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Help! - Flash & Xhtml Traditional & Strict, As the title says
Levis
post Dec 22 2006, 06:00 AM
Post #1


Advanced Member
Group Icon

Group: Members
Posts: 112
Joined: 3-November 06
From: USA, CA, Los Angeles
Member No.: 16,947



Hey guys,
I have not designed a website for over a year. My website is currently in constuction at http://geekfromtheforest.com/ Anyways i am able to code in strict and traditonal xhtml 1.0 but do not know how to properly code a flash object. So let see if someone can come up with a proper way to code a flash object.

This is what Macromedia recs but its dirty dirty and pointless and not valid! lol

CODE

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="794" height="128" title="Geek From the Forest">
    <param name="movie" value="/flash/logo/logo.swf" />
    <param name="quality" value="high" />
    <embed src="/flash/logo/logo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="794" height="128"></embed>
</object>


Does anyone have any ideas how to get around this?

[

This post has been edited by Levis: Dec 22 2006, 06:01 AM
Go to the top of the page
 
+Quote Post
Quatrux
post Dec 22 2006, 08:12 AM
Post #2


the Q
Group Icon

Group: [HOSTED]
Posts: 1,051
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059



Well, I can give you an example of valid xhtml strict code for the object tag and you just need to learn from it and use yours.

CODE

<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128">
<param name="movie" value="images/banner.swf" />
<img src="banner.gif" width="288" height="128" alt="banner" />
</object>


This code is 100% valid, I don't really know why your code doesn't validate, but think the validator parsed you the error message what wasn't valid, I didn't check, but it might have to do something with embed tag. And moreover, there isn't such thing as traditional html/xhtml, I think you mistaken it with Transitional. wink.gif
Go to the top of the page
 
+Quote Post
borlafu
post Dec 22 2006, 10:58 AM
Post #3


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 58
Joined: 9-November 06
Member No.: 17,133



I don't know it for sure, but I think that the <embed/> tag is not valid in any xhtml.


EDIT:

Actualy, take a look to the results of your code al the W3C Validator:

CODE
<?xml version="1.0"?>
<!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" xml:lang="en" lang="en">
  <head>
    <title>Test</title>
  </head>

  <body>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="794" height="128" title="Geek From the Forest">
    <param name="movie" value="/flash/logo/logo.swf" />
    <param name="quality" value="high" />
    <embed src="/flash/logo/logo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="794" height="128"></embed>
</object>
</p>
</body>
</html>


Input that here: http://validator.w3.org/

There you can see where errors occur.

This post has been edited by borlafu: Dec 22 2006, 11:06 AM
Go to the top of the page
 
+Quote Post
Hercco
post Dec 22 2006, 09:00 PM
Post #4


Super Member
Group Icon

Group: Members
Posts: 595
Joined: 4-September 04
Member No.: 228



Yes embed is the issue. It's deprecated in XHTML and you should use <object> instead. For syntax check Quatrux's post.
Go to the top of the page
 
+Quote Post
Levis
post Dec 22 2006, 10:03 PM
Post #5


Advanced Member
Group Icon

Group: Members
Posts: 112
Joined: 3-November 06
From: USA, CA, Los Angeles
Member No.: 16,947



QUOTE(Quatrux @ Dec 22 2006, 08:12 AM) *

Well, I can give you an example of valid xhtml strict code for the object tag and you just need to learn from it and use yours.

CODE

<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128">
<param name="movie" value="images/banner.swf" />
<img src="banner.gif" width="288" height="128" alt="banner" />
</object>


This code is 100% valid, I don't really know why your code doesn't validate, but think the validator parsed you the error message what wasn't valid, I didn't check, but it might have to do something with embed tag. And moreover, there isn't such thing as traditional html/xhtml, I think you mistaken it with Transitional. wink.gif



Ya, i was just really tired from studying and made that mistakes. Thanks for the code, i tried something like that but it didn't work for some reason. I see a few differences.
Go to the top of the page
 
+Quote Post
FirefoxRocks
post Dec 23 2006, 01:14 AM
Post #6


Super Member
Group Icon

Group: [HOSTED]
Posts: 695
Joined: 12-July 06
From: Ontario, Canada
Member No.: 14,464



Actually, the <object...> element only works in Firefox/Mozilla/Netscape/SeaMonkey (you get the idea) I think. I don't think it works in Internet Explorer.

<embed...> wasn't a HTML tag at all. I think Microsoft invented it to popularize Flash and Internet Explorer.

I don't know how to get it to work in both sets of browsers. I know that it is possible, someone from SpreadFirefox has shown me this before. It involves a comment tag that is something LIKE this:

<!--if [IE

I don't know if it is that for sure but it was something similar. That way it was still valid XHTML strict.

Hope you figure it out soon.
Go to the top of the page
 
+Quote Post
Levis
post Dec 23 2006, 07:05 AM
Post #7


Advanced Member
Group Icon

Group: Members
Posts: 112
Joined: 3-November 06
From: USA, CA, Los Angeles
Member No.: 16,947



Well it works perfectly in Firefox and IE 7 and the code is valid by W3C standards. Thanks guys.
Go to the top of the page
 
+Quote Post
Quatrux
post Dec 23 2006, 08:00 AM
Post #8


the Q
Group Icon

Group: [HOSTED]
Posts: 1,051
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059



QUOTE(FirefoxRocks @ Dec 23 2006, 03:14 AM) *

Actually, the <object...> element only works in Firefox/Mozilla/Netscape/SeaMonkey (you get the idea) I think. I don't think it works in Internet Explorer.

<embed...> wasn't a HTML tag at all. I think Microsoft invented it to popularize Flash and Internet Explorer.


Actually not Microsoft, but Netscape, due to the embed element was created by Netscape as their method of embedding plug ins and players in web pages, it is not part of the XHTML specification, and while some browsers other than Netscape support it, it is not standards-compliant, so it is out, it has nothing to do with IE, but eventually, IE cause a lot of problems too if you want that it would work in different browsers.

Here is a good post on how to do it with different methods, so you can choose the best one, but the method with javascript - remember, some people might have it off, there is also an example of Flash Satay code in that article, here is the link: http://blog.deconcept.com/swfobject/
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Converting HTML over to XHTML(13)
  2. full flash sites(60)
  3. Converting Flash Files To Gif(7)
  4. Help! Problem With My Flash-Drive(1)
  5. Understanding Xhtml(8)
  6. How Do I Create A Good Fire Animation Using Flash ?(13)
  7. Flash Site Software(12)
  8. How To Connect MySQL With Flash?(8)
  9. Free Shoutbox? HTML, Flash or PHP Code(24)
  10. Free Flash Authoring Programs(2)
  11. Free Flash Authoring Programs(7)
  12. Firefox Update(7)
  13. Free Flash Type Programs(4)
  14. Pre Loader Tutorial For Flash(6)
  15. Flash 8 - Game Tutorials?(8)
  1. Mixing XHTML 1.1 And iFrame(9)
  2. Tutorial: Dreamweaver, 3ds Max, Flash, Html, Css(8)
  3. Flash 8/actionscript 2, Platform Game (little Help).(7)
  4. Cruzer Flash Drive (usb)(11)
  5. Creating Flash Image/slideshow(2)
  6. Help! Usb Flash Drive(12)
  7. Girl Wins Texas 1a State Hs Track Title(0)
  8. Flash Flash Revolution(0)
  9. Can You Link Game Maker With Mysql/php(0)
  10. Good Book For Learning Xhtml & Css(2)
  11. Type Checking Not Work On For .. In Loop(2)
  12. Flash Cs3(2)
  13. Great Software For Building Flash Web Sites(1)


 



- Lo-Fi Version Time is now: 8th October 2008 - 05:31 AM