Two Laptop Bag*
The moose likes Java in General and the fly likes Java Flash Integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Flash Integration" Watch "Java Flash Integration" New topic
Author

Java Flash Integration

Vu Pham
Ranch Hand

Joined: May 28, 2005
Posts: 100
Hi all,

I'm going to develop an application that has Flash in UI layer and Java in Business layer. Do you know how we communicate between them? Or do you know any open source supporting that one?

Thanks,
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
I fairly certain Flash can communicate via HTTP. So if the Java code is a Java web app, then you can use HTTP.


Ping & DNS - my free Android networking tools app
Vu Pham
Ranch Hand

Joined: May 28, 2005
Posts: 100
No... I'm developing a desktop application :-)
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10425
    
    8

Originally posted by Vu Pham:
No... I'm developing a desktop application :-)


You can use a desktop application and still make HTTP calls.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42031
    
  64
Wouldn't it be easier to just use one or the other? Having to run simultaneous Flash and Java processes seems like a considerable overhead (and I'm saying that without knowing if it's even possible to integrate them).
Lenkwe Makhubela
Greenhorn

Joined: Oct 17, 2008
Posts: 4
Hi, Vu Pham!

You can integrate Flash by using the Cairngorm Flex framework. Have a look at the following link for further details:
opensource.adobe.com/wiki/display/cairngorm/

Thanks,
Lenkwe
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
What you want to look at is Blaze Data Services, also known as BlazeDS.

It requires that you duplicate your model/value objects from Java in ActionScript, and allows object graphs to be passed in binary via AMF.


Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Flash Integration