I have a swf that loads an flv this swf has a transparent button that provides onclick functionality which passes back to Javascript two variables one a url and one a name. In Firefox it works great however in IE I get a Javascript error but no ideas where this comes from.
IE7, Windows XP Firefox 2.0.0.1
Synopsis of what we are accomplishing: 1. Page loads for an item detail page in order to view the item see a price and add the item to a cart. 2. On this page there is a larger image with 3 small images on it's right side which when clicked are rotated to the larger position and the larger image to the clicked upon location. Recently the client wants us to add a flash movie in place of one of the smaller images. 3. When the flash is clicked on it calls a Javascript function passing two variables and is rotated the same as the images have been doing. This works in Firefox. The function removes the original object/embed/img tags and creates new one's where the flash will show up after being clicked. 4. In IE the page loads using SWFObject but if you click on it you get a Script Error 5. If I don't use SWFObject the onclick works but after about 2 or 3 clicks (random) it crashes IE
so your javascript is replacing the movie that you are clicking on?
that could be what is causing issues. most browsers handle loading plugins very poorly, and if you replace them with javascript sometimes you end up with memory issues - leaks or sometimes crashes (as you are seeing).
you might try a different approach, maybe using an iframe to load in different swfs? this way a new page will be loaded, cuasing the browser to unload and load a new plugin object 'properly'.
or you could post a link to your page, or at least tell us what the javascript error is if you want to try and troubleshoot your current setup, but i really recommend using an iframe approach instead.