Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
闪存是否可以从其所在服务器的根目录外部访问数据。
IE
根目录 = /var/www/httpdocs
SWF = /var/www/httpdocs/flash/file.swf
XML = /var/www/xml/file.xml
谢谢!
urlloader 在客户端的浏览器中运行,因此如果他们无法从 Web 访问该 xml 文件夹,它将无法工作。
此外,即使他们可以通过 Web 访问 xml 路径,也需要通过同一个域公开,以避免 Flash 沙箱安全问题。否则,您将需要添加一个跨域权限 xml 文件,该文件可以从您的域中获取(通过闪存),允许从其他域访问。