40 lines
		
	
	
		
			17 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			17 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!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.EventTarget - API Reference</title><meta name="description" content="<code><a href="../../js/html/EventTarget.html">EventTarget</a></code> is an interface implemented by objects that can receive events and may have listeners for them."/></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> EventTarget</h1><h4><small>package <a href="../../js/html/index.html">js.html</a></small></h4>    <h4><small><span class="muted">extended by </span><a class="type" title="An AudioContext can be a target of events, therefore it implements the EventTarget interface." href="../../js/html/audio/AudioContext.html">AudioContext</a>, <a class="type" title="The AudioNode interface is a generic interface for representing an audio processing module like an audio source (e." href="../../js/html/audio/AudioNode.html">AudioNode</a>, <a class="type" title="Inherits from: EventTarget Documentation IDBDatabase by Mozilla Contributors, licensed under CC-BY-SA 2." href="../../js/html/idb/Database.html">Database</a>, <a class="type" title="" href="../../js/html/idb/FileHandle.html">FileHandle</a>, <a class="type" title="The IDBMutableFile interface provides access in read or write mode to a file, dealing with all the necessary locks." href="../../js/html/idb/MutableFile.html">MutableFile</a>, <a class="type" title="The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance." href="../../js/html/idb/Request.html">Request</a>, <a class="type" title="Note that as of Firefox 40, IndexedDB transactions have relaxed durability guarantees to increase performance (see bug 1112702." href="../../js/html/idb/Transaction.html">Transaction</a>, <a class="type" title="" href="../../js/html/rtc/DataChannel.html">DataChannel</a>, <a class="type" title="The RTCPeerConnection interface represents a WebRTC connection between the local computer and a remote peer." href="../../js/html/rtc/PeerConnection.html">PeerConnection</a>, <a class="type" title="The Animation interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source." href="../../js/html/Animation.html">Animation</a>, <a class="type" title="" href="../../js/html/ApplicationCache.html">ApplicationCache</a>, <a class="type" title="" href="../../js/html/AudioTrackList.html">AudioTrackList</a>, <a class="type" title="The BatteryManager interface provides ways to get information about the system's battery charge level." href="../../js/html/BatteryManager.html">BatteryManager</a>, <a class="type" title="" href="../../js/html/DOMCursor.html">DOMCursor</a>, <a class="type" title="" href="../../js/html/DOMRequest.html">DOMRequest</a>, <a class="type" title="" href="../../js/html/DesktopNotification.html">DesktopNotification</a>, <a class="type" title="The EventSource interface is used to receive server-sent events." href="../../js/html/EventSource.html">EventSource</a>, <a class="type" title="The FileReader object lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read." href="../../js/html/FileReader.html">FileReader</a>, <a class="type" title="The FontFaceSet interface of the CSS Font Loading API is an interface for loading font faces and checking their download statuses." href="../../js/html/FontFaceSet.html">FontFaceSet</a>, <a class="type" title="" href="../../js/html/ImageCapture.html">ImageCapture</a>, <a class="type" title="The MediaRecorder interface of the MediaStream Recording API provides functionality to easily record media." href="../../js/html/MediaRecorder.html">MediaRecorder</a>, <a class="type" title="The MediaSource interface represents a source of media data for an HTMLMediaElement object." href="../../js/html/MediaSource.html">MediaSource</a>, <a class="type" title="The MediaStream interface represents a stream of media content." href="../../js/html/MediaStream.html">MediaStream</a>, <a class="type" title="The MediaStreamTrack interface represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well." href="../../js/html/MediaStreamTrack.html">MediaStreamTrack</a>, <a class="type" title="The MessagePort interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing sending of messages from one port and listening out for them arriving at the other." href="../../js/html/MessagePort.html">MessagePort</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>, <a class="type" title="The PermissionStatus interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state." href="../../js/html/PermissionStatus.html">PermissionStatus</a>, <a class="type" title="The Screen interface represents a screen, usually the one on which the current window is being rendered." href="../../js/html/Screen.html">Screen</a>, <a class="type" title="" href="../../js/html/ScreenOrientation.html">ScreenOrientation</a>, <a class="type" title="The ServiceWorker interface of the ServiceWorker API provides a reference to a service worker." href="../../js/html/ServiceWorker.html">ServiceWorker</a>, <a class="type" title="The ServiceWorkerRegistration interface of the ServiceWorker API represents the service worker registration." href="../../js/html/ServiceWorkerRegistration.html">ServiceWorkerRegistration</a>, <a class="type" title="The SharedWorker interface represents a specific kind of worker that can be accessed from several browsing contexts, such as several windows, iframes or even workers." href="../../js/html/SharedWorker.html">SharedWorker</a>, <a class="type" title="The SourceBuffer interface represents a chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object." href="../../js/html/SourceBuffer.html">SourceBuffer</a>, <a class="type" title="The SourceBufferList interface represents a simple container list for multiple SourceBuffer objects." href="../../js/html/SourceBufferList.html">SourceBufferList</a>, <a class="type" title="The SpeechRecognition interface of the Web Speech API is the controller interface for the recognition service; this also handles the SpeechRecognitionEvent sent from the recognition service." href="../../js/html/SpeechRecognition.html">SpeechRecognition</a>, <a class="type" title="The SpeechSynthesisUtterance interface of the Web Speech API represents a speech request." href="../../js/html/SpeechSynthesisUtterance.html">SpeechSynthesisUtterance</a>, <a class="type" title="" href="../../js/html/TextTrack.html">TextTrack</a>, <a class="type" title="" href="../../js/html/TextTrackCue.html">TextTrackCue</a>, <a class="type" title="" href="../../js/html/TextTrackList.html">TextTrackList</a>, <a class="type" title="" href="../../js/html/VideoTrackList.html">VideoTrackList</a>, <a class="type" title="The WebSocket object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection." href="../../js/html/WebSocket.html">WebSocket</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>, <a class="type" title="The Worker interface of the Web Workers API represents a background task that can be easily created and can send messages back to its creator." href="../../js/html/Worker.html">Worker</a>, <a class="type" title="The WorkerGlobalScope interface of the Web Workers API is an interface representing the scope of any worker." href="../../js/html/WorkerGlobalScope.html">WorkerGlobalScope</a>, <a class="type" title="XMLHttpRequestEventTarget is the interface that describes the event handlers you can implement in an object that will handle events for an XMLHttpRequest." href="../../js/html/XMLHttpRequestEventTarget.html">XMLHttpRequestEventTarget</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><code><a href="../../js/html/EventTarget.html">EventTarget</a></code> is an interface implemented by objects that can receive events and may have listeners for them.</p>
 | ||
