Flex :: Send Info Using USLStream From Flash Client To JAVA Server?

Jul 18, 2010

I am trying to send info using USLStream from flash client to JAVA server.Some of the info is Chinese so i have to use Unicode.

View 1 Replies


Similar Posts:


Java :: Flex - Flash Client To Talk To A Server Through A Full-duplex Connection?

Sep 16, 2010

My client is in Flash/Flex (game with chat) and it will be talking to a Java server. What is the best way (protocol / interface) for my Flash client to talk to my server? I heard about Flash Remoting MX, but it is a request / response mechanism. I could always request something and wait for asynchronous notifications from server. Then request again, implementing something like a Comet server.Anyways, what is the industry standard for this type of communication: Flash Client talking to Java server, supporting asynchronous "push" notifications from server.

View 4 Replies

Java - Connecting Non-flex Client To Server Running BlazeDS?

Aug 27, 2010

I have Flex/AIR app that connects to a tomcat server via BlazeDS. I'm not finding that I have to integrate an old webapp (struts/jsp) and I'd like to keep that webapp untouched except for login, authentication and session handling. Also a 3rd java app that uses httpclient.

Currently I have some blazeDS remote objects to handle login/logout with a few RPC calls. In turn, FlexSession objects are created and handled. Is there a way to use httpclient and javascript to call those blazeds RPCs so I dont have to recode and have 3 different means to handle logins and sessions?

View 1 Replies

Java :: Build The Client With Flex And Connect To The Server Data With BlazeDS?

Dec 20, 2010

I have a server with some simple java objects running. I want to build the client with Flex and connect to the server data with BlazeDS. The problem is the Flash Builder is not generating the Classes correctly. Just the properties are being generated, the inheritance are not being generates.

View 1 Replies

Java :: Encrypt Sqlite Db File With Server Side / So Flex / Air Client Can Read It?

Jan 23, 2012

We are trying to create a sqlite db file using java on the server, and encrypt it.Then we send the encrypted db file to a client's pc, which has an Adobe Air desktop app running.The air app then needs to be able to open/read-from the encrypted db file (client is read-only).We are using java 1.6, flex/actionscript 4.5, and Air 3.1.We can create the sqlite db file on the server and send it to the client, and it can be read by the client without issues, when we do not encrypt it.But we are having trouble with the encryption part. We've read quite a lot of documentation about Actionscript's ability to open encrypted sqlite files using AES + CCM (URL...).And we're trying to use java's crypto package to encrypt the sqlite db file.The encryption is important because we don't want the client to be able to open the sqlite db file with any sqlite browser, only with our Air application.

View 1 Replies

Java :: Flex Client Side And Java As Server Side?

Aug 7, 2011

Since I'm developing a multiplayer card game for Facebook using Flex as client side and Java SE as server side, I wanted to know how do I actually make the connection between Flex and Java? the server and client should be able to send each other data(cards,movement,room information etc...) across and I wonder what's the easiest way to do it without complicating it. where to read about it ? I know JAVA but I find JavaEE hard to understand.

View 2 Replies

Flash :: Use Java On Server And Client Side?

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

Java :: Authorized Flash Client To Server Connection

Feb 22, 2011

I'm building a Flash-based Facebook game with a Java backend, and I'm planning to use a RESTful approach to connect the two of them (not a persistent socket connection). I'm using the AS3 library to connect the client to Facebook, so that's where I have my session information stored. However, how do I authorize client connections back to the server? I can't leave the callback URLs open since that'd let people manipulate game state without playing the game. I need to make sure that the calls are coming from a valid client and through a valid session.

At the moment, users have no direct login to the backend server -- it's all handled through the client frontend. Can I pass the Facebook OAuth2 access token to the backend in a way that the backend can verify its validity? Should that be enough to trust a valid frontend connection?

I could do a two legged OAuth signed request or just use a simple shared secret, but the keys would have to be packed in with the flash client, which makes that almost useless for this use case.

View 3 Replies

Actionscript 3 :: Send Data In AMF Format From Flex To Java Socket Server?

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

Java :: Flex - Unable To Send MIDI File Name To Java To Playback Music?

Oct 27, 2010

I could play MIDI file where "filename" is a String type with "asd.mid" value. However, I tried to sent AIR's nativeprocess command to Java, it shown "could not read" error.

[Code]...

View 1 Replies

Actionscript 3 :: Send An Image Between Two Client/server In Adobe AIR?

Feb 20, 2012

I want to send an image between two client/server in Adobe AIR, is there a way to do that, and if there is then how?

View 2 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 2.0 :: Make A Policy File For A Socket Server Made On Java With A Client?

