flex加载策略文件crossdomain.xml [英] flex load policy file crossdomain.xml

查看:209
本文介绍了flex加载策略文件crossdomain.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的crossdomain.xml文件放在与根不同的位置,因为它只是创建了很多依赖项问题。



如何告诉flex看看从我的crossdomain.xml文件的根以外的地方?我添加loadPolicy代码到我的Flex应用程序的初始化方法?



有没有人有任何好的样本?

解决方案

From 文档
$ b


loadPolicyFile()方法

寻找由url指定的
位置的策略文件
参数。


I want to place my crossdomain.xml file in a different location than the root because it just creates to much dependency issues.

How can i tell flex to look from my crossdomain.xml file somewhere other than the root?Do i add the loadPolicy code to the init method of my flex app?

Does anyone have any good samples on this?

解决方案

From the docs:

loadPolicyFile() method

Looks for a policy file at the location specified by the url parameter.

这篇关于flex加载策略文件crossdomain.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