0

只是想知道有人成功实现了以下本机扩展吗?

不知何故,我无法让它工作。

当我对其进行检查时if(NativeAlert.isSupported),我发现它是真的。然而,警报对话从未出现。

import pl.mateuszmackowiak.nativeANE.alert.NativeAlert;
import pl.mateuszmackowiak.nativeANE.NativeDialogEvent;
import pl.mateuszmackowiak.nativeANE.toast.Toast;

NativeAlert.defaultTheme = NativeAlert.ANDROID_DEVICE_DEFAULT_DARK_THEME;// not necessary
if(NativeAlert.isSupported){
    NativeAlert.show( “some message” , “title” , “first button label” , “otherButtons,LabelsSeperated,WithAComma” , someAnswerFunction);
}else{
    _modalDialogue.simplecloseModalDialoge();
}
//NativeAlert.dispose(); //only when exiting app
//Toast
Toast.show(“some message”,Toast.LENGTH_LONG);
var randX:int = Math.random()*600;
var randY:int = Math.random()*600;
Toast.showWithDifferentGravit(“some message”,Toast.LENGTH_SHORT,Toast.GRAVITY_LEFT,randX,randY);

我有一台 iPad1 和 Adob​​e Air 3.4,闪存 CS5

4

2 回答 2

0

您正在使用智能引号。将“和”替换为“。

于 2014-02-04T03:20:08.853 回答
0

我建议您使用来自不同开发人员的不同 ANE 并再次测试。我使用来自freshplanet(github中的开源)的那个并且效果很好。

这是一个帖子,您可以在其中找到更多信息... http://www.redcodelabs.com/2014/03/adobe-air-native-alerts-using-anes/

于 2014-03-25T13:37:37.167 回答