Dec 30, 2011

how to make a policy file for a socket server made on java with a client made on as2.

View 21 Replies

Java :: Verify Contribution Of Client-server Network Latency In Application Performance

Sep 24, 2011

We have a typical Flash+J2EE application that makes multiple requests from client to server (over Flex remoting), which is taking quite a long time on some client systems (and hence results in poor application performance on such systems).

Now, suspecting issues with network connectivity (latency) on such client system(s), we need to identify how far does it contribute to the slow response of the application (rather than performance issues in the application itself).

So, what are the best way(s) to diagnose this on a client system (Windows)?

Note that we have tried profiling our application, which does not indicate bottlenecks there, so we just need to clearly identify the possible network issues.

View 1 Replies

Flex :: Send Info From A 3 Component?

Aug 9, 2010

I'm using Alex Uhlmann's flip card class (Distortion Effects). I've got a card that has 3 faces. When the user clicks the button, it fires a change event, and in the main application, the change event calls a function, flipTo, that flips the card. The component is below:

[Code]...

View 1 Replies

Java :: Retrieve A Client's Hostname Using Flex?

Nov 3, 2010

I am building a Flex application which communicates with a Java server using BlazeDS.

What would be the best way to go about making the server aware of the client's hostname?

View 1 Replies

Java :: Web Multiplayer Game In FLEX And Java - Build The Server Clients Managing System?

Aug 4, 2011

I'm building a Facebook multiplayer game where the client side is in FLEX and the server side is in Java and I wanted to know if there is a guide on how to build the server clients managing system. When I say server clients managing system, I mean a server which many clients will connect to and will be able to choose between tables to join and play or to create their own table, same way as in texas holdem poker.

View 1 Replies

Java :: Detect When Flex Client Closes The Connection?

May 13, 2010

I have a Flex application that connects to a BlazeDS server using the StreamingAMF channel. On the server-side the logic is handled by a custom adapter that extends ActionScriptAdapter and implements FlexSessionListener and FlexClientListener interfaces.

I am asking how can I detect which "flex-client" has closed a connection when for example the user is closing the browser? (so I can clean some infos inside the database)

I tried using the following:

1. To manually manage the command messages:

