954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to insert a Flash movie in html and maintain w3c standards?

The home page is a flash movie for a site i created,when i use the w3c validation tool, it gives errors saying "invalid attribute "embed" ",
"invalid attribute "scr" "; if i take of "embed" it does not work in Netscape. And also when validating shows error for the movie height and width , if i take that off then the movie is not show fully even in IE.
Please help if some one does know ?
thanks,
meena

meena
Newbie Poster
1 post since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Hi,

You can insert a flash file through . But, the w3c validator shows that tag as an invalid one.

:mad: We design professionals take the w3c guidelines as guidelines only. If you follow the w3c standards, you can't build up a really good site. Your creativity is fully stopped. You customer cannot be satisfied.

I recommend, dont follow W3C. But, a flash file works in Netscape, cool. You can use Dreamweaver or Homesite to design/test your pages. As far as height, if you embed the flash file in a layer, it shows different height and width in Netscape.

The code may take this form,,,,


:lol: Cheers and Happy Designing

Lovablefool

lovablefool
Newbie Poster
15 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

see http://www.alistapart.com/articles/flashsatay/ for some standards-compliant code that does the trick.

DaveSW
Master Poster
769 posts since Jul 2004
Reputation Points: 54
Solved Threads: 20
 
The home page is a flash movie for a site i created,when i use the w3c validation tool, it gives errors saying "invalid attribute "embed" ", "invalid attribute "scr" "; if i take of "embed" it does not work in Netscape. And also when validating shows error for the movie height and width , if i take that off then the movie is not show fully even in IE. Please help if some one does know ? thanks, meena


The only "standards compliant" method i have found is to use an iframe:

<iframe src="someflash.swf" width="200" height="100" frameborder="0" scrolling="no"></iframe>

It works OK on IE9, Firefox, Opera, Chrome and Safari

josevelasquez
Newbie Poster
1 post since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You