[Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread Alain Rousseau
Hi All,
 
we're at a point in a project where we need good communication between Flash
and Java. ATM we are using SWT Flash and it's FSCommand handling. I would
like to go a bit further to be able to send complex objects via
ExternalInterface. I know there is Javaflash (HYPERLINK
http://www.osflash.org/javaflash/http://www.osflash.org/javaflash/) out
there but the official website is so slow and it seems to be still in beta. 
 
Basically, we are using Flash as GUI for a Java backend. We'll need to send
back and forth some complex objects. We are currently exploring the
possiblity of using XML to send values. 
 
What solution would be the best ? Meaning which one gets the fastest
response, stability and extendability.
 
Are there any other options or howto's than FSCommand ? any link or tips are
welcome. Or is Javaflash stable enough for use in a commercial App ?
 
Thanks in advance !
 
Alain

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.2/785 - Release Date: 2007-05-02
14:16
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread T. Michael Keesey

On 5/3/07, Alain Rousseau [EMAIL PROTECTED] wrote:

Hi All,

we're at a point in a project where we need good communication between Flash
and Java. ATM we are using SWT Flash and it's FSCommand handling. I would
like to go a bit further to be able to send complex objects via
ExternalInterface. I know there is Javaflash (HYPERLINK
http://www.osflash.org/javaflash/http://www.osflash.org/javaflash/) out
there but the official website is so slow and it seems to be still in beta.

Basically, we are using Flash as GUI for a Java backend. We'll need to send
back and forth some complex objects. We are currently exploring the
possiblity of using XML to send values.


I'm confused. Communicating with a back end would be better done with
mx.rpc classes or something like that, no? ExternalInterface is
usually for communicating with JavaScript, not Java.

Which version of Flash are you using?
--
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread Robert Brisita
I'm not sure if this will help you but on my current project I have a 
Oracle / Java back end and I created some servlets to process and return 
XML to the Flash client for processing.  Although for this project I am 
using AS3,
what I use is equivalent to LoadVars.  Servlets execute within the Web 
server’s process space and they persist between calls so they can keep 
state information as well.


If anyone has anything to add or another suggestion I would be 
interested to know.


Ciao,
Rob.

Alain Rousseau wrote:

Hi All,
 
we're at a point in a project where we need good communication between Flash

and Java. ATM we are using SWT Flash and it's FSCommand handling. I would
like to go a bit further to be able to send complex objects via
ExternalInterface. I know there is Javaflash (HYPERLINK
http://www.osflash.org/javaflash/http://www.osflash.org/javaflash/) out
there but the official website is so slow and it seems to be still in beta. 
 
Basically, we are using Flash as GUI for a Java backend. We'll need to send

back and forth some complex objects. We are currently exploring the
possiblity of using XML to send values. 
 
What solution would be the best ? Meaning which one gets the fastest

response, stability and extendability.
 
Are there any other options or howto's than FSCommand ? any link or tips are

welcome. Or is Javaflash stable enough for use in a commercial App ?
 
Thanks in advance !
 
Alain


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.2/785 - Release Date: 2007-05-02

14:16
 
___

Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread Chris Mitchell
Java 6 has a new Scripting engine /Script manager so you could use External 
interface and write some sort of javascript gateway to bridge Flash and Java -- 
maybe. Just a thought... 
   
  http://java.sun.com/javase/6/docs/api/javax/script/package-summary.html 

T. Michael Keesey [EMAIL PROTECTED] wrote:
  On 5/3/07, Alain Rousseau wrote:
 Hi All,

 we're at a point in a project where we need good communication between Flash
 and Java. ATM we are using SWT Flash and it's FSCommand handling. I would
 like to go a bit further to be able to send complex objects via
 ExternalInterface. I know there is Javaflash (HYPERLINK
 http://www.osflash.org/javaflash/http://www.osflash.org/javaflash/) out
 there but the official website is so slow and it seems to be still in beta.

 Basically, we are using Flash as GUI for a Java backend. We'll need to send
 back and forth some complex objects. We are currently exploring the
 possiblity of using XML to send values.

I'm confused. Communicating with a back end would be better done with
mx.rpc classes or something like that, no? ExternalInterface is
usually for communicating with JavaScript, not Java.

Which version of Flash are you using?
-- 
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread David Ngo
If you're looking for best/fastest communication between Flash and Java to
send complex data, I would suggest using an AMF protocol such as OpenAMF.
The other two options are XML or WebServices. AMF is faster because it's all
binary and you use Java VO's (converted to Flash Objects with the same data
type/name) to send data back and forth.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alain
Rousseau
Sent: Thursday, May 03, 2007 4:52 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash / Java Communication with ExternalInterface

Hi All,
 
we're at a point in a project where we need good communication between Flash
and Java. ATM we are using SWT Flash and it's FSCommand handling. I would
like to go a bit further to be able to send complex objects via
ExternalInterface. I know there is Javaflash (HYPERLINK
http://www.osflash.org/javaflash/http://www.osflash.org/javaflash/) out
there but the official website is so slow and it seems to be still in beta. 
 
Basically, we are using Flash as GUI for a Java backend. We'll need to send
back and forth some complex objects. We are currently exploring the
possiblity of using XML to send values. 
 
What solution would be the best ? Meaning which one gets the fastest
response, stability and extendability.
 
Are there any other options or howto's than FSCommand ? any link or tips are
welcome. Or is Javaflash stable enough for use in a commercial App ?
 
Thanks in advance !
 
Alain

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.6.2/785 - Release Date: 2007-05-02
14:16
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread Alain Rousseau

Currently we're using Flash 8, but switching to Flex is also an option.
The thing is that we are building a Java Desktop Application, forgot to 
mention that,  it's not a web application.


FYI, ExternalInterface can be used with any other platform if the proper 
hooks are in place. It can be done with JavaScript, C# and Java (with 
JavaFlash)


As I said JavaFlash is still in beta and I'm looking for other options, 
but not web options as Robert proposed. Thanks for the advice tho !


We have FLash running inside a widget created by SWT Flash. Inside it we 
can use a flashobject widget with code looking like this :


  flashobject.setVariable(String name, String value)

wich is the basic setVariable sending only strings. We need to be able 
to call Flash Methods as well, so we would like to do
  
   flashobject.FlashMethodCall(args)


So far the only thing we can do is use FSCommand and pass variables as 
strings ... If it's the only option, we'll go back to the old parse the 
string to extract your data way.

Otherwise any other option is welcome ! :)

Thanks !



T. Michael Keesey wrote:

On 5/3/07, Alain Rousseau [EMAIL PROTECTED] wrote:

Hi All,

we're at a point in a project where we need good communication 
between Flash
and Java. ATM we are using SWT Flash and it's FSCommand handling. I 
would

like to go a bit further to be able to send complex objects via
ExternalInterface. I know there is Javaflash (HYPERLINK
http://www.osflash.org/javaflash/http://www.osflash.org/javaflash/) 
out
there but the official website is so slow and it seems to be still in 
beta.


Basically, we are using Flash as GUI for a Java backend. We'll need 
to send

back and forth some complex objects. We are currently exploring the
possiblity of using XML to send values.


I'm confused. Communicating with a back end would be better done with
mx.rpc classes or something like that, no? ExternalInterface is
usually for communicating with JavaScript, not Java.

Which version of Flash are you using?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread Muzak
Is there any specific reason why you're integrating Flash in a Java app?
Meaning, are you just using the Java app as a wrapper for the Flash app?

If all you want to do is communicate with a Java backend, Flash by itself will 
do just fine.
If you need stuff like file I/O, there's Flash tools for that such as MDM Zinc, 
SWHX, Apollo (alpha)..
http://haxe.org/swhx
http://www.multidmedia.com/software/zinc/
http://labs.adobe.com/technologies/apollo/

For Flash to server communication there's all kinds of options.

regards,
Muzak

- Original Message - 
From: Alain Rousseau [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, May 03, 2007 10:51 PM
Subject: [Flashcoders] Flash / Java Communication with ExternalInterface


 Hi All,

 we're at a point in a project where we need good communication between Flash
 and Java. ATM we are using SWT Flash and it's FSCommand handling. I would
 like to go a bit further to be able to send complex objects via
 ExternalInterface. I know there is Javaflash (HYPERLINK
 http://www.osflash.org/javaflash/http://www.osflash.org/javaflash/) out
 there but the official website is so slow and it seems to be still in beta.

 Basically, we are using Flash as GUI for a Java backend. We'll need to send
 back and forth some complex objects. We are currently exploring the
 possiblity of using XML to send values.

 What solution would be the best ? Meaning which one gets the fastest
 response, stability and extendability.

 Are there any other options or howto's than FSCommand ? any link or tips are
 welcome. Or is Javaflash stable enough for use in a commercial App ?

 Thanks in advance !

 Alain


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread Alain Rousseau

Thanks Muzak,

We'll look into that. As for your other post, we'll be looking into 
Apollo in the near future but right now we are stuck with Java as our 
App is pretty much completed.


Thanks all for your answers, it will give us some food for thought.


Alain

Muzak wrote:

In that case, look into JSON.

http://www.json.org/

regards,
Muzak

- Original Message - 
From: Alain Rousseau [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Friday, May 04, 2007 12:40 AM
Subject: Re: [Flashcoders] Flash / Java Communication with ExternalInterface


  

Currently we're using Flash 8, but switching to Flex is also an option.
The thing is that we are building a Java Desktop Application, forgot to mention 
that,  it's not a web application.

FYI, ExternalInterface can be used with any other platform if the proper hooks are in place. It can be done with JavaScript, C# 
and Java (with JavaFlash)


As I said JavaFlash is still in beta and I'm looking for other options, but not web options as Robert proposed. Thanks for the 
advice tho !


We have FLash running inside a widget created by SWT Flash. Inside it we can use a flashobject widget with code looking like this 
:


  flashobject.setVariable(String name, String value)

wich is the basic setVariable sending only strings. We need to be able to call 
Flash Methods as well, so we would like to do
  flashobject.FlashMethodCall(args)

So far the only thing we can do is use FSCommand and pass variables as strings ... If it's the only option, we'll go back to the 
old parse the string to extract your data way.

Otherwise any other option is welcome ! :)

Thanks !




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash / Java Communication with ExternalInterface

2007-05-03 Thread David Ngo
If it's a desktop app, then I would probably suggest using Apollo.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Thursday, May 03, 2007 7:19 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash / Java Communication with ExternalInterface

In that case, look into JSON.

http://www.json.org/

regards,
Muzak

- Original Message - 
From: Alain Rousseau [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Friday, May 04, 2007 12:40 AM
Subject: Re: [Flashcoders] Flash / Java Communication with ExternalInterface


 Currently we're using Flash 8, but switching to Flex is also an option.
 The thing is that we are building a Java Desktop Application, forgot to
mention that,  it's not a web application.

 FYI, ExternalInterface can be used with any other platform if the proper
hooks are in place. It can be done with JavaScript, C# 
 and Java (with JavaFlash)

 As I said JavaFlash is still in beta and I'm looking for other options,
but not web options as Robert proposed. Thanks for the 
 advice tho !

 We have FLash running inside a widget created by SWT Flash. Inside it we
can use a flashobject widget with code looking like this 
 :

   flashobject.setVariable(String name, String value)

 wich is the basic setVariable sending only strings. We need to be able to
call Flash Methods as well, so we would like to do
   flashobject.FlashMethodCall(args)

 So far the only thing we can do is use FSCommand and pass variables as
strings ... If it's the only option, we'll go back to the 
 old parse the string to extract your data way.
 Otherwise any other option is welcome ! :)

 Thanks !


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com