ActionScript code:
import flash.external.ExternalInterface;
var process = ExternalInterface.addCallback("process", this, Process);
function Process(){
avatar.process_loop.gotoAndPlay("loop");
}
JavaScript code:
<div id="avatar"></div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("imgs/avatar.swf", "avatar", "170", "170", "9.0.0", "expressInstall.swf");
swfobject.process();
</script>
The swf loads, I see it on the page, just the connection or the calling of the method is not working.
By the way everything is working fine on the swf, that function does in fact perform that "loop." Is there anything wrong with my code?
Thanks!