ActionScript 3.0 :: Binary Sockets Ignors Data Sometimes?

Dec 16, 2009

Sometimes flash-socket ignors data which is being sent by server. I dunna know exactly if it's server-side problem(data actually aint being sent) or flash.How does flash handle numerous of data packages comming from server ? I know that flash perform all actions in single thread, but what happen when flash recive a lot of packages at same time ? Does flash serialize incomming packages and then call ProgressEvent.SOCKET_DATA for each package or just ignore those packages which cant be handled runtime ?

View 5 Replies


Similar Posts:


C++ :: SSL Reverse Proxy For Legacy Application Binary Transfers On Sockets?

Nov 28, 2009

I'm struggling to find a reverse proxy http->https like for binary sockets.There is a Pound server which offers this kind of SSL tunneling but just for the http protocol.Basically I work on 4'th layer TCP/IP with binary data. Between flex/AIR client and c++ server.I can wrap sockets in C++ without problems, but this is a problem for flex side.

View 2 Replies

ActionScript 3.0 :: Flash Binary Sockets - Error 2048 Returns

Dec 1, 2009

I'm creating a Flash IRC client for a project, and it works fine locally. However, when I place the SWF on a server it returns the #2048 error. I've tried to load in a policy file with no luck.

View 9 Replies

Php :: Flex Sockets Not Sending Data On Windows?

Sep 17, 2010

I am building a really simple Chat server/client using PHP and Flex. I have followed many tutorials and have a working server in PHP and a working client in Flex, except that if I use the client on Windows I can't send any messages.When I send a message on my Mac it goes through to the server and gets sent to all the clients, including any Windows client I may have connected. The message will actually display on Windows clients as well, it's only when I try sending from Windows that it doesn't work.

I've tried adding a crossdomain.xml file served by a PHP script listening on the correct port, but none of the clients ever seem to ask for it, and if the client works on Mac I assumed it should work on Windows. By the way I'm exporting the project as an AIR file (dunno if that makes a difference).I can't find anything regarding this so I'm wondering if I'm being stupid somewhere or whether I need to takes some special measures for Windows clients?I have pasted my client code below.

import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.MouseEvent;[code]......

View 1 Replies

C++ :: Transmit Data From C++ To Flex / Air Faster Than Sockets?

Feb 1, 2012

I have a C++ application which sends images to a Flex/Air front-end via TCP sockets. All this data transfer occur in the same host, so the socket connects to a localhost server. The problem is that the Flex/Air takes a really long time to read the entire image from the socket. The server sends the image quite fast, but the Flex/Air reads this image in tiny parts. The whole image has about 300MB and the Flex/AIR reads only about 1KB each iteration. So the flex keeps calling the socket data callback, which is causing the application to slowdown.

Is there any synchronous sockets to use with flex, or some kind of socket which can read the entire data all at once? If sockets aren't the best choice, is there any other faster options? My socket class looks like this:

[Code]...

View 2 Replies

ActionScript 3.0 :: Hex/Binary Data Over Socket?

Oct 21, 2008

I have a custom socket class designed to connect to a server and talk with it. At one point, the server uses hex data for speed, however Flash seems to not get ANY of this data. In fact, it doesn't get ANY of the data from that point to the next packet.

View 2 Replies

ActionScript 3.0 :: Binary Image Data To PHP?

Jul 3, 2007

I wrote an image editor for my cms and wanted to send the image respectively the through the BitmapData's getPixels()-method received ByteArray to a PHP-script that displays and finally saves the image. Obviously I didn't succeed. How do I have to encode my binary data so that PHP is able to read it and how do I have to treat the bytes in PHP? I also tried encoding the image data with the corelib classes from [URL] but it didn't work as well.

View 4 Replies

Flash :: Sockets - XMLSocket Can Receive Data But Not Send

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

ActionScript 2.0 :: Starting With XML Sockets - Sending And / Or Receiving Data

Jul 18, 2004

I've begun playing with Flash and XML Socket Servers and I thought I started taking to it easy, I was able to connect and disconnect to a socket server I wrote and Unity but I seem to be having problems sending and/or recieveing data. I wrote a small amount of code to try it out:

[Code]...

It seems to be connecting fine but when I click and I try my send,

View 2 Replies

ActionScript 3.0 :: Sockets Not Closing Data Connection On Windows

Nov 10, 2009

