User Guide
84 ActionScript language elements
/* get the current offset. if you stop all sounds and click the play
button, the MP3 continues from
where it was stopped, instead of restarting from the beginning. */
var numSecondsOffset:Number = (bg_sound.position/1000);
bg_sound.start(numSecondsOffset);
};
this.stop_mc.onRelease = function() {
stopAllSounds();
};
See also
Sound
stopDrag function
stopDrag() : Void
Stops the current drag operation.
Note: This method is supported in Flash Lite only if
System.capabilities.hasMouse is
true or System.capabilities.hasStylus is true.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following code, placed in the main Timeline, stops the drag action on the movie clip
instance
my_mc when the user releases the mouse button:
my_mc.onPress = function () {
startDrag(this);
}
my_mc.onRelease = function() {
stopDrag();
}
See also
startDrag function, _droptarget (MovieClip._droptarget property), startDrag
(MovieClip.startDrag method)
, stopDrag (MovieClip.stopDrag method)