updateAfterEvent()
Availability
Flash Player 5.
Usage
updateAfterEvent() : Void
Parameters
None.
Returns
Nothing.
Description
Function; updates the display (independent of the frames per second set for the movie) when you
call it within an
setInterval(). Flash ignores calls to
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.
Example
The following example show how to create a custom cursor called
used to replace the mouse cursor with
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(),
994
Chapter 2: ActionScript Language Reference
handler or as part of a function or method that you pass to
onClipEvent()
updateAfterEvent
setInterval()
ActionScript Language Reference
that are not within an
. Then
cursor_mc
updateAfterEvent()
CHAPTER 2
onClipEvent()
. ActionScript is
cursor_mc
is used to
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?