【发布时间】:2014-08-01 07:07:08
【问题描述】:
我在我的项目中使用 FreshPlanet KeyboardSize ANE。我已成功添加到我的项目中,但是当我运行时
MeasureKeyboard.getInstance().setKeyboardAdjustNothing();
我收到以下错误。
ArgumentError: Error #3500: The extension context does not have a method with the name setKeyboardAdjustNothing.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.freshplanet.ane.KeyboardSize::MeasureKeyboard/setKeyboardAdjustNothing()e
我该如何解决这个问题?
谢谢。
【问题讨论】:
-
您是否在设备上收到此错误?或者当你在电脑上测试电影的时候?
-
我进入了设备和 adt.exe。我正在使用 Intellij IDEA。
-
我认为这可能是 ANE 中的错误。我查看了 com.freshplanet.ane.KeyboardSize 源,我认为它没有创建正确的上下文。它为“com.freshplanet.KeyboardSize”而不是“com.freshplanet.ane.KeyboardSize”创建扩展上下文。您可以通过尝试调用 MeasureKeyboard.getInstance() 上的其他函数来验证这一点
-
我已尝试运行所有功能。当我跟踪 MeasureKeyboard.getInstance() 上下文不为空。当我调用该上下文的任何函数时存在问题。这可能与 Intellij IDEA 有关。
标签: actionscript-3 mobile air air-native-extension ane