Questions tagged [netconnection]

77 questions
0
votes
1 answer

Test-NetConnection problem with ConstrainInterface

How check communication between two another interface different than data? For example I want check communication TCP between two voice interfaces. NOT Ping. Source IP is 10.116.69.215 Destination IP is 10.104.74.145 Previosly I…
jarxinho
  • 13
  • 5
0
votes
1 answer

How to check network connection like YouTube?

I'm working on the ability to check for an internet connection like what YouTube currently does on the Android app. The problem is if internet is available, it shows as online every time. I want to make it like if it is already online, don't show…
0
votes
2 answers

Timeout in AS3 events

I have a NetConnection object: myNetConnection = new NetConnection(); myNetConnection.addEventListener(NetStatusEvent.NET_STATUS, statusHandler); myNetConnection.connect("rtmp://address"); And in handler do this: private function…
0
votes
1 answer

Muting all sound for a streaming video in Actionscript-2

So I'm trying to mute a streamed video. For now I'm working with one in the same directory. var flvURL = 'flvInThisDirectory.flv'; var netConn:NetConnection = new NetConnection(); netConn.connect(null); var netStream:NetStream = new…
Alkanshel
  • 4,198
  • 1
  • 35
  • 54
0
votes
3 answers

Is it possible to force a source port on a NetConnection?

I'm new to ActionScript, but I'm trying to decipher a pre-existing project and make some modifications as I go. I have a section of code that starts with creating a new NetConnection and then streaming a media file from an external source. I see in…
jocull
  • 20,008
  • 22
  • 105
  • 149
0
votes
2 answers

How to relay complex type via NetConnection to FMS?

I need to send complex type object (marked RemoteClass in Flex) via NetConnection to other clients. [RemoteClass] public class ComplexType { public var _someString:String; public var _someInt:int; } ... and using ... _nc = new…
mizi_sk
  • 1,007
  • 7
  • 33
0
votes
1 answer

Connecting to web server using flash.net.NetConnection

The ActionScript 3.0 Reference says the following about flash.net.NetConnection: The NetConnection class creates a two-way connection between a client and a server. The client can be a Flash Player or AIR application. The server can be a web server,…
341008
  • 9,862
  • 11
  • 52
  • 84
0
votes
0 answers

How to use NetStream to request?

Before I use NetConnection to request is normal.now I need to use NetStream to request. but I do not know how to use it。 This is NetConnection code. ` public function start():void { uploadtime =…
SunnyWu
  • 11
  • 2
0
votes
1 answer

How to pause and restart a NetStream object?

I have a NetStream object, based upon the following code: streamID = "mystreamkey"; videoURL = "rtmp://mystreamurl"; vid = new Video(); nc = new NetConnection(); nc.addEventListener(NetStatusEvent.NET_STATUS,…
Lucas
  • 16,930
  • 31
  • 110
  • 182
0
votes
1 answer

override flex netconnection call method that uses variable arguments

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…
Felipe
  • 161
  • 2
  • 7
0
votes
1 answer

NetStatusHandler never gets called (Flash CS5)

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…
Loto
  • 1
0
votes
2 answers

Netstream seekToNavCuePoint

Found this code working properly with FlvPlayback. I have stored cuepoints within flv files. it works perfectly. bkbut.addEventListener(MouseEvent.CLICK,movie1); function movie1(evt:MouseEvent):void{ rmys01.seekToNavCuePoint("chap01"); } How…
0
votes
1 answer

AS3 error 2126 NetConnection object must be connected

i had this working previously but has stopped working and i cant remember changing anything I am getting the following error ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/ctor() at…
Lonergan6275
  • 1,938
  • 6
  • 32
  • 63
0
votes
1 answer

Multiple NetStreams and performance

I need to play multiple (66) synchronized .flv videos in flash. What I do: I create a new NetConnection (one for all NetStreams) var connection: NetConnection, clipper: MovieClip; connection = new NetConnection(); connection.connect(null); I have…
Michal
  • 733
  • 2
  • 6
  • 23
0
votes
1 answer

flex4: fetch events from loaded swf using swfloader

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 ?
ufk
  • 30,912
  • 70
  • 235
  • 386