Java :: Communication Between EJB And Flash?

May 19, 2010

Is it possible to call my ejbs from Flash actionscript?Also if my ejbs are returning List how will flash come to know about this class?

View 2 Replies


Similar Posts:


C# :: Communication Between Flash And Java Server Based App?

Jun 1, 2011

For example, Flash records voice and sends it to the server where Java or C# apps can proccess it and return back some data (or write it to db). How this communication possible, which protocols sould be used and etc.

View 2 Replies

ActionScript 3.0 :: Java-Flash Communication With Sockets And AMF Coding?

Oct 17, 2010

I'm bothering with Java-Flash communication. At the beggining, I used XML Socket Class, which was pretty easy to implement and my aplication comunicated very well.However, my program will monitor behavior of many users at the same time, so parsing and sending large xml files could overload Server. Thats why I used Socket class and AMF coding instead. After tough hours of implementing it, whole application seemed to work. Unfortunently, after couple of tests it apeard, that Socket was slower than XML Socket! I have no idea why, because in theory binary messages should be much faster than xml. Could you help me solving this issue? Below I pasted my code for both Java and AS3.

This code sends basic variables from class object and are received the same way (it can sound bit complicated compared to just sending whole object, but for various reasons is the only way).

1. Java client (java server receives data from different sources and sends it to flash):

Code: public void sendMyPosition(MyPositionMessage message, Socket sock) throws IOException
{
synchronized (sock) {[code].....

2. Flash server - new data triggers socketDataHandler which receive it with readReasponse function. First int describes which kind of message was send, although there is only one at the moment. I've deleted some handlers couse they seemd irrelevant this case. Whole AS Class is attached as a file.

Code:
public class CustomSocket extends Socket {
private var currentMessage:int = -1;
private var message:Object = null;[code]................

View 1 Replies

Flash :: Use The Asterisk As The Communication Server And Java As Primary Technology In Building The System

Aug 19, 2011

We want to build the web-based softphone using SIP technology And we want to use the Asterisk as the Communication server and Java as primary technology in building the system so we have got following flash based softphone using Adobe Flash,FMG,FMS flex based softphone using Flex , Red5 Server we are also reseraching into MjSIP and PjSIP

[Code]....

View 2 Replies

Actionscript 3 :: Communication Between Flex And Java?

Nov 9, 2011

Is there any way a Adobe Flash Builder could call methods from a java class? Without any servers? just like a API where i could call use methods from java clasees?

View 2 Replies

Actionscript 3 :: Communication Between Flex And Java Socket?

May 19, 2011

I have a Flex AIR app, and i am trying to get data from a Java Server. Can some one tell me if this approach will work?

Start a ServerSocket in Java and wait for a connection. Use Flex to connect to the same port. Write some data to the socket from Java Server. Read the data at the Flex end and process it.

I think i am able to get this working, but the data that i read back at Flex end seems to be empty.

My server code is :

socket = new ServerSocket(port);
client = socket.accept();
InetAddress address = client.getInetAddress();

[Code].....

My current problem is socket.bytesAvailable becoming 0 and therefore obj is coming up as "". So how to read data sent from the server using a Socket in Flex?

View 1 Replies

Actionscript :: Java - Class Not Found At Runtime For BlazeDS Communication

Dec 22, 2009

We are using GraniteDS autogenerated AS code to map Java remote objects to AS.

We have objects that contain List sites in Java so when they are converted to AS it looks like:

JAVA: private List<MyObject> territories;

Actionscript: private var _territories:ListCollectionView;

The trouble is we are using MXML databinding to bind the contents of that list generically, the trouble is we never reference the type of object contained in the list explicitly so it's never compiled into our SWF is there any way to ensure that objects in a list for a RemoteClass is compiled in?

View 1 Replies

Java :: Do Websockets Allow For P2p (browser To Browser) Communication

Nov 7, 2010

To clarify when I ask about browser to browser communication I mean without a server in between forwarding message. I would like to implement something like this for a game. If p2p in websockets isn't possible are there similar alternatives?

View 1 Replies

Java :: Migrating Existing Java And Flash Applications To Android (Google TV)?

Aug 9, 2011

I have a client-server multigame suite for PC ("kind of" cross-platform using cygwin), which is developed in Java(game menus and database management), C++ (server side), and adobe Flash (game graphics & interaction).

I have never tried to develop for android, so i have no experience.I am thinking of migrating this suite to google TV. So i would like someone with android experience to give a clue on the following :

1) Is it going to be easy to migrate the Java application to an Android application?

2) What kind of Flash support does Android have? Can it load directly swf applications? Does it have to load swf's through browser?

3) Can i find any kind of performance indexes for google TV hardware?

