NativeAlert is an extension for Adobe Air that enables the use of mobile native dialog box (IOS Andoid) – Toast message, Text Input dialog, Progress dialog, Alert dialog, multi single choice dialog and System Preferences.
Some of its features:
- NativeAlert (IOS/Android/Windows):dDisplays a native alert dialog;
- NativeProgress (Android / IOS): display the native dialog showing a progress bar or a spinner.
- NativeListDialog(Android / IOS): show a native popup dialog with a multi-choice or single-choice;
- Text input Dialog (Android /IOS): show a dialog with defined by user input text fields;
- Toast (Android / IOS);
- System Properties (Android / IOS): provides some of the missing properties that you can’t get in adobe air, such as UID and AppUid
Sample
// NativeAlerts NativeAlert.defaultTheme = NativeAlert.ANDROID_DEVICE_DEFAULT_DARK_THEME;// not necessary if(NativeAlert.isSuported) NativeAlert.show( "some message" , "title" , "first button label" , "otherButtons,LabelsSeperated,WithAComma" , someAnswerFunction); NativeAlert.dispose(); //only when exiting app private function someAnswerFunction(event:NativeDialogEvent):void{ //event.preventDefault(); // default behavior is to remove listener for function "someAnswerFunction()" trace(event.toString()); } //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);
RT @as3gamegears http://t.co/uJr7o6wx #as3 #flash #gamedev: New: NativeAlert (native extension to use mobile na… http://t.co/OVFfrsRC
[…] http://www.as3gamegears.com/air-native-extension/nativealert/ […]
Hello, first thanks for your post
i tried to use the native dialouge extension, but i’m facing a problem when building the IPA file
“Id: Library not found for -liconvâ€
i read a lot of threads about adding something to command line but how can i do this with FLASH CS6 ?
Hi there!
I haven’t tried to compile and use this native extension up to the present moment. Have you tried to reach the author?
[…] ANEs gibt es. http://dl.dropbox.com/u/3213444/Alert_Extension.zip oder NativeAlert | AS3 Game Gears Und das war das Tutorial, wie man sich das selbst bastelt, wenn ich mich nicht irre: Two-Part […]