| <p>Documentation <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget">EventTarget</a> by <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget$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/EventTarget">https://developer.mozilla.org/en-US/docs/Web/API/EventTarget</a></p></div></div></div><h3 class="section">Methods</h3><div class="fields"><div class="field "><a name="addEventListener"></a><h3><p><code><a href="#addEventListener"><span class="identifier">addEventListener</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">listener:<a class="type" title="This type unifies with any function type." href="../../haxe/Function.html">Function</a>,</span> <span style="white-space:nowrap">capture:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a> = false</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p><p><code><a href="#addEventListener"><span class="identifier">addEventListener</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">listener:<a class="type" title="This method is called whenever an event occurs of the type for which the EventListener interface was registered." href="../../js/html/EventListener.html">EventListener</a>,</span> <span style="white-space:nowrap">capture:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a> = false,</span> <span style="white-space:nowrap">?wantsUntrusted:<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 class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="dispatchEvent"></a><h3><p><code><a href="#dispatchEvent"><span class="identifier">dispatchEvent</span></a> (<span style="white-space:nowrap">event:<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></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 class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="removeEventListener"></a><h3><p><code><a href="#removeEventListener"><span class="identifier">removeEventListener</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">listener:<a class="type" title="This type unifies with any function type." href="../../haxe/Function.html">Function</a>,</span> <span style="white-space:nowrap">capture:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a> = false</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p><p><code><a href="#removeEventListener"><span class="identifier">removeEventListener</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">listener:<a class="type" title="This method is called whenever an event occurs of the type for which the EventListener interface was registered." href="../../js/html/EventListener.html">EventListener</a>,</span> <span style="white-space:nowrap">capture:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a> = false</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></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">© 2017  <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> |