Skip to main content
Inspiring
July 5, 2017
Answered

No Sound On Android - Air For Android App

  • July 5, 2017
  • 1 reply
  • 797 views

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 has been closed for replies.
Correct answer samuelc38979247

Hello,

Sorry, i have forgotten to answer.

Finally, this was a problem with compilation.

Thanks !!

1 reply

July 6, 2017

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

samuelc38979247AuthorCorrect answer
Inspiring
October 5, 2017

Hello,

Sorry, i have forgotten to answer.

Finally, this was a problem with compilation.

Thanks !!