Flash - Have A XMLSocket On The Server Side For AIR ServerSocket?
Jun 28, 2011
I have two software to create with AIR: a server and a client. Both with AS3 and AIR.I want to avoid having a big architecture with Remote Shared Object, or using BlazeDS, or having to set a Java / Python / ... server in the middle.In order to avoid having to parse socket data in the server and in the client side, I thought about using XMLSocket on the client side: the data arrives in a way which is already parsed by the Flash framework.However, when I use this XMLSocket with the AIR ServerSocket, the "connect" event returns me a raw Socket on the server side. So I have to manually manage the XML data on the server side.
Is there a way to also use an XMLSocket on the server side to communicate with the client? A kind of trick to convert the returned Socket into an XMLSocket?If there is an AS3 library which manages that, I did not find it.
View 2 Replies
Similar Posts:
Dec 17, 2009
I want to download files from the server side to client side without prompting a window to the user to download when any updates happen at server side.Right now I am using urlstream class but first file is downloading completely rest of the files contents downloading partially.
editCode sample taken from other post. Warning: it's a huuuge chunk o'code.
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:MyComp="client.components.*" layout="absolute" height="554" width="817"
[code]....
View 2 Replies
Sep 3, 2011
I want to create an application that has these features
- At client side: Display a list of images, when user click on one image, data will be stored in MySQL database.
- At server side: Manage images used in client side, I can delete, add new images.
Is this possible for me to achieve this using Flex? And if it is able, will my output be 2 separate SWF files? And where can I find the materials to read on writing such applications?
View 1 Replies
Feb 7, 2010
I have a server that I have written in Python and I'm trying to connect to it via Flash's XMLSocket. I know for sure that this server is working properly as I have used it successfully with multiple non-Flash client applications. For right now, I just want to connect to the remote server with an SWF residing on my local disk. From what I understand, this means that I do not need a security policy file since the SWF is not in another domain. I have also confirmed that the security sandbox property of the file is set to local-trusted, so the SWF should be able to connect to servers and retrieve data from them. Here's the important code from the AS file:
[Code]...
View 3 Replies
Jul 30, 2009
I have a Flash client that I want to connect to a server. Both are using localhost and port 50000 so there shouldn't be any cross-domain problems. I also set Access Network Only in the publishing settings. When I call the XMLSocket connect, the server seems to get a new connection. But, the XMLSocket.onConnect callback is not called with success=true.[code]...
View 2 Replies
Nov 10, 2010
Below is the code. When the swf is connected to FMS(the connection is successful) I use this application.user_so.send("enterContestGroup"); to call the client side mothed. You can see that in the client side I have defined the "enterContestGroup" mothed. However the fact is it doesn't call that mothed. Can anybody tell me what the error is
application.onAppStart = function(){ application.user_so = SharedObject.get("user_so", false); application.nextId = 0;}application.onConnect = function(newClient) application.acceptConnection(newClient);
[code]....
View 8 Replies
Mar 2, 2011
I have two (+) systems on a local network running an AIR application that need to send/receive updated positions and other events between each other. I'm currently using an AIR-based socket server one of the instances. The AMF and strong typing works great. What doesn't, however, is the syncing between clients.
In my example below, clientA is trying to send an AMF packet to clientB. The SOCKET_DATA events fire off as expected on the server, in sync with the mouse, however the data that clientB receives very quickly gets out of sync and events are lost.
It's fine if an occasional event gets dropped, however I need to know the most recent SOCKET_DATA event has the latest data. Instead, it just contains increasingly older data.
Code Snippets:
clientA writeObject: (on MOUSE_MOVE to test large number of events)
protected function stage_mouseMoveHandler ( pEvent : MouseEvent ) : void
{
[code]....
View 1 Replies
Jul 8, 2009
can you write and modify XML files using server-side Actionscript? I've been going through Adobe's Server-side Actionscript reference, reading up on the File class that lets you modify files on the server, and the server-side XML class that lets you read and 'understand' XML data, but can you put them together and essentially edit XML files on the server?
View 2 Replies
Apr 19, 2011
I can't use a proxy server. Can't use google app engine etc. I can't use server side code. No php or python. I need to be able to do logins to twitter and post status updates to twitter through an Actionscript 3 web application. The biggest thing is obviously getting around twitter's crossdomain. Is there a clean ajax version of this or something?
View 1 Replies
Aug 28, 2009
User interacts with Adobe flex webpage to configure reports based on some data stored server side. They configure their view and have THAT view emailed to them daily. I've got the report builder, the part I'm trying to figure out is how to render the report server side and send it out as email (native flex functionality? convert to html? take screenshot? assume something is running client side?...)
View 2 Replies
May 17, 2011
I am writing a thesis and have been able to place all my frameworks under two categories (client-side frameworks and server-side frameworks), but I can't seem to finf where to place Adobe Flex...In which category should I place this or should I place it in some separate catgeory?
View 3 Replies
Apr 17, 2009
I am making an app where people upload a bunch of images and it thumbnails them and saves them to the server. Is it better to create thumbnails from the uploaded images, or to upload them to the server then re-download the thumbnails?
View 1 Replies
Aug 17, 2011
I have a perl socket on my apache server that correctly takes input from sockets and sends it back out to every socket connected to the perl socket. I have tested the perl socket, and it works correctly.
When I launch the Flash in the IDE, as a flash program, it functions correctly with the perl socket.
However, when I try to launch the Flash in a Browser on my apache server, it tells me it is unable to connect to the server.However, I am seeing from feedback from my perl socket, the flash connects for about a half of a second, and thats it.
What could be the problem, do I have to include code in the flash to allow XMLSockets to connect in a browser as well? Is there certain things I need to do with my apache server to make it work?
Also if I 'Preview as HTML' from Adobe Flash CS4, it does not connect.
View 3 Replies
Mar 25, 2010
I'm trying to get an external script to communicate with an application instance running on my Flash Interactive Media Server installation. I've got the following server side actionscript in my AppStart():
[code]...
The connection to an open socket on the localhost, port 16005 works fine, but when I try to write some xml to the socket that I accepted the connection on (running on the localhost), I never seem to get the onXML or onData callbacks on the server application instance. One question that I had was regarding the NULL byte. If the FMS application doesn't not receive the NULL byte, does that mean the callback won't happen? If so, can someone tell me how to take something like a Python string and *add* a NULL byte so that the FMS will invoke the proper onXML or onData callback when this data is sent?
View 1 Replies
Aug 31, 2011
I've designed a flash [as2 php xmlsocket] chatroom , it works fine in localhost but i don't know how to run on real website server.I've uploaded the files but when i run the flash it can't establish a connection.What server requirements i need for xmlsocket?
View 0 Replies
Aug 9, 2004
I am new to actionscript. I have created a script that will play server side sound object and client side mp3 files alternately. Now, I would like to play the client side mp3 first then only play server side sound object alternately. However, I have no idea how can I do so. The following is the code that need to be swapped:
[Code].....
View 2 Replies
Sep 27, 2010
i want to make an xmlsocket chatroom in my computer with wamp server ,i use this port and ip:
HTML Code:
mySocket.connect("localhost", 1026);
and i have changed the port of wamp server to 1026 and i have puted the socket.php file in www directory of wamp.when i run the swf file in flash the connection establishing is succesfull but when i try to send data the connection will close.this is the actionscript code:
HTML Code:
mySocket = new XMLSocket();
mySocket.onConnect = function(success) {
if (success) {
[code]....
View 0 Replies
Nov 8, 2005
simple Tutorial showing the use of XMLSocket class with some amount of server code included?
View 1 Replies
Jan 26, 2011
The $995.00 version is listed as not supporting server side playlists. Is it possible to implement internet TV station like functionality using that version? I would like to have a list of files to play out and have it so those connected are all viewing the same thing.
View 1 Replies
Jun 22, 2010
We're thinking about purchasing the Flash Media Streaming Server Edition and we have some doubts after looking this edition comparision: [URL]..
1.- It says the streaming edition doesn't have server side play list. Does it mean this version doesn't come with a native application for making playlist on the server side? Could I write an AS application (As I've done with developer edition) to implement server side playlists??
2.- How about the clustering? Could we install an instance of FMS in several servers to make them work as a cluster?
View 10 Replies
Jan 15, 2010
I have seen in web apps we get flash images generated on the fly how is it achieved? Any api for programming languages (Java Python)?
View 2 Replies
Apr 13, 2010
What technology are better (robust, stable, speed) for rich web app with flash movies, chat, etc. Somebody said that Red5 will drop down if more that 50 users try to suck video stream from it. Is there people who use Java on server side and Flash for client side?
View 1 Replies
Jun 5, 2010
I'm still a newbie at flash, but is it possible to have Flash get files from the server it is currently on, and then send those files somewhere?
View 1 Replies
Jul 2, 2010
I saw this post and don't understand why it's so struggling to post an image to server side with flash, or is it just the poster didn't do it in a proper manner ?So far my progress is:
var ba:ByteArray = (new PNGEncoder()).encode(vidBmpHolder);
var request : URLRequest = new URLRequest("http://localhost:3000/doodles");
request.method = URLRequestMethod.POST;
[code]......
View 3 Replies
Jul 3, 2010
Here is the code I used to post the bitmapdata to server side(PHP):
private function savePicToServer(bmpData:BitmapData):void
{
trace("in savePicToServer");
trace(bmpData);
[code].....
Finally the trace output is :
in savePicToServer
[object BitmapData]
finish savePicToServer
View 1 Replies
Jul 20, 2011
In answering a question on stack overflow, one person recommended using the following code to detect flash server-side, he pointed out that it does not work in safari:
if (strstr($_SERVER['HTTP_ACCEPT'], 'application/x-shockwave-flash')){
$hasFlash = true;}
Testing for Flash capability on the server-side. My question: why does it not work in safari, and how reliably does it work with other browsers?
View 2 Replies
Oct 6, 2011
We are building a Flash application for client use but will need to do server side processing of images. All our expertise and application code is in Java, but I've been told Dot Net has better Flash support. This is general but we will be modifying large (up to 50MB) image files. The idea is that what we could do in Flash should be duplicated, automated and extended on the server side.
View 2 Replies
Oct 9, 2011
I have a SWF timeline animation that grabs XML/images dynamically and then need to output/encode that as a video.
View 3 Replies
Jan 12, 2012
I'm trying to create a RTMP Streaming application but I can't seem to get the server-side code to run. I've checked the logs on RootInstaller/logs/test, but nothing inside it. I am running everything locally also.Here's what I have:
ActionScript3 file
public function btnConnectHandler(event:MouseEvent):void
{
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);[code].....
View 1 Replies
Nov 24, 2010
I am new to flash media server side scripting, i want to know that is there any tool or editor available to write server side script easily like we are doing in Adobe Flex or Flash Builder
View 1 Replies