Can anyone help me?
I have developed a web application, in which I have developed actionscript to record a voice message from Mic and flv is stored in Local Communication Server MX. Flv is stored but when I want it to play again. I can not. What would be the problem? I am using Flash 8, AS 2.
Actionscritpt is:
function doPlay ()
{
if (Play_btn.getLabel() == "Play")
{
// Create input stream
in_ns = new NetStream(_root.client_nc);
//in_ns.play(numb);
in_ns.play(randomtxt.text);
in_ns.onStatus = function(info)
{
// Handle errors and stream stopping
if ( info.level == "error" || info.code == "NetStream.Play.Stop" )
{

while (in_ns.bufferLength > 0 ) {
Status_msg.text += "Waiting to clear buffer..."
}
Play_btn.setLabel("Play");
}
}

} else if (Play_btn.getLabel() == "Stop")
{
in_ns.onStatus = null;
// Close the stream
in_ns.close();
Play_btn.setLabel("Play");
}

}