Multiple Consumer Object per Streaming Connection in AIR2.0

HI,
we require streaming server setup for our project.
We are trying to minimize number of connections to the streaming server.
My query is "If we have multiple Consumer object instance with same channel and destination, will all the Consumer instances share the same streaming connection or for every Consumer object instance a new Connection is created?"
Thanks in advacne for your support.
Regards,
Shailendra

Thanks doghouseJim, appreicate
I tried to substitute onStatus function with your code (metadata) and as a result I don't have reported  error anymore.
However, for strange reason, once the flash goes into a html document the video is not loaded...
any idea?
Cheers

Similar Messages

  • Multiple Consumer object per Streaming Connection in AIR

    hi,
    We require streaming server setup for our project.
    We are trying to minimize the active connections to the server.
    My query is "If we are using multiple Consumer object instances with same channel and destination, will we have a single connection to the server shared by all Consumer instances or we'll be having different connection for each Consumer instance".
    Thanks in advance for your support
    Regards,
    Shailendra Sirohi

    Excellent answer.  It dovetails with the approach I've started to take here.  I'm using something called NetConnectionClient to catch server calls.  Does your NCMgr class extend NetConnection or EventDispatcher?
    Mine extends EventDispatcher and has a method like the following.  Just stuffs the message from the server into an object first before dispatching an event containing it:
            public function receiveChatMessage(msg:String):void
                var tempObj:Object = new Object();
                tempObj.msg = msg;
                dispatchEvent(new NetConnectionClientEvent("onReceiveChatMsg", tempObj));
    All cool there.  This works up to this point.
    I'm hazy after that though.  Who should listen for and handle the event?  I'd like my chat component to listen for and handle it directly, like in your scenario.  But my chat component is in a separate mxml file imported into the main app file.  I'm hazy on how to have it grab what it needs.
    I currently have the "application" listening for and handling the event.  The handler method just relays the call by calling a method on the chat component instance, like this:
    chat.receiveMessage(tempObj); //tempObj contains the message
    I think that's too many relays of the same call, from the NetConnectionClient class, to the main application file, down to the custom chat component.  I'd like to cut out a leg of that trip.
    Should I have the chat component instance itself be listening, like this?
                chat.addEventListener("onReceiveChatMessage", chat.receiveChatMsg);
    Is that a proper relay of the dispatched event to the target component.  The syntax doesn't seem proper to me.  I feel like something's wrong with the design of the last leg of the relay here.

  • Max-streaming-connections-per-session limit

    Hello,
    i'm trying BlazeDS with Air app.
    I set blazeDs on a Jboss Server with JMS adapter.
    I configure it with a streamingAMF channel.
    In user agent configuration i put msie, firefox value to 10 for the max-streaming-connections-per-session limit param.
    In Air client configuration i instantiate a producer and a consumer on the same streaming AMF channel.
    After the consumer.subscribe() i launch the producer.connect() on the server i get this error :
    14:25:20,015 INFO [STDOUT] [BlazeDS] Endpoint with id 'my-streaming-amf' cannot grant streaming connection to FlexClient with id '497031A2-7B0D-019A-0E1D-7622A-A631D28' because max-streaming-connections-per-session limit of '1' has been reached.
    Is it a limitation of use of blazeDs with Air app ?

    First, if you change the limit to 10, then it should be 10 and not 1. If you still see 1, then please log a bug.
    Second, you really want this limit to be 1 in IE and 4 in Firefox 2. But there's no reason to have more than 1 streaming connection from the server to the client unless you need to talk to two different endpoints.

  • I have three airports connected to my computer but when i ask for multiple speakes on the streaming section it only allows two of them at a time.. is there a way to have all airports streaming at the same time to different speakers.

    when i hit the multiple speakers option on streaming music in itunes to my airports which i have three connected, it only ever brings up two maximum plus the computers internal speaker as an option. how do i configure the computer t allow all three airports to stream the itunes content

    when i hit the multiple speakers option on streaming music in itunes to my airports which i have three connected, it only ever brings up two maximum plus the computers internal speaker as an option. how do i configure the computer t allow all three airports to stream the itunes content

  • Live Stream connection limit per server

    I Need to Broadcast 20,000 to 40,000 Live Streams.! (Bitrate : 128Kbps / Viewers Per Stream Apprx-10 Server : Adobe FMS Server Amazon EC2 Instance - Bandwidth Apprx 100mbps)
    My Question is
    1. How Many Concurrent connections Possible for one Adobe FMS Server? (Amazon EC2 Instance)
    2. is this possible to use RTMFP for this process? (20,000 Connections Via Amazon Adobe FMS Server EC2 Instance )
    3. if Possible Over RTMFP then How Many Developer Keys Need for this Operation. (or) Pricing Details for the Developer Key. (or) Any Separate Key[s] Available For Amazon EC2 Instance?
    Thanks
    Sarma

    1.  Looking at your stream specs - its like  128 X 10 ~ around 1 Mbps for one stream considering 10 clients. And considering bandwidth of 100 mbps for instance you can support around 1000 clients. But few things i want to know before we can conlude on figures - what is NIC capacity of the instance.
    2. Yes if you using FMS on AWS offering - you can use RTMFP
    3. You don't need developer keys if you are using FMS on AWS offering to use RTMFP

  • Increasing max-streaming-connections-per-session has slow acknowledge response?

    Our application is a Flex GUI with a WebLogic Server (BlaseDS) on a private network.  We were originally using IE 6, but have upgraded to IE 8.
    I am trying to use publish/subscribe messaging to monitor lengthy processes on the server and received incremental data.  With 1 such process everything works fine.  But we want to allow the user to subscribe to more than 1 message destination.  So I increased the "max-streaming-connections-per-session" (default is 1) in the services-config.xml file
         <channel-definition id="process-notification-streaming-amf"
              class="mx.messaging.channels.StreamingAMFChannel">
              <endpoint url=https://{server.name}:{server.port}/{context.root}/messagebroker/streamingnotificationamf"
              class="flex.messaging.endpoints.StreamingAMFEndpoint"/>
              <properties>
                   <user-agent-settings>
                        <user-agent match-on="MSIE" kickstart-bytes="2048"
                             max-streaming-connections-per-session="3" />
                   </user-agent-settings>
              </properties>
         </channel-definition>
    If we leave max-streaming-connections-per-session as the default value of 1 and try to subscribe to another message destination we get an error indicating limit has been reached:
         [BlaseDS]Endpoint with id 'process-notification-streaming-amf' cannot grant streaming connection to FlexClient with id '7FFC82DE-etc ' because max-streaming-connections-per-session limit of '1' has been reached.
         We upgraded to IE8 as documentation indicates IE8 allows for an increase of max-streaming-connections-per-session, where IE 6 is limited to 1.  But increasing max-streaming-connections-per-session does not quite solve the problem.  We have 3 consumers; consumer1, consumer2, consumer3.  For each of these consumers, we add event listeners for MessageAckEvent.ACKNOWLEDGE and MessageEvent.MESSAGE.
         We call consumer1.subscribe().  When we receive the acknowledge message, we call consumer2.subscribe() (likewise with consumer3)
         The problem is it takes over 2 minutes to receive the acknowledge message from the call to consumer1.subscribe().  (With max-streaming-connections-per-session set to 1, the acknowledge message is received in a few seconds.)
         So, increasing max-streaming-connections-per-session removes the error about reaching a limit, but it appears to come with a cost of a big delay in a long delay on the call to subscribe?  Or is there something we are missing?

    I guess I will answer my own question.  Hopefully this will be useful to someone else in the future...
    The problem was coming from IE being limited to 1 connection by the registry.  The solution can be found at:
    http://support.microsoft.com/kb/282402
    I manually performed the steps to update the registry, though microsoft provides a "Fix It"; MicrosoftFixit50098.msi
    One other key element was to make sure to have kickstart-bytes="2048".

  • Max streaming connections per session error

    I have a flex application that uses messaging with a streaming AMF connection, falling back to polling. When the max number of streaming connections on the server is reached, it does fall back to polling (at least it prints the max-streaming-clients error but the client connects, so I assume it is falling back - how can I tell?). However, occasionally the streaming connection will not initialize and it does not fall back - no messages are received on the client. The following error is logged on the server:
    [EMST]09/25/2008 13:43:18.231 [ERROR] Endpoint with id 'my-streaming-amf' cannot grant streaming connection to FlexClient with id 'D5B8E3A1-1A1C-063E-84A6-6A743A1E4EE0' because max-streaming-connections-per-session limit of '1' has been reached.
    This would make sense if the issue was caused by trying to initialize the streaming connection in two tabs of a browser, but I am only trying to initialize in one tab. Closing the browser (and thus destroying the session) does not fix it. The only solution I've found is to reboot the client machine. This has happened in both FireFox 3.0.2 and IE 7.
    (1) What could cause the client to get in this state?
    (2) When it happens, why doesn't it fall back to polling? Is the fallback only for when the server max connections is reached? When the streaming connection doesn't initialize, no messages are received.
    (3) Is there a way to explicitly close the streaming connection on the client so we can fix this without rebooting?
    Thanks!

    Hi Mary. If you turn on Debug level logging on the client and the server you should be able to tell if you have fallen back to a polling channel after the attempt to connect over the streaming channel has been rejected. In the client log, you will see the flex application sending poll requests to the server at the polling interval configured in the channel and in the server log you should see that the server is receiving these requests.
    The behaviour you are seeing seems very strange to me. The reason we have the max-streaming-connections-per-session limit on the server is because most browsers limit the number of active connections that can be made to a server from a single session. In IE for example, this is 2. What happens in most cases when the browser's connection limit is reached is that new connections are put on hold until one of the existing connections closes. This would cause your flex application to hang with no errors being reported on the client or the server. This is why we need the max-streaming-connections-per-session setting on the server. This prevents more than one persistent connection from being made from the same session, so the browser should never reach it's max connections per server limit and lock up.
    It looks like you are somehow getting the browser to lock up even though the server is only limiting you to one streaming connection per session. It may be possible to do this if you reload the flex application in the browser (by doing a page refresh) in which case the browser could possibly briefly leave the streaming connection open in the background and when you tried to create a new streaming connection, the browser's connection limit to the server would have been reached and the application could hang. When the application hangs are you reloading the swf/page in the browser?
    I really don't know why closing the browser wouldn't fix the problem. You're right that closing the browser should end the session. If you launch a new browser and load the swf do you get the same "cannot grant streaming connection" error on the server or is the browser just locked up, ie. no error is received on the client and the server?
    You're not using a proxy server or anything like that are you that might be holding a connection open to the server?
    -Alex

  • Jdbc: multiple Statement objects

    When or why would I need multiple Statement objects from a single Connection? Is it usual to call "stmt.close()" at the same time you close the Connection, or is there a reason to have multiple Statement instances for a single Connection?

    If you want to have multiple result sets to use at the
    same time, you need multiple Statement objects.
    Otherwise, calling another query on the statement
    after you get a ResultSet back will close the first
    ResultSet. Not sure if that's dependent on the DB
    driver implementation or not, but that's what happens
    in most I've seen. Closing the connection should
    close the statements that are created by it, though.You can only have one active result set per statement at a time.
    All drivers allow you to have more than one statement per connection. Some drivers allow you to have more than one active statement (a statement with an active result set) per connection.

  • Internal Error ORA-0600 when creating multiple consumer queue table

    Hi,
    I tried to create a multiple consumer queue table with the following statements:
    exec DBMS_AQADM.GRANT_TYPE_ACCESS ('system');
    create type Change_History_Trigger_Data as object(Col1 VARCHAR2(255), Col2 VARCHAR2(128), Col3 VARCHAR2(255), Col4 TIMESTAMP, Col5 VARCHAR2(64), Col6 VARCHAR2(64), Col7 NUMBER(8));
    Works fine till this stage. But the following statement produces an ORA-0600 internal error message.
    EXEC DBMS_AQADM.CREATE_QUEUE_TABLE ('change_history_queue_tbl','Change_History_Trigger_Data', 'tablespace my_tblspace','ENQ_TIME',TRUE,DBMS_AQADM.TRANSACTIONAL);
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kcbgtcr_4], [14392], [0], [1], [], [], [], []
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2224
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 1
    I tried creating the same queue table with Multiple consumer = FALSE, and it works fine. But not with multiple consumer = TRUE
    I'm running on Oracle9i Enterprise Edition Release 9.2.0.6.0
    Any possible solutions?

    Problem solved.
    The queue name was too long. Found a post with the same problem.
    Re: Create Queue Table ORA-00600 while dbms_aqadm.create_queue_table
    thanks anyway

  • Allow editing of properties of multiple selected objects

    Currently one cannot always edit properties of objects -- such as attributes for tags, or tooltips for form fields -- when multiple objects are selected. This occurs when some objects' properties have "conflicting" values. It would save TONS of time, if somehow you could allow edits to one property or attribute while leaving other conflicting properties "as is".   I would also like to be able to add header ID attributes to multiple <TD> tags, without deleting header ID attributes already existing.

    Are the machines causing this script to hang offline? You can test to make sure they are online before you try to connect 
    $Cred= Get-Credential
    get-content targets.txt | foreach-object{
    if (test-connection $_ -count 1 -quiet) {
    $Make = Get-WmiObject Win32_Computersystem -Computername $_ -Credential $Cred
    $Serial = Get-WmiObject Win32_BIOS -Computername $_ -Credential $Cred
    Select-Object $($Make).Name,$($Make).Manufacturer,$($Make).Model,$($Serial).SerialNumber
    }} | Export-Csv Results.csv -NoTypeInformation

  • How to say application module(s) to consume only one DB connection

    Hi,
    In my application, i use UI Shell template. All of my task flows are said to have new transaction always and not to share the data control. i have bunch of application modules (not nested AM) with many view objects. All the view objects are custom java data source implemented and none of them requires DB connection as they interact with DB using tuxedo connection. Expected concurrent users will be around 800.
    i can understand that application module requires DB connection for activation/passivation, but how can i say all of my application modules to consume only one DB connection??
    Thanks in advance.
    Raghuraman

    Jobinesh,
    My application is based on UI tab shell template with each and every task flow set to begin with new transaction always.
    I was using database tables for LOV view objects data population alone. Now that also has been changed to custom view data source implementation because of client requirement (LOV data needs to be cached till user-browser session)
    With the new implementation,
    1. I have some AMs with instances of entity driven VOs. With this, I do transaction with legacy system through Tuxedo. Custom view data source implementation is done to populate data from service. Similarly Update to service will happen by reading transaction listener list on save.
    2. I also have couple of AMs with instances of non entity-driven VOs, which will be used as read-only table/LOV. For this also custom view data source implementation is done by reading the reference database table only one time during deployment.
    3. As of now, none of my AMs are specified as Shared AM.
    Questions:
    1. I want to utilize the AM passivation/activation feature to control memory usage. I came to know "*The passivation process saves information used by the AM into the passivation store - usually a database*". I have a database, from where i am reading data for LOV during deployment. Can i have the single connection of that database configured for all the AMs (Both tuxedo transaction VO's AM and LOV VO's AM) so that i can avail this feature. If so, how can i configure all the AMs to consume only one connection?
    2. Any other way to avail this AM passivation/activation without database.
    Thanks in advance.
    Raghu

  • Stream connection throws IOException

    i am using a stream connection for the midp 1.0. The client logs into a server using a StreamConnection and all this is cool.
    But the application waits at the DataInputStream.read and then thows the IOException.
    my code is something like this,,
    while(true)
    if ((i = dataInputStream.read()) == -1)
    // some logic here
    the dataInputStream.read() throws the exception after approximately 7 to 8 seconds.
    anyone has an idea as to whats going wrong? why is the connection not being maintained.
    Thankyou,
    Balaji.

    Thankyou shmoove. The code is here.
    The server is setup to send information every 3 seconds to the client (upon client request,, which is working fine). For your reference,, the same code works perfectly fine with a Series 60 (midp2.0) phone, and so does the server. except that i use a SocketConnection for the midp 2.0 phone. For the very reason that midp 1.0 does not support the SocketConnection, i have to use a StreamConnection instead. the dataInputSream is bound with the StreamConnection object.
    I think the StreamConnection is somehow not persistant ,, in the sense the connection is not maintained.
    Please tell me whats wrong,
    Thankyou,
    Balaji.
    public Alert alertConnBroken = new Alert("", "Due to weak wireless link, Connection to server lost. Please reconnect!!", null, AlertType.WARNING);
    public String readString()
         String str = new String();
         while(true)
              try
                   if((ch = (char) dataInputStream.read()) == -1)                   
                        display.setCurrent(alertConnBroken);
                        break;
                   else
                      str = str + ch;
              catch(InterruptedIOException iioe)
                   iioe.printStackTrace();
                   break;
              catch (IOException ioe)
                   ioe.printStackTrace();
                   break;
                catch(EOFException eofe)                     
                    eofe.printStackTrace();                                        
                 break;
             catch (Exception e)
                e.printStackTrace();
                 break;
         return str;     
         

  • Multiple SDO_GEOMETRY Objects of type CIRCLE with the same LOCATION

    Can i have a single MERCHANT LOCATION hold multiple SDO_GEOMETRY Objects of type CIRCLE ?
    For example the use case , i need to have a SDO_GEOMETRY TYPE CIRCLE circle defined for a single MERCHANT LOCATION with a 2 Mile radius as well as a 5 Mile Radius.
    is that even possible with Spatial? I know i can add a single geometry for a merchant at once, but i want to give the user the flexibility of choosing the type of geometry for the merchant based on set of rules. hence want to check if this can be done or not?
    Thanks in Advance

    Person with no name,
    Not clear exactly what you need to do here.
    You can store two circles with the same centre in a single sdo_geometry but only if you use a polygon with the circle with the greatest radius being the outer ring and the smaller radius the inner ring.
    I have a utility in my free COGO plsql package that allows me to create circles for PLANAR data pretty easily as follows:
    -- Function...
    Create
        function CreateCircle(dCentreX in Number,
                              dCentreY in Number,
                              dRadius in Number)
        return mDSYS.sdo_geometry
        IS
          dPnt1X NUMBER;
          dPnt1Y NUMBER;
          dPnt2X NUMBER;
          dPnt2Y NUMBER;
          dPnt3X NUMBER;
          dPnt3Y NUMBER;
        BEGIN
          -- Compute three points on the circle's circumference
          dPnt1X := dCentreX - dRadius;
          dPnt1Y := dCentreY;
          dPnt2X := dCentreX + dRadius;
          dPnt2Y := dCentreY;
          dPnt3X := dCentreX;
          dPnt3Y := dCentreY + dRadius;
          RETURN MDSYS.SDO_GEOMETRY(2003,NULL,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,4),MDSYS.SDO_ORDINATE_ARRAY(dPnt1X, dPnt1Y, dPnt2X, dPnt2Y, dPnt3X, dPnt3Y));
        End;
    select sdo_geometry(f.geom.sdo_gtype,
                        f.geom.sdo_srid,
                        sdo_point_type(f.centreX,f.centreY,null),
                        f.geom.sdo_elem_info,
                        f.geom.sdo_ordinates) as mcircle
      from (select 10 as centreX,
                   10 as centreY,
                   sdo_geom.sdo_xor(cogo.CreateCircle(10,10,2),
                                    cogo.CreateCircle(10,10,5),
                                    0.005) as geom
              from dual ) f;
    -- Results
    MCIRCLE
    SDO_GEOMETRY(2003,NULL,SDO_POINT_TYPE(10.0,10.0,NULL),SDO_ELEM_INFO_ARRAY(1,1003,2, 11,2003,2),SDO_ORDINATE_ARRAY(10.0,15.0, 5.0,10.0, 10.0,5.0, 15.0,10.0, 10.0,15.0, 10.0,8.0, 8.0,10.0, 10.0,12.0, 12.0,10.0, 10.0,8.0))(This geometry looks like a donut.)
    Note that I have included the centre coordinates in the sdo_point of the result sdo_geometry.
    To extract each ring:
    -- We need a function to return number of rings in a polygon as sdo_util.getNumElems() does not
    Create
      Function GetNumRings( p_geometry  in mdsys.sdo_geometry,
                            p_ring_type in integer /* 0 = ALL; 1 = OUTER; 2 = INNER */ )
        Return Number
      Is
        v_elements   pls_integer := 0;
        v_ring_count pls_integer := 0;
        v_etype      pls_integer;
        v_ring_type  pls_integer := case when ( p_ring_type is null OR
                                                p_ring_type not in (0,1,2) )
                                         Then 0
                                         Else p_ring_type
                                     End;
      Begin
        If ( p_geometry is not null ) Then
          v_elements := ( ( p_geometry.sdo_elem_info.COUNT / 3 ) - 1 );
          <<element_extraction>>
          FOR v_i IN 0 .. v_elements LOOP
            v_etype := p_geometry.sdo_elem_info(v_i * 3 + 2);
            If ( ( v_etype in (1003,1005,2003,2005) and 0 = v_ring_type )
              OR ( v_etype in (1003,1005)           and 1 = v_ring_type )
              OR ( v_etype in (2003,2005)           and 2 = v_ring_type ) ) Then
               v_ring_count := v_ring_count + 1;
            End If;
          END LOOP element_extraction;
        End If;
        Return v_ring_count;
      End GetNumRings;
    -- Query
    with circles as (
      SELECT SDO_GEOMETRY(2003,NULL,SDO_POINT_TYPE(10.0,10.0,NULL),SDO_ELEM_INFO_ARRAY(1,1003,2, 11,2003,2),SDO_ORDINATE_ARRAY(10.0,15.0, 5.0,10.0, 10.0,5.0, 15.0,10.0, 10.0,15.0, 10.0,8.0, 8.0,10.0, 10.0,12.0, 12.0,10.0, 10.0,8.0))
             as geom
        FROM dual
    select sdo_util.extract(a.geom,1,e.ringNo) as circle
      from circles a,
           (select level as ringNo from circles a connect by level <= GETNUMRINGS(a.geom)) e;
    -- Result
    CIRCLE
    SDO_GEOMETRY(2003,NULL,SDO_POINT_TYPE(10.0,10.0,NULL),SDO_ELEM_INFO_ARRAY(1,1003,2),SDO_ORDINATE_ARRAY(10.0,15.0, 5.0,10.0, 10.0,5.0, 15.0,10.0, 10.0,15.0))
    SDO_GEOMETRY(2003,NULL,SDO_POINT_TYPE(10.0,10.0,NULL),SDO_ELEM_INFO_ARRAY(1,1003,2),SDO_ORDINATE_ARRAY(10.0,8.0, 12.0,10.0, 10.0,12.0, 8.0,10.0, 10.0,8.0))Not sure if this helps you at all....
    regards
    Simon

  • Is it possible to  add multiples dimension objects in Webi Ranking ?

    As per the project requirement we need to convert custom sqls to reporting sql in webi 3.1 sp5 .
    Is it possible to  add multiple dimension objects while applying ranking (Webi query panel ).
    Or is there any other way to achieve this feature in BO ?
    Regards,
    Pranay

    Hi ,
    There is a way if you want to apply ranking within a ranking . Below are the steps:
    First on the outer side we can use the Rank feature which is available directly
    Then use the Rank Function (=rank ()) and reset your dimension accordingly .
    This kind of Ranking is possible.
    Regards,
    Rahul

  • NetStream Error: NetConnection object must be connected

    I have successfully connected to NetConnection using AMF0
    format. I have verified by looking at the Connected property and
    the admin console. However, when I create a new NetStream object
    and pass a NetConnection object I get the error listed below...
    ArgumentError: Error #2126: NetConnection object must be
    connected.
    at flash.net::NetStream/flash.net:NetStream::construct()
    at flash.net::NetStream$iinit()
    at test/Testing()
    at test/___Application1_initialize()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.core::UIComponent/set processedDescriptors()
    at mx.core::Container/createComponentsFromDescriptors()
    at mx.core::Container/mx.core:Container::createChildren()
    at mx.core::UIComponent/initialize()
    at mx.core::Container/initialize()
    at mx.core::Application/initialize()
    at test/initialize()
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()
    at mx.managers::SystemManager/::initializeTopLevelWindow()
    at mx.managers::SystemManager/::docFrameHandler()
    What am I doing wrong? The Flash Administration page says
    that I have one client connected. The NetConnectionObj.connected
    property is true... Here is my basic code
    var client_nc:NetConnection = new NetConnection();
    client_nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
    client_nc.connect("rtmp:/FLEX");
    if(client_nc.connected == true)
    testBox.text += "\nConnected to rtmp:/FLEX!\n";
    else
    testBox.text += "Could NOT Connect to rtmp:/FLEX!\n";
    //THIS IS
    WHERE I GET THE ABOVE ERROR
    var out_ns:NetStream = new NetStream(client_nc);
    I am able to connect to the same application via flash and
    stream video, but not through FLEX. The only difference is where
    these folders are located...permissions issue???
    I hope its something stupid that I am doing ... Please
    help!!!

    sorry about my last piece of code.... i forgot you are coding
    in AS3 - have
    some trickies.... but the logic still same... is a good
    chooice, always, make sure you have succeded connection.....
    NetConnection.defaultObjectEncoding =
    flash.net.ObjectEncoding.AMF0;
    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://pb.local:1935/flexmediaservertest");
    private function netStatus(event:NetStatusEvent):void {
    trace("netStatus: " + event);
    var info:Object = event.info;
    trace(info.code);
    if (info.code == "NetConnection.Connect.Success") {
    // lots more code here...
    // CALL YOUR PUBLISH FUNCTION HERE.
    private function
    netSecurityError(event:SecurityErrorEvent):void {
    trace("netSecurityError: " + event);
    I hope that's all....

Maybe you are looking for

  • STO without delivery-CIN

    Hi All,      I got the solution from the forum but I am struck up in J1IS with some doubts working with J1IS. I have 2 plants 1000 and 2000 under one company code. Sometimes due to shortage we transfer goods like spare parts, raw materials, etc from

  • Too Small on Webpage

    I am totally new to all of this, so I need some assistance. I've made a quick table, and I was reading on a site that it was a recommended 700x400 pixels for size. But that looks way too small on a webpage. I have it set to 100%. Any tips for me?

  • Urgent !!! Leave  Dox -  needs to be stored inPA 30-in SAP Archive Link

    Dear SAP Gurus Pls help me ! Client would like to store leave application like attached document into the SAP ECC (in PA30) system.(info 2001) Like : employee Photo (using SAP Archving Link) I wouls likly to know , is there any possibiltys to upload

  • Alarm for Switches,

    I am using 2950 switches, how can i generate a alarm or sms or mail for a any switch problem, e.g if UPS/Backup power supply stop to work. Thank You.

  • Question mark over Quicktime logo on some trailers

    Hello there Some time ago i have an issue with QT 7.0.4. The issue was about a conflict with java when i try to run java app, so someone on this foro reply me to downgrade to 7.0.3 and give me a link to an installer to do that. The installer working