Sending variables to from javascript to flash during runtime

I have done lots of communication between flash, javascript and php but never this. I need to send variables to flash when it is already playing. I know that it is possible to send variables to flash right before loading flash and flash can load variables during runtime and flash can send variables but can i send variables to flash? I don’t remember if i have done this, but one thing is for sure that i don’t remember thus i don’t know if it’s possible.

ExternalInterface.addCallBack to get variables from javascript into actionscript
ExternalInterface.call to send variables from actionscript to javascript

Check the Help files on both of the above or see an additional example here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15683

Exactly the thing i needed! Thank you!