Home Question Writer Forum
A support forum for Question Writer quiz software.


SWF Movie that does not Loop or Autostart

We like the way QW includes images and swf files with questions. We want to use the SWF as a short movie. It works perfectly except it starts immediately and (worse) it loops.

is there a setting somewhere in the config files to make autostart=false and loop=false? We realize that for many applications the autostart and looping is desireable. Just not in the case of the movie clips.

The ideal behavior would be for the movie to start when the onmouseover expands the thumbnail and stops when it is reduced onmouseoff.

Recommendations on how we might achieve this?

MichaelF
April 19, 2010 05:19PM


Hi Michael,

The quizzes are designed to autostart, but not to loop. If you're seeing the file loop then something is going wrong. Can you send me the output .swf and I'll check into it.

Regarding the autostart, it should be possible to set the 'Loading' SWF to use. This can include code that defines the starting behaviour, so it might include actionscript to wait for a mouseover before proceeding to show the rest of the quiz.

Alexander
April 20, 2010 09:18AM


Thanks. The looping is cured. It was a setting on the tool used to make the swf video. My mistake.

RE: controlling Autostart >>it should be possible to set the 'Loading' SWF to use

I am not sure I understand this. Is this making a second SWF to control the movie? If so, I get the principle but can't see instructors wanting to code up a new file for each movie. Or is there a loading swf I don't see in the questionwriter folder?

I'd be interested in pursuing this at a paid developer level if you think there is a way to achieve the goal of onmouseover=play movie + onmouseoff=stop movie. I am guessing this would be handy for starting and stopping audio files too.

MichaelF
April 20, 2010 10:20PM


Hi Michael,

The loader SWF is shown at the start and end of the movie. If it contains any code, then that code is executed.

It should be possible to create a loader SWF with code something like

this.stop();
if(mouseover){
this.start();
}

This code would then halt the movie on the loader screen until there was a mouse over event.

The loader can be individually applied to each test, or can be embedded as part of a theme, so that any test using that theme would have that loader.

This would just solve part of your problem though - pausing the movie at the start. I don't think there would be any way to pause the movie, or stop audio/video on a mouse exit event.

Alexander McCabe
April 21, 2010 07:21AM




Your Name:  (Required - Can be a nickname)
Your Email:  (Optional - Won't appear online)
Subject: (Required)
Anti-Spam: Complete this phrase.
"One small step for man; one giant leap for

"