Controlling audio with icons (Beginner)

you can download the following sample how to stop and start audio when page switching.

sample BGM is koto_bgm.mp3.  It plays in all pages  when each page starts

Now you can make audio control with play/stop buttons

Create a button to play audio and set with layer hide for play icon and layer show action for stop icon.

Create a button to pause audio and set with layer hide for stop icon and layer show action for play icon.

code_isplaying is an external code with mycode.lua which should be executed after buttons and actions

if audio.isChannelPlaying(1) then
layer.audioOff.alpha = 1
layer.audioOn.alpha = 0
layer.audioOff.alpha = 0
layer.audioOn.alpha = 1

bandicam 2015-03-29 18-01-19-309 bandicam 2015-03-29 18-01-27-168


OLD Kwik2 tutorial.

Privacy Preference Center

Strictly Necessary

these coolies are for WP-SpamShield, gdpr-wp, woocommerce, paypal

PHPSESSID, SJECT16, JCS_INENREF, JCS_INENTIM, gdpr, woocommerce_cart_hash, woocommerce_items_in_cart, woocommerce_recently_viewed, wordpress_, wordpress_logged_in_, wordpress_sec_, wordpress_test_cookie, wp_woocommerce_session_, AKDC, akavpau_ppsd


WordPress cookie created when auto-saving a post in the editor.

wp-saving-post, wp-settings-, wp-settings-time-


google analytic