Updateafterevent Function; Global Properties - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

See also
loadMovieNum function
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()
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.
Availability: ActionScript 1.0; Flash Player 5
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 handler

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 (
expand (
) scope. And, you can use global properties to adjust runtime settings like
super
screen reader accessibility, playback quality, and sound buffer size.
112
ActionScript language elements
,
unloadMovie function
handler or as part of a function or method that you pass to
updateAfterEvent
cursor_mc
,
setInterval function
) and absolute (
_parent
,
loadMovie (MovieClip.loadMovie
that are not within an
cursor_mc
. Then
updateAfterEvent()
). They also let you restrict (
_root
onClipEvent()
. ActionScript is
is used to
) or
this

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF