网页音乐播放控件 SWFSound
本文导语: SWFSound 是一个基于Web的Flash程序,用来控制网页上音乐的播放。 示例代码: var id_sound1,id_sound2,id_sound3; // Load the SWFSound Flash Engine swfsound.embedSWF( 'swfsound/swfsound.swf' ); // ...
SWFSound 是一个基于Web的Flash程序,用来控制网页上音乐的播放。
示例代码:
var id_sound1,id_sound2,id_sound3;
// Load the SWFSound Flash Engine
swfsound.embedSWF( 'swfsound/swfsound.swf' );
// When the engine is loaded, preload sounds
swfsound.onload = function()
{
// alert("Callback: SWFSound Flash successfully loaded ...");
id_sound1 = swfsound.loadSound( 'mp3/sound1.mp3', streaming = false );
id_sound2 = swfsound.loadSound( 'mp3/sound2.mp3', streaming = false );
id_sound3 = swfsound.loadSound( 'mp3/sound3.mp3', streaming = false );
}