Results 1 to 4 of 4
  1.    #1  
    I'm writing an app in ares that has sounds play when a button is pressed, but I'm having a lot of trouble with getting the button to play the sounds. The way I'd like it to act is to press once to play the sound, and press again to pause.
    It's a .wav, and this is the code I have in my scene assistant:
    button1Tap: function(inSender, event) {

    MySceneAssistant.prototype.handlePlayButtonTap = function() {;

    MySceneAssistant.prototype.handlePauseButtonTap = function() {
    I was wondering if anybody could tell me the correct code to use.
  2.    #2  
  3.    #3  
  4. #4  
    This is what I am using for images that are selected in the application I am working on.
    button1Tap: function(inSender, event) {
    this.bang = new Audio();
    this.bang.src = "audio/TRACKNAME.mp3";;
    then create an audio folder in the root and place your audio files in there.
    Last edited by demetry14; 10/27/2010 at 05:46 PM.
    16 Candles, The Breakfast Club SB, Friday SB, App Catalog Fix, Palm Pre/Pixi - USB Modem, TMC Workaround, SCRIM Changing OTF

    The fastest way to install Preware on your WebOS device.
    Put your device in Developer mode.
    From your PC download the Preware installer from
    Run the Preware installer while the WebOS device is connected with the USB cable to your PC.
    Vualla Preware is installed.]

Posting Permissions