Flash and Javascrip IE error

Hi i have a html document with a javascript function passing a variable to an swf,
it works fine in firefox but as soon as i try it on IE i get object doesnt support this property or method.

the html page is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="swfobject.js" ></script>
<script language="javascript" type="text/javascript">


	
	function callAS3(var2pass)
	{
		if(navigator.appName.indexOf("Microsoft") != -1)
		{
			jsAS3.calledFromJs3(var2pass);
		}
		else
		{
			window.document.jsAS3.calledFromJs3(var2pass);
		}
	}
</script>
</head>

<body>


<div id="flashcontent_js">	
	</div>
	    <script type="text/javascript">
		// <![CDATA[
		
		var so = new SWFObject("jsAs3.swf", "jsAS3", "300", "200", "9", "#FFFFFF");
		so.addParam("menu","false");
		so.write("flashcontent_js");
		
		// ]]>
		</script>
        <form name="theForm">
            <input type="text" size="10" value="Insert Number up to 500" name="theText"></input>
            <input type="button"
            value="Click Here"onclick="callAS3(document.theForm.theText.value)">
        </form>
</body>
</html>

and the As3 is:

package
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.events.MouseEvent;
	import flash.external.*;
	import fl.transitions.*;
 	import fl.transitions.easing.*;
	
	
	public class Jsfunction extends MovieClip
	{
		
		
		
		
		public function Jsfunction():void
		{
		    ExternalInterface.addCallback("calledFromJs", calledFromJs);
		}

		public function calledFromJs(theVar):void
		{
			var tf = new TextField();
			//addChild(tf);
			
			tf.text = theVar;
			var movem:uint;
			movem = theVar;
			movem = movem/500*180;
			var myTweenRotation:Tween = new Tween(ticker, "rotation", Strong.easeOut, 0, movem, 3, true);
			ticker.gotoAndPlay("2");
		}
		
		
		
	}
}

any suggestions? thanks