I've written a basic FTP client to allow me to upload files through the browser without using the FileReference.upload() func (because it's damn slow). I've got all the socket logic worked out and it works for one upload. When the upload is completed, the FTP data socket is closed by the socket.close() func which triggers a response from the command socket and starts the whole process over again. This logic works perfectly on my Mac in both Safari and FF.

I can upload files and cancel uploads and it all works as I want. When I test it on Windows (IE 8, FF 3.5, Safari 4 on WinXP and Win7) it is busted. I've tracked down the problem to the fact that on Windows, the socket.close() function is not causing the server to close the connection. I don't know if this is because it's not sending a proper command or what... but that's where it's at.

View 4 Replies

ActionScript 3.0 :: Reflect Class And Binary Data?

Apr 28, 2009

I am using pixelfumes reflect class to create a releflection, the problem i have is (i) It only accepts reference to a movieclip. (ii) I cannot cast my binary data as a movieClip var item:Bitmap has to stay as a bitmap so either I make a copy of it as a moveclip and reflect it or find a way to pass it directly into the new Reflect() constructor.

[Code].....

View 1 Replies

Import Raw Binary Data Into An Image In Flash 8?

Jan 18, 2010

We have a system that allows a user to upload any image, which we store on the server. Of course, it is simple to load an image (that you know the path to) using loadMovie, but I also want to load certain pieces of meta data about the image that is precalculated and stored on the server; we may one day want to retrieve things completely unrelated to the image as well, so consider the non-image data to be arbitrary.So, that said, is there a way to simply return the image as a variable (urlencoded and returned in a loadVars request, perhaps) and then load that data into a movie clip?

Bonus Lightning Round Question: Is there a way to check the output of a PHP script which processes uploads when the request is sent via FileReference.upload(url:String)? Should I load/escape the binary data and then send it using a loadVars() request if I want to see the output?

View 1 Replies

As3 :: Flash - Use To Load Binary Data From Web Server?

Oct 19, 2011

I'm trying to load some binary data from server like this

var urlRequest:URLRequest = new URLRequest("http://localhost/test.php");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);

[code].....

View 4 Replies

Actionscript 3 :: Binary Data Corrupted From Php To AS3 Via Http

Oct 27, 2011

I'm trying to retrieve binary data using AS3 from a PHP server via HTTP, but very often (~50%) a few bytes arrive corrupted.

PHP snippets:

header('Content-Type:binary/octet-stream;');
echo $this->page;

[Code].....

View 1 Replies

As3 :: Python : Packing/unpacking Binary Data?

Feb 10, 2012

I am porting a python app that makes use of these functions [URL] to read a 32-bit little value.

View 1 Replies

ActionScript 3.0 :: Scale Bytearray/binary Data?

Jul 20, 2009

So, as the title says I was wondering if it is possible to scale bytearray/binary data from lets say 640x480 which is being captured from the stage to 1024 x 768

View 1 Replies

ActionScript 3.0 :: Send Binary Data To Server?

Oct 8, 2009

I am working on the web base flash application I am trying to communicate with server through binary socket to the server 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.

View 1 Replies

ActionScript 3.0 :: Post Binary Data To Server

Dec 19, 2009

I have a problem with my application. Here's what i have up till now[code]...

Everything works fine, you can scale the image etc.

I would like to download the new image after you scaled it. I have been trying it for a long time now but i cant get it to work.[code]...

View 4 Replies

ActionScript 3.0 :: Decompress Binary Data Coming From PHP?

Jul 28, 2010

I'm missing a couple of bits somewhere. I'm trying to send and receive compressed binary data using AS and PHP, but I receive allways the error "Error #2058: There was an error decompressing the data". [code]...

View 1 Replies

ActionScript 3.0 :: Save Binary Data In ByteArray In To Xml?

Feb 9, 2012

I would need to save some binary data (bitmap data or similar) as a part of XML file.[code]...

I suppose I must serialize or encode "ba" (binary bytearray data) some way to string before writeing to XML and decode them back during the reading from XML, but I cannot find the correct way how to do it.

View 3 Replies

ActionScript 2.0 :: Convert A MC To Image Using Binary Data?

Nov 6, 2007

How can I change this so it saves the image as binary data. This code works fine but when the image is created the file size is too big.

Code:
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.ColorTransform;

[Code]......

View 1 Replies

ActionScript 3.0 :: Reflect Class And Binary Data

Apr 28, 2009

I am using pixelfumes reflect class to create a releflection, the problem i have is

(i) It only accepts reference to a movieclip.

