Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other AnythingSlider – Restart flash movie on show Re: AnythingSlider – Restart flash movie on show

#116697
Mottie
Member

Which flash movie player are you using? Every player has a slightly different API so I’d need to see it to be able to give you a full answer (pausing the movie when a slide is manually changed, etc).

But you should be able to just use jQuery to target the flash movie:

onSlideBegin: function (slider) {
var flashMovie = slider.$currentPage.find(‘object,embed’)[0];
// stop flash movie on previous slide
flashMovie.Pause(); // just guessing that Pause is correct here
},
onSlideComplete: function (slider) {
var flashMovie = slider.$currentPage.find(‘object,embed’)[0];
flashMovie.Rewind();
flashMovie.Play();
}

This code “should” work in IE, so if it doesn’t just post a message here and I’ll dig into it a bit more.