Questions tagged [netconnection]
77 questions
0
votes
1 answer
NetStream how to set maximal number of peers that can be connected to the publisher?
Let say I have already 4 peers connected to the publisher and I want to drop new connections (for game development stuff, like players).
I tried this:
stream.client.onPeerConnect = function( s:NetStream ):Boolean
{
return stream.peerStreams.length…

Victor.Palyvoda
- 523
- 3
- 12
0
votes
2 answers
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…

webwise
- 627
- 10
- 22
0
votes
1 answer
rtmfp - NetConnection.Connect.Failed - can't get what's wrong (kaspersky settings)
i'm developing an actionscript p2p application. everything worked fine until today.
this is my code:
private function initConnection():void{
nc = new NetConnection();
nc.maxPeerConnections = maxPC;
…

SuperYegorius
- 754
- 6
- 24
0
votes
1 answer
p2p RTMFP controlling movieClip frame action
I'm trying to control a movieClip using p2p netconnection. I understand that I can control properties of a movieClip --- such as
case "NetGroup.SendTo.Notify":
rover.x = event.info.message.x;
rover.y = event.info.message.y;
myFencer.fence.visible =…

bobsmo
- 11
- 1
0
votes
2 answers
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…

jeffcook2150
- 4,028
- 4
- 39
- 51
0
votes
1 answer
Responder callback methods
I need to create a Responder object, the constructor documentation says:
Parameters
result:Function — The function invoked if the call to the
server succeeds and returns a result.
status:Function (default = null) — The function invoked if the…

Drahcir
- 11,772
- 24
- 86
- 128
0
votes
1 answer
Actionscript 4: NetConnection.connect(...) does not fire a NetStatusEvent event
I downloaded the red5-recorder (http://www.red5-recorder.com/) , which fails to allow me to start recording. After debugging I found that the netconnection, needed to record to a media server, created does not fire a NetStatusEvent event, so…

Herbert
- 5,279
- 5
- 44
- 69
0
votes
1 answer
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?

Lieven Cardoen
- 25,140
- 52
- 153
- 244
0
votes
0 answers
NetConnection failed
I recently downloaded Adobe media server starter 5.0. I am unable to connect to FMS using rtmfp. I keep receiving the NetConnection.Connect.Failed error. When i run it locally things appear to be working fine.
I have checked ports 80, 443, and 1935…

Mark Noble
- 21
- 2
0
votes
0 answers
Receiving multiple NetStream.Connect.Success events fired when it supposedly shouldn't happen
I'm experimenting a bit with NetStream to pass data between players in a online Flash multiplayer game.
I use the events dispatches by the NetConnection class so I know what is the current state of my client.
For example, when I have a…

Artemix
- 8,497
- 14
- 48
- 75
0
votes
1 answer
Getting a Netconnection.Call.Badversion when I try to connect to localhost
Im trying to make some tests locally and I'm finding some troubles when I try to connect my AMFPHP server with Flash.
This is how I connect to my server:
_netConnection.connect("http://localhost/Amfphp");
and this is how I make a call to the…

Artemix
- 8,497
- 14
- 48
- 75
0
votes
2 answers
Having problems to connect AMFPHP with an AS file
Im trying to connect AMFPHP with an actionscript file, everything is working perfectly except the part of the connection between them.
This is how I try to connect the .as file with the service:
_netConnection = new NetConnection();…

Artemix
- 8,497
- 14
- 48
- 75
0
votes
1 answer
When NetConnection video finishes, move to first frame of presentation
Good morning and thanks for taking a look. This is AS2, not AS3.
I've used this presentation setup for a couple of years now and I've yet to figure out how to make it jump from the video back to the 1st frame again. I usually just render out an…

user
- 113
- 1
- 9
0
votes
0 answers
Responder Object - How to get Function name AS3
I'm using NetConnection object to make my PHP calls from AS3. The call() method receives a Responder Object to know which function will deal with the response from PHP.
What I want to know is if it's possible to know what is the name of the Function…

Marco Aurélio Deleu
- 4,279
- 4
- 35
- 63
0
votes
1 answer
How do I cancel an AMF Call with NetConnection?
Let's say that I have a NetConnection Object inside a Singleton Pattern that is shared with all Data Access Object classes throughout all my application. Now, you went on a screen and asked to load 5 thousands of records because you want to search…

Marco Aurélio Deleu
- 4,279
- 4
- 35
- 63