I’ve used LLwith android all in one.

I’ve used LLwith android all in one.

If i want to make a click sound with clicking icon, how i have to do on LL….

]]>

2 Commentsto I’ve used LLwith android all in one.

  1. Anonymous says:

    < ![CDATA[

    Create a script that you will set to the tap event. It should look like this (not tested, you may have to tune or fix it):


    LL.bind(“android.media.MediaPlayer”);


    LL.bind(“java.io.File”);


    var player = MediaPlayer.create(LL.getContext(), Uri.fromFile(new File(‘/path/to/your/sound/file’)));  


    player.setOnCompletionListener({


        onCompletion: function(mp) {


            mp.release();


        }


    });


    player.start();



    LL.getEvent().getItem().launch();




    You may also have a look at SoundPool, which will be more efficient.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Pierre Hébert Thanks for reply!! But I got a error message.


    “Can not find function bind in object.pierrox.lighting_launcher.b.a.l@780464a.~~(clicksound#1)

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *