主题:  请教各位~~~

罐头

职务:普通成员
等级:1
金币:0.0
发贴:72
注册:2003/3/15 21:50:20
#12003/8/8 17:07:06
请问我想用Flash做个Mp3播放器 Mp3文件是从外部载入的 应该怎么做?
简单来说我是想用Flash播放一个外部的Mp3文件就可以了



流云止水

职务:普通成员
等级:3
金币:1.0
发贴:1447
注册:2002/7/12 23:44:20
#22003/8/8 20:59:53
Sound.loadSound

Availability


Flash Player 6.

Usage


mySound.loadSound("url", isStreaming)
Parameters


url The location on a server of an MP3 sound file.

isStreaming A Boolean value that indicates whether the sound is a streaming or event sound.

Returns


Nothing.

Description


Method; loads an MP3 file into an instance of the Sound object. You can use the isSteaming parameter to indicate whether the sound is an event or a streaming sound.

Event sounds are completely loaded before they play. They are managed by the ActionScript Sound object and respond to all methods and properties of this object.

Streaming sounds play while they are downloading. Playback begins when sufficient data has been received to start the decompressor. As with event sounds, streaming sounds exist only in virtual memory, they are not downloaded to the hard drive.

Example


The following example loads an event sound:

s.loadSound( "http://serverpathort/mp3filename", false);
The following example loads a streaming sound:

loadSound( "http://serverpathort/mp3filename", true);



罐头

职务:普通成员
等级:1
金币:0.0
发贴:72
注册:2003/3/15 21:50:20
#32003/8/8 22:05:47
我不会做啊
我在第一帧写了
loadSound( "Http://hcstudio.cn/1.mp3", true);

怎么什么声音都没有?

到底怎么做??



UndeadCraft

职务:版主
等级:4
金币:10.0
发贴:1993
注册:2001/5/28 17:37:43
#42003/8/8 23:21:17
我想吃饭,有人煮好了吗? ;)



大彩蛋

职务:普通成员
等级:1
金币:1.0
发贴:142
注册:2001/8/13 21:19:37
#52003/8/18 0:34:15
试试这个,

mySound=New sound();
mySound.loadsound("a.mp3",true);

因为在LINUX下没法实验,你可以自已看一下帮助关于SOUND部分