
XML Class
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
911
Note, however, that updateAfterEvent() is not an arbitrary screen-refreshing tool; outside of
setInterval() and the handlers in the previous list, it has no effect. In Flash 6, even the
Mouse and Key objects’ event handlers do not support updateAfterEvent(); however, they
are expected to support it in future versions of the Player.
Example
The following script causes pointer_mc to follow the mouse pointer. It uses
updateAfterEvent() to refresh the screen every time the pointer moves (which may be more
often than the frame rate):
pointer_mc.onMouseMove = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
}
See Also
“Refreshing the Screen with updateAfterEvent(),” in Chapter 10
$version “Global” Property
the version of the Flash Player
Flash 4 Build 11; deprecated in Flash 5
read-only
_root.$version
Description
The $version property contains the same string as the return value of the global getVersion(
) function and the
System.capabilities.version property (the operating system, followed
by Player version information). See the
capabilities.version entry (under “C” in this
Language Reference) for complete details on the format of the version information and
version detection from within a browser before the Flash Player ...