I'm not familiar with the expression back-to-back call. Can you elaborate on what those calls are supposed to do?
If you mean that you're calling JS functions from AS and you have to use multiple getUrl
calls because you want to communicate more information than IE can handle in one request (in which you are hiding your JS calls) then why don't you use ExternalInterface
? If I'm not mistaken this feature was in AS2 and shouldn't produce any noise :-).
JavaScript:
<script language="JavaScript">
function alertUser(message) {
alert(message);
return true;
}
</script>
ActionScript:
import flash.external.ExternalInterface;
ExternalInterface.call("alertUser", "hello");
I'm assuming that the problem is in the amount of information you want to communicate to the JS. Otherwise you could just write JS wrapper function and call that using following:
getURL("javascript:myWrapper();");
And you would get only one click.