Stopdrag Function - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

/* 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

Advertisement

Table of Contents
loading

Table of Contents