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() {
    this.mediaObj.play();
    }

    MySceneAssistant.prototype.handlePauseButtonTap = function() {
    this.mediaObj.pause();
    }
    I was wondering if anybody could tell me the correct code to use.
  2.    #2  
    nobody?
  3.    #3  
    bump
  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";
    this.bang.play();
    then create an audio folder in the root com.name.programname/ and place your audio files in there.
    Last edited by demetry14; 10/27/2010 at 04: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 http://get.preware.org
    Run the Preware installer while the WebOS device is connected with the USB cable to your PC.
    Vualla Preware is installed.]

Posting Permissions