ActionScript 2.0 vs 3.0 NetConnection

I have some code I've been using to connect to a streaming
server. This version is compiled for ActionScript 2.0:
netConnection = new NetConnection();
netConnection.onStatus = function(info) {
trace("status: " + info.code);
netConnection.connect("rtmp://server.net/blah/blah/");
When I run that, I get "status:
NetConnection.Connect.Success" and everything works like it should.
Now, I run what seems to me to be pretty much identical code,
compiled for ActionScript 3.0:
var netConnection:NetConnection = new NetConnection();
netConnection.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler);
netConnection.connect("rtmp://server.net/blah/blah/");
function netStatusHandler(event:NetStatusEvent):void {
trace("status: " + event.info.code);
When I run that, though, I get:
status: NetConnection.Connect.Rejected
status: NetConnection.Connect.Closed
I've tried using port 1935 as suggested here, and that didn't
help. I also tried uploading this to my server to see if it was the
firewall on my machine. Same problem. I CAN connect using the
FLVPlayBack control under ActionScript 3.0, but I'd rather use this
method...
But honestly, the only real difference is the switch from
AS2.0 to 3.0. What could possibly be different to make the server
reject my connection? Is there some other way I'm supposed to
connect with 3.0? I've found surprisingly little info on the
subject.
If it's something on the server itself, please explain slowly
with small words. :-) I know nothing about the server itself, don't
have direct access to it, and will have to be able to explain the
problem to their admin.

Try adding this code:
netConnection.objectEncoding = ObjectEncoding.AMF0;
before connecting since that's the encoding of the current
FMS 2 encoding.

