Forum Moderators: open

Message Too Old, No Replies

Flash and HTML Validation

Why can't I get rid of the allowScriptAccess warning?

         

Kate82

9:44 pm on Nov 8, 2005 (gmt 0)

10+ Year Member



Okay, big question. I can't find the answer anywhere on the Internet and I am quite tired of looking.

I am validating the HTML on my website. Just the front page right now actually. I figured everything else out by either using other code or using a custom .dtd file.

I am down to one last warning, the allowScriptAccess. This is the warning.
=======================================
Error Line 83 column 159: there is no attribute "ALLOWSCRIPTACCESS".
...ro" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwa
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
======================================

Here is my code, very normal stuff:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="504" height="216" id="home_intro" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="home_intro.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="home_intro.swf" quality="high" bgcolor="#ffffff" width="504" height="216" name="home_intro" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>

=======================

I have tried things like this:
<object type="application/x-shockwave-flash" data="flash.swf" class="movie">
<param name="movie" value="home_intro.swf" />
<param name="bgcolor" value="#ffffff" />
</object>

with this in the css style sheet:

object.movie { width: 504px; height: 216px; margin: 0; padding: 0;}

=========================

That worked in IE but not Firefox.

Please help me get rid of this last warning.

Richard_N

11:22 pm on Nov 8, 2005 (gmt 0)



google "flash satay"

Kate82

3:47 pm on Nov 9, 2005 (gmt 0)

10+ Year Member



Wow ... that simple huh? Go figure, thanks!