This is not a blog.

So sue me!


I don't want to keep explaining. It's formatted like this so that code will fit without wrapping. I don't care if you think it's ugly.

Blog Archive

Saturday, January 12, 2008

Passing values between Flash AS2 and JSP/HTML

We often use a Flash movie embedded in a JSP page to do something like make a nice dynamic report with media server features, for example.

To pass information to the Flash movie, there are several options:
1. Pass it in the movie load invocation: thing.swf?param1=value1 etc
2. Pick up the values you want from Javascript functions on the host page.
3. Collect the values you want from the server directly - send a request for xml data (for example) from the Flash movie, without reloading the page.

To pass information back out of the Flash movie:
Call a page Javascript function to set a value in the form
Send a post of data back to the server directly out of Flash.

(In preparation)

0 comments:

Contributors