- Code: Select all
<script type="text/javascript">
jQuery(document).ready(function(){
$(document).mousemove(function(e){
var swf = swfobject.getObjectById( "game" );
if ( swf != null && swf.setBrowserMousePosition != null ) {
swf.setBrowserMousePosition( e.pageX, e.pageY );
}
});
})
</script>
{% swf src='AA2.swf' width=760 height=635 id='game' rootUrl= %}
This works fine when I am testing on my own personal server, viewing the page at its original URL. But when I upload to GameFS and try to view on Facebook, Firebug shows this error:
uncaught exception: Error in Actionscript. Use a try/catch block to find error.
Google turned up some similar problems, a few of which seemed to be caused by some sort of crossdomain or security problem. Does this ring a bell with anyone? Any idea how GameFS could be interfering with ExternalInterface?