falsh 跨域调用配置

服务端配置,允许来自任何域的调用,也可以配置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" />

falsh 跨域调用配置

上一篇:Illustrator 绘制Web2.0网页图标


下一篇:橡皮包装与眼镜盒的PS质感表现