Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
i've never had a problem using an activate listener to restart sound. are you using a listener?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
on another model iPad the same problem.
Copy link to clipboard
Copied
does clock2 have leading white space?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
i don't understand your setup.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now