...

View Full Version : allowScriptAccess="sameDomain" + Validating Flash in XHTML



Pennimus
03-13-2006, 10:46 PM
Hi all,

I've recently been supplied some code to embed some flash in my site from a third party. The code specifies "sameDomain" as the value of allowScriptAccess.

I've looked through Macromedias official documentation on allowScriptAccess and I can only find reference to two possible values - "always", and "never".

Does anybody have any information on the purpose of "sameDomain"?

On another note, as I'm validating my pages as XHTML 1.1, I'm also going to need to fiddle with the code somewhat.

What I've currently got :


<embed
style="
width:400px;
height:326px;"
id="VideoPlayback"
align="middle"
type="application/x-shockwave-flash"
src="path to file"
allowScriptAccess="sameDomain"
quality="best"
bgcolor="#ffffff"
scale="noScale"
wmode="window"
salign="TL"
FlashVars="playerMode=embedded">
</embed>


I understand that I need to use this instead :



<object type="application/x-shockwave-flash"
data="path to file"
width="400" height="326">
<param name="movie" value="path to file" />
</object>


My question - where do the other values in the original code fit in? Especially allowScriptAccess, which I understand is quite important when embedding remote flash movies.

Pennimus
03-14-2006, 07:45 PM
After some fiddling around I've validated the code by applying all the previous embed values to param names/values.



<object type="application/x-shockwave-flash" data="path" width="400" height="326" id="VideoPlayback" >
<param name="movie" value="path" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="quality" value="best" />
<param name="scale" value="noScale" />
<param name="wmode" value="window" />
<param name="FlashVars" value="playerMode=embedded" />
<param name="salign" value="TL" />
</object>


I would however still like to know what sameDomain means. Also, how can I be sure all the above params are working in the same way that they were when they were elements of the embed tag?

plunkbrain
11-19-2006, 09:50 PM
Hi-
it seems like a while since you posted this but i was just looking for info on the same topic and found your post, and then an answer at http://www.adobe.com/devnet/flash/articles/fplayer8_security_09.html about a quarter of the way down. Clears it up quite well.

Also you can check out http://alistapart.com/articles/flashsatay for more on issues with putting flash in code that validates.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum