开发者

Flash ActionScript 3 runtime SecurityError

开发者 https://www.devze.com 2022-12-26 01:21 出处:网络
I have swf that loads swf, which loads another swf(video player). Is there a trick in publish settings?everything works fine on my local machine, when I upload it on the sever error happen and video

I have swf that loads swf, which loads another swf(video player).

Is there a trick in publish settings? everything works fine on my local machine, when I upload it on the sever error happen and video doesnt load

SecurityError: Error #2148: SWF file http:// (URL where Site is hosted)/video.swf cannot access local resource file:///Macintosh%20HD/Users/..flash.flv. Only local-with-filesystem and trusted local SWF files may access local resources. at flash.net::NetStream/play() at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplay开发者_JAVA百科back/internal::_play() at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_setUpStream() at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::_load() at fl.video::VideoPlayer/load() at fl.video::FLVPlayback/doContentPathConnect()


You may need to setup a crossdomain.xml to allow the one SWF access to the other in the production environment.

http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html


Here's a couple things. Remember your security policy document and your SWF publishing settings. I hope these resources help.

Cross Domain Policy "Use master-only"

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <site-control permitted-cross-domain-policies="master-only"/>
  <allow-access-from domain="*" to-ports="*"/>
</cross-domain-policy>

Your SWF Publishing Settings
alt text http://ashcraftband.com/myspace/videodnd/network.jpg

Reference
http://www.adobe.com/devnet/flashplayer/articles/fplayer9-10_security.html
http://jodieorourke.com/view.php?id=108&blog=news

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号