112
ActionScript language elements
See also
loadMovieNum function
,
unloadMovie function
,
loadMovie (MovieClip.loadMovie
method)
updateAfterEvent function
updateAfterEvent() : Void
Updates the display (independent of the frames per second set for the movie) when you call it
within an
onClipEvent()
handler or as part of a function or method that you pass to
setInterval(). Flash ignores calls to
updateAfterEvent
that are not within an
onClipEvent()
handler or part of a function or method passed to setInterval(). This function works only with
certain Mouse and MovieClip handlers: the mouseDown, mouseUp, mouseMove, keyDown
and keyUp handlers for the Mouse class; the onMouseMove, onMouseDown, onMouseUp,
onKeyDown, and onKeyUp handlers for the MovieClip class. It does not work with the Key
class.
Availability:
ActionScript 1.0; Flash Player 5
Example
The following example show how to create a custom cursor called
cursor_mc
. ActionScript is
used to replace the mouse cursor with
cursor_mc
. Then
updateAfterEvent()
is used to
continually refresh the Stage to make the cursor's movement appear smooth.
Mouse.hide();
cursor_mc.onMouseMove = function() {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
See also
onClipEvent handler
,
setInterval function
Global Properties
Global properties are available in every script, and are visible to every Timeline and scope in
your document. For example, global properties allow access to the timelines of other loaded
movie clips, both relative (
_parent
) and absolute (
_root
). They also let you restrict (
this
) or
expand (
super
) scope. And, you can use global properties to adjust runtime settings like
screen reader accessibility, playback quality, and sound buffer size.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...