View Full Version : make an embeded flash XHTML 1.0 Transitional
saukwebsolutions 11-18-2005, 04:43 PM Is this possible. I am still learning this stuff, but here is the code that is bringing up errors:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="300" height="500" hspace="2" vspace="2" align="right">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="form.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#CCCCCC" />
<embed target="form.swf" width="300" height="500" hspace="2" vspace="2" align="right" quality="high" bgcolor="#CCCCCC" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>
How can I change the words aroud to make it compliant?
Here is a link to the test results:
http://validator.w3.org/check?uri=http%3A%2F%2Ftrulyfreehosting.com%2Fsignup.php&charset=%28detect+automatically%29&doctype=Inline
Thanks again for any and all help
dollar 11-18-2005, 04:48 PM The short and simple answer is that you don't ;) IIRC there is a way to do it with Java, but your already limited by how many users have flash, why limit even more to only those who have flash and java being able to view the flash?
saukwebsolutions 11-18-2005, 04:55 PM I would think that most if not all people are able to view flash or even java. I think there is a small % of people that are not able to view it or choose not to view it for security reasons.
Over 98% of the people who visit the site use IE, and really that means a good possibility that both are enabled on that machine.
Thanks for the help though, at least the front of the site is.
Marble 11-18-2005, 04:56 PM http://www.alistapart.com/articles/flashsatay/
Imo, if you are taking care of the important things, like using alt tags on images that represent content, etc... having a few oddities that don't validate is not a big deal. If you really want to make a good xhtml site, don't use flash.
I still use target="blank" attributes on external links, well-knowing that it doesn't validate. But I'd rather not have my users use the back/history button when viewing external sites... This makes my sites not validate 100%, but I don't see it as a big deal.
saukwebsolutions 11-18-2005, 04:59 PM Well right now that is the only thing not validating so I am happy. This is some interesting stuff, and very hard to get every single thing coded correctly
digiscape 11-18-2005, 05:38 PM This is a neat javascript solution, it validates and will detect versions of flash installed
http://blog.deconcept.com/flashobject/
the_pm 11-18-2005, 05:48 PM http://www.alistapart.com/articles/flashsatay/
Imo, if you are taking care of the important things, like using alt tags on images that represent content, etc... having a few oddities that don't validate is not a big deal. If you really want to make a good xhtml site, don't use flash.
I still use target="blank" attributes on external links, well-knowing that it doesn't validate. But I'd rather not have my users use the back/history button when viewing external sites... This makes my sites not validate 100%, but I don't see it as a big deal.Just be careful! They forgot a quotation mark in the final markup sample!
<object type="application/x-shockwave-flashshould be<object type="application/x-shockwave-flash";)
Marble 11-18-2005, 06:07 PM Good catch! Is alistapart aware of this?
Just be careful! They forgot a quotation mark in the final markup sample!
<object type="application/x-shockwave-flashshould be<object type="application/x-shockwave-flash";)
the_pm 11-18-2005, 06:57 PM I think people have pointed it out. I have no idea why it isn't fixed. It's a blaring mistake in a very popular article!
saukwebsolutions 11-18-2005, 07:03 PM interesting stuff! thanks
WebDesignGold 11-18-2005, 07:11 PM Hmm.. Someone else (http://www.ambience.sk/flash-valid.htm) claims he got a better solution than that of ALA.
Is this true?
seodevhead 11-18-2005, 07:54 PM Here is your answer. It is called Flash Satay. It is modified source by a gentleman with the last name Satay. I have been using it for sometime now and it works great... 100% valid and no extraneous code. You can google 'flash satay' or visit here:
http://www.alistapart.com/articles/flashsatay/
WebDesignGold 11-18-2005, 08:24 PM Here is your answer. It is called Flash Satay. It is modified source by a gentleman with the last name Satay. I have been using it for sometime now and it works great... 100% valid and no extraneous code. You can google 'flash satay' or visit here:
http://www.alistapart.com/articles/flashsatay/
:)
That's what we are talking about, right above your post.
seodevhead 11-18-2005, 08:40 PM Ahhh....
thanks for the validation on that ;-)
Hmm.. Someone else (http://www.ambience.sk/flash-valid.htm) claims he got a better solution than that of ALA.
Is this true?
No it isn't, and the Flash Satay article talks about a solution similar to this guy's and it tells why it isn't so good.
saukwebsolutions 11-23-2005, 06:04 PM I am having a heck of a time doing this for a flash menu. Here is the code I am using
<object
type="application/x-shockwave-flash" data="test.fmb.swf"
width="135" height="270">
<param name="movie" value="test.fmb.swf" />
</object>
<object
type="application/x-shockwave-flash" data="movie.swf"
width="400" height="300">
<param name="movie" value="movie.swf" />
</object>
It is based off of that code. What am I doing wrong? It will not show in the browser at all. Again this is a swf menu, not a movie.
WebDesignGold 11-23-2005, 07:58 PM Your code is OK. How about your paths? is the flash-file in the root directory, i.e in the same directory as your HTML-file?
saukwebsolutions 11-23-2005, 08:04 PM yeah it is in the same area as my html file.
So I would think that should work, but when I load the page with that code it shows nothing.
WebDesignGold 11-23-2005, 08:13 PM Then it may be a plugin issue or something. Try to drag and drop your flash file into your Web browser (from your file browser). Does it work?
saukwebsolutions 11-23-2005, 08:44 PM I opened it up where it is in my folder and dropped it into my web browser and it works.
WebDesignGold 11-23-2005, 09:21 PM My knowledge in this matter ends there. Maybe some more experienced people can help. If you dont mind, you can post a link to your html file and downloadable flash file so we can test it for you.
saukwebsolutions 11-23-2005, 09:41 PM http://saukwebsolutions.com/help/problem.html
http://saukwebsolutions.com/help/test.fmp.swf
oh and by the way, thanks for the help so far
WebDesignGold 11-23-2005, 09:50 PM You are welcome!
Your html file was not found..
I downloaded the menu and integrated it in a local html file of mine with exactly the same code.. it worked just fine. I guess the problem is in your html page.
saukwebsolutions 11-23-2005, 10:37 PM can you post your code? also the page is now uploaded..forgot to :)
WebDesignGold 11-24-2005, 12:17 AM I have to go to bed now.
The flash menu is workin on that page. But, the code to embed it is the old one, not the "Satay" one.. I've dowloaded the page and changed to new XHTML-valid code and it worked just fine.. Don't know why you aren't seeing anything..
:sleeping:
Sorry, have to leave now. Good luck.
saukwebsolutions 11-24-2005, 01:28 AM Just be careful! They forgot a quotation mark in the final markup sample!
<object type="application/x-shockwave-flashshould be<object type="application/x-shockwave-flash";)
hmmm let me try this
saukwebsolutions 11-24-2005, 01:35 AM Well after putting the quotation on there, still doesnt work for me. This is the exact code I am using, I am missing something I just cant figure it out
<object type="application/x-shockwave-flash"
data="c.swf?path=test.fmp.swf"
width="135" height="270">
<param name="movie"
value="c.swf?path=test.fmp.swf" />
</object>
saukwebsolutions 11-24-2005, 01:49 AM Well I changed it up a bit and it works in IE but not Firefox:
here is the code:
<object type="application/x-shockwave-flash"
data="path=test.swf"
width="135" height="270">
<param name="movie"
value="test.swf" />
</object>
saukwebsolutions 11-24-2005, 01:51 AM ahh I believe I got it, here is the final code. I had to take out "path=test.swf" and just use data="test.swf" It now shows in IE and in Firefox. Here is the final code:
<object type="application/x-shockwave-flash"
data="test.swf"
width="135" height="270">
<param name="movie"
value="test.swf" />
</object>
Man what a relief! lol I knew it had to be something small, and it was, sorta. Thanks for the help.
saukwebsolutions 11-24-2005, 02:18 AM By the way it is amazing the difference between xhtml to noral html. The size difference, is bigger then I thought between html and xhtml. Glad I am learning it..
sabian1982 11-24-2005, 04:52 AM use the following code and it should validate properly, obviously you need to change the file name, location and swf size!
<object type="application/x-shockwave-flash" data="animation/header.swf" width="715" height="150">
<param name="movie"value="animation/header.swf">
</object>
Is that of any help?
|