I have a flash application written in action script 2, and at one point it makes multiple back-to-back JavaScript requests using getUrl().
They have to be done as separate requests because IE had a limit on the length of a single request, and fails silently if that limit is passed.
When ever this happens, if the user has their sound turned on there is a barrage of "click click click".
Found a related solution here: http://www.julienlecomte.net/blog/2007/11/30/ In summary, instead of this:
iframe.src = "...";
You do this:
var newIFrame = document.createElement("iframe");
newIFrame.src = "...";
iframe.parentNode.replaceChild(newIframe, iframe);
Would it be possible to load the external objects using DOM methods like this? Isn't there a flash to JavaScript bridge, so you could trigger some JS function from within your Flash script? It's kind of a kludge, but it might work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With