<html>
<head>
<title>file upload</title>
</head>
<body>
<button onclick="CallFlashFun();">Call AS Function!</button><br/>
<br/>
<div style="width: 290px; height: 100px; overflow: hidden;">
<embed id="flashObject" width="290" height="100" classid="clsid

27CDB6E-AE6D-11cf-96B8-444553540000"
type="application/x-shockwave-flash">
<param name="movie" value="./hamlen.swf" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
<embed name="flashObject" width="100%" height="100%" wmode="transparent" allowScriptAccess="always" width="290" height="100" type="application/x-shockwave-flash" src="./hamlen.swf"/>
</embed>
</div>
<script type="text/javascript">
(function(){
var AScallbacks = [];
registerAScallback = function(id){
alert("id is "+id);
var e = document.getElementById(id);
alert("e is "+e);
if (!e) { alert('failed to find '+id); return; }
//if (!('attest_callback' in e)) { alert(id+' has no attest_callback'); return; }
AScallbacks[id] = e.attest_callback;
alert("AScallbacks[id]"+AScallbacks[id]);
e.attest_callback = null;
}
}
})();
</script>
</body>
</html>