Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

After DEACTIVATE mode air ios app sound mutes automatically

Explorer ,
Jan 09, 2017 Jan 09, 2017

hello,

AIR IOS APP, AS3.

I hope someone can help me. Sound stops automatically  on the iPad for a while  when the  ACTIVATED mode has been started.

The longer the iPad is in the  DEACTIVATED mode,the longer the sound stops. After a while it starts to play.

It doesn't matter I put (sound ) code or not to the script.

how can I fix the problem?

TOPICS
ActionScript
550
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2017 Jan 09, 2017

i've never had a problem using an activate listener to restart sound.  are you using a listener?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 09, 2017 Jan 09, 2017

NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, onDeactivate);

function onDeactivate(e:Event):void {

SoundMixer.stopAll();

}

NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, onActivate);

function onActivate(e:Event):void {

clock2.play(0,1000);

}

it works ...only after a while.

also without  the whole code above I  have the same problem after the sleeping mode.the sound starts later.

i will check tomorrow the code on another iPad.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 10, 2017 Jan 10, 2017

on another model iPad the same  problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2017 Jan 10, 2017

does clock2 have leading white space?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 11, 2017 Jan 11, 2017

Tnx kglad voor the reply,

It was not the problem. I think maybe the problem is the swf  is a level from the main.swf.

maybe I can use the keep_awake mode, something like that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 11, 2017 Jan 11, 2017
LATEST

i don't understand your setup.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines