User Guide

552 Chapter 12: Methods
stop() (Flash)
Usage
-- Lingo syntax
spriteObjRef.stop()
// JavaScript syntax
spriteObjRef.stop();
Description
Flash command; stops a Flash movie sprite that is playing in the current frame.
Parameters
None.
Example
This frame script stops the Flash movie sprites playing in channels 5 through 10:
-- Lingo syntax
on enterFrame
repeat with i = 5 to 10
sprite(i).stop()
end repeat
end
// JavaScript syntax
function enterFrame() {
var i = 5;
while (i < 11) {
sprite(i).stop();
i++;
}
}
See also
hold()
stop() (RealMedia, SWA, Windows Media)
Usage
-- Lingo syntax
windowsMediaObjRef.stop()
realMediaObjRef.stop()
// JavaScript syntax
windowsMediaObjRef.stop();
realMediaObjRef.stop();
Description
Windows Media or RealMedia cast member or sprite method. Stops playback of a Windows
Media or RealMedia cast member or sprite.
Parameters
None.