ExternalInterface and SWFObject Static

Hello everyone,

I’m having issues getting ExternalInterface to work with the SWFObject static publishing method.

Here is my inclusion of the Flash in my HTML:


<script type="text/javascript">
			swfobject.registerObject("AudioPlayer", "10.0.45", "expressInstall.swf");
		</script>
		<div id="audio">
			<object id="AudioPlayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="80">
				<param name="AudioPlayer" value="flash/AudioPlayer.swf" />
				<!--[if !IE]>-->
				<object type="application/x-shockwave-flash" data="flash/AudioPlayer.swf" width="100%" height="80">
				<!--<![endif]-->
				  <p>You must have Flash Player version 10 to use this.</p>
				<!--[if !IE]>-->
				</object>
				<!--<![endif]-->
			</object>
		</div>

(I’m sure the JS is being included properly).

In my ActionScript, I have a number of ExternalInterface.addCallbacks. One of them is “getPosition()”.

Now, I’ve tried all manner of attempts to call these, but I can’t seem to get it to work. I’ve tried a dozen different iterations, just about every sample I can find.

Any ideas?

Thanks.