Professional Web Applications Themes

Playing a recorded flv in flash 8 - Macromedia Flash Flashcom

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" ) { ...

  1. #1

    Default Playing a recorded flv in flash 8

    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");
    }

    }

    chintuChamp Guest

  2. #2

    Default Re: Playing a recorded flv in flash 8

    Your client-side looks okay - are you sure you're connecting to the server? In
    main.asc in your directory, place a trace call to make sure you're connected
    and give it a try.

    I see you connecting to a NetConnection instance of _root.client_nc, but I
    don't see it defined here. That could be your trouble if it isn't defined
    (i.e. var nc:NetConnection = new NetConnection;
    nc.connect("rtmp://whatever.com/path/to/application/")), but if it is, then you
    may be having problems connecting.

    I'm pretty new to FMS so I could be totally wrong, but I'd look at that first.

    Josh Hughey Guest

Similar Threads

  1. Flash player version for recorded stream playback
    By crash666 in forum Macromedia Flash Flashcom
    Replies: 1
    Last Post: July 24th, 08:08 AM
  2. recorded video super fast when playing back
    By mulligan03 in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: April 30th, 05:48 PM
  3. Flash not playing
    By mightymiller in forum Macromedia Flash Player
    Replies: 3
    Last Post: March 5th, 07:52 PM
  4. playing a recorded stream
    By faEight in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: December 29th, 03:43 AM
  5. playing the flash
    By morhan_turin@yahoo.com in forum Macromedia Flash Player
    Replies: 0
    Last Post: September 2nd, 07:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139