><table width="100%"><tr><td><code><span class="keyword">function</span> <a href="../../../../../haxe/ui/toolkit/core/Component.html#addEventListener"><span class="identifier">addEventListener</span></a>(type:<span class="type">String</span>, listener:<span class="type">Dynamic</span> -&gt;<span class="type">Void</span>?useCapture:<span class="type">Bool</span>, ?priority:<span class="type">Int</span>, ?useWeakReference:<span class="type">Bool</span>):<span class="type">Void</span></code><!--p style="margin