Skip to main content
Participant
April 29, 2013
Question

Application Exit Issue In IOS

  • April 29, 2013
  • 1 reply
  • 821 views

How can i exit the application when i pressed the power btton in Iphone , My issue is my app have a music but when i press the power button the app goes into the background as a normal feature of iphone but the app music is not stopping at all , is there any way to acheive it ?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 29, 2013

you can check for an exiting event:

NativeApplication.nativeApplication.addEventListener(Event.EXITING, onExit);

function onExit(e:Event):void{

// stop your sound

}

_partha_1Author
Participant
April 29, 2013

Thanks a Lot For reply , is this event works for the power button preess [the Top button of the Iphone] , i was really confufed , my app is going on the background but the music never stoped .

kglad
Community Expert
Community Expert
April 29, 2013

yes.