Skip to main content
Inspiring
Jul 5, 2017 3:15 PM UTC
Answered

No Sound On Android - Air For Android App

Hello,

I have a problem with an app on air for android.

When i export my app in windows, the sound works perfectly but when i install it on android device there is no sound...

I have embedded my sound in Library and export it for action script. The class name is JumpSound.

This is my script :

-------------------------------------------------------------------------------

var jumpSnd:JumpSound = new JumpSound();

MyButton.addEventListener(MouseEvent.CLICK,Jump);

function Jump(e:Event)

{

     var channel:SoundChannel = jumpSnd.play();

}

-------------------------------------------------------------------------------

Thanks for your help !!

This topic is closed to new replies. Start a new post to keep the conversation going.
samuelc38979247Correct answer
Inspiring
Oct 5, 2017 11:29 AM UTC

Hello,

Sorry, i have forgotten to answer.

Finally, this was a problem with compilation.

Thanks !!

2 replies

Jul 6, 2017 8:45 AM UTC

I search your query no sound on Android on Google and get some results who is the benefit for you. i mention links below

Debug AIR apps on Android with Flash Builder 4 - Renaun Erickson | Renaun Erickson

Solved: No sound when playing - The Spotify Community

Translate
samuelc38979247AuthorCorrect answer
Inspiring
Oct 5, 2017 11:29 AM UTC

Hello,

Sorry, i have forgotten to answer.

Finally, this was a problem with compilation.

Thanks !!

Translate