Go Back   SitePoint Forums > Forum Index > Design Your Site > Web Page Design > Accessibility and Usability
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Mar 12, 2004, 06:27   #1
Egor
Non-Member
 
Egor's Avatar
 
Join Date: Jan 2004
Location: Melbourne, Australia
Posts: 7,306
w3 not validating flash?

http://validator.w3.org/check?uri=ht...tomatically%29

Is there any way to have valid XHTML and have flash in it?

I dont understand why it doesnt like the embed attributes??

Thank you in advance
Egor is offline   Reply With Quote
Old Mar 12, 2004, 08:12   #2
vgarcia
☆★☆★
silver trophy
 
vgarcia's Avatar
 
Join Date: Jan 2002
Location: in transition
Posts: 21,423
<embed> is not a tag in HTML 4.0 or XHTML 1.0. Try Flash Satay instead.
vgarcia is offline   Reply With Quote
Old Mar 15, 2004, 04:10   #3
xhtmlcoder
Robert Wellock
bronze trophy
 
xhtmlcoder's Avatar
 
Join Date: Apr 2002
Location: A Maze of Twisty Little Passages
Posts: 2,384
Though <embed /> is in my hand-rolled XHTML DTD.
__________________
};-) http://www.xhtmlcoder.com/
xhtmlcoder is offline   Reply With Quote
Old Mar 15, 2004, 19:45   #4
pissant
SitePoint Addict
 
Join Date: Dec 2002
Posts: 386
But be aware there are issues with the flash satay method, including that it makes IE unable to stream the flash.
Possibly better to just have a page valid but for the flash
pissant is offline   Reply With Quote
Old Mar 16, 2004, 01:38   #5
Paul_C
Rabble Rouser
bronze trophy
 
Join Date: Jan 2003
Location: Mountain View, CA
Posts: 430
pissant, read the article a little more thoroughly. IE can still be made to stream the flash via a loader (as described.)
Paul_C is offline   Reply With Quote
Old Mar 16, 2004, 04:33   #6
pissant
SitePoint Addict
 
Join Date: Dec 2002
Posts: 386
Quote:
Originally Posted by Paul_C
pissant, read the article a little more thoroughly. IE can still be made to stream the flash via a loader (as described.)
yep read it, used it and decided that I would rather have invalid flash markup than have to load my main movie into another one to stream it

There are major restrictions to what you can and can't do with a swf loaded into another and since most of the flash work I've done lately has been of the RIA variety having those restrictions can cause a lot more pain than it is worth to me to validate the flash

SO I don't like the satay method (I do think it is very smart work though), but others may like it, I just wanted to make sure the original poster was aware of the potential sacrifice to be made for validation
pissant is offline   Reply With Quote
Old Mar 20, 2004, 07:04   #7
Egor
Non-Member
 
Egor's Avatar
 
Join Date: Jan 2004
Location: Melbourne, Australia
Posts: 7,306
Thanks for your input guys I have decided to go WITH the satay method in this case as the movie is only 7k. But for bigger movies I think I will stick to the original method.
Egor is offline   Reply With Quote
Old Mar 23, 2004, 17:01   #8
Chas
...
 
Join Date: Jan 2002
Location: London, UK
Posts: 757
There's one other issue with using the Flash satay method you may want to know about.

http://www.sitepoint.com/forums/showthread.php?p=672337
__________________
Linkedin | AS2 to AS3 | jobsearchsite.co.uk
Chas is offline   Reply With Quote
Old Apr 6, 2004, 14:28   #9
Egor
Non-Member
 
Egor's Avatar
 
Join Date: Jan 2004
Location: Melbourne, Australia
Posts: 7,306
Ahhh, its always IE
Egor is offline   Reply With Quote
Old Feb 23, 2005, 19:11   #10
adris72
I see geek people
 
adris72's Avatar
 
Join Date: Feb 2005
Location: NYC
Posts: 227
I know this is an old thread, but I have the same flash-no-validating problem and found an easy solution. Will post it here for those that maybe search for the same problem in the future.

This code has been tested and works in Internet Explorer 5.01, 5.5, 6.0, Mozilla, Firefox, Opera and Konqueror and is fully XHTML Strict valid. No <embed> tags needed.

Valid Flash example for XHTML 1.0 Strict (XHTML 1.1)

<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" />


source: http://www.ambience.sk/flash-valid.htm
__________________
Portfolio
adris72 is offline   Reply With Quote
Old Feb 23, 2005, 20:12   #11
hgilbert
SitePoint Guru
 
hgilbert's Avatar
 
Join Date: Dec 2004
Location: London
Posts: 841
i've been using the satay method for ages
never had any problems at all
(so far)
__________________

hgilbert is offline   Reply With Quote
Old Feb 23, 2005, 20:29   #12
adris72
I see geek people
 
adris72's Avatar
 
Join Date: Feb 2005
Location: NYC
Posts: 227
Quote:
i've been using the satay method for ages
never had any problems at all
(so far)
The only problem I see in satay's method is if you are using a flash that you can't modify (if you bought it without the source file for an example).
__________________
Portfolio

Last edited by adris72; Feb 24, 2005 at 06:10..
adris72 is offline   Reply With Quote
Old Feb 24, 2005, 01:13   #13
zcorpan
bronze trophy
 
Join Date: Dec 2004
Location: Sweden
Posts: 2,515
Quote:
Originally Posted by adris72
I know this is an old thread, but I have the same flash-no-validating problem and found an easy solution. Will post it here for those that maybe search for the same problem in the future.

This code has been tested and works in Internet Explorer 5.01, 5.5, 6.0, Mozilla, Firefox, Opera and Konqueror and is fully XHTML Strict valid. No <embed> tags needed.

Valid Flash example for XHTML 1.0 Strict (XHTML 1.1)

<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" />


source: http://www.ambience.sk/flash-valid.htm
It's funny because I came up with the exact same sulotion the other day. http://zcorpan.1go.dk/flash/ (Only, I used a conditional comment just to show that it's only IE that needs the param)
__________________
Simon Pieters
(works for Opera Software, though represents just himself)
zcorpan is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

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 On
HTML code is Off

 
Forum Jump


All times are GMT -7. The time now is 09:22.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved