Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anyway to turn off the url "cliking" sound in IE using html, javascript, or flash?

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".

like image 888
Anthony Avatar asked Apr 13 '10 10:04

Anthony


1 Answers

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.

like image 146
Barnabas Kendall Avatar answered Oct 22 '22 17:10

Barnabas Kendall