i have to do a online mp3 library and to play those files online as my project
for my college , i just installed fms on windows and i created a folder called
song in applications folder then i dont know where to strore the files and how
to play , i referred to the documentation and it said that we need to use
netconnection object and connect to asc file called main.asc . it is supposed
to be a server side script which has the following code

application.st = Stream.get("foo/*");
if(application.st)
{
application.st.play("flv:trail1",0,-1,true);

}
where i hav mapped foo to c:\streams in Vhost.xml in streams tag

then i stord some flv files and mp3 files in streams folder and then wrote a
client file called client.fla and wrote the following code


var nc:NetConnection = new NetConnection();
nc.connect("rtmp://localhost:1935/song/main");
var v:Video = new Video();
var ns:NetStream = new NetStream(nc);
ns.play("flv:foo/trail3",0,-1,true);
ns.recieveVideo = function(info:Boolean)
{
trace(info);
}
v.attachVideo(ns);

where v is video object... but when i publish it nothing works . but when
i see the fms2_console.swf file it tells its playing recorded stream. what to
do? can some one help me in understanding the working of fms.... how files are
stored and how they are streamed......