How to use Adobe Flash with Java?

Discussion about everything. New games, 3d math, development tips...
Post Reply
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

How to use Adobe Flash with Java?

Post by MasterGod »

My friend is doing a project (game) in Java and he asked me how to use flash with it?
Anyone?

Thanks.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Not a clue... is it really necessary though? I would have thoughts that swing could provide enough flash sort of stuff.. (not that i know anything much about flash)
Image Image Image
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Does any body else maybe knows how to use Flash in Java?

If not I guess I'll advice him to do some animated sprite class on his own :P
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
jam
Posts: 409
Joined: Fri Nov 04, 2005 3:52 am

Post by jam »

Not sure if this article has what you seek.

By Nancy Hickman For an interface, Flash can be a great option; however, for the backend, it's not an option to replace business logic, query management, and security. For robust performance and enterprise capabilities, you need Java. Both Flash and Java promote themselves as a cross-device, cross platform solutions, so they are natural partners. Connecting the two is often up to the Java developer, and to start, you need to know your options on how to get across to Flash.

First, here's a bit about Flash. For application developers, Flash offers a scripting EMCA-based language called ActionScript and a palette of components. The components aren't as robust as Swing, but they cover the basics for common interfaces. Some Flash components are data-aware, and more are offered in the newest version, Flash MX 2004. Developers can write functions and attach them to component events, much like the listener model in Java.

In Flash MX 2004, for the first time, Macromedia offers two versions of their Flash development tool: Flash and Flash Professional. The newest Flash 7 player runs Flash movies developed with either tool. Flash Professional provides extras such as data and web service binding, video integration improvements, and device emulators. Flash Professional also offers a new metaphor for designers in addition to its animation frame-based timeline: form or screen based design, which will be helpful to application designers.

Both Flash versions can call Java code contained in JSPs, servlets, beans, or published web services. By default, the Java code must be in the same subdomain as the Flash movie, but with the new version of Flash, you can supply an xml policy file to allow other locations. Of course, the backend Java code can contact other domains...(link)
system-independent, adj.:
Works equally poorly on all systems.
-- unknown
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Thanks a lot!
I'll show him that and see what he says..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Post Reply