I need to be able to load up different flash files when users click an image in my gallary. My current solution works perfectly fine in Firefox, but Chrome and IE are not working and it isn’t giving any error messages.
I use jquery to change the embed source
$('#flash embed').attr('src', msg.d);
<object id="flash">
<embed src="" type="application/x-shockwave-flash" width="800" height="600"></embed>
</object>
I found a few solutions. I ended up using the second one.
Method 1:
I insert the entire object tab with embed dynamically. That seems to fix flash loading issues in Chrome and IE.
Method 2:
I found a jquery flashloader plugin that is simple to use and works well.
http://jquery.lukelutman.com/plugins/flash/
Method 3
Use jquery swfObject
http://jquery.thewikies.com/swfobject/examples