If it is stored in the browser, then this is not an OpenACS question.
If it is stored on the server, then do set it from flash the same way you set it from anywhere else - by sending a http request to the server, which hits a page that sets the variable.