falsh 跨域调配使用配备布置

更新时间:15-10-23 10:40 热度:376
 

服务端配备布置,准许来自不论什么域的调配使用,也可以配备布置ip或是域名

复制代码

代码如下所述:

<?xml version=”1.0″?>
<cross-domain-policy>
<allow-access-from domain=”*” />
</cross-domain-policy>

客户端配备布置

复制代码

代码如下所述:

ac_fl_runcontent(
‘codebase’, ‘http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0′,
‘width’, ’763′,
‘height’, ’600′,
‘src’, ‘*******.swf’,
‘quality’, ‘high’,
‘pluginspage’, ‘http://www.macromedia.com/go/getflashplayer’,
‘align’, ‘middle’,
‘play’, ‘true’,
‘loop’, ‘true’,
‘scale’, ‘showall’,
‘wmode’, ‘window’,
‘devicefont’, ‘false’,
‘id’, ‘game_0.8_1121′,
‘bgcolor’, ‘#ffffff’,
‘name’, ‘*******.swf’,
‘menu’, ‘true’,
‘allowfullscreen’, ‘false’,
‘allowscriptaccess’,'always’,
‘movie’, ‘#paht’,
‘salign’, ”
);

或在object标签中增加:
<param name="allowscriptaccess" value="always" />