/* 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
or
true
System.capabilities.hasStylus
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
when the user releases the mouse button:
my_mc
my_mc.onPress = function () {
startDrag(this);
}
my_mc.onRelease = function() {
stopDrag();
}
See also
startDrag function
(MovieClip.startDrag method)
84
ActionScript language elements
,
_droptarget (MovieClip._droptarget property)
,
stopDrag (MovieClip.stopDrag method)
System.capabilities.hasMouse
is
.
true
is
,
startDrag
Need help?
Do you have a question about the FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers