netconnection

Difference Flex/Flash NetConnection and Consumer/Producer

What's the difference between a NetConnection and Consumer/Producer in Flex? It seems that they both use RTMP but Consumer/Producer uses Channels and NetConnection does not. Does the Consumer/Producer uses a NetConnection underneath? ...

C# fluorine Client only working when Charles Web proxy is open

Hi: I created a console application that it should run every hour in order to push updates to a different server using FluorineFx for C# client (NetConnection). It works great, but only when I have Charles open and so I can see what is being sent. On the other hand, if Charles is closed, it does not send the data. I am running this on ...

Returning from Flex/ActionScript 3 Responder objects

I need to return the value from my Responder object. Right now, I have: private function pro():int { gateway.connect('http://10.0.2.2:5000/gateway'); var id:int = 0; function ret_pr(result:*):int { return result } var responder:Responder = new Responder(ret_pr); gateway.call('sx.xj', responder); return...

RTMP stream of a+v plays only audio, no video

In Flash, AS3, I am using NetConnection to connect to a RTMP server, then I use NetStream to play a video+audio stream. I attach the stream (attachNetStream) to a flash.media.Video instance that is added to stage (double checked that it is ON the stage) and play it, but all I get is the sound of the stream that's being played - no video...

Flash Video Streaming Intricacies

My client has a site where they stream in MP4 videos from a Flash Media Server. This works all fine but now they want to move all the videos to their local server (accessible on a sub-domain) and this is where the sh*t hits the fan. I've tried many combinations but haven't gotten it to work so far. One part of the problem is that I can'...

flex 3: netconnection - how do i set a timeout?

Hi. Using flex 3, how do i set a timeout for a NetConnection? code sample: nc=new NetConnection(); nc.addEventListener (NetStatusEvent.NET_STATUS,checkConnect); rtmpNow="rtmpe://host/test/test1"; nc.connect(rtmpNow,fuid,gameName); ...

flex4: fetch events from loaded swf using swfloader

Hi. I have a master swf that loads a child swf using SWFLoader class. the child swf is connecting to adobe flash media server using NetConnection class. using the parent swf i want to to display status regarding the connection. how can i do that ? ...

In Adobe Flex 3 - how do I limit the number of connections for a NetConnection stream

I have and Adobe Flex application that uses the demo from adobe as its core: http://labs.adobe.com/technologies/stratus/samples/#resources I am trying to limit the number of outgoing streams that an instance can have to only 1, but not sure where to specify that. I tried setting outgoingStream.maxPeerConnections but this method is appar...

NetStatusHandler never gets called (Flash CS5)

Hi, I'm using this code to connect Flash CS5 to WebORB: import flash.display.*; import fl.events.*; import flash.events.NetStatusEvent; import flash.net.*; import flash.utils.*; import fl.transitions.*; // var connection:NetConnection; // function initORB(){ var gateway:String = "http://www.domain.com/weborb30/console/weborb.aspx"; conn...

AS2 Net connection memory leak

Hi, I noticed that NetConnection leaks memory var nc:NetConnection = new NetConnection(); var o = new Object(); o.onResult = function () { trace ("onResult"); nc.close(); loadData(); } nc.onStatus = function () { trace ("onStatus"); nc.close(); loadData(); } function loadData () { // some amf serv...

override flex netconnection call method that uses variable arguments

Hi I need to override the call method from NetConnection class, the signature of the method is: public function call(command:String, responder:Responder, ...parameters):void How do I override that method? The following lines didn't work for me. override public function call(command:String, responder:Responder, ...parameters):void {...

Multiplayer online Flash games, is it possible?

Some time ago I tought that using the right click and giving it a real function wans't even possible in Flash world, 3 days ago I found out that via javascript is perfectly possible, and doable So, is it possible to make a Flash game that acts like a multiplayer pc game?, I mean, real online games, no delay, no lag. I heard that the ne...

Flash Remoting: are NetConnection calls allowed inside Responder callbacks?

Hi all, we are working on a project involving lots of flash remoting stuff. Particularly, we build on Flex Builder 3 using Flex SDK 3.2. An interesting question here: when a connection to the remote server (FluorineFX-based) is established, and we issue a call via NetConnection.call(), is it allowed to place another NetConnection call...

Server-side actionscript: 'Method not found' error on NetConnection

The 'client' property of NetConnection instances seems to behave differently on the server side. Say I have FMS apps A and B. Now I want to connect from B to A using NetConnection like this: var bClient = new NetConnection(); bClient.client = { foo:function(){ trace ('Foo called!') } } bClient.connect(APP_A_URI); App A accepts the cl...

Can I SEND messages via the underlying NetConnection of a receiving (playing) NetStream object?

Here's my problem: I have a NetConnection object connected to a server. On top I create a NetStream object and it started to play a file from the server. Classic so far. What I need now, is to be able to send some (short) messages back to the server, at various moments during playtime but, clearly, using the existing TCP connection. Fr...