Java Servlets and Flash MX
First, sorry for my English.
I'm working in a development of a web services aplication that's made in JAVA, access to ORACLE DB.
Well, when a Users log, i get a Session Var, later i need to pass this session var to a Flash MX movie to validate some datas.
How can i do this ?
(pass the session vars to flash mx)
Thanks you very much for any help from Argentina !!!
July 14th, 2003, 05:42 PM
If you have the session ID by the time you display the Flash App, you can specify the session ID using the FlashVars parameter in the OBJECT and EMBED tags used to display your Flash movie. The arguments to the FlashVars parameter have to be URL-encoded. When the movie is loaded, each of these becomes a global variable.
For example (I'm leaving out all the other stuff from these tags):
<!-- etc. -->
<PARAM NAME="FlashVars" VALUE="sessionID=56">
So if you're currently using an HTML page to display the Flash movie, use a JSP page, and in the JSP code write the FlashVars so that they include the session ID.