2

I want to exit ( close ) programmatically a mobile flex application when clicking a Button. What is the ActionScript for that ?

pheromix
  • 18,213
  • 29
  • 88
  • 158

2 Answers2

6

I think you should use

NativeApplication.nativeApplication.exit();

Explained here: Application launching and exit options.

taskinoor
  • 45,586
  • 12
  • 116
  • 142
Abdul Salam
  • 238
  • 1
  • 3
  • 11
  • check these links if it helps - 1. http://stackoverflow.com/questions/7218166/how-do-i-exit-or-suspend-a-flex-4-5-iphone-application-through-code 2. http://forums.adobe.com/thread/870733 – Abdul Salam Dec 12 '13 at 08:39
4

On Android you can do

NativeApplication.nativeApplication.exit();

On iOS, this is not possible. http://forums.adobe.com/message/4347689

flexicious.com
  • 1,601
  • 1
  • 13
  • 21