facebook

Linking sound fx to "go to screen" action

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #326995 Reply

    asbm
    Member

    edited: support-wayne moved from Examples forum
    Hi all, newbie so please be gentle.

    I should also say I have not coding/scripting experience either.

    So, my question:

    How do I link a sound to a “go to screen” action?

    Example:

    I have a home.mobi page with an image button on it. In the action menu on the right I use “on click go to screen” Page1.mobi.

    This works fine however I want to also play a lttle sound effect when this action happens. How do I do this?

    I am assuming as there is not obvious linkng action that I need to use the “Run JavaScript” action, however, as mentioned up front I have no experience on how to do this.

    Any help much appreciated.

    Thanks

    #327015

    asbm
    Member

    Anyone got any thoughts or help?

    Thanks

    #327028

    Hi asbm,

    As you can see in the Multi-Source Audio Player Demo when you click in a list-item the sound starts playing.

    Notice the code in the audio_play function in audio-demo_custom.js file:

    //load audio stream
      $('#audio_1').attr('src',audioUrl);
       ...
       ...
    //show the player screen
      phoneui.gotoPage('m1-player',null);
    
    

    The first command load the audio and start play it, the second one is for navigate between the screens.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Linking sound fx to "go to screen" action

You must be logged in to post in the forum log in