Similar Messages

  • Live Webcam and Netstream.publish HELP!

    Hello! Im new to the forums. Im working on a project for work and im using FMS 3 and AS3. I've gotten to a point where google cant help me anymore. When I get my webcamera with flash and allow the camera to be used it then opens a netstream to the FMS server, which for some reason doesnt work all the way. I can see the new stream being published but i just stops and you cant view it. Here is my code.
    var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp://my_fms_server_ip/live/livestream");
    var camera ;
    var video ;
    function onCameraStatus( evt ):void {
        if (evt.code == "Camera.Muted"){
            trace("Camera Access Has Been Denied!") ;
        if (evt.code == "Camera.Unmuted"){
            trace("Camera Access Has Been Granted") ;
    camera = Camera.getCamera() ;
    camera.addEventListener(StatusEvent.STATUS, onCameraStatus) ;
    if (camera == null)
           Security.showSettings(SecurityPanel.CAMERA) ;
       }else{
    video = new Video(camera.width, camera.height) ;
    video.attachCamera(camera) ;
    addChild(video) ;
    var my_ns:NetStream = new NetStream(my_nc);
    my_ns.attachCamera(camera);
    my_ns.publish("cwysong");
    Please Help!

    I got everything working.. here is my code. FYI this is done in Actionscript 2.0 and im passing variables from PHP to actionscript using FlashVars.
         var nc:NetConnection = new NetConnection();
         nc.connect("rtmp://My.Server.IP/live/"+ confid);
         var ns:NetStream = new NetStream(nc);
    mycam = Camera.get();
         mymic = Microphone.get();
         myvid.attachVideo(mycam);
         mycam.setQuality(84500,0);
         mymic.setRate(11);
         ns.attachAudio(mymic);
         ns.attachVideo(mycam);
    ns.publish(+ uname);
    there ya go!

  • Netconnection Debugger not tracing when exporting from Flash 8 with Actionscript 2.0

    Ok, Sorry for the long post, but given my research , I wanted
    to be clear on the problem and what I have done to address it.---
    anyone who has gotten the NetConnection Debugger to work with Flash
    8 and actionscript 2.0 on a PC, your help will be greatly
    appreciated
    When I compile a Flash 8 swf with AS 2.0 the it does not seem
    to import the class properly to utilize the net connection
    debugger.
    I spent a considerable amount of time getting it to work on
    My Mac, but on the PC , none of my calls to the debugger are
    working.
    I have a very simple file that has the following code:
    import mx.remoting.NetServices;
    import mx.remoting.debug.NetDebug;
    NetDebug.initialize();
    NetDebug.trace("I am here")
    I do not get any errors for the imports, and the files are
    where they need to be. ( see the end of the message to see the
    directory structure for both the mac and the pc versions of this)
    When I first installed the remoting components on my
    macintosh, the Net Connection Debugger would not work. I eventually
    took my 2004 Classes and overwrote the mx.remoting.debug folder in
    the
    usr/Library/Application Support/Macromedia/Flash
    8/en/Configuration/Classes/mx/
    then after restarting flash and the debugger.swf.. it worked
    on the mac.
    I have tried the same thing on the PC on three separate
    machines.
    The latest PC is a brand new clean machine.
    These are the steps I have followed:
    I installed Flash 8 professional
    I installed the remoting components
    I created a test file with the code from above
    I opened the debugger
    I exported the file, ............... nothing traced
    I then copied the as Class files from my mac and overwrote
    the files in the classes directory for mx.remoting.debug
    in both these directories.
    c:\Documents and Settings\user\Local Settings\Application
    Data\Macromedia\Flash 8\en\Configuration\Classes\mx\
    and in c:\Program Files\Macromedia\Flash 8\en\First
    Run\Classes\mx\remoting.
    After a restart of flash and the debugger I am still not
    getting a trace out... I am at a loss. I need this to work, and
    someone has to have run into this before.
    Here is a list of the files in mx\remoting directories on the
    Mac and the PC.
    Mac
    Connection.as
    DataGlue.as
    debug //this is the folder
    ----- commands//this is a folder
    ----- events //this is a folder
    ----- connectionMixin.as
    -----GlobalLocalConnection.as
    ----- NetDebug.as
    ----- NetDebugConfig.as
    ----- NetDebugResponseProxy.as
    NetServiceProxy.as
    NetServiceProxyResponder.as
    NetService.as
    Operation.as
    PendingCall.as
    RecordSet.as
    RecordSetIterator.as
    RemotingComponentVersion.as
    RsDataFetcher.as
    RsDataRange.as
    RTMPClientResponse.as
    Service.as
    PC in the Documents and
    Settings...............\classes\mx\remoting
    Connection.as
    DataGlue.as
    debug //this is the folder
    ----- commands//this is a folder
    ----- events //this is a folder
    ----- connectionMixin.as
    -----GlobalLocalConnection.as
    ----- NetDebug.as
    ----- NetDebugConfig.as
    ----- NetDebugResponseProxy.as
    NetServiceProxy.as
    NetServiceProxyResponder.as
    NetService.as
    Operation.as
    PendingCall.as
    RecordSet.as
    RecordSetIterator.as
    RemotingComponentVersion.as
    RsDataFetcher.as
    RsDataRange.as
    RTMPClientResponse.as
    Service.as
    thanks for the help
    allen hujsak

    Thank you for the advice. This is still the error I get even
    with those two components on stage. Do I have to connect them to
    something? I am still trying the same tutorial from
    adobe...www.adobe.com/devnet/flash/articles/delta_packet.html
    Here's the error...
    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Error
    opening include file NetServices.as: File not found.
    #include "NetServices.as"
    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Error
    opening include file NetDebug.as: File not found.
    #include "NetDebug.as"
    Total ActionScript Errors: 2 Reported Errors: 2
    Please help!!!!!!

  • How to detect whether NetStream/NetConnection is closed in actionscript 2?

    I've checked the documents, but don't see such info.
    Is it possible to check that?

    you have to compare the netstream's time with it's duration.

  • Custom NetStream using netConnection in LCCS

    I want to send custom NetStream using LCCS service. I dont want to use LCCS components and Pods. I need netconnection for that. How can we do that.
    Also is it possible to use methods like netconnection.call() to pass messages between LCCS connected users?

    Hi Ysong,
    Please try posting your question to the ActionScript 3 forum: http://forums.adobe.com/community/flash/flash_actionscript3. It's the most appropriate forum for your question. You might also try the forums for Flash, Flash Builder, or Flex, depending on the authoring environment you are using to write your ActionScript code.
    Thanks,
    KALTechWriter

  • How do I find the root cause of a NetConnection closed event?

    Hi,
    I am maintaining a large project developed in Flex/Actionscript.
    The application is using tunneling (RTMPT), and we often get Netconnection "closed" events.
    There is no problem with the physical network.
    I think the event may be caused by either a TCP/HTTP/RTMP event, or may be caused by
    some function in the client calling close() on the connection.
    How can I find the root cause of the "closed" event being thrown?
    Thanks,
    David

    Thanks for the information.  It is helpful but it seems there must be a specification of
    what the client side is expecting, independent of any server implementation. 
    When I say client side, I mean the Adobe communication libraries.
    Where is the specification or source code for how the client libraries treat HTTP tunneled requests and responses?
    One question in particular:  How does the client side library treat a
       Connection: Keep-Alive
    versuse
       Connection:close
    HTTP header setting?

  • Actionscript 3 and rtmp

    Hi all:
    I'm trying to create a simple connection to my FMS sever
    using actionscript 3 and the Flash 9 Alpha. The code below *kind of
    works,* but I know it's wrong - I don't know where it's wrong, but
    I know that it's wrong. I've been googling, reading the articles
    here (state machine), and going through the AS3 cookbook, but I'm
    this is the closest I can get by myself.
    Any help would be really appreciated.
    package {
    import flash.display.Sprite;
    import flash.events.NetStatusEvent;
    import flash.events.SecurityErrorEvent;
    import flash.media.Video;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.net.defaultObjectEncoding.*;
    public class VideoExample extends Sprite {
    private var videoUrl:String = "1";
    private var connection:NetConnection;
    private var stream:NetStream;
    //private function init():void{
    // Create the NetConnection and listen for NetStatusEvent
    and SecurityErrorEvent events
    //nc = new NetConnection();
    //nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
    //nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    netSecurityError);
    //nc.connect("rtmp:/myApplication");
    public function VideoExample():void {
    NetConnection.defaultObjectEncoding =
    flash.net.ObjectEncoding.AMF0;
    connection = new NetConnection();
    connection.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    connection.connect("rtmp://...videosource/");
    private function netStatusHandler(event:NetStatusEvent):void
    switch (event.info.code) {
    case "NetConnection.Connect.Success":
    connectStream();
    break;
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    private function connectStream():void {
    var stream:NetStream = new NetStream(connection);
    var video:Video = new Video();
    video.attachNetStream(stream);
    stream.play(videoUrl);
    addChild(video);
    }

    Found AS3 code on the Flex site, but it throws the following
    errors on trace (video does stream, but this isn't working right).
    Can someone please help?
    =======
    Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
    flash.net.NetConnection was unable to invoke callback onBWDone.
    error=ReferenceError: Error #1069: Property onBWDone not found on
    flash.net.NetConnection and there is no default value.
    at VideoTest$iinit()
    metadata: duration=570.2330000000001 width=796 height=536
    framerate=30
    package {
    import flash.display.Sprite;
    import flash.events.NetStatusEvent;
    import flash.events.SecurityErrorEvent;
    import flash.media.Video;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.events.Event;
    import flash.net.ObjectEncoding;
    public class VideoTest extends Sprite{
    private var videoURL:String = "1";
    private var connection:NetConnection;
    private var stream:NetStream;
    public function VideoTest():void {
    ////NetConnection.defaultObjectEncoding =
    flash.net.ObjectEncoding.AMF0;
    connection = new NetConnection();
    connection.objectEncoding = flash.net.ObjectEncoding.AMF0;
    connection.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    connection.connect("rtmp://.../videosource/");
    private function netStatusHandler(event:NetStatusEvent):void
    switch (event.info.code)
    case "NetConnection.Connect.Success":
    connectStream();
    break;
    case "NetStream.Play.StreamNotFound":
    trace("Stream not found: " + videoURL);
    break;
    private function
    securityErrorHandler(event:SecurityErrorEvent):void
    trace("securityErrorHandler: " + event);
    private function connectStream():void
    var stream:NetStream = new NetStream(connection);
    stream.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    stream.client = new CustomClient();
    var video:Video = new Video();
    video.attachNetStream(stream);
    stream.play(videoURL);
    addChild(video);
    class CustomClient
    public function onMetaData(info:Object):void {
    trace("metadata: duration=" + info.duration + " width=" +
    info.width + " height=" + info.height + " framerate=" +
    info.framerate);
    public function onCuePoint(info:Object):void {
    trace("cuepoint: time=" + info.time + " name=" + info.name +
    " type=" + info.type);
    }

  • ActionScript 3.0 Flash video gallery Tweak

    Hi,
    Is there a way to remove the 2nd filter option on the
    ActionScript 3.0 Flash video gallery ?
    Sadly our coding guru is away on holiday and we need to try
    and find a solution asap.
    (commenting section out etc just makes it fall over)
    Any help would be most appreciated.
    Cheers,
    Andrew

    To do it in AS2 you need just install the remoting classes again. You can either copy them fro your old install or get them:
    http://drupal.org/node/258605
    Scroll down a bit and you'll see a link to the as2 remoting classes: Remoting_FlashCS3.zip
    In AS3 there are a few ways. Some people have made classes for it, or you can use the built in methods of NetConnection. Here's a couple examples of that:
    http://www.oscartrelles.com/archives/as3_flash_remoting_example
    http://www.flash-db.com/Tutorials/helloAS3/

  • Actionscript 3.0 and Divice Central CS3

    Hello everyone, i'm new in the developpment for flash lite
    applications. I found an application uses Actionscript 3.0 running
    on Flash Lite 3.0. I wanted to use it in my try version of Adobe
    Flash CS3 professional. But i could'nt find in the divice central
    CS3 no support for ActionScript 3.0. Is there any opportunity to
    get my application working in this try version? Please, is there
    any update for the Adobe Flash CS3 Professional, that can help me
    to get started?
    Thanks for your answers and disponibility
    fye2008

    I am asking the exact same question. Maybe it has to do with
    the following two points in the documentation:
    Loading and playing an audio or video
    file is not allowed if the calling SWF file is in a network sandbox
    and the file to be loaded is local.
    By default, loading and playing an
    audio or video file is not allowed if the calling SWF is local and
    tries to load and play a remote file. A user must grant explicit
    permission to allow this.
    There seems to be preciously little information on the web on
    using the AS3 NetConnection classes with FMS2.

  • Where is flash remoting in actionscript 3.0\flash cs5

    hello everybody,
    i have been looking throught all the available tutorials on this site including flash cs5 help, actionscript 3.0 developer's guide, learning actionscript 3.0 and i can't seem to find anything relating to flash remoting (i.e how to retrieve and send data to and  from a server like coldfusion). has it been removed?
    i have solutions that were built with flash and actionscript 2.0 that uses data retrieved from coldfusion server for it's operation, i was thinking of migrating them to actionscript 3.0, but it keeps saying that the classes, packages or interfaces like mx.remoting, mx.rpc can not be found. even when i create a new flash document specifying 2.0 as the docuent type, it is still not compiling,. does this mean i have to revert to flash 8\actionscript 2.0 because that is what i built the programs with. please  any information or guidiance will be highly appreciated.
    thanks to you all.

    To do it in AS2 you need just install the remoting classes again. You can either copy them fro your old install or get them:
    http://drupal.org/node/258605
    Scroll down a bit and you'll see a link to the as2 remoting classes: Remoting_FlashCS3.zip
    In AS3 there are a few ways. Some people have made classes for it, or you can use the built in methods of NetConnection. Here's a couple examples of that:
    http://www.oscartrelles.com/archives/as3_flash_remoting_example
    http://www.flash-db.com/Tutorials/helloAS3/

  • NetConnection using POST requests to retrieve data

    Hi Everyone,
    I've noticed that when I use NetConnection.call(methodName) in my client Actionscript it sends a POST request off to the server. I thought this was odd because requests for data are normally GET operations but I didn't worry about it because it doesn't impact my application.
    Now I have our sysadmin complaining about the amount of data I'm shifting over POST requests because POST requests aren't cached by the web servers (and we are working with the kind of traffic levels where that matters.) Is there anyway I can make call() use GET?
    The code  I'm using is all fairly standard, but here is the relevant snippit:
                        var nc:NetConnection = new NetConnection();
                   nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                            nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
                   nc.connect(serverUrl);
                   var res:Responder=new Responder(onResult,onError);
                   function onResult(e:Object):void {
                        trace(Trace.structure(e,"",0));
                        loadSequence(e);
                   function onError(e:Object):void {
                        trace(Trace.structure(e,"",0));
                        noService();
                   nc.call(methodName,res);
    Any information even a 'No thats not possible' would be much appreciated.
    _Pez

    Hi Pez,
    I checked with some of my colleagues here at Adobe and I do believe that the answer is 'not possible as this time'.  Player is hardcoded to use POST for RTMPT so you're not going to be able to change those to GET based requests.
    Asa

  • AS3 - 1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place; 2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true - ActionScript 3 - flash cs3 cs4

    Hi folks,
    Ronny's here again on forums, having particularly 2 (two) questions/problems to resolve:
    1) Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place
    2) Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true
    attached is the .zip file (as3_Countdown Timer_ver 1.0.1_by Ronny Depp.zip) with all flash source files containing:
    a) The FLash Source (file: timer_module.fla) - (FLA flash source file - Flash CS3 Professional, Flash Player 9, actionscript 3.0)
    b) com.othenticmedia.utils.dateAndTimeManagement package including 2 .as actionscript 3.0 Class files.
           i) com.othenticmedia.utils.dateAndTimeManagement.DateAndTimeManager Class in the said package. (file: DateAndTimeManager.as)
           ii) com.othenticmedia.utils.dateAndTimeManagement.CountdownTimer Class in the package. (file: CountdownTimer.as)
    c) The compiled SWF file version of this Application's blueprint. (file: timer_module.swf).
    What i need to confirm is: ........................................................ see the next post of mine. (for Problems  need to be Resolved)

    Problems to Resolve:
    Problem#1) - Countdown Timer to the designated Date for Live-Broadcast-Event yet to take place.
    Problem#2) - Detect End of Live Stream on FLVPlayback with FLVPlayback.isLive = true;
    Problem#1 Description:
    I need to pinpoint the Logical TimeSync Exception, i am still unable to figure out. That is I'm using a webservice in my Application to Synchronize the Time with the actual ET (eastern time) with accomodation of auto-adjustment for EDT GMT-4 (eastern daylight time) & EST GMT-5 (eastern standard time), times. I am using the zipcode: "10012" to pass it to the Web Service in urlRequest object, to retrieve the Current ET eastern time according to EDT & EST time settings for Manhattan/Brooklyn areas or others within  New York, NY 10012.
    Currently the Web Service is returning accurate date/time based on local EDT GMT-4 daylight time.
    Is there some defined set of dates for EDT & EST times for New York region that I can check for to ensure the correct Dates/Times for Eastern Time in New York area ??? I am using NY zipcodes because i am sure to get correct ET values.
    The Major Problem Part: is I need to correct the time by 2 seconds or approx. 2 secs, some millisecs.
    When I retrieve the Time Value from WebService, it lags behind for 2 seconds as compared to DateObj i create using computer's local time, on my Windows XP Service Pack 2 with Automatic Updates turned-on. And I'm sure about my Windows will be having latest updates for Time Management already installed. I also added the 2 secs. to the TimeSync(ed) Date to make correction to this Date obj.
    I call my custom fucntion addSeconds(dateObj:Date, secs:int) to add 2 seconds to the Date by Converting Seconds to Milliseconds.
    Please comb through the as code in files attached and Help Me Out !!!
    Problem#2 Description:
    Secondly I need to Detect the End of Stream state while using FLVPlayback component, an rtmp:// live Stream from FLASH MEDIA SERVER.
    I need to Play a YuMe Post-Roll Ad when Steam Finishes/Ends.
    Live Broadcast Stream Event starts every night on Wednesdays & Saturdays exactly  at 10:59 PM EDT GMT-4.
    Live Events only Streams/Broadcasts the stream for 50secs. exactly. When [playback stopped] it plays a PostRoll Ad and after the CountdownTimer again comes back to life. The Next upcoming Event is calculated & the Countdown begins until Next Event's time/date is reached.
    Here is the  code on the frame 1 on the MainTimeline: (rest of the params like source, volume, skinAutoHide are Set using Property Inspector for FLVPlayback instance on Stage)
    //myStream instance of FLVPlayback is on the Stage
    myStream.isLive = true;// Frame 1 Actions in the FLA
    myStream.addEventListener(VideoEvent.COMPLETE, onEndOfStream);
    myStream.addEventListener(VideoEvent.STATE_CHANGE, onState);
    myStream.addEventListener(String(VideoError.NO_CONNECTION), onStreamError);
    myStream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    /*if(myStream.stopped){
         trace("tracy: "+myStream.state);
    } else if(myStream.state == VideoState.STOPPED){
         trace("tracy: "+myStream.state);
    function onStreamError(event:VideoError) {
         trace(event.code + "\n\t" + event);
    function onState(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function onEndOfStream(event:VideoEvent) {
         trace(event.state + "\n\t" + event.toString());
    function netStatusHandler(event:NetStatusEvent):void {
         switch (event.info.code) {
              case "NetConnection.Connect.Success":
                   //connectStream();
                   break;
              case "NetStream.Play.StreamNotFound":
                   trace("Stream not found: "/* + myStream.source*/);
                   break;

  • ActionScript Errors From Updating to New Version of Adobe Flash Player

    I updated my flash player now I'm getting Actionscript errors i thought it was just web cam video related but i get more when i go to youtube that eventually make my computer freeze     this box pops up with no options but dismiss all or continue that keeps popping backup heres one example adobe better be able to fix this
    This is what happens when i go to the site
    Adobe Flash Player
    ActionScript error #1010 a term is undefined and has no properties
    at MfcVideo/nc_netStatusHandler()
    This is what happens when i try to leave the site
    at MfcVideo/nc_netStatusHandler()
    atflash.net::NetConnection/invoke()
    atflash.net::NetConnection/close()
    atMfcVideo/Disconnect()
    atFunction/http://adobe.com/AS3/2006/builtin::apply()
    atflash.external::Externallnterface$/_callln()
    atFunction/<anonymous>()
    Then if i stay my computer starts to freeze
    I looked through many sites and have not found anything that tells how to fix this stuff I need a straight step by step answer adobe should have a patch made for this kind of thing i have windows xp sp3 with and i use firefox i think i had this problem years ago but can't remember how i fixed it i was going to get help from customer service support but they made me do this instead what ever helps....Thanks in advance

    From where did you download that update?  Did you download the content debugger instead of the standard player?

  • Using NetConnection not working .pause when the page changes (Is this a FLASH PLAYER PROBLEM?)

    I am having trouble troubleshooting my interactive USB.
    Here it goes:
    (1) I have 5 buttons which are dynamically loaded
    (2) With the 5 buttons, I have 5 change-page. On my 4th and 5th buttons, this is where my NetConnection is placed. Below is my code on page 4.
    var connection:NetConnection = new NetConnection();
    var stream:NetStream;
    var video:Video = new Video(470,376);
    var metaObj:Object = new Object();
    function onMetaData1(data:Object):void
    connection.connect(null);
    stream = new NetStream(connection);
    stream.client = metaObj;
    metaObj.onMetaData = onMetaData1;
    video.attachNetStream(stream);
    addChild(video);
    stream.play("video/FILM_4.f4v");
    stream2.pause();
    (3) Now, when I try publishing it in .exe file, the videos added are working fine. The problem is when go to page 1,2,3,5 it changes the page but the audio sometimes stop and sometimes not.

    Hi Ysong,
    Please try posting your question to the ActionScript 3 forum: http://forums.adobe.com/community/flash/flash_actionscript3. It's the most appropriate forum for your question. You might also try the forums for Flash, Flash Builder, or Flex, depending on the authoring environment you are using to write your ActionScript code.
    Thanks,
    KALTechWriter

  • Get More Info for NetConnection.Connect.Failed Error?

    I have a single server that runs IIS and FMS, both on port 80.  The server has two internal IPs assigned to it, one for IIS and the other for FMS.  I also have two static public IPs.  My router maps one public IP to IIS' internal IP and likewise for FMS.
    IIS works fine.  Using an online port scanner, I was able to determine that port 80 is responsive for both public IPs.  Before I had configured my Adapter.xml and fms.ini, only IIS' public IP was responsive.  This seems to indicate that FMS is fine.
    However, when my ActionScript creates a NetConnection and calls connect(), my netStatus callback takes about half a minute to be invoked, and I get "NetConnection.Connect.Failed".  Which is not very informative.  Is there a way to get more info about the cause of the error?  Also does anyone have suggestions for how to debug this issue?

    Hi,
    Thanks for trying out FMS..
    I can guide you with few checkpoints to first see where the problem might be.
    1. Go to the FMS installation directory and check for the logs folder. See all the logs (according to date) and find if the port bindings are all successful. This might tell us whether FMS actually has started or not.
    2. FMS works on port 1935 for RTMP streaming. It also gets bundled with apache (listening on 8134) but one of the fms processes also takes hold of 80 for its tunneling streaming as well as redirecting to apache. So either you remove this entry from fms.ini or change it to reflect to some other port. ADAPTER.HOSTPORT is the variable to look for.
    3. How are you making sure that FMS is working/not working ?
    4. Please turn off your firewall or other secutiry for testing purposes to see if you are able to hit the FMS .
    Let us know if any of the above are helpful in getting some more information.
    Thank you !

Maybe you are looking for

  • MAXIMUM  iPod video output quality.

    Because a few have asked me for some specs... The iPod is designed to play back video files that have square pixels. DVDs use non-square pixels to fit widescreen images into 720x480 native rez of DVD standard. When you square the pixels of a 2.35 asp

  • Converted raw (or .dng) will not open in ACR?

    OK, now that I've gotten sort-of over the hurdle of synching all the pieces associated with a smart object, I've hit the NEXT hurdle (SOs appear to be the usual double-edged sword - kinda handy in a way but rife with pitfalls and hurdles)... I open a

  • Safari 4.0 progress bar and Top Sites bugs (?)

    Hi there, I am having a problem with my Safari 4 and been searching for a fix since a few days but could not find a solution, so I hope there is someone who can help me out. There are basically two problems, I have with Safari. The first one is, that

  • I need to clean up the edges of an image, please help!!

    I stained a t-shirt and so to make one that was the same I scanned the image on it in order to later print it on a new t-shirt. I opened the scanned image on photoshop and removed the background, then I used the quick selection tool to select the col

  • UIData.setVar() not working on backing bean

    Hi, I'm having a problem trying to make setVar() work on my web app. The web app has to create a dynamic nested datatable from a resultset, so the number of columns and/or nested tables are unknown until runtime. I've searched around the forums as we