audio.lzx
<canvas bgcolor="#EAEAEA" width="640" height="540">
<audio src="poof.mp3" name="poof"/>
<audio src="ping.mp3" name="beep"/>
<audio src="troll.mp3" name="troll"/>
<view width="100" height="100" x="30" y="30">
<simplelayout axis="y" spacing="2"/>
<button text="Poof" width="100" height="30" onclick="lz.Audio.playSound('poof');"/>
<button text="Beep" width="100" height="30" onclick="lz.Audio.playSound('beep');"/>
<button text="Troll" width="100" height="30" onclick="lz.Audio.playSound('troll');"/>
</view>
</canvas>
Cross References
Named Instances