mootools/mootools-core — Issue #2224: swiff - flash autoplay stoped working in IE (after page refresh) in version 1.3
Author: ibolmo
Created: 2012-01-19 08:39:31+00:00
State: open
Labels: bug, regression

(from [Lighthouse](https://mootools.lighthouseapp.com/projects/2706/tickets/1145-swiff-flash-autoplay-stoped-working-in-ie-after-page-refresh-in-version-13))

Hi all,

When I open page for the first time it's playing, but if I refresh there is no sound from flash. This was working in mootools version 1.2 and stopped working in 1.3.

I checked the source and here are the lines causing it:

if (Browser.ie){
properties.classid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
params.movie = path;
} else {
properties.type = 'application/x-shockwave-flash';

}
properties.data = path;
and here is how it was in 1.2 (and was working fine):

if (Browser.Engine.trident){
properties.classid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
params.movie = path;
} else {
properties.type = 'application/x-shockwave-flash';
properties.data = path;
}
So if I move 'properties.data = path;' to the else block it is working good again.

thanks.