Product Information > JADE Encyclopaedia of Classes – Volume 3 > Chapter 2 - Window Classes > stop

stop

stop();

The stop method of the MultiMedia class stops playing or recording of the medium associated with the control. (See also the MultiMedia class pause method.)

The method in the following example shows the use of the stop method.

stop_click(btn: Button input) updating;
begin
    if cd.getMode = MultiMedia.Mode_Playing then
        cd.stop;
        cd.position := cd.getStartPosition;
    endif;
end;

The stop method of the Picture class causes the current animation process started by the Picture class play method to be terminated. If the play method is not in effect, this method does nothing.

You can use the play and stop methods with an animated .gif file. The .gif file then starts playing automatically when the control is first painted, unless the stop method has been called. After calling the stop method for an animated .gif file, you must then call the play method to start or continue the animation.

When running the JADE application in thin client mode, this method executes on the presentation client by default.