@Override
public Object manage(final CommandMessage commandMessage) {
switch (commandMessage.getOperation()) {

[Code]....

View 3 Replies

Flex :: Send Typed Object From FMS To Client

Jan 2, 2010

I have following object in the FMS

User = function(userName,userId)
{
this.userName = userName;
this.userId = userId;
}

I need to send the list of user to the client swf. Once I initialized the User object collection to an array, array element is undefined when I read it from the client.

[Code]...

View 2 Replies

Actionscript 3 :: Client + Grails Server - Processing Audio At The Client And Sending It Back To The Server

Mar 8, 2012

We're writing a flash application that can download a MP3 file, convert it to a Sound object, get the raw data and make some processing (like adding sounds, change octaves). After the processing, we want to send the data back to the server in chunks, so the server will be able to glue the data together and recover the new generated file. The problem is: if we send to the server "wav" pieces of sound, we are able to glue them together without any problem in the generated file. However, if we convert each wav piece to a mp3 file (so we can send a smaller file to the server) and join the mp3 files at the server, the result is a sound with some problems at the merge point.

This is how we load the mp3 file from the server:

sourceSnd.load(new URLRequest("sample url to mp3"));
sourceSnd.addEventListener(Event.COMPLETE, carregou);

This is how we convert each piece of mp3 to bytearray and wav:

[Code]....

View 1 Replies

Java :: Indicate Failed Authentication Reason To Flex Client With JAAS?

Dec 29, 2009

We're using :

JBoss 5
Flex SDK 3.5
BlazeDS 3, with integrated authentication (through JAAS and JBossSX)

Failed login are always indicated to the flex client by the same fault code : Client.Authentication

However, the underlying JAAS LoginModule throws a specific javax.security.auth.login.LoginException subclass.

How can we propagate the failed login reason to the flex client ?

View 1 Replies

Java :: Externalizing Client ChannelSet Configuration For Flex Web Application?

Dec 10, 2010

I am looking for an approach that will allow me to (somehow) dynamically pass the server name, server port, and web context to my Flex client so it can create a ChannelSet for it's RemoteObjects to use. These three properties are, of course, readily available to my Java server-side code so I just need a way to get them to the client.

By default, Adobe says you should compile your Flex application against the server configuration file "services-config.xml". This is a highly inflexible practice that Spring says should be avoided (I agree).

One popular approach is to use Flex's http service to download an XML configuration file. I like this idea, but I don't want to hard-code an XML file and keep it inside my WAR file. Is there a way to dynamically generate this from Java code?somehow use flashvars to pass the properties in from the containing HTML page to the SWF file. But again, I don't want to hard code them into the HTML page. Is there a way (maybe with Javascript?) to dynamically set the value of these when the page loads?

View 1 Replies

Java :: Load A .properties File From A Client Using Adobe Flex?

Feb 28, 2011

Is it possible to load a .properties file from a client computer using adobe flex? I have a flex app that needs to access a server and multiple URLs but the URLs may change frequently. So I think modifying and loading the URLs from a .properties file would be the easiest way update the URLs

I was able to use florians suggestion and I've added the code below if anyone else is interested. I used the example here URLLoader.

public function URLLoaderDataFormatExample(event:Event):void
{
var request:URLRequest = new URLRequest("file:///c:/temp/prop.properties");
var variables:URLLoader = new URLLoader();

[Code]...

View 3 Replies

Flash :: Handle Client And Server Validation With Flex 3?

May 5, 2011

I'm a new grad, so please be kind. I'm working on validating input in a Flex DataGrid cell that the user can edit. The rows in the DataGrid are backed by an mx.collections.ArrayCollection that includes a [Bindable]Model that I wrote. I want to validate against a custom client-side Validator, if-and-only-if that passes I want to validate the input on the server. If client-side validation fails, I want to display the normal validation error (see image below). If server-side validation fails, I want to use the same sort of UI components to notify the user. The solution should not include any external framework (Cairngorm or PureMVC).

[Code]...

How do Flex programmers validate on the server, immediately after the valid client-side validation passes?

I realize it seems silly to search out this "synchronous" design and I hope someone has an answer to solve my problem with best practices. In my defense, the reason I want to validate on the server immediately following client-side validation is so that I'm using Flex's validation framework. If I get an invalid response from the server, I want to leverage the built-in UI components that Flex has to tell the user something is incorrect about his/her input.

View 3 Replies

Java :: Push Data From BlazeDS Without Receive Message From Flex Client?

Dec 9, 2009

I am using BlazeDS for data-push feature in my Flex application project. From the official tutorial, Getting started with BlazeDS, it shows messaging example with producer/consumer from API. but how can I implement server side which doesn't need to be invoke from Flex client, but from within server-side instead. I got some idea but I don't know how to do because I'm a Flex developer, not Java developer In Google, there's a tutorial show about I need to extend ServiceAdapter class in Java-side, which extends Invoke method. Do I need to extend other class instead of this to do what I want?

View 3 Replies

Flex :: Access Data Field Of A JSON Request Send By Client In JAX-RS?

Feb 2, 2012

I have the following JAX-RS service.[code]...

The JAX-RS service receives the request and respond successfully with some dummy response, but I have no access to the request.data field.

How do I access the data of the request message (which is {"type":"get_configuration","data":"some data"} in this particular example)? I think that I'm supposed to add some parameters to the handleMessage method like

public SomeResponse handleMessage(Object message) {...

but this does not work at all. The request got 415 response.

View 1 Replies

Actionscript 3 :: Is AMF3 Protocol Is Good For Flash / Flex Client Server Development

Jul 11, 2010

I need to develop client server application that involve gaming. I have no experience in flash and I was reading about the AMF3 protocol that is compact and fast, is it better than xml/json for data exchange? Also I need it to be on port 80.

View 2 Replies

Java :: Send Objects From Flex To Servlet?

Dec 6, 2010

This is my method in actionscript

var urlVars : URLVariables = new URLVariables();
urlVars.myname = byteArr;
var urlReq : URLRequest = new URLRequest('MyServlet');

[Code].....

How do I recieve the byte array on servlet ?

Also the byteArr above comes from java side,

byte[] byteArr = aMethodWhichReturnsaPDFByteArray();
HttpServletResponse response = FlexContext.getHttpResponse();
ServletOutputStream os = null;

[Code].....

View 3 Replies

Java :: Send An Array Of Objects From Flex To Servlet?

Apr 29, 2011

I have a collection of Objects in an ArrayCollection in my flex page.

What is the best approach to send this data to a Java Servlet?

The object in the ArrayCollection is a VO that consists of an id and message for now. I want a solution that is scalable in case more properties are added later on.

View 1 Replies

AS3 :: Linked List - Send LinkedList From Red5(Java) To Flex?

Jun 12, 2011

I have a linked list of data in Red5server that updating every 8 second. I want to send this linked list to Flex. is it possible using shared object? or any other solution?

View 1 Replies







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