ActionScript 1/2 :: Send And Receive XML Nodes From The Socket Server?
Jun 15, 2009
Ok so I can send and receive XML nodes from the socket server I need to know how to take the nodes and the values within them.... like for example I want the X Y positions from the node sent to me from the server "<playerpos name="javageek1212" X="34" Y="23" />" Basically I want the values from within that node ok?
View 5 Replies
Similar Posts:
Aug 20, 2010
I am writing a online game with flex and java server and I have a big problem. In normal case, my game run smoothly but some time the clients can't receive the command from server. I found that if server send message too fast or client is doing something when server send message, the game client can't detect for a new message so my game is freeze. I only tested with 4 clients and I don't know what happen when thousands clients online in the same time. So terrible :(. In the game client, I use one EventDispatcher class to dispatch any command from the server. Do you have any solution to warranty that client must receive any message from server when the connection is still alive or server must know if client received the message or not. I use flex 3 with Socket (binary) and Java QuickServer.
View 1 Replies
Nov 12, 2010
I am recording a video and while recording I issue some NetStream.send("doSomething", params) commands from client side. When I am playing back this video I receive the doSomething events on client side. No problems so far.Can I receive those events on server side? I want to handle those events on server side. Not client side.
View 2 Replies
Oct 27, 2009
i want to make a simple chat with flex as3 and red5 media server
my idea is that i send from the swf a message to the server and the server sends it to all the swfs (including the one that sent the message)
i just don't know how to to send and receive and how to receive from the server
View 2 Replies
May 19, 2011
i want to know how to send data using the AMF format from my flex AIR project to a socket written in Java. I am getting CorruptedStreamException when sending data using writeUTFBytes() methods. Has anyone experienced similar problems? Also can AMF be used only if i am using LCDS only?
private SimpleServer(int port)
{
System.out.println(">> Starting SimpleServer on port " + port);
[code].....
View 2 Replies
Nov 19, 2011
When I send number (int)52 s.Send(BitConverter.GetBytes((int)872415232));, flash show me trace(socket.readInt()); 872415232 If i send 872415232, flash show 52.Why? And how it fix?
View 1 Replies
May 18, 2010
I have problem with xml socket client in flash. It's cant receive messages from socket server wich is wrote on C#, But server receives the messages from client. Here is a code of AS3.
[Code]...
View 2 Replies
Apr 5, 2012
I am having an issue with sockets where the data I'm sending is getting truncated on the client side (Flash/Flex). The data that is sent by my server is full and in tact, but flash does not wait the appropriate amount of time before firing an event saying to read the data. This results in the data not getting fully read and (as such) I can't parse the object out of it after that. We are exploring the possibility of stripping the object into smaller chunks, but the idea is for it to be as lightweight as possible so we would much rather get it to work the way it's supposed to than patch in a temporary solution.I'm not entirely sure if referring to it as the receive 'buffer' is correct, as some computers are able to receive all of the data and others are having it truncated (which means the buffer is adequate but flash isn't waiting the appropriate amount of time to dispatch the event for whatever the reason).
View 1 Replies
Jul 13, 2010
We are in the middle to evaluate the technology choice to re-design an operator console application. The operator console as a hosted contact center has the abilities to queue the inactive calls, and hold, answer, transfer the active calls.
The legacy operator console used Java Swing. We want to use the latest RIA technology (Flex/Silverlight) to retire the legacy one. But the question is Flex/Silverlight can implement the functions like hold, transfer the calls? Based on my experiences, Flex can listen Java socket to receive XML data? Does it work well to receive voice data?
View 2 Replies
May 26, 2009
I would like to send information to a php script that queries a database.
eg
send two strings clientName and userName to php
PHP queries the mysql database and returns the result.
How would I us URLVariables or URLLoader? or is it something entirely different.
View 10 Replies
Mar 4, 2012
im newbie in send end recive UDP things..i need to send (maybe receive) some data from PHP web page to local software.this software can recive and send data via UDP 1987 port.is there a way to do? javascript activeX or flash library or somethingSoftware= VOIP SoftPhonePHP Web Page = CRMall I wanted was actually make a button to call and if possible recive length of the call
View 1 Replies
Jan 25, 2008
I know you can send all the variables using: url...Is there a way to do this but only send the variables I want to? Say I only wanted to send "user" and "pass" but not "content".
View 4 Replies
Jan 6, 2012
Calling ActionScript 3 function from C#
i have a project which is is a desktop application in .Net, and from .Net 3 String value is Passed to Flash. My question is how to receive data coming from the desktop application in flash as3? because here i don't have any URL to load data.
View 1 Replies
Feb 13, 2009
I am using as3 for some time now, but i have never tried to communicate with a server. I have to send some values to a server and also receive some values using HTTPS.I found some stuff about HTTP, i havn't tried them yet. I hope this is not too difficult because it has to be figured out by Monday.
View 0 Replies
Nov 14, 2009
I'm trying to create a file that shows data from a database depending on an id number the user inputs in Flash. I am having trouble sending to PHP the id so it sends back the appropriate data from the db.
This is the AS3 code that tries to send the value of the idNumber to PHP[code]...
View 4 Replies
Mar 16, 2006
I'm trying to send and receive data to/from flash and php, but I can't receive any data from php. I'm running this locally and the path is correct.
From PHP
Code:
<?php
require( "../weeklybread.php" );
$query = mysql_query( "SELECT * FROM $table" );
while($myrow = mysql_fetch_array( $query )) {
$message = ($myrow['message']);
[Code] .....
myVars.sendAndLoad("[URL]", myVars_received, "POST");
So I can't see anything inside the text field, I can't even trace it.. it says undefined in 20px caps.
View 1 Replies
Apr 21, 2010
Any example of a telnet/chat or other console like FLEX application where you can use the same TextArea as input/ouput area. I've been trying to modify the app at: [URL] but so far, computer says no. All the implementations I've seen use a combination of TextInput and TextArea.
The challenge is that we'll be using this app to telnet into some old routers and we'll need to do a fair amount of copy/pasting. Based on what I've seen, it seems that I would need to point the mouse into the TextInput in order to be able to right click and paste, which is not very sleak.....
View 1 Replies
Dec 20, 2010
I am attempting to connect to a python twisted socket server with Flash using XMLSocket. The connect works fine, and so does the receive. However I can't send data to the server. Is there a specific format I should be using? The reason I ask is because I couldn't read any data with the XMLSocket until the data was in the form "something", that is, the data string had to be valid xml followed by the null character. Is there a trick to sending data?
I don't think this a cross site security problem, because if it was, I believe I wouldn't be able to connect or receive. I am able to connect to the server using telnet and a java client without issues. EDIT: I figured it out, the problem was my server needed to have the data sent to it end with"
View 1 Replies
Jun 24, 2010
I have made a game that sends and recevies data from an online leaderboard. It uses PHP and mySQL, and all works fine when running the .swf off my computer. The problem is, when the game is uploaded and running online, it fails to both receive and send the data to the leaderboard. I don't know why! When I first ran the game offline, a security box appeared that told me I had to allow it to access the server. So, I'm thinking it might be a security problem. Is there a similar security setting that I have to enable on the server somewhere? Or some code I can put to the game to override it? Note that everything is on the same server at the moment so I dont need any of that CrossDomain stuff, I think.
View 7 Replies
Sep 20, 2011
I want to resize a image using flash resizer.java script browse and upload a image and send to flash resizer and flash resizer resize the image and send back to javascript.Is it possible to send and receive image from javascript and if yes then please let me know what I need to do on flash end and how i can make javascript accessible to my flash code.do i need to load my full sourse code or javascript done there job with SWF only.
View 2 Replies
Jan 21, 2011
i am using flash cs5 with AS3 along with PHP 5, i am calling a https page and sending post data to it and retreiving the response, its working fine inside action script (FLASH CS5 IDE) but when i am embedded flash in html to use it from my web server (WAMP) then it is unable to send and receive data from https url.
i have turned on the mod_ssl module from php.ini for both php and apache.
but still there is no gain. can you advice me any method to control this thing with in action script 3, (i tried php curl but not useful) or the right way to do it, i want to post and receive data from https url from action script or php.
View 1 Replies
Jun 17, 2009
I'm writing a Comet-like app using Flex on the client and my own hand-written server.
I need to be able to send short bursts of data from the client at quite a high frequency (e.g. of the order of 10ms between sends).
I also need the server to push short bursts of data at a similarly high frequency.
I'm using NetConnection.call() to send the data to the server, and URLStream (with chunked encoding) to push the data from the server to the client.
What I've found is that the data isn't being sent/received as soon as it's available. For example, in IE, it seems the data is sent every 200ms rather than as soon as NetConnection.call() is called. Similarly, URLStream isn't making the data available as soon as the server is sending it.
Judging by the difference in behaviour between the browsers, it seems as though the Flash Player (version 10) is relying on the host browser to do all the comms. Can anyone confirm this? Update: This is very likely as only the host browser would know about the proxy settings that might be set.
I've tried using the Socket class and there's no problem with speed there: it works perfectly. However, I'd like to be able to use HTTP-based (port 80) connections so that my app can run in heavily fire-walled environments (I tried using a Socket over port 80, but that has its problems).
Incidentally, all development/testing has been done on an internal LAN, so bandwidth/latency is not an issue.
Update: The data being sent/received is in small packets and doesn't need to be in any particular format. For example, I might need to send a short array of Numbers, and this could either be encoded in AMF (e.g. via NetConnection.call()) or could be put into GET parameters (e.g. using sendToURL()). The main point of my question is really to see whether anyone else has experienced the same problem in calling NetConnection/URLStream frequently, and whether there is a workaround (it's also possible that the fault lies with my server code of course, rather than Flash).
View 2 Replies
Jun 2, 2011
this is my flash as3 code :
var cam:Camera;
cam= Camera.getCamera();
var video:Video=new Video(200,200);
[code].....
View 1 Replies
Oct 22, 2010
I'v been looking and below is my code.
import flash.net.Socket;
var mySocket = new Socket
mySocket.connect("127.0.0.1", 5331)
var sym:SimpleButton;
sym.addEventListener(MouseEvent.MOUSE_DOWN, symbtn);
function symbtn(event:MouseEvent):void {
mySocket.writeUTFBytes(1);
}
View 2 Replies
Jul 14, 2011
i am new to Flash media server,and i face some difficulties!I managed to connect to derver and stream with Flash media live encoder to the server but when i create the flash file to see the stream it does nothing!I open the .html file that i have created but the only thing i can see is the bar of the player and i can not see the video that i am streaming!
View 4 Replies
Oct 10, 2009
I am working on the web base flash application I am trying to communicate with server through binary socket to the server through IP Address and Port using Action script 3.0 at the server side we are using java. I will like to send binary data string to the server in a clubbed single packet. I dont know the Action Script 3.0 as much.for this We will have to communicate through IP and Port only
View 1 Replies
Jul 30, 2009
I am trying to send a value from one of my xml nodes (<marker>) by declaring it in a function 'showData' as a variable 'XMLMarker'. If I trace this value (XMLmarker) it returns the right data found in the node <marker> (which is 'myMarker_mc'). However, I need to tell the stage that myMarker_mc is a MovieClip...please see the 'PROBLEM' stated in the code below.
[Code]....
View 0 Replies
Mar 18, 2010
I have a problem with shareobject. the Send method does not work. I work with AS3 My code
[Code]....
View 4 Replies
Dec 9, 2009
Can we receive more than four stream at same page .
Like many to many video conference .On a single page i want to see more than one person at same time by different-2 streams.
View 1 Replies
Jan 15, 2010
Do i need a wireless connection from the server. I am thinking of installing an access point to test the server.. The only challenge is i dont know how to get the client to receive streams.
View 7 Replies