Here are the link for those tuts
http://www.flashkit.com/tutorials/In...77/index.shtml
http://www.flashkit.com/tutorials/In...84/index.shtml
They both in Tut section, page 5, at bottom of the page.

for passing a var to a user defined function in Flash, I have not done it, but this is what I would do
Code:
function userDefined(){
   var myVar = _root.var;
   // codes to be execute for that function
}
in your HTML, you will pass a variable to _root.var in Flash. Your flash file in HTML named FlashTest. and here your JVscript
Code:
<SCRIPT LANGUAGE='JavaScript'>
<!--
	function talkToFlash(myValue) {
		window.document.FlashTest.SetVariable("myVar", myValue);
		window.document.FlashTest.onFocus;
	}
-->

</SCRIPT>
Using somekind of eventHandler to triger that function, then using window.document.FlashTest.onFocus; shift focus to flash movie (for somereason, flash movie won't update variable, unless focus is on it)

This is what I learn from those 2 tuts.

Good luck