ActionScript 2.0 :: New Connection Threaded Array?
May 23, 2008
I'm trying to build a program that can connect to all chat rooms that are create
Code:
_global.chat = new Array(new NetConnection());
_global.roomsOn = new Array(1,2,3,4,5);
[code].....
View 2 Replies
Similar Posts:
Mar 30, 2010
I want to create a high performance server in C# which could take about ~10k clients. Now i started writing a TcpServer with C# and for each client-connection i open a new thread. I also use one thread to accept the connections. So far so good, works fine.
The server has to deserialize AMF incoming objects do some logic ( like saving the position of a player ) and send some object back ( serializing objects ). I am not worried about the serializing/deserializing part atm.My main concern is that I will have a lot of threads with 10k clients and i've read somewhere that an OS can only hold like a few hunderd threads.
View 4 Replies
Jul 10, 2009
Over the past few weeks I have been building a prototype application using a Flex front end connected to a J2EE backend using blazeDS. The prototype is an experiment to learn flex and see what its suitability is for a complex trading application requiring a large number of dynamic updates (i.e > 20 a second) via a pub sub type model. During some lightweight performance tests it's become apparent that I need to use multiple threads to ensure the UI remains stable when receiving a large number of updates from the server. All was going well until I discovered that flex has a single threaded programming model!
From a quick Google it looks as though there are numerous hacks to implement thread like behavior. I am sure many people must have been faced with a similar problem. Can people let me know: Are there any good threading libs that are well maintained etc Do other RIA technologies such as silverlight have the same problems. Why did abobe implement a single thread model? Are there any other tricks I can use to ensure my UI is stable.
View 7 Replies
Jul 3, 2009
in a flash template i found several buttons with almost the same action script code. on pressing the button a window popup with different text (for each button a unique text). the following code is in the code section of the buttons, only the two last codelines are different for each button.
[Code]...
so i think that the input of the unique text for each button is handled in the last line "_root.READ = 22". i also found in the bibliothek the belonging text parts. my problem now is that i dont know where the connection is set between the text part and the array/variable READ. in this case the connection is 22, but i dont found any property in the text part or in the property of the button where the connection is set to 22. i use flash cs4.
View 3 Replies
Sep 13, 2011
Im trying to make connection from flex to java and from java to mysql. I managed to connect to java, but having error that class not found: com.mysql.jdbc.Driver. But i downloaded mysql.jar, included it added to library, and connection works when i testing it from clipse scrapbook. Dont know what to do, i spend last couple days on this.
Class.forName("com.mysql.jdbc.Driver");
String username = "username";
String password = "password";
[code]....
Basically the solution was simple. Everybody keeps saying to put jar into lib folder, so i done it, but i wasnt realised that i have to put into my servers lib directory, not app lib directory and this miserable mistake cost so much. Anyway i hope this will help for some newbie like me.In this particular situation im using red5, so i putted it into my red5 dist/lib directory and "surprisingly" its started to work.
View 1 Replies
Mar 16, 2010
we have a two way webcam + mic connection set up using FMIS. we use to add a function that kills the connection?
View 2 Replies
Dec 17, 2010
I got a IP Communications new account having following paramters:
[Code]...
Its showing me connecting ... Status is not getting update like: "Connection Failed" or "Connection Success". how to use the above information in this app,
View 1 Replies
Jun 3, 2009
I am using the FLVPlayBack component and it is working when I access FLVs stored on my local machine or even another machine on my network. However with one particular computer I am getting a Connection error reported at the same time after I have started playing back any FLV file. It occurs 25 seconds after the playback has been initiated.
It is my preference to use the computer on which the playback error is regularly occurring so I would like to get to the bottom of why I am always getting the same error.
View 7 Replies
Feb 4, 2010
I've started with Flex recently, I've noticed that some plugin for Visual Studio exist, instead of buying a licence for another program (Flex Builder).I was wondering how I could manage to remotely connect to my database with a Flash/Flex application with the help of C#/Asp.Net.
If I've correctly understood what I've read in the last few days, there is basically no way to 'query' to a database with Flex 3. So I suppose there is another way by using a webservice in C# on the database server that would respond to the Http query from Flex.
View 3 Replies
Mar 18, 2011
Is there any way to create a direct data connection between two flash clients without the use of Cirrus?
I'm asking because I create a multiplayer iPhone game with flash which currently uses Cirrus for all online multiplayer data. now I read that, if your iPhone app uses encryption (which cirrus does) you need to go through a long encryption export approval process by the U.S government. I want to avoid this, so now i'm looking for another method to exchange data directly between clients without having to route all traffic through my server.
View 1 Replies
Sep 9, 2009
i am having a strange local connection problem in Safari. The bottom line is that the exact same app works fine in Firefox, but safari is not making the connection. Using External Interface, i can confirm the connection strings are correct and matching..
View 2 Replies
Nov 10, 2009
I want to create the following: Suppose I have 2 swfs open in an HTML doc. The first sfw has 3 buttons: red, green, blue. When I hover over these buttons, I want the words "red", "green", "blue" to appear respectively in the second swf.
I found out that I can use "local connection" to to this, but it's too advanced for me.
View 1 Replies
Mar 15, 2010
Code:
var theXML:XML = new XML();
theXML.ignoreWhite = true;
theXML.onLoad = function() {
[Code].....
theList is a listBox. So it should show up in the list box. Instead, it's just coming up blank and loading nothing.
View 10 Replies
Dec 29, 2010
Basically, I need some help from mac users. I've made a portfolio site at: URL... and I'm using the 'Local Connection' function for communication between the thumbnail menus and the displayed images.However, I discovered that this wasn't working on macs... and after some digging, I found out that I should add the statement:[code]So, I added this, but I have no way to test whether it's now working or not as I don't have access to a mac. Is it right?
View 3 Replies
Nov 12, 2008
I have a project where I communicate net.socket class.Everything works fine but when I try to start the debugger I only get someerror message:
Versuch, zu starten und Verbindung zu Player mit URL
c:flash_testSocket.swf herzustellen
[SWF] c:flash_testSocket.swf - 6006 Byte nach
[code].....
View 1 Replies
Jul 12, 2009
How can I organize, and compress my flash website so it could load really fast on a broadband or even a 56k connection. I created a basic html website with the same photos and text and it loaded way faster then the same photos and text in my flash document (with no animation).
View 1 Replies
Aug 18, 2009
is there a way to use the debugger with a socket connection? When running debugger I can't get a connetion to my serveer.
View 3 Replies
Oct 7, 2009
I've got a project on my hands, an interactive kiosk. I've created the interface in Flash, but I have some issues I can't get past. First of all, I want to create an emergency call feature, where the user presses a button and the kiosk dials the emergency number (112 for Europe). Now, how can I make the Flash movie call upon Windows' dial up connection, dial a number, establish a connection then disconnect?
View 4 Replies
Jan 11, 2010
We have two servers - one stores the media files and runs FMS. The other creates dynamic webpages. I have edited the 'dynamic stream' SMIL example on the media server, to include a full URL:
[code]...
If I open the standard FMS index page, the 'dynamic stream' example works fine. However, if I copy that code over to a page on my webpage server (linking back to the media server of course), I get a 'connection error'. The weird part though is that if I limit the 'switches' in the SMIL file to just one video, it works again, eg:
[code]...
It makes no difference which file I choose, as long as there is just one.I am using the same video player that all the examples use (FMS 3.5), so my thought is that something in that player is causing a cross domain security exception when it has more than one stream to choose from. I tried disabling the firewall, so it's not that, and I updated server.xml to point to a custom crossdomain.xml file:
<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><allow-access-from domain="*.mywebpageserver.com" /></cross-domain-policy>
But that doesn't seem to have had any effect.
View 13 Replies
Mar 10, 2010
Is there a class in AS3 that will allow you to check if the pc on which the player resides has a current internet connection?
View 1 Replies
Mar 29, 2010
i found this link online about connection flash/flex to php. [URL]
basically what we are trying to do is connecting the flex login and get authenticated through the php/mysql database.
View 6 Replies
Oct 12, 2010
i have a very complex object, i wanted to pass on the object from AS2 to AS3 through Local connection. Looks like it doesnt accept more than 40k. Right now i am splitting the object and merging from AS3. i knew this is not so efficient enough. Is there any way i can share the object without splitting or any efficient way to achieve this.
View 3 Replies
Dec 21, 2010
Is it possible to keep loaded stream before close connection? so that server can save bandwidth when user playback without reload stream.
View 3 Replies
Feb 26, 2011
Using AS3 on Flash CS5 Pro. I've got a parent.swf which passes info to/from a child.swf via the following code:
[Code]...
The connection works fine except that when IExplorer loads the parent.swf it tells the user that "To help protect your security, Internet Explorer has restricted this webpage from running scripts ..." The thing is that even if the user now clicks ok, the swf freezes. I've checked why this is and I found that what is happening is that IE runs the swf again and this triggers the error : "ArgumentError: Error #2082: Connect failed because the object is already connected. at flash.net::LocalConnection/connect()". This double connection attempt freezes the swf.
How should I capture this error and prevent this from happening? I'm a normal programmer and have never done any error capturing before. Also, there is one particular child.swf (there are several) which to me seems to be the same as all the others; I wrote the same code precisely as far as the connection is concerned. However, only on the Chrome browser, it does not load like the others and freezes the swf. Curiously, it works fine when I test it on my laptop/Chrome, but refuses to load when I try from a remote computer. Has anyone seen anything like this? Is it a browser/plugin error or something on my side?
View 1 Replies
Feb 27, 2011
i'm here because i'm discovering FMS right now and i'm starting to ask myself question I'm thinking about create a Web-TV :I want to stream video with a playlist playing server/side, and sometimes live video with a camera.i will not be the developper, i want to hire someone but what about the price.I'm aiming to have like 50000/100k visitor by month, i'm considering buyin Flash Media Interactive Server Licence, but what type of server i need for this kind of traffic, i'm not a professional, i will hire a agency or someone, but i need information first, to be aware about what its going on.What range of price should i expected ? FMS is a good choice for this type of web-tv ?
View 2 Replies
May 17, 2011
Is it posible to create a TSL/SSL socket connection to a server with as3, webapp, I found SecureSocket but it seems like it is only for Air, and is not in the flex 4.5 sdk?
Then NetConnection has it, but can you use it with a server that we have created our self? I think I read that if we use flashremoting, we can?
We are using As3Crypto but there is a lot of overhead on using this, as it is not native code.
View 1 Replies
Oct 18, 2011
I have established Flash Media Server 4.5 on the house computer with win7 a router wasn't present, the cord goes on a straight line to the computer, at me allocated IP. I want that it was possible to address to the server from the Internet. At first video was started only on a local computer, then after change resolved ип in "adaptor.xml" the starting page of the server has started to open with other computers and examples work, video plays. But to incorporate on "rtmfp" leaves only from that computer on which there is a server (under the test on http://cc.rtmfp.net/all green points and one more too with all green points) leaves that computers can incorporate to the server on "rtmp" as the example of the server with video translation works well, but on "rtmfp" connects only those at whom green points.
View 2 Replies
Jan 2, 2012
I want to check whether the microphone is connected to the system or not. If not, it should display a warning message and not allowed to record anything. All this should be done through actionscript3.0.
View 3 Replies
Sep 26, 2010
Is it possible to establish an SSL connection from a Socket in Flash?
View 1 Replies
Jun 13, 2011
How to use TCP/IP connection to server from flash?I use ActionScript 3 and Flash CS4.I want to put module on site, which connects to server and get fresh info from it.
View 2 Replies