Skip to main content
Inspiring
April 26, 2013
Answered

mateuszmackowiak NativeAlert ANE

  • April 26, 2013
  • 1 reply
  • 1968 views

Hi,

Moving from to NativeDialogs ANE due to a possible bug in the old NativeAlert version.

In the old one, we had to call NativeAlert.dispose(); when closing the app. Now this isn't necessary with NativeDialogs?

NativeAlert.dispose(); or NativeAlertDialog.dispose(); work...

This topic has been closed for replies.
Correct answer

For the simple Alerts created via static function "show" : no dispose required.

_disposeAfterClose is set to true when the (static!) function "show()" is called or if a closeHandler is set.

Dont know about the other types of dialogs.

see:

https://github.com/mateuszmackowiak/NativeDialogs/blob/master/AS/src/pl/mateuszmackowiak/nativeANE/dialogs/NativeAlertDialog.as

1 reply

Correct answer
April 29, 2013

For the simple Alerts created via static function "show" : no dispose required.

_disposeAfterClose is set to true when the (static!) function "show()" is called or if a closeHandler is set.

Dont know about the other types of dialogs.

see:

https://github.com/mateuszmackowiak/NativeDialogs/blob/master/AS/src/pl/mateuszmackowiak/nativeANE/dialogs/NativeAlertDialog.as

gtrAuthor
Inspiring
April 29, 2013

Great! Thanks, verdave.

Inspiring
May 8, 2013

this iOS or for Android.  I had success with that ANE for Android but on iOS I would get some crashes that seemed to always link back to this.