Skip to main content
April 28, 2006
Question

problem in playing swf files in another directory

  • April 28, 2006
  • 4 replies
  • 384 views
hi all,

i managed to play a .swf file in the a directory containing the .flv file using FMS. i read from the documentations that i am able to play the .swf file in a directory without the .flv file. But when i try to copy and paste the .swf file to another directory and play it, i cannot see the video or hear the audio even though the FMS show that there is a client and the video is indeed streaming..

anyone please help me with the above problem..thanks...
    This topic has been closed for replies.

    4 replies

    Inspiring
    May 2, 2006
    It appears from the code that the flv needs to be in the FMS
    application\my_app\streams\_definst_ folder. The swf and html can be
    anywhere.

    --
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "free23" <webforumsuser@macromedia.com> wrote in message
    news:e37l8c$5a2$1@forums.macromedia.com...
    sorry for the lack of information the last time:

    Originally, all the files(flv,swf,html) are in D:\flash(local hardrive),
    and
    now I move the swf and html files to D:\flash(another local harddisk). When
    I
    open the swf or html files, there is no sound or audio.
    The code I use:
    var nc:NetConnection = new NetConnection();
    var seek_button = new Button;
    nc.connect("rtmp://198.12.123.00/my_app");
    nc.onStatus = function(returnObj){
    trace("NetConnection ReturnCode:"+returnObj.code);
    if(returnObj.code == "NetConnection.Connect.Success"){
    startVideo();
    }
    };
    function startVideo(){
    myInputStream = new NetStream(nc);
    myInputStream.autoPlay = false;
    myInputStream.play("Green Roof 60 Sec MM-A2");
    myInputStream.onStatus = function(returnObj){
    trace("myInputStream ReturnCode:"+returnObj.code);
    };
    }
    stop();

    thanks...


    May 2, 2006
    the server is installed in the same computer..
    May 2, 2006
    sorry for the lack of information the last time:

    Originally, all the files(flv,swf,html) are in D:\flash(local hardrive), and now I move the swf and html files to D:\flash(another local harddisk). When I open the swf or html files, there is no sound or audio.
    The code I use:
    var nc:NetConnection = new NetConnection();
    var seek_button = new Button;
    nc.connect("rtmp://198.12.123.00/my_app");
    nc.onStatus = function(returnObj){
    trace("NetConnection ReturnCode:"+returnObj.code);
    if(returnObj.code == "NetConnection.Connect.Success"){
    startVideo();
    }
    };
    function startVideo(){
    myInputStream = new NetStream(nc);
    myInputStream.autoPlay = false;
    myInputStream.play("Green Roof 60 Sec MM-A2");
    myInputStream.onStatus = function(returnObj){
    trace("myInputStream ReturnCode:"+returnObj.code);
    };
    }
    stop();

    thanks...
    April 28, 2006
    That's not really enough info to troubleshoot the problem.

    Please describe the locations of the files and your FMS installation (servers, networks, etc.) and post the code you are using to connect to FMS.