To keep things clear, Flash is a client side technology, and in this context, Java will refer to server side tech.
You could use flash to display graph data on the client machine. You could set up a servlet to provide data to the Flash movie. The last couple of versions of Flash have had reasonable support for XML, so it would simply be a case of building some appropriate data.
- Flash movie loads in client browser - Flash movie requests URL to get data from - Servlet/Whatever prepares data and sends it to the movie - Flash movie renders it
It seems that there are some graphing components available for Flash, so the amout of ActionScript you would have to write would probably be fairly minimal.
There is an article here about graphing with Flash, and in particular, getting data from a server for the graph. They just grab the XML from a file, but you could easily grab it from a servlet.
Hope this helps.
I may have misread your question. If you actually want to use Java to display the charts, then you probably want to look at something like JFreeChart. It gives you the ability to generate charts as images, and if I rememeber correctly, there is some kind of applet example for interactive charts. I may be wrong about the latter though. [ March 07, 2005: Message edited by: Horatio Westock ]
posted 15 years ago
Hi Horatio Thanks for the help, so i guess i'll be using servlet and http request and responces to get and send the data. Best, Omar