View 1 Replies

Java :: Load External Page HTML Via Javascript Or Flash Or Java?

Nov 13, 2011

I need to load somehow the html code of a webpage A into a javascript string of another webpage B, on a different host. I know this is impossible to do with javascript alone because of the same origin policy, and I know I could do it loading the page via php on my server and then send results back to the user's client but I wouldn't be able to handle so many requests, so I need it to be done directly by the user's browser. I can use nearly whatever browser scripting language/applet framework common enough to be installed on the majority of my users' computers, like flash and java.On example, what if I use flash or java to load the external html code and then call a javascript callback function providing the source? Could this work?

View 2 Replies

Java :: Any Opensource Alternative To Squish To Test Flash / Silverlight / Java Applet Gui Objects?

Jun 3, 2011

If one doesn't have the source code, the only to test is to send keystroke and mouse move so I found this product but it's not free and opensource price is not even known :([URL] Squish supports automating interactions and testing non-HTML/DOM elements, that is, native objects, which are embedded in a web page. This is done at a fairly abstract level, which means that mouse and text input can be recorded and replayed.

In addition it is possible to inspect embedded native objects with the Spy tool and to insert verifications for these native objects. All of a native object's public properties can be accessed in test scripts.

View 2 Replies

Java :: Flash Is Java Needed To Use Red5

Jul 24, 2010

I'm working on a Flash project and someone recommended Red5 as a media streaming server. Do I need to know java to use build applications that use Red5 as their server?

View 2 Replies

Flash - Communication Between As2 And As3

Mar 16, 2010

I have this code under a button in 'as2.swf'

[code]...

and this swf is being loaded into as3 container called 'main.swf', but when i press it nothing happens and the file does not unload itself.

View 1 Replies

Professional :: Flash And ASP.net Communication

Mar 7, 2011

I recently made a mp3 player in Flash. I have an aspx page that has the mp3 player in it as well as a .net button which is disabled on page load. The .net page tells the audio player waht file to play and the player plays. What is supposed to happen next is when the audio player reaches the end of the file the button on the aspx page is supposed to become enabled. I am not sure how to do this [have Flash tell the aspx page that it is done playing].

View 2 Replies

Php :: Php-Flash Communication Over Sockets?

Nov 5, 2009

I am not any kind of network programming pro, but it happened that I have faced necessity to develop socket-server on php (no way for using Java) for flash multiplayer browser-game (standard features like locations, team battles, etc).

The main problem is that TCP is point-to-point protocol and it completely occupies given port.Of course it is possible to create some kind of queue, which will manage connections to the socket, but this solution doesn't seems to be the fittest one.

It seems to me that using interval of "fair" ports (from 2000 to 2200, for example) is more fitting solution, because one request may take a lot of time to execute and players won't be happy to wait in queue.

But how can I implement this "port inteval" strategy?The solutions that I see are:

launcing php-script per every port (he-he, 2 hundreds of launched scripts!);somehow forking the initial process to new processes (2 hundreds of processed? Not nice too), one for every port;additional while-loop, which listens all the ports (looks very bad);using threading or something like that (the problem is that php is single-threaded, as far as I know; pcntl?).But somehow I don't like any of them, or at least don't know how to implement them in the best possible way.

What is the best existing strategy to handle multiple requests from multiple users per time unit without delays, and how to implement this strategy in php? We have our own Debian-server, so it is possible to use any required php extensions.

For example, if we are trying to develop chat application, we need some sort of fixed (I mean persistent) connections for each user. For example, we have 80 users in chat, and then one of them posted a message, which server tries to handle and send to all other connected users, also putting an entry to the history file or something like that.

In this situation polling server for new messages every 10 seconds from each of 80 users is craziness, so the need in persistent connection gets obvious.But I don't know what is the best way to implement something like this, considering that not all requests are handled instanlty.

View 2 Replies

Communication Between Flash Files?

Jun 28, 2010

How can I make something like this: [URL]One flash triggers the other one.

View 1 Replies

Flash :: Communication Between Cocoa And SWF Using WebKit

Apr 24, 2010

I'm trying to implement a basic WebView containing a SWF file inside. The SWF file plays and apparently works fine. However I'd like to know if there's some way to retrieve an ActionScript variable from my Cocoa application.

View 1 Replies

C# :: Communication Between Flash And C# Using ExternalInterface Without TLF Text

Jun 15, 2010

I'm communicating from a flash application using a command like the following: ExternalInterface.call("hello", "world") This is handled on the C# end by something like:

[Code]...

The axFlash_FlashCal is called fine, as long as there is a textbox on screen that's set to use TLF text. (any textbox will do, no specific ID). Without the textbox the even will not fire. (Even though ExternalInterface.Avaliable is set to true) I've tried using CS4 and CS5 to publish, using both Flash 10 and 9 as output.

View 1 Replies

Html :: Flash And JavaScript Communication Within IE

Jul 21, 2010

I am having in issue with IE passing a string back into an swf using the EternalInterface class in Flash CS4.I have an swf with the following code: var externalString:String = ExternalInterface.call("IncomingJS")which is inside an event listener attached to an Event.ENTERFRAME and an if statement waiting for ExternalInterface.available. [code]I am able to successfully get the externalString variable and procceed with the rest of the AS3 script in Firefox, Safari and Chrome, but not in IE.If I add in an alert (stringFromHTML) before the return statement in the Javascript, I get the value of the stringFromHTML spammed, which looks like Flash is firing the function at the right rate[code]Unfortunately, the HTML code is actually working within a 3rd party HTML generator, and one of it's limitations is that I can only have a single line (with unlimited length) of html at a time.Are the other options (swfObject etc) able to run either with no line breaks in the code, or would I be asking for trouble with Javascript and the SWF to, instead of embedding the SWF directly, use something like an iFrame and refer to a 'proper' flash delpoyment html file?

View 3 Replies

ActionScript 3.0 :: Flash P2P - Communication Between More Than 2 Clients

May 24, 2011

I'm doing some experiments with Adobe Cirrus. I've managed to connect 2 clients to each other. But what I want now is the following:
I want client A to publish and clients B and C to play A's stream. I've tried to do this. A starts publishing, B and C create receiving NetStream based on A's nearID. Unfortunately only latest connected to A client can play A's stream.

View 1 Replies

Flash :: Communication Between Two Data Grids?

Sep 26, 2011

I am trying to make connection between two datagrid in two separate windows.

Until now, I am able to create a datagrid in one FLEX browser window but got stuck furthur.

On some click event in one of 1st datagrid row-column field value, (i.e itemRenderer in form of button), I want to open a new window (using some LocalConnection or ExternalInterface.call) to open another window with the part of the original data grid.

Which method should I use - LocalConnection or ExternalInterface.call ?

View 1 Replies

Flash :: AS2 Parent - Child Swf Communication

Feb 29, 2012

How do I do this? Inside the parent swf myVar value is set by query string value loaded in by swfobject var myVar = _level0.part; // i have the value 123 here ..all good so far

[Code]...

Always childLog.text is undefined :( - so how to access the value of myvar from the child?

View 1 Replies

ActionScript 3.0 :: Flash Communication Between Computers?

Oct 14, 2008

I am trying to play flash video on one computer and get a flash program (on another computer) to know what content is being played, so it can respond appropriately with related content.Has anyone got ideas on the best way to achieve this?I have tried using socket connections through a Java server with a policy file request, but after receiving delivery of the policy file as text over the socket, Flash won't reconnect to talk to the server. I can't figure out how to enable policy file logging either.

View 1 Replies

ActionScript 3.0 :: Php Mysql Flash Communication

Jul 5, 2009

I am having a huge problem and need a fix or at least to be pointed in the right direction quickly. I am working on a massive flash project for which I have quite a large deadline tomorrow. I have 8 movie clips on my stage, and each of these clips has a number of entities which need to be loaded and changed by data from a database. These entities are all dynamic text boxes bar one thing: the name of the clip, the id of the clip, its internal colour, a question, and an answer to this question. I have already created a table using phpMyAdmin that is laid out like this:

name - number - colour - question - comment There are currently 2 rows in this table but there will eventually be 8 minimum as I am still largely in test mode. I found a tutorial for as2 (bare with me ), which shows me how to take a single source of data from a database and then parsing the xml generated inside of actionscript and add each item to a list. However, taking into account that I am a complete newbie when it comes to xml and php and mysql, I am very confused as to how I could access all these details using php, using the below php and as code as a template:

[Code]...

View 1 Replies

ActionScript 2.0 :: Communication Between JavaScript And Flash Possible?

Feb 27, 2007

So flash invokes javascript functions using fscommand. Javascript can invoke flash commands using the ExternalInterface class . Is there any other way that javascript can invoke flash commands???

View 2 Replies

ActionScript 2.0 :: Better Way To Protect Php Flash Communication?

Jun 25, 2007

I have a flash interface that uses php to write/read vars.So if someone wants to hack our website all he has to do is look at the code and send some vars manually to the .php file. I've seen some encryption apps that claim to fully protect your swf but at the same time there are those who claim to decompile protected ones.Is there any better way to protect the php>flash communication?

View 2 Replies

ActionScript 3.0 :: Html To Flash Communication?

Apr 18, 2009

i just need to pass 1 parameter from html to flash.i have used both ways. in the movie url or in the embeded obj . html example >>>

[Code]...

View 1 Replies

IDE :: Flash Pages And Communication Handling

Apr 28, 2009

I am having mainly 2 problems in Flash for some time and I need some clarifications on them.

1. Handling pages.
How do I handle working with pages in Flash? Do I create a frame for each page and place the content of the page in that frame and when needing to go to a page I simply go to it's frame? Or do I use ActionScript to put and remove content from the stage and create every page in this way? What I mean by this is: if a page has a menu and a picture, I use ActionScript to put the menu and the picture there. If the next page has some text and a button, I use ActionScript to remove the menu and the picture from the last page and put the text and the button from the new page.

The first method seems simpler but that means that if the page has some content that needs to be loaded (a picture, for example), this content will need to be loaded every single time the page is opened.

The second method requires more work but is it more efficient ? When I remove the content from the page, do I move it to a negative x and y so that it cannot be seen or do I remove it completely and just load it again the next time the page is opened?

2. Handling a flow communication with PHP.
I constantly need to communicate back and forth with PHP. I use a LoadVars variable to send data to PHP (using "POST") and I use an XML variable to retrieve data from PHP (I use the "sendAndLoad" method). The data sent by PHP is in an XML structure. The problem here is that I need to have different channels working. I need to receive several different types of data. Do I create a set of LoadVars and XML variables for each type of data that I need to receive or do I simply use only the one set and use an ID variable to specify with which type of data I am working at the moment ?

View 1 Replies

ActionScript 3.0 :: Flash Creating A Two Way Communication?

Mar 25, 2012

I'm trying to create a two communication between AS3 and PHP. So far I was able only to send data from AS3 to PHP using URLVaribles.

1. How do I proccess data sent from PHP to AS3 on the AS side?

View 1 Replies

ActionScript 3.0 :: Html To Flash Communication Impossible?

Apr 18, 2009

i just need to pass 1 parameter from html to flash.i have used both ways. in the movie url or in the embeded obj . html example >>>

<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'movie', 'aidonitsa',

[code].....

View 3 Replies







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