views:

79

answers:

2

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/flvplayback/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()

A: 

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

Jason W
A: 

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"&gt;
<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

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

VideoDnd