只是想知道有人成功实现了以下本机扩展吗?
不知何故,我无法让它工作。
当我对其进行检查时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 和 Adobe Air 3.4,闪存 CS5