(ii) I cannot cast my binary data as a movieClip

var item:Bitmap has to stay as a bitmap so either I make a copy of it as a moveclip and reflect it or find a way to pass it directly into the new Reflect() constructor.[code]

View 3 Replies

ActionScript 3.0 :: Data Limit To Sockets - Events Stop Firing

Apr 1, 2009

I have a pretty elaborate class that extends Socket and performs some serialization and data protocol stuff. It works pretty well when I send small messages. However, when I send anything over about 132KB at once, the SOCKET_DATA progress events stop firing -- or at least the function I've got listening for them does. My class is called RPCSocket and I assign the socketDataHandler function like this in my constructor:
addEventListener(ProgressEvent.SOCKET_DATA, socketDataHandler);

My socketDataHandler function (with lots of comments) is attached. Is there some limit to how much data can be sent over a socket at once? Is there something wrong with my code? Here's the trace output:
Code:
socketdatahandler
bytesAvail:4380
buffer length:0
reading bytes into buffer for concat
buffer length after concat:4380
buffer state:0
[Code] .....

View 6 Replies

Sockets :: Can Flash App Running In Browser Connect To Localhost To Get Data From Another App?

Dec 21, 2009

it seems that Flash was supposed to run in a sandbox in the browser. But, if Flash can get data from a remote server, can it similarly get data from localhost IP on the same machine? In other words, can I use a Windows app that provides a TCP socket on localhost to feed data into a Flash app?the answer is yes at least for the case of an SWF file hosted in the file system, URL...(turns out the localhost access error can be fixed if you add the SWF app to some security whitelist). Still wondering if this can also be done for SWF apps hosted on the network.

View 1 Replies

Sockets :: Write A Client In Order To Send Data To The Server?

Jun 19, 2011

I have written an ActionScript 3 class that is a Server Socket and accepts connections.I want to write a client in order to send data to the server. The client will be a mobile browser. I think that i will use javascript. Is it possible to connect to the server from mobile environment?

View 1 Replies

ActionScript 3.0 :: Unpack Data Form Binary String?

Jan 17, 2010

unpacking data from a binary string. I realized it with a php code:
 
list($empty,$size) = unpack( 'V', fread($socket,4) );    $theresult = fread($socket,$size);
  
But how can i do this in as3 ? I didnīt find a possibilty to encode "unsigned long (always 32 bit, little endian byte order)". Is there a option like unpack in as3 ?

View 4 Replies

Actionscript 3 :: Send Binary Data From It Through Java To A Filesystem?

Apr 10, 2012

I've got XML data in AS3 that needs to be compressed, validated on my Java Google App Engine servlet then saved to a file in Google Cloud Storage. Later that file will be opened and decompressed by the AS3 client. The process works if I do it with plain XML or text, but if I ByteArray#compress the data, it dies during ByteArray#uncompress with "There was an error decompressing the data".

I've tried setting the content type and mime type at various points, as well as encoding with Base64, but every attempt seems to break in a different way and I never get the same XML back that I sent in. Do I need to use multipart? Should I compress on the server? [code]...

View 2 Replies

ActionScript 3 :: Flash - Save Binary Data To Files?

Nov 14, 2010

im doing a level editor for my game and i need to save the tilemap data (120x120 uint array) and character data (character type, position, rotation, stats, etc) to a .bin file. How can i do it? I know i can do it by using XMLs but it is not good for saving tilemaps...

View 2 Replies

Actionscript 3 :: Upload Urlencoded Binary Data To Tumblr?

Sep 13, 2011

I need up upload urlencoded binary data to tumblr.this is what I'm currently trying:

baseString.params = 'data[0]=' + URLEncoding.encode(byte.toString()).replace('~','%257E');

View 1 Replies

Actionscript 3 :: URLLoader Cant Load Binary Data From Different Domain?

Mar 5, 2012

1 - SWF must have ability to loading binary data from any domain.

2 - SWF cant load policy XML file from url, cause upload form allows me only to upload swf files, so I cant include any other data.
I tried:

Security.allowDomain("*");

But it works only for SWF files.I tried to embed policy XML file:

var dataXML:XML =
<?xml version="1.0"?>
<!-- http://www.foo.com/crossdomain.xml -->
<cross-domain-policy>

[code]....

This will make an security error, if file is from different domain than SWF file.Its possible to get binary data from JavaScript using ExternatInterface in AS3 code.Here is cross-browser library for reading files binary: binary reader and later version jDataView.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved