【问题标题】:1119: Access of possibly undefined property security through a reference with static type Class for using flash System.security.loadPolicyFile1119:通过使用 Flash System.security.loadPolicyFile 的静态类型类的引用访问可能未定义的属性安全性
【发布时间】:2014-10-03 16:53:24
【问题描述】:

我正在开发一个应用程序并希望为 Adob​​e Air 集成 youtube API。 但是,我收到以下错误: 1119:通过静态类型 Class 的引用访问可能未定义的属性安全性。

我的代码是这样的:

import flash.system.SecurityDomain;
import flash.system.ApplicationDomain;
import flash.system.LoaderContext;
import flash.system.Security;
System.security.loadPolicyFile("app:/crossdomain.xml");
Security.allowDomain("*");

我在第 5 行收到此错误 (System.security.loadPolicyFile("app:/crossdomain.xml");) Flash 似乎连这个方法都不认识。

有什么想法吗? 干杯!

【问题讨论】:

    标签: actionscript-3 flash air youtube-api adobe


    【解决方案1】:

    随便用

    System.loadPolicyFile("app:/crossdomain.xml");
    

    【讨论】:

      猜你喜欢
      • 2012-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-12
      相关资源
      最近更新 更多