使用单选按钮进行问答游戏,当用户在单击单选按钮时出错时,我想要一个嗡嗡声。我怎么做?
谢谢
您可以使用 Sound 类加载并播放声音:http: //help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Sound.html
要让它在您单击单选按钮时播放,您可以向单选按钮添加一个侦听器以检查用户何时单击它,然后检查他们单击了哪个答案并在需要时播放声音。
RadioButton 类:http ://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/controls/RadioButton.html