Forum Moderators: not2easy

Message Too Old, No Replies

.swf file problems

         

Blelisa

2:46 pm on Apr 29, 2004 (gmt 0)

10+ Year Member



Hi, I have a .swf file on one of my pages. It needs to be a certain height and width, it needs to be aligned to the right and it needs to float to the right as well. I can get this to happen but then my page does not validate in XHTML. I get the error that object cannot be in a div and that embed src="filename.swf" src is incorrect. Can anyone help? Thanks

encyclo

3:00 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can do a search for "Flash Satay" in Google which will give you one method for embedding Flash files with valid XHTML code. However, the method is very buggy, and I wouldn't recommend it.

To be honest, I wouldn't worry too much about the validation error in this particular case. It's always a difficult call to make, but there is no sure method which works cross-browser and validates. You could cheat and use javascript document.write, but you are in reality no further forward - your page may pass validation, but the page would still be invalid. The validation problems lie with unrecognised attributes, and the non-standard

<embed>
tag. Neither of these errors will affect document parsing in a compliant browser (which will ignore such elements).