【问题标题】:Air for Android - Undefined property EncryptedLocalStoreAir for Android - 未定义属性 EncryptedLocalStore
【发布时间】:2012-03-02 11:32:47
【问题描述】:

我正在使用 Adobe Flash CS5 构建一个 AIR 2.5 应用程序。通过为 Air for Android 发布它 我收到了这个错误:

1120: Access of undefined property EncryptedLocalStore.

这是我的代码:

function saveIt(keybg:String, myvaluebg:String):void
{
var bytesbg:ByteArray = new ByteArray(); 
      bytesbg.writeUTFBytes(myvaluebg); 
      EncryptedLocalStore.setItem(keybg, bytesbg);
}

我需要扔掉所有代码来删除 EncryptedLocalStore 相关代码还是有更聪明的方法可用?

难道 EncryptedLocalStore 不支持 Air for Android?

谢谢。 乌力

【问题讨论】:

    标签: actionscript-3 apache-flex air


    【解决方案1】:

    EncryptedLocalStore documentation:

    • “此外,AIR 3 之前的移动平台不支持此功能。”

    升级到 AIR 3 或更高版本。

    【讨论】:

      【解决方案2】:

      我不确定这是运行时错误还是编译时错误,所以还是这样:

      [编译时间]

      import 语句中的类是否位于类的顶部?

      import com.adobe.air.crypto.EncryptionKeyGenerator;
      

      [运行时]

      keybgbytesbg 都不是空值。

      【讨论】:

        猜你喜欢
        • 2019-02-11
        • 1970-01-01
        • 2019-12-25
        • 2016-03-21
        • 2012-04-14
        • 2011-12-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多