2025-01-15 19:42:35 +01:00

40 lines
38 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en"><!-- use theme color or fallback -->
<!--use textcolor from settings, otherwise create a contrasting color to theme color-->
<head><meta charset="utf-8"/><link href="../../bootstrap/css/bootstrap.min.css" rel="stylesheet"/><link href="../../bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"/><link href="../../bootstrap/css/bootstrap-select.min.css" rel="stylesheet"/><link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic" rel="stylesheet" type="text/css"/><link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,600,600italic,400" rel="stylesheet" type="text/css"/><link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet" type="text/css"/><script src="../../jquery-1.9.1.min.js"></script><script src="../../bootstrap/js/bootstrap.min.js"></script><script src="../../bootstrap/js/bootstrap-select.min.js"></script><link href="../../styles.css" rel="stylesheet"/><link href="../../haxe-nav.css" rel="stylesheet"/><script type="text/javascript">var dox = {rootPath: "../../",platforms: ["Neko","Android","Flash","iOS","macOS","Linux","HTML5","Windows"]};</script><script type="text/javascript" src="../../nav.js"></script><script type="text/javascript" src="../../index.js"></script><link rel="icon" href="../../favicon.ico" type="image/x-icon"></link><title>js.html.MouseScrollEvent - API Reference</title><meta name="description" content="The &lt;code&gt;&lt;a href="../../js/html/MouseScrollEvent.html"&gt;MouseScrollEvent&lt;/a&gt;&lt;/code&gt; interface represents events that occur due to the user moving a mouse wheel or similar input device."/></head><body><style>
a, code .type {
color: #24afc4;
}
.navbar .brand {
display: inline-block;
float: none;
text-shadow: 0 0 0 transparent;
}
.nav-list>.active>a.treeLink, .nav-list>.active>a.treeLink:hover, .nav-list>.active>a.treeLink:focus {
background: #24afc4;
color: #ffffff;
text-shadow: 0 0 0 transparent;
}
.navbar .container {
width: 940px ;
}
@media (max-width: 767px) {
.navbar .container {
width: auto;
}
}
@media (max-width: 979px) and (min-width: 768px) {
.navbar .container {
width: 724px;
}
}
@media (min-width: 1200px) {
.navbar .container {
width: 1170px;
}
}
.navbar .container img {
margin: 5px 0 0 4px;
}
</style><nav class="nav"><div class="navbar"><div class="navbar-inner" style="background:#FAFAFA; border-bottom:1px solid rgba(0,0,0,.09)"><div class="container"><a class="brand" href="http://www.openfl.org"><img alt="" src="http://www.openfl.org/images/logo.png"/></a><a class="brand" style="color:#777777" href="../../">API Reference</a></div></div></div></nav><div class="container main-content"><div class="row-fluid"><div class="span3"><div class="well sidebar-nav"><form class="form-search" id="searchForm"><div class="input-prepend input-block-level"><span class="add-on"><i class="icon-search"></i></span><input id="search" type="text" placeholder="Search" autocomplete="off"/></div></form><div class="dropdown"><select id="select-platform" class="selectpicker" title="Filter by platform" data-width="100%"><option value="all" selected="true">All Platforms</option><option>Neko</option><option>Android</option><option>Flash</option><option>iOS</option><option>macOS</option><option>Linux</option><option>HTML5</option><option>Windows</option></select></div></div><div class="well sidebar-nav"><div id="nav"></div></div></div><div class="span9"><div class="page-header"><h1><small>class</small> MouseScrollEvent</h1><h4><small>package <a href="../../js/html/index.html">js.html</a></small></h4><h4><small>extends <a class="type" title="The MouseEvent interface represents events that occur due to the user interacting with a pointing device (such as a mouse)." href="../../js/html/MouseEvent.html">MouseEvent</a> &rsaquo; <a class="type" title="The UIEvent interface represents simple user interface events." href="../../js/html/UIEvent.html">UIEvent</a> &rsaquo; <a class="type" title="The Event interface represents any event which takes place in the DOM; some are user-generated (such as mouse or keyboard events), while others are generated by APIs (such as events that indicate an animation has finished running, a video has been paused, and so forth)." href="../../js/html/Event.html">Event</a></small></h4> <p class="availability"><hr/><em>Available on HTML5</em></p></div><div class="body"><div class="doc doc-main"><div class="indent"><p>The <code><a href="../../js/html/MouseScrollEvent.html">MouseScrollEvent</a></code> interface represents events that occur due to the user moving a mouse wheel or similar input device.</p>
<p>Documentation <a href="https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent">MouseScrollEvent</a> by <a href="https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent$history">Mozilla Contributors</a>, licensed under <a href="https://creativecommons.org/licenses/by-sa/2.5/">CC-BY-SA 2.5</a>.</p><p class="javadoc">See:</p><div class="indent inline-content"><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent">https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent</a></p></div></div></div><h3 class="section">Variables</h3><div class="fields"><div class="field "><a name="axis"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseScrollEvent.html#axis"><span class="identifier">axis</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div></div><h3 class="section">Methods</h3><div class="fields"><div class="field "><a name="initMouseScrollEvent"></a><h3><p><code><a href="#initMouseScrollEvent"><span class="identifier">initMouseScrollEvent</span></a> (<span style="white-space:nowrap">type:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">canBubble:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">cancelable:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">view:<a class="type" title="The window object represents a window containing a DOM document; the document property points to the DOM document loaded in that window." href="../../js/html/Window.html">Window</a>,</span> <span style="white-space:nowrap">detail:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">screenX:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">screenY:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">clientX:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">clientY:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">ctrlKey:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">altKey:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">shiftKey:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">metaKey:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">button:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">relatedTarget:<a class="type" title="EventTarget is an interface implemented by objects that can receive events and may have listeners for them." href="../../js/html/EventTarget.html">EventTarget</a>,</span> <span style="white-space:nowrap">axis:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div></div><h3 class="section">Static variables</h3><div class="fields"><div class="field "><a name="HORIZONTAL_AXIS"></a><h3><p><code><span class="label">static</span><span class="label">inline</span> <span class="label">read only</span><a href="../../js/html/MouseScrollEvent.html#HORIZONTAL_AXIS"><span class="identifier">HORIZONTAL_AXIS</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a><span> = 1</span></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="VERTICAL_AXIS"></a><h3><p><code><span class="label">static</span><span class="label">inline</span> <span class="label">read only</span><a href="../../js/html/MouseScrollEvent.html#VERTICAL_AXIS"><span class="identifier">VERTICAL_AXIS</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a><span> = 2</span></code></p></h3><div class="doc"><p></p></div></div></div> <div class="inherited-fields well"><h3 class="section">Inherited Variables</h3><div class="fields"><h4><a href="#" class="expand-button"><i class="fa fa-arrow-circle-o-right"></i></a> Defined by <a class="type" title="The MouseEvent interface represents events that occur due to the user interacting with a pointing device (such as a mouse)." href="../../js/html/MouseEvent.html">MouseEvent</a></h4><div style="display:none"><div class="field "><a name="altKey"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#altKey"><span class="identifier">altKey</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Returns <code>true</code> if the alt key was down when the mouse event was fired.</p></div></div><div class="field "><a name="button"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#button"><span class="identifier">button</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The button number that was pressed when the mouse event was fired. </p></div></div><div class="field "><a name="buttons"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#buttons"><span class="identifier">buttons</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The buttons being pressed when the mouse event was fired</p></div></div><div class="field "><a name="clientX"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#clientX"><span class="identifier">clientX</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The X coordinate of the mouse pointer in local (DOM content) coordinates.</p></div></div><div class="field "><a name="clientY"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#clientY"><span class="identifier">clientY</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The Y coordinate of the mouse pointer in local (DOM content) coordinates.</p></div></div><div class="field "><a name="ctrlKey"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#ctrlKey"><span class="identifier">ctrlKey</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Returns <code>true</code> if the control key was down when the mouse event was fired.</p></div></div><div class="field "><a name="metaKey"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#metaKey"><span class="identifier">metaKey</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Returns <code>true</code> if the meta key was down when the mouse event was fired.</p></div></div><div class="field "><a name="movementX"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#movementX"><span class="identifier">movementX</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The X coordinate of the mouse pointer relative to the position of the last <code>mousemove</code> event.</p></div></div><div class="field "><a name="movementY"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#movementY"><span class="identifier">movementY</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The Y coordinate of the mouse pointer relative to the position of the last <code>mousemove</code> event.</p></div></div><div class="field "><a name="offsetX"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#offsetX"><span class="identifier">offsetX</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The X coordinate of the mouse pointer relative to the position of the padding edge of the target node.</p></div></div><div class="field "><a name="offsetY"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#offsetY"><span class="identifier">offsetY</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The Y coordinate of the mouse pointer relative to the position of the padding edge of the target node.</p></div></div><div class="field "><a name="region"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#region"><span class="identifier">region</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p>Returns the id of the hit region affected by the event. If no hit region is affected, <code>null</code> is returned.</p></div></div><div class="field "><a name="relatedTarget"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#relatedTarget"><span class="identifier">relatedTarget</span></a>:<a class="type" title="EventTarget is an interface implemented by objects that can receive events and may have listeners for them." href="../../js/html/EventTarget.html">EventTarget</a></code></p></h3><div class="doc"><p>The secondary target for the event, if there is one.</p></div></div><div class="field "><a name="screenX"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#screenX"><span class="identifier">screenX</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The X coordinate of the mouse pointer in global (screen) coordinates.</p></div></div><div class="field "><a name="screenY"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#screenY"><span class="identifier">screenY</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>The Y coordinate of the mouse pointer in global (screen) coordinates.</p></div></div><div class="field "><a name="shiftKey"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/MouseEvent.html#shiftKey"><span class="identifier">shiftKey</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Returns <code>true</code> if the shift key was down when the mouse event was fired.</p></div></div></div><h4><a href="#" class="expand-button"><i class="fa fa-arrow-circle-o-right"></i></a> Defined by <a class="type" title="The UIEvent interface represents simple user interface events." href="../../js/html/UIEvent.html">UIEvent</a></h4><div style="display:none"><div class="field "><a name="cancelBubble"></a><h3><p><code><a href="../../js/html/UIEvent.html#cancelBubble"><span class="identifier">cancelBubble</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Is a <code>Boolean</code> indicating whether the bubbling of the event has been canceled or not.</p></div></div><div class="field "><a name="detail"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#detail"><span class="identifier">detail</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>Returns a <code>long</code> with details about the event, depending on the event type.</p></div></div><div class="field "><a name="isChar"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#isChar"><span class="identifier">isChar</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Returns a <code>Boolean</code> indicating whether the event produced a key character or not.</p></div></div><div class="field "><a name="layerX"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#layerX"><span class="identifier">layerX</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>Returns the horizontal coordinate of the event relative to the current layer.</p></div></div><div class="field "><a name="layerY"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#layerY"><span class="identifier">layerY</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>Returns the vertical coordinate of the event relative to the current layer.</p></div></div><div class="field "><a name="pageX"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#pageX"><span class="identifier">pageX</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>Returns the horizontal coordinate of the event relative to the whole document.</p></div></div><div class="field "><a name="pageY"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#pageY"><span class="identifier">pageY</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>Returns the vertical coordinate of the event relative to the whole document.</p></div></div><div class="field "><a name="rangeOffset"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#rangeOffset"><span class="identifier">rangeOffset</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="rangeParent"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#rangeParent"><span class="identifier">rangeParent</span></a>:<a class="type" title="A Node is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly." href="../../js/html/Node.html">Node</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="view"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#view"><span class="identifier">view</span></a>:<a class="type" title="The window object represents a window containing a DOM document; the document property points to the DOM document loaded in that window." href="../../js/html/Window.html">Window</a></code></p></h3><div class="doc"><p>Returns a <code>WindowProxy</code> that contains the view that generated the event.</p></div></div><div class="field "><a name="which"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/UIEvent.html#which"><span class="identifier">which</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>Returns the numeric <code>keyCode</code> of the key pressed, or the character code (<code>charCode</code>) for an alphanumeric key pressed.</p></div></div></div><h4><a href="#" class="expand-button"><i class="fa fa-arrow-circle-o-right"></i></a> Defined by <a class="type" title="The Event interface represents any event which takes place in the DOM; some are user-generated (such as mouse or keyboard events), while others are generated by APIs (such as events that indicate an animation has finished running, a video has been paused, and so forth)." href="../../js/html/Event.html">Event</a></h4><div style="display:none"><div class="field "><a name="bubbles"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#bubbles"><span class="identifier">bubbles</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>A Boolean indicating whether the event bubbles up through the DOM or not.</p></div></div><div class="field "><a name="cancelable"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#cancelable"><span class="identifier">cancelable</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>A Boolean indicating whether the event is cancelable.</p></div></div><div class="field "><a name="currentTarget"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#currentTarget"><span class="identifier">currentTarget</span></a>:<a class="type" title="EventTarget is an interface implemented by objects that can receive events and may have listeners for them." href="../../js/html/EventTarget.html">EventTarget</a></code></p></h3><div class="doc"><p>A reference to the currently registered target for the event. This is the object to which the event is currently slated to be sent to; it's possible this has been changed along the way through retargeting.</p></div></div><div class="field "><a name="defaultPrevented"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#defaultPrevented"><span class="identifier">defaultPrevented</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Indicates whether or not <code>event.preventDefault()</code> has been called on the event.</p></div></div><div class="field "><a name="eventPhase"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#eventPhase"><span class="identifier">eventPhase</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p>Indicates which phase of the event flow is being processed.</p></div></div><div class="field "><a name="explicitOriginalTarget"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#explicitOriginalTarget"><span class="identifier">explicitOriginalTarget</span></a>:<a class="type" title="EventTarget is an interface implemented by objects that can receive events and may have listeners for them." href="../../js/html/EventTarget.html">EventTarget</a></code></p></h3><div class="doc"><p>The explicit original target of the event (Mozilla-specific).</p></div></div><div class="field "><a name="isTrusted"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#isTrusted"><span class="identifier">isTrusted</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Indicates whether or not the event was initiated by the browser (after a user click for instance) or by a script (using an event creation method, like event.initEvent)</p></div></div><div class="field "><a name="originalTarget"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#originalTarget"><span class="identifier">originalTarget</span></a>:<a class="type" title="EventTarget is an interface implemented by objects that can receive events and may have listeners for them." href="../../js/html/EventTarget.html">EventTarget</a></code></p></h3><div class="doc"><p>The original target of the event, before any retargetings (Mozilla-specific).</p></div></div><div class="field "><a name="target"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#target"><span class="identifier">target</span></a>:<a class="type" title="EventTarget is an interface implemented by objects that can receive events and may have listeners for them." href="../../js/html/EventTarget.html">EventTarget</a></code></p></h3><div class="doc"><p>A reference to the target to which the event was originally dispatched.</p></div></div><div class="field "><a name="timeStamp"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#timeStamp"><span class="identifier">timeStamp</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p>The time at which the event was created, in milliseconds. By specification, this value is time since epoch, but in reality browsers' definitions vary; in addition, work is underway to change this to be a <code>DOMHighResTimeStamp</code> instead.</p></div></div><div class="field "><a name="type"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/Event.html#type"><span class="identifier">type</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p>The name of the event (case-insensitive).</p></div></div></div></div><h3 class="section">Inherited Methods</h3><div class="fields"><h4><a href="#" class="expand-button"><i class="fa fa-arrow-circle-o-right"></i></a> Defined by <a class="type" title="The MouseEvent interface represents events that occur due to the user interacting with a pointing device (such as a mouse)." href="../../js/html/MouseEvent.html">MouseEvent</a></h4><div style="display:none"><div class="field "><a name="getModifierState"></a><h3><p><code><a href="#getModifierState"><span class="identifier">getModifierState</span></a> (<span style="white-space:nowrap">keyArg:<a class="type" title="The basic String class." href="../../String.html">String</a></span>):<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Returns the current state of the specified modifier key. See the <code><a href="../../js/html/KeyboardEvent.html#getModifierState">KeyboardEvent.getModifierState</a></code>() for details.</p></div></div><div class="field "><a name="initMouseEvent"></a><h3><p><code><a href="#initMouseEvent"><span class="identifier">initMouseEvent</span></a> (<span style="white-space:nowrap">typeArg:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">canBubbleArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">cancelableArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">viewArg:<a class="type" title="The window object represents a window containing a DOM document; the document property points to the DOM document loaded in that window." href="../../js/html/Window.html">Window</a>,</span> <span style="white-space:nowrap">detailArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">screenXArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">screenYArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">clientXArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">clientYArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">ctrlKeyArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">altKeyArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">shiftKeyArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">metaKeyArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">buttonArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">relatedTargetArg:<a class="type" title="EventTarget is an interface implemented by objects that can receive events and may have listeners for them." href="../../js/html/EventTarget.html">EventTarget</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p>Initializes the value of a <code><a href="../../js/html/MouseEvent.html">MouseEvent</a></code> created. If the event has already being dispatched, this method does nothing.</p></div></div><div class="field "><a name="initNSMouseEvent"></a><h3><p><code><a href="#initNSMouseEvent"><span class="identifier">initNSMouseEvent</span></a> (<span style="white-space:nowrap">typeArg:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">canBubbleArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">cancelableArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">viewArg:<a class="type" title="The window object represents a window containing a DOM document; the document property points to the DOM document loaded in that window." href="../../js/html/Window.html">Window</a>,</span> <span style="white-space:nowrap">detailArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">screenXArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">screenYArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">clientXArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">clientYArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">ctrlKeyArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">altKeyArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">shiftKeyArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">metaKeyArg:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">buttonArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">relatedTargetArg:<a class="type" title="EventTarget is an interface implemented by objects that can receive events and may have listeners for them." href="../../js/html/EventTarget.html">EventTarget</a>,</span> <span style="white-space:nowrap">pressure:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">inputSourceArg:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div></div><h4><a href="#" class="expand-button"><i class="fa fa-arrow-circle-o-right"></i></a> Defined by <a class="type" title="The UIEvent interface represents simple user interface events." href="../../js/html/UIEvent.html">UIEvent</a></h4><div style="display:none"><div class="field "><a name="initUIEvent"></a><h3><p><code><a href="#initUIEvent"><span class="identifier">initUIEvent</span></a> (<span style="white-space:nowrap">aType:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">aCanBubble:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">aCancelable:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">aView:<a class="type" title="The window object represents a window containing a DOM document; the document property points to the DOM document loaded in that window." href="../../js/html/Window.html">Window</a>,</span> <span style="white-space:nowrap">aDetail:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p>Initializes a <code><a href="../../js/html/UIEvent.html">UIEvent</a></code> object. If the event has already being dispatched, this method does nothing.</p></div></div></div><h4><a href="#" class="expand-button"><i class="fa fa-arrow-circle-o-right"></i></a> Defined by <a class="type" title="The Event interface represents any event which takes place in the DOM; some are user-generated (such as mouse or keyboard events), while others are generated by APIs (such as events that indicate an animation has finished running, a video has been paused, and so forth)." href="../../js/html/Event.html">Event</a></h4><div style="display:none"><div class="field "><a name="getPreventDefault"></a><h3><p><code><a href="#getPreventDefault"><span class="identifier">getPreventDefault</span></a> ():<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p>Non-standard. Returns the value of <code><a href="../../js/html/Event.html#defaultPrevented">Event.defaultPrevented</a></code>. Use <code><a href="../../js/html/Event.html#defaultPrevented">Event.defaultPrevented</a></code> instead.</p></div></div><div class="field "><a name="initEvent"></a><h3><p><code><a href="#initEvent"><span class="identifier">initEvent</span></a> (<span style="white-space:nowrap">type:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">bubbles:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a>,</span> <span style="white-space:nowrap">cancelable:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p>Initializes the value of an Event created. If the event has already being dispatched, this method does nothing.</p></div></div><div class="field "><a name="preventDefault"></a><h3><p><code><a href="#preventDefault"><span class="identifier">preventDefault</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p>Cancels the event (if it is cancelable).</p></div></div><div class="field "><a name="stopImmediatePropagation"></a><h3><p><code><a href="#stopImmediatePropagation"><span class="identifier">stopImmediatePropagation</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p>For this particular event, no other listener will be called. Neither those attached on the same element, nor those attached on elements which will be traversed later (in capture phase, for instance)</p></div></div><div class="field "><a name="stopPropagation"></a><h3><p><code><a href="#stopPropagation"><span class="identifier">stopPropagation</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p>Stops the propagation of events further along in the DOM.</p></div></div></div></div></div></div></div></div></div><footer class="section site-footer" style="background:#FAFAFA"><div class="container"><div class="copyright"><p style="color:#777777">&copy; 2017 &nbsp;<a style="color:#777777" href="http://www.openfl.org">http://www.openfl.org</a></p></div></div></footer><script src="../..//highlighter.js"></script><link href="../../highlighter.css" rel="stylesheet"/></body></html>