all repos — simplyrpg @ 64aa0ad8b0a16f76608fcb23845924baaad9b572

Fork of https://github.com/harperd1/simplyRPG — multi-map VTT, token visibility, dark theme, stream HUD

libraries/EaselJS_docs/classes/StageGL.html (view raw)

    1<!DOCTYPE html>
    2<html lang="en">
    3<head>
    4    <meta charset="utf-8">
    5    <link rel="stylesheet" href="../assets/css/yui-cssgrids-min.css">
    6    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    7    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    8    <link rel="shortcut icon" type="image/x-icon" href="../assets/favicon.ico">
    9    <script src="../assets/js/yui-source.js"></script>
   10	<title>EaselJS v1.0.0 API Documentation : StageGL</title>
   11</head>
   12<body class="yui3-skin-sam">
   13
   14<div id="doc">
   15    <div id="hd" class="yui3-g header">
   16        <div class="yui3-u-3-4">
   17            
   18                <h1><a href="http://www.createjs.com/easeljs"><img src="../assets/docs-icon-EaselJS.png" title="EaselJS"></a></h1>
   19            
   20        </div>
   21        <div class="version">
   22            <em>API Documentation for: 1.0.0</em>
   23        </div>
   24    </div>
   25    <div id="bd" class="yui3-g">
   26
   27        <div class="yui3-u-1-4">
   28            <div id="docs-sidebar" class="sidebar apidocs">
   29                <div id="api-list">
   30    <h2 class="off-left">APIs</h2>
   31    <div id="api-tabview" class="tabview">
   32        <ul class="tabs">
   33            <li><a href="#api-classes">Classes</a></li>
   34        </ul>
   35
   36        <div id="api-tabview-filter">
   37            <input type="search" id="api-filter" placeholder="Type to filter APIs">
   38        </div>
   39
   40        <div id="api-tabview-panel">
   41            <ul id="api-classes" class="apis classes">
   42            
   43                <li><a href="../classes/AlphaMapFilter.html">AlphaMapFilter</a></li>
   44            
   45                <li><a href="../classes/AlphaMaskFilter.html">AlphaMaskFilter</a></li>
   46            
   47                <li><a href="../classes/Bitmap.html">Bitmap</a></li>
   48            
   49                <li><a href="../classes/BitmapCache.html">BitmapCache</a></li>
   50            
   51                <li><a href="../classes/BitmapText.html">BitmapText</a></li>
   52            
   53                <li><a href="../classes/BlurFilter.html">BlurFilter</a></li>
   54            
   55                <li><a href="../classes/ButtonHelper.html">ButtonHelper</a></li>
   56            
   57                <li><a href="../classes/ColorFilter.html">ColorFilter</a></li>
   58            
   59                <li><a href="../classes/ColorMatrix.html">ColorMatrix</a></li>
   60            
   61                <li><a href="../classes/ColorMatrixFilter.html">ColorMatrixFilter</a></li>
   62            
   63                <li><a href="../classes/Container.html">Container</a></li>
   64            
   65                <li><a href="../classes/DisplayObject.html">DisplayObject</a></li>
   66            
   67                <li><a href="../classes/DisplayProps.html">DisplayProps</a></li>
   68            
   69                <li><a href="../classes/DOMElement.html">DOMElement</a></li>
   70            
   71                <li><a href="../classes/EaselJS.html">EaselJS</a></li>
   72            
   73                <li><a href="../classes/Event.html">Event</a></li>
   74            
   75                <li><a href="../classes/EventDispatcher.html">EventDispatcher</a></li>
   76            
   77                <li><a href="../classes/Filter.html">Filter</a></li>
   78            
   79                <li><a href="../classes/Graphics.html">Graphics</a></li>
   80            
   81                <li><a href="../classes/Graphics.Arc.html">Graphics.Arc</a></li>
   82            
   83                <li><a href="../classes/Graphics.ArcTo.html">Graphics.ArcTo</a></li>
   84            
   85                <li><a href="../classes/Graphics.BeginPath.html">Graphics.BeginPath</a></li>
   86            
   87                <li><a href="../classes/Graphics.BezierCurveTo.html">Graphics.BezierCurveTo</a></li>
   88            
   89                <li><a href="../classes/Graphics.Circle.html">Graphics.Circle</a></li>
   90            
   91                <li><a href="../classes/Graphics.ClosePath.html">Graphics.ClosePath</a></li>
   92            
   93                <li><a href="../classes/Graphics.Ellipse.html">Graphics.Ellipse</a></li>
   94            
   95                <li><a href="../classes/Graphics.Fill.html">Graphics.Fill</a></li>
   96            
   97                <li><a href="../classes/Graphics.LineTo.html">Graphics.LineTo</a></li>
   98            
   99                <li><a href="../classes/Graphics.MoveTo.html">Graphics.MoveTo</a></li>
  100            
  101                <li><a href="../classes/Graphics.PolyStar.html">Graphics.PolyStar</a></li>
  102            
  103                <li><a href="../classes/Graphics.QuadraticCurveTo.html">Graphics.QuadraticCurveTo</a></li>
  104            
  105                <li><a href="../classes/Graphics.Rect.html">Graphics.Rect</a></li>
  106            
  107                <li><a href="../classes/Graphics.RoundRect.html">Graphics.RoundRect</a></li>
  108            
  109                <li><a href="../classes/Graphics.Stroke.html">Graphics.Stroke</a></li>
  110            
  111                <li><a href="../classes/Graphics.StrokeDash.html">Graphics.StrokeDash</a></li>
  112            
  113                <li><a href="../classes/Graphics.StrokeStyle.html">Graphics.StrokeStyle</a></li>
  114            
  115                <li><a href="../classes/Matrix2D.html">Matrix2D</a></li>
  116            
  117                <li><a href="../classes/MouseEvent.html">MouseEvent</a></li>
  118            
  119                <li><a href="../classes/MovieClip.html">MovieClip</a></li>
  120            
  121                <li><a href="../classes/MovieClipPlugin.html">MovieClipPlugin</a></li>
  122            
  123                <li><a href="../classes/Point.html">Point</a></li>
  124            
  125                <li><a href="../classes/Rectangle.html">Rectangle</a></li>
  126            
  127                <li><a href="../classes/Shadow.html">Shadow</a></li>
  128            
  129                <li><a href="../classes/Shape.html">Shape</a></li>
  130            
  131                <li><a href="../classes/Sprite.html">Sprite</a></li>
  132            
  133                <li><a href="../classes/SpriteSheet.html">SpriteSheet</a></li>
  134            
  135                <li><a href="../classes/SpriteSheetBuilder.html">SpriteSheetBuilder</a></li>
  136            
  137                <li><a href="../classes/SpriteSheetUtils.html">SpriteSheetUtils</a></li>
  138            
  139                <li><a href="../classes/Stage.html">Stage</a></li>
  140            
  141                <li><a href="../classes/StageGL.html">StageGL</a></li>
  142            
  143                <li><a href="../classes/Text.html">Text</a></li>
  144            
  145                <li><a href="../classes/Ticker.html">Ticker</a></li>
  146            
  147                <li><a href="../classes/Touch.html">Touch</a></li>
  148            
  149                <li><a href="../classes/UID.html">UID</a></li>
  150            
  151                <li><a href="../classes/Utility Methods.html">Utility Methods</a></li>
  152            
  153                <li><a href="../classes/VideoBuffer.html">VideoBuffer</a></li>
  154            
  155                <li><a href="../classes/WebGLInspector.html">WebGLInspector</a></li>
  156            
  157            </ul>
  158
  159            <ul id="api-modules" class="apis modules">
  160            
  161                <li><a href="../modules/CreateJS.html">CreateJS</a></li>
  162            
  163                <li><a href="../modules/EaselJS.html">EaselJS</a></li>
  164            
  165            </ul>
  166        </div>
  167    </div>
  168</div>
  169
  170            </div>
  171        </div>
  172        <div class="yui3-u-3-4">
  173            <div id="api-options">
  174        Show:
  175        <label for="api-show-inherited">
  176            <input type="checkbox" id="api-show-inherited" checked>
  177            Inherited
  178        </label>
  179
  180        <label for="api-show-protected">
  181            <input type="checkbox" id="api-show-protected">
  182            Protected
  183        </label>
  184
  185        <label for="api-show-private">
  186            <input type="checkbox" id="api-show-private">
  187            Private
  188        </label>
  189        <label for="api-show-deprecated">
  190            <input type="checkbox" id="api-show-deprecated">
  191            Deprecated
  192        </label>
  193
  194    </div>
  195            <div class="apidocs">
  196                <div id="docs-main">
  197                    <div class="content">
  198                        <h1>StageGL Class</h1>
  199<div class="box meta">
  200    
  201
  202    
  203        <div class="extends">
  204            Extends <a href="../classes/Stage.html" class="crosslink">Stage</a>
  205        </div>
  206    
  207
  208    
  209        <div class="foundat">
  210            Defined in: <a href="../files/easeljs_display_StageGL.js.html#l56"><code>StageGL:56</code></a>
  211        </div>
  212    
  213
  214    
  215        
  216            Module: <a href="../modules/EaselJS.html">EaselJS</a>
  217        
  218    
  219
  220    
  221</div>
  222
  223
  224
  225<div class="box intro">
  226    <p>A StageGL instance is the root level <a href="../classes/Container.html" class="crosslink">Container</a> for an WebGL-optimized display list,
  227which is used in place of the usual <a href="../classes/Stage.html" class="crosslink">Stage</a>. This class should behave identically to
  228a <a href="../classes/Stage.html" class="crosslink">Stage</a> except for WebGL-specific functionality.</p>
  229<p>Each time the <a href="../classes/Stage.html#method_tick" class="crosslink">tick</a> method is called, the display list is rendered to the
  230target &lt;canvas/&gt; instance, ignoring non-WebGL-compatible display objects. On devices and browsers that don&#39;t
  231support WebGL, content will automatically be rendered to canvas 2D context instead.</p>
  232<p><h4>Limitations</h4></p>
  233<ul>
  234<li><a href="../classes/Shape.html" class="crosslink">Shape</a>, <a href="../classes/Shadow.html" class="crosslink">Shadow</a>, and <a href="../classes/Text.html" class="crosslink">Text</a>
  235  are not rendered when added to the display list.</li>
  236<li>To display something StageGL cannot render, <a href="../classes/DisplayObject.html#method_cache" class="crosslink">cache</a> the object.
  237  Caches can be rendered regardless of source.</li>
  238<li>Images are wrapped as a webGL "Texture". Each graphics card has a limit to its concurrent Textures, too many 
  239Textures will noticeably slow performance.</li>
  240<li>Each cache counts as an individual Texture. As such <a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a> and 
  241<a href="../classes/SpriteSheetBuilder.html" class="crosslink">SpriteSheetBuilder</a> are recommended practices to help keep texture counts low.</li>
  242<li>To use any image node (DOM Image/Canvas Element) between multiple StageGL instances it must be a 
  243<a href="../classes/Bitmap.html#method_clone" class="crosslink">clone</a>, otherwise the GPU texture loading and tracking will get confused.</li>
  244<li>to avoid an up/down scaled render you must call <a href="../classes/StageGL.html#method_updateViewport" class="crosslink">updateViewport</a> if you
  245resize your canvas after making a StageGL instance, this will properly size the WebGL context stored in memory.</li>
  246<li>Best performance in demanding scenarios will come from manual management of texture memory, but it is handled
  247automatically by default. See <a href="../classes/StageGL.html#method_releaseTexture" class="crosslink">releaseTexture</a> for details.</li>
  248</ul>
  249<p><h4>Example</h4>
  250This example creates a StageGL instance, adds a child to it, then uses the EaselJS <a href="../classes/Ticker.html" class="crosslink">Ticker</a>
  251to update the child and redraw the stage.</p>
  252<pre class="code prettyprint"><code> var stage = new createjs.StageGL("canvasElementId");
  253
  254 var image = new createjs.Bitmap("imagePath.png");
  255 stage.addChild(image);
  256
  257 createjs.Ticker.on("tick", handleTick);
  258
  259 function handleTick(event) {
  260     image.x += 10;
  261     stage.update();
  262 }</code></pre>
  263<p><h4>Notes</h4></p>
  264<ul>
  265<li>StageGL is not currently included in the minified version of EaselJS.</li>
  266<li>SpriteContainer (the previous approach to WebGL with EaselJS) has been deprecated.</li>
  267<li>Earlier versions of WebGL support in EaselJS (SpriteStage and SpriteContainer) had hard limitations on images
  268  per container, which have been solved.</li>
  269</ul>
  270
  271</div>
  272
  273
  274    <div class="constructor">
  275        <h2>Constructor</h2>
  276        <div id="method_StageGL" class="method item">
  277    <h3 class="name"><code>StageGL</code></h3>
  278
  279    
  280        <div class="args">
  281            <span class="paren">(</span><ul class="args-list inline commas">
  282            
  283                <li class="arg">
  284                    
  285                        <code>canvas</code>
  286                    
  287                </li>
  288            
  289                <li class="arg">
  290                    
  291                        <code>options</code>
  292                    
  293                </li>
  294            
  295            </ul><span class="paren">)</span>
  296        </div>
  297    
  298
  299    
  300
  301    
  302
  303    
  304
  305    
  306
  307    
  308
  309    
  310
  311    
  312
  313    <div class="meta">
  314        
  315            
  316                
  317                <p>
  318                
  319                Defined in
  320                
  321            
  322        
  323        
  324        <a href="../files/easeljs_display_StageGL.js.html#l56"><code>StageGL:56</code></a>
  325        
  326        </p>
  327
  328
  329        
  330
  331        
  332    </div>
  333
  334    <div class="description">
  335        
  336    </div>
  337
  338    
  339        <div class="params">
  340            <h4>Parameters:</h4>
  341
  342            <ul class="params-list">
  343            
  344                <li class="param">
  345                    
  346                        <code class="param-name">canvas</code>
  347                        <span class="type">HTMLCanvasElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
  348                    
  349
  350                    
  351
  352                    <div class="param-description">
  353                        <p>A canvas object that StageGL will render to, or the string id
  354 of a canvas object in the current DOM.</p>
  355
  356                    </div>
  357
  358                    
  359                </li>
  360            
  361                <li class="param">
  362                    
  363                        <code class="param-name">options</code>
  364                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
  365                    
  366
  367                    
  368
  369                    <div class="param-description">
  370                        <p>All the option parameters in a reference object, some are not supported by some browsers.</p>
  371
  372                    </div>
  373
  374                    
  375                        <ul class="params-list">
  376                            
  377                            <li class="param">
  378                                
  379                                    <code class="param-name optional">[preserveBuffer=false]</code>
  380                                    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
  381                                    <span class="flag optional" title="This parameter is optional.">optional</span>
  382                                
  383
  384                                <div class="param-description">
  385                                    <p>If <code>true</code>, the canvas is NOT auto-cleared by WebGL (the spec
  386 discourages setting this to <code>true</code>). This is useful if you want persistent draw effects.</p>
  387
  388                                </div>
  389
  390                                
  391                            </li>
  392                            
  393                            <li class="param">
  394                                
  395                                    <code class="param-name optional">[antialias=false]</code>
  396                                    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
  397                                    <span class="flag optional" title="This parameter is optional.">optional</span>
  398                                
  399
  400                                <div class="param-description">
  401                                    <p>Specifies whether or not the browser&#39;s WebGL implementation should try
  402 to perform anti-aliasing. This will also enable linear pixel sampling on power-of-two textures (smoother images).</p>
  403
  404                                </div>
  405
  406                                
  407                            </li>
  408                            
  409                            <li class="param">
  410                                
  411                                    <code class="param-name optional">[transparent=false]</code>
  412                                    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
  413                                    <span class="flag optional" title="This parameter is optional.">optional</span>
  414                                
  415
  416                                <div class="param-description">
  417                                    <p>If <code>true</code>, the canvas is transparent. This is <strong>very</strong>
  418expensive, and should be used with caution.</p>
  419
  420                                </div>
  421
  422                                
  423                            </li>
  424                            
  425                            <li class="param">
  426                                
  427                                    <code class="param-name optional">[premultiply=false]</code>
  428                                    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
  429                                    <span class="flag optional" title="This parameter is optional.">optional</span>
  430                                
  431
  432                                <div class="param-description">
  433                                    <p>Alters color handling. If <code>true</code>, this assumes the shader must
  434account for pre-multiplied alpha. This can help avoid visual halo effects with some assets, but may also cause
  435problems with other assets.</p>
  436
  437                                </div>
  438
  439                                
  440                            </li>
  441                            
  442                            <li class="param">
  443                                
  444                                    <code class="param-name optional">[autoPurge=1200]</code>
  445                                    <span class="type">Integer</span>
  446                                    <span class="flag optional" title="This parameter is optional.">optional</span>
  447                                
  448
  449                                <div class="param-description">
  450                                    <p>How often the system should automatically dump unused textures with
  451<code>purgeTextures(autoPurge)</code> every <code>autoPurge/2</code> draws. See <a href="../classes/StageGL.html#method_purgeTextures" class="crosslink">purgeTextures</a> for more
  452information.</p>
  453
  454                                </div>
  455
  456                                
  457                            </li>
  458                            
  459                        </ul>
  460                    
  461                </li>
  462            
  463            </ul>
  464        </div>
  465    
  466
  467    
  468
  469    
  470</div>
  471
  472    </div>
  473
  474
  475<div id="classdocs" class="tabview">
  476    <ul class="api-class-tabs">
  477        <li class="api-class-tab index"><a href="#index">Index</a></li>
  478
  479        
  480            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
  481        
  482        
  483            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
  484        
  485        
  486        
  487            <li class="api-class-tab events"><a href="#events">Events</a></li>
  488        
  489    </ul>
  490
  491    <div>
  492        <div id="index" class="api-class-tabpanel index">
  493            <h2 class="off-left">Item Index</h2>
  494
  495            
  496                <div class="index-section methods">
  497                    <h3>Methods</h3>
  498
  499                    <ul class="index-list methods extends">
  500                        
  501                            <li class="index-item method protected">
  502                                <a href="#method__appendToBatchGroup">_appendToBatchGroup</a>
  503
  504                                
  505                                
  506                            </li>
  507                        
  508                            <li class="index-item method protected inherited">
  509                                <a href="#method__applyShadow">_applyShadow</a>
  510
  511                                
  512                                
  513                            </li>
  514                        
  515                            <li class="index-item method protected">
  516                                <a href="#method__backupBatchTextures">_backupBatchTextures</a>
  517
  518                                
  519                                
  520                            </li>
  521                        
  522                            <li class="index-item method protected">
  523                                <a href="#method__batchDraw">_batchDraw</a>
  524
  525                                
  526                                
  527                            </li>
  528                        
  529                            <li class="index-item method protected">
  530                                <a href="#method__cacheDraw">_cacheDraw</a>
  531
  532                                
  533                                
  534                            </li>
  535                        
  536                            <li class="index-item method protected inherited">
  537                                <a href="#method__cloneProps">_cloneProps</a>
  538
  539                                
  540                                
  541                            </li>
  542                        
  543                            <li class="index-item method protected">
  544                                <a href="#method__createBuffers">_createBuffers</a>
  545
  546                                
  547                                
  548                            </li>
  549                        
  550                            <li class="index-item method protected">
  551                                <a href="#method__createShader">_createShader</a>
  552
  553                                
  554                                
  555                            </li>
  556                        
  557                            <li class="index-item method protected inherited">
  558                                <a href="#method__dispatchEvent">_dispatchEvent</a>
  559
  560                                
  561                                
  562                            </li>
  563                        
  564                            <li class="index-item method protected inherited">
  565                                <a href="#method__dispatchMouseEvent">_dispatchMouseEvent</a>
  566
  567                                
  568                                
  569                            </li>
  570                        
  571                            <li class="index-item method protected">
  572                                <a href="#method__drawBuffers">_drawBuffers</a>
  573
  574                                
  575                                
  576                            </li>
  577                        
  578                            <li class="index-item method protected">
  579                                <a href="#method__drawBuffers">_drawBuffers</a>
  580
  581                                
  582                                
  583                            </li>
  584                        
  585                            <li class="index-item method">
  586                                <a href="#method__drawFilters">_drawFilters</a>
  587
  588                                
  589                                
  590                            </li>
  591                        
  592                            <li class="index-item method protected">
  593                                <a href="#method__fetchShaderProgram">_fetchShaderProgram</a>
  594
  595                                
  596                                
  597                            </li>
  598                        
  599                            <li class="index-item method protected">
  600                                <a href="#method__fetchWebGLContext">_fetchWebGLContext</a>
  601
  602                                
  603                                
  604                            </li>
  605                        
  606                            <li class="index-item method protected inherited inherited">
  607                                <a href="#method__getBounds">_getBounds</a>
  608
  609                                
  610                                
  611                            </li>
  612                        
  613                            <li class="index-item method protected inherited">
  614                                <a href="#method__getElementRect">_getElementRect</a>
  615
  616                                
  617                                
  618                            </li>
  619                        
  620                            <li class="index-item method protected inherited">
  621                                <a href="#method__getNumChildren">_getNumChildren</a>
  622
  623                                
  624                                
  625                            </li>
  626                        
  627                            <li class="index-item method protected inherited">
  628                                <a href="#method__getObjectsUnderPoint">_getObjectsUnderPoint</a>
  629
  630                                
  631                                
  632                            </li>
  633                        
  634                            <li class="index-item method protected inherited">
  635                                <a href="#method__getPointerData">_getPointerData</a>
  636
  637                                
  638                                
  639                            </li>
  640                        
  641                            <li class="index-item method protected inherited">
  642                                <a href="#method__getStage">_getStage</a>
  643
  644                                
  645                                
  646                            </li>
  647                        
  648                            <li class="index-item method protected inherited">
  649                                <a href="#method__handleDoubleClick">_handleDoubleClick</a>
  650
  651                                
  652                                
  653                            </li>
  654                        
  655                            <li class="index-item method protected inherited">
  656                                <a href="#method__handleMouseDown">_handleMouseDown</a>
  657
  658                                
  659                                
  660                            </li>
  661                        
  662                            <li class="index-item method protected inherited">
  663                                <a href="#method__handleMouseMove">_handleMouseMove</a>
  664
  665                                
  666                                
  667                            </li>
  668                        
  669                            <li class="index-item method protected inherited">
  670                                <a href="#method__handleMouseUp">_handleMouseUp</a>
  671
  672                                
  673                                
  674                            </li>
  675                        
  676                            <li class="index-item method protected inherited">
  677                                <a href="#method__handlePointerDown">_handlePointerDown</a>
  678
  679                                
  680                                
  681                            </li>
  682                        
  683                            <li class="index-item method protected inherited">
  684                                <a href="#method__handlePointerMove">_handlePointerMove</a>
  685
  686                                
  687                                
  688                            </li>
  689                        
  690                            <li class="index-item method protected inherited">
  691                                <a href="#method__handlePointerUp">_handlePointerUp</a>
  692
  693                                
  694                                
  695                            </li>
  696                        
  697                            <li class="index-item method protected">
  698                                <a href="#method__initializeWebGL">_initializeWebGL</a>
  699
  700                                
  701                                
  702                            </li>
  703                        
  704                            <li class="index-item method protected">
  705                                <a href="#method__initTextures">_initTextures</a>
  706
  707                                
  708                                
  709                            </li>
  710                        
  711                            <li class="index-item method protected">
  712                                <a href="#method__insertTextureInBatch">_insertTextureInBatch</a>
  713
  714                                
  715                                
  716                            </li>
  717                        
  718                            <li class="index-item method protected inherited">
  719                                <a href="#method__isMouseOpaque">_isMouseOpaque</a>
  720
  721                                
  722                                
  723                            </li>
  724                        
  725                            <li class="index-item method protected">
  726                                <a href="#method__killTextureObject">_killTextureObject</a>
  727
  728                                
  729                                
  730                            </li>
  731                        
  732                            <li class="index-item method protected">
  733                                <a href="#method__loadTextureImage">_loadTextureImage</a>
  734
  735                                
  736                                
  737                            </li>
  738                        
  739                            <li class="index-item method protected inherited">
  740                                <a href="#method__testHit">_testHit</a>
  741
  742                                
  743                                
  744                            </li>
  745                        
  746                            <li class="index-item method protected inherited">
  747                                <a href="#method__testMask">_testMask</a>
  748
  749                                
  750                                
  751                            </li>
  752                        
  753                            <li class="index-item method protected inherited">
  754                                <a href="#method__testMouseOver">_testMouseOver</a>
  755
  756                                
  757                                
  758                            </li>
  759                        
  760                            <li class="index-item method protected inherited inherited">
  761                                <a href="#method__tick">_tick</a>
  762
  763                                
  764                                
  765                            </li>
  766                        
  767                            <li class="index-item method protected inherited">
  768                                <a href="#method__transformBounds">_transformBounds</a>
  769
  770                                
  771                                
  772                            </li>
  773                        
  774                            <li class="index-item method protected inherited">
  775                                <a href="#method__updatePointerPosition">_updatePointerPosition</a>
  776
  777                                
  778                                
  779                            </li>
  780                        
  781                            <li class="index-item method inherited">
  782                                <a href="#method__updateState">_updateState</a>
  783
  784                                
  785                                
  786                            </li>
  787                        
  788                            <li class="index-item method inherited">
  789                                <a href="#method_addChild">addChild</a>
  790
  791                                
  792                                
  793                            </li>
  794                        
  795                            <li class="index-item method inherited">
  796                                <a href="#method_addChildAt">addChildAt</a>
  797
  798                                
  799                                
  800                            </li>
  801                        
  802                            <li class="index-item method inherited">
  803                                <a href="#method_addEventListener">addEventListener</a>
  804
  805                                
  806                                
  807                            </li>
  808                        
  809                            <li class="index-item method">
  810                                <a href="#method_buildUVRects">buildUVRects</a>
  811
  812                                
  813                                    <span class="flag static">static</span>
  814                                
  815                                
  816                            </li>
  817                        
  818                            <li class="index-item method inherited">
  819                                <a href="#method_cache">cache</a>
  820
  821                                
  822                                
  823                            </li>
  824                        
  825                            <li class="index-item method">
  826                                <a href="#method_cacheDraw">cacheDraw</a>
  827
  828                                
  829                                
  830                            </li>
  831                        
  832                            <li class="index-item method inherited">
  833                                <a href="#method_clear">clear</a>
  834
  835                                
  836                                
  837                            </li>
  838                        
  839                            <li class="index-item method inherited inherited">
  840                                <a href="#method_clone">clone</a>
  841
  842                                
  843                                
  844                            </li>
  845                        
  846                            <li class="index-item method protected inherited">
  847                                <a href="#method_cloneChildren">cloneChildren</a>
  848
  849                                
  850                                
  851                            </li>
  852                        
  853                            <li class="index-item method inherited">
  854                                <a href="#method_contains">contains</a>
  855
  856                                
  857                                
  858                            </li>
  859                        
  860                            <li class="index-item method inherited">
  861                                <a href="#method_dispatchEvent">dispatchEvent</a>
  862
  863                                
  864                                
  865                            </li>
  866                        
  867                            <li class="index-item method inherited">
  868                                <a href="#method_draw">draw</a>
  869
  870                                
  871                                
  872                            </li>
  873                        
  874                            <li class="index-item method inherited">
  875                                <a href="#method_enableDOMEvents">enableDOMEvents</a>
  876
  877                                
  878                                
  879                            </li>
  880                        
  881                            <li class="index-item method inherited">
  882                                <a href="#method_enableMouseOver">enableMouseOver</a>
  883
  884                                
  885                                
  886                            </li>
  887                        
  888                            <li class="index-item method">
  889                                <a href="#method_getBaseTexture">getBaseTexture</a>
  890
  891                                
  892                                
  893                            </li>
  894                        
  895                            <li class="index-item method inherited">
  896                                <a href="#method_getBounds">getBounds</a>
  897
  898                                
  899                                
  900                            </li>
  901                        
  902                            <li class="index-item method inherited">
  903                                <a href="#method_getCacheDataURL">getCacheDataURL</a>
  904
  905                                
  906                                
  907                            </li>
  908                        
  909                            <li class="index-item method inherited">
  910                                <a href="#method_getChildAt">getChildAt</a>
  911
  912                                
  913                                
  914                            </li>
  915                        
  916                            <li class="index-item method inherited">
  917                                <a href="#method_getChildByName">getChildByName</a>
  918
  919                                
  920                                
  921                            </li>
  922                        
  923                            <li class="index-item method inherited">
  924                                <a href="#method_getChildIndex">getChildIndex</a>
  925
  926                                
  927                                
  928                            </li>
  929                        
  930                            <li class="index-item method inherited">
  931                                <a href="#method_getConcatenatedDisplayProps">getConcatenatedDisplayProps</a>
  932
  933                                
  934                                
  935                            </li>
  936                        
  937                            <li class="index-item method inherited">
  938                                <a href="#method_getConcatenatedMatrix">getConcatenatedMatrix</a>
  939
  940                                
  941                                
  942                            </li>
  943                        
  944                            <li class="index-item method">
  945                                <a href="#method_getFilterShader">getFilterShader</a>
  946
  947                                
  948                                
  949                            </li>
  950                        
  951                            <li class="index-item method inherited">
  952                                <a href="#method_getMatrix">getMatrix</a>
  953
  954                                
  955                                
  956                            </li>
  957                        
  958                            <li class="index-item method inherited">
  959                                <a href="#method_getObjectsUnderPoint">getObjectsUnderPoint</a>
  960
  961                                
  962                                
  963                            </li>
  964                        
  965                            <li class="index-item method inherited">
  966                                <a href="#method_getObjectUnderPoint">getObjectUnderPoint</a>
  967
  968                                
  969                                
  970                            </li>
  971                        
  972                            <li class="index-item method">
  973                                <a href="#method_getRenderBufferTexture">getRenderBufferTexture</a>
  974
  975                                
  976                                
  977                            </li>
  978                        
  979                            <li class="index-item method">
  980                                <a href="#method_getTargetRenderTexture">getTargetRenderTexture</a>
  981
  982                                
  983                                
  984                            </li>
  985                        
  986                            <li class="index-item method inherited">
  987                                <a href="#method_getTransformedBounds">getTransformedBounds</a>
  988
  989                                
  990                                
  991                            </li>
  992                        
  993                            <li class="index-item method inherited">
  994                                <a href="#method_globalToLocal">globalToLocal</a>
  995
  996                                
  997                                
  998                            </li>
  999                        
 1000                            <li class="index-item method inherited">
 1001                                <a href="#method_hasEventListener">hasEventListener</a>
 1002
 1003                                
 1004                                
 1005                            </li>
 1006                        
 1007                            <li class="index-item method inherited inherited">
 1008                                <a href="#method_hitTest">hitTest</a>
 1009
 1010                                
 1011                                
 1012                            </li>
 1013                        
 1014                            <li class="index-item method deprecated inherited">
 1015                                <a href="#method_initialize">initialize</a>
 1016
 1017                                
 1018                                
 1019                                    <span class="flag deprecated">deprecated</span>
 1020                                
 1021                            </li>
 1022                        
 1023                            <li class="index-item method inherited inherited">
 1024                                <a href="#method_isVisible">isVisible</a>
 1025
 1026                                
 1027                                
 1028                            </li>
 1029                        
 1030                            <li class="index-item method">
 1031                                <a href="#method_isWebGLActive">isWebGLActive</a>
 1032
 1033                                
 1034                                    <span class="flag static">static</span>
 1035                                
 1036                                
 1037                            </li>
 1038                        
 1039                            <li class="index-item method inherited">
 1040                                <a href="#method_localToGlobal">localToGlobal</a>
 1041
 1042                                
 1043                                
 1044                            </li>
 1045                        
 1046                            <li class="index-item method inherited">
 1047                                <a href="#method_localToLocal">localToLocal</a>
 1048
 1049                                
 1050                                
 1051                            </li>
 1052                        
 1053                            <li class="index-item method inherited">
 1054                                <a href="#method_off">off</a>
 1055
 1056                                
 1057                                
 1058                            </li>
 1059                        
 1060                            <li class="index-item method inherited">
 1061                                <a href="#method_on">on</a>
 1062
 1063                                
 1064                                
 1065                            </li>
 1066                        
 1067                            <li class="index-item method">
 1068                                <a href="#method_protectTextureSlot">protectTextureSlot</a>
 1069
 1070                                
 1071                                
 1072                            </li>
 1073                        
 1074                            <li class="index-item method">
 1075                                <a href="#method_purgeTextures">purgeTextures</a>
 1076
 1077                                
 1078                                
 1079                            </li>
 1080                        
 1081                            <li class="index-item method">
 1082                                <a href="#method_releaseTexture">releaseTexture</a>
 1083
 1084                                
 1085                                
 1086                            </li>
 1087                        
 1088                            <li class="index-item method inherited">
 1089                                <a href="#method_removeAllChildren">removeAllChildren</a>
 1090
 1091                                
 1092                                
 1093                            </li>
 1094                        
 1095                            <li class="index-item method inherited">
 1096                                <a href="#method_removeAllEventListeners">removeAllEventListeners</a>
 1097
 1098                                
 1099                                
 1100                            </li>
 1101                        
 1102                            <li class="index-item method inherited">
 1103                                <a href="#method_removeChild">removeChild</a>
 1104
 1105                                
 1106                                
 1107                            </li>
 1108                        
 1109                            <li class="index-item method inherited inherited">
 1110                                <a href="#method_removeChildAt">removeChildAt</a>
 1111
 1112                                
 1113                                
 1114                            </li>
 1115                        
 1116                            <li class="index-item method inherited">
 1117                                <a href="#method_removeEventListener">removeEventListener</a>
 1118
 1119                                
 1120                                
 1121                            </li>
 1122                        
 1123                            <li class="index-item method protected">
 1124                                <a href="#method_resizeTexture">resizeTexture</a>
 1125
 1126                                
 1127                                
 1128                            </li>
 1129                        
 1130                            <li class="index-item method inherited">
 1131                                <a href="#method_set">set</a>
 1132
 1133                                
 1134                                
 1135                            </li>
 1136                        
 1137                            <li class="index-item method inherited">
 1138                                <a href="#method_setBounds">setBounds</a>
 1139
 1140                                
 1141                                
 1142                            </li>
 1143                        
 1144                            <li class="index-item method inherited">
 1145                                <a href="#method_setChildIndex">setChildIndex</a>
 1146
 1147                                
 1148                                
 1149                            </li>
 1150                        
 1151                            <li class="index-item method">
 1152                                <a href="#method_setClearColor">setClearColor</a>
 1153
 1154                                
 1155                                
 1156                            </li>
 1157                        
 1158                            <li class="index-item method">
 1159                                <a href="#method_setTextureParams">setTextureParams</a>
 1160
 1161                                
 1162                                
 1163                            </li>
 1164                        
 1165                            <li class="index-item method inherited">
 1166                                <a href="#method_setTransform">setTransform</a>
 1167
 1168                                
 1169                                
 1170                            </li>
 1171                        
 1172                            <li class="index-item method inherited">
 1173                                <a href="#method_sortChildren">sortChildren</a>
 1174
 1175                                
 1176                                
 1177                            </li>
 1178                        
 1179                            <li class="index-item method inherited">
 1180                                <a href="#method_swapChildren">swapChildren</a>
 1181
 1182                                
 1183                                
 1184                            </li>
 1185                        
 1186                            <li class="index-item method inherited">
 1187                                <a href="#method_swapChildrenAt">swapChildrenAt</a>
 1188
 1189                                
 1190                                
 1191                            </li>
 1192                        
 1193                            <li class="index-item method inherited">
 1194                                <a href="#method_tick">tick</a>
 1195
 1196                                
 1197                                
 1198                            </li>
 1199                        
 1200                            <li class="index-item method inherited">
 1201                                <a href="#method_toDataURL">toDataURL</a>
 1202
 1203                                
 1204                                
 1205                            </li>
 1206                        
 1207                            <li class="index-item method inherited inherited">
 1208                                <a href="#method_toString">toString</a>
 1209
 1210                                
 1211                                
 1212                            </li>
 1213                        
 1214                            <li class="index-item method inherited">
 1215                                <a href="#method_uncache">uncache</a>
 1216
 1217                                
 1218                                
 1219                            </li>
 1220                        
 1221                            <li class="index-item method inherited">
 1222                                <a href="#method_update">update</a>
 1223
 1224                                
 1225                                
 1226                            </li>
 1227                        
 1228                            <li class="index-item method inherited">
 1229                                <a href="#method_updateCache">updateCache</a>
 1230
 1231                                
 1232                                
 1233                            </li>
 1234                        
 1235                            <li class="index-item method inherited">
 1236                                <a href="#method_updateContext">updateContext</a>
 1237
 1238                                
 1239                                
 1240                            </li>
 1241                        
 1242                            <li class="index-item method">
 1243                                <a href="#method_updateSimultaneousTextureCount">updateSimultaneousTextureCount</a>
 1244
 1245                                
 1246                                
 1247                            </li>
 1248                        
 1249                            <li class="index-item method">
 1250                                <a href="#method_updateViewport">updateViewport</a>
 1251
 1252                                
 1253                                
 1254                            </li>
 1255                        
 1256                            <li class="index-item method inherited">
 1257                                <a href="#method_willTrigger">willTrigger</a>
 1258
 1259                                
 1260                                
 1261                            </li>
 1262                        
 1263                    </ul>
 1264                </div>
 1265            
 1266
 1267            
 1268                <div class="index-section properties">
 1269                    <h3>Properties</h3>
 1270
 1271                    <ul class="index-list properties extends">
 1272                        
 1273                            <li class="index-item property protected">
 1274                                <a href="#property__activeShader">_activeShader</a>
 1275
 1276                                
 1277                                
 1278                            </li>
 1279                        
 1280                            <li class="index-item property protected">
 1281                                <a href="#property__alphaBuffer">_alphaBuffer</a>
 1282
 1283                                
 1284                                
 1285                            </li>
 1286                        
 1287                            <li class="index-item property protected">
 1288                                <a href="#property__alphas">_alphas</a>
 1289
 1290                                
 1291                                
 1292                            </li>
 1293                        
 1294                            <li class="index-item property protected">
 1295                                <a href="#property__antialias">_antialias</a>
 1296
 1297                                
 1298                                
 1299                            </li>
 1300                        
 1301                            <li class="index-item property protected">
 1302                                <a href="#property__autoPurge">_autoPurge</a>
 1303
 1304                                
 1305                                
 1306                            </li>
 1307                        
 1308                            <li class="index-item property protected">
 1309                                <a href="#property__baseTextures">_baseTextures</a>
 1310
 1311                                
 1312                                
 1313                            </li>
 1314                        
 1315                            <li class="index-item property protected">
 1316                                <a href="#property__batchId">_batchId</a>
 1317
 1318                                
 1319                                
 1320                            </li>
 1321                        
 1322                            <li class="index-item property protected">
 1323                                <a href="#property__batchTextureCount">_batchTextureCount</a>
 1324
 1325                                
 1326                                
 1327                            </li>
 1328                        
 1329                            <li class="index-item property protected">
 1330                                <a href="#property__batchTextures">_batchTextures</a>
 1331
 1332                                
 1333                                
 1334                            </li>
 1335                        
 1336                            <li class="index-item property protected inherited">
 1337                                <a href="#property__bounds">_bounds</a>
 1338
 1339                                
 1340                                
 1341                            </li>
 1342                        
 1343                            <li class="index-item property protected">
 1344                                <a href="#property__cacheContainer">_cacheContainer</a>
 1345
 1346                                
 1347                                
 1348                            </li>
 1349                        
 1350                            <li class="index-item property protected deprecated inherited">
 1351                                <a href="#property__cacheDataURL">_cacheDataURL</a>
 1352
 1353                                
 1354                                
 1355                                    <span class="flag deprecated">deprecated</span>
 1356                                
 1357                            </li>
 1358                        
 1359                            <li class="index-item property protected deprecated inherited">
 1360                                <a href="#property__cacheDataURLID">_cacheDataURLID</a>
 1361
 1362                                
 1363                                
 1364                                    <span class="flag deprecated">deprecated</span>
 1365                                
 1366                            </li>
 1367                        
 1368                            <li class="index-item property protected deprecated inherited">
 1369                                <a href="#property__cacheScale">_cacheScale</a>
 1370
 1371                                
 1372                                
 1373                                    <span class="flag deprecated">deprecated</span>
 1374                                
 1375                            </li>
 1376                        
 1377                            <li class="index-item property protected inherited">
 1378                                <a href="#property__captureListeners">_captureListeners</a>
 1379
 1380                                
 1381                                
 1382                            </li>
 1383                        
 1384                            <li class="index-item property protected">
 1385                                <a href="#property__clearColor">_clearColor</a>
 1386
 1387                                
 1388                                
 1389                            </li>
 1390                        
 1391                            <li class="index-item property protected">
 1392                                <a href="#property__drawID">_drawID</a>
 1393
 1394                                
 1395                                
 1396                            </li>
 1397                        
 1398                            <li class="index-item property protected">
 1399                                <a href="#property__drawTexture">_drawTexture</a>
 1400
 1401                                
 1402                                
 1403                            </li>
 1404                        
 1405                            <li class="index-item property protected">
 1406                                <a href="#property__indices">_indices</a>
 1407
 1408                                
 1409                                
 1410                            </li>
 1411                        
 1412                            <li class="index-item property protected">
 1413                                <a href="#property__isDrawing">_isDrawing</a>
 1414
 1415                                
 1416                                
 1417                            </li>
 1418                        
 1419                            <li class="index-item property protected">
 1420                                <a href="#property__lastTextureInsert">_lastTextureInsert</a>
 1421
 1422                                
 1423                                
 1424                            </li>
 1425                        
 1426                            <li class="index-item property protected">
 1427                                <a href="#property__lastTrackedCanvas">_lastTrackedCanvas</a>
 1428
 1429                                
 1430                                
 1431                            </li>
 1432                        
 1433                            <li class="index-item property protected inherited">
 1434                                <a href="#property__listeners">_listeners</a>
 1435
 1436                                
 1437                                
 1438                            </li>
 1439                        
 1440                            <li class="index-item property protected">
 1441                                <a href="#property__maxCardsPerBatch">_maxCardsPerBatch</a>
 1442
 1443                                
 1444                                
 1445                            </li>
 1446                        
 1447                            <li class="index-item property protected inherited">
 1448                                <a href="#property__mouseOverIntervalID">_mouseOverIntervalID</a>
 1449
 1450                                
 1451                                
 1452                            </li>
 1453                        
 1454                            <li class="index-item property protected inherited">
 1455                                <a href="#property__nextStage">_nextStage</a>
 1456
 1457                                
 1458                                
 1459                            </li>
 1460                        
 1461                            <li class="index-item property private inherited">
 1462                                <a href="#property__pointerCount">_pointerCount</a>
 1463
 1464                                
 1465                                
 1466                            </li>
 1467                        
 1468                            <li class="index-item property private inherited">
 1469                                <a href="#property__pointerData">_pointerData</a>
 1470
 1471                                
 1472                                
 1473                            </li>
 1474                        
 1475                            <li class="index-item property protected">
 1476                                <a href="#property__premultiply">_premultiply</a>
 1477
 1478                                
 1479                                
 1480                            </li>
 1481                        
 1482                            <li class="index-item property protected">
 1483                                <a href="#property__preserveBuffer">_preserveBuffer</a>
 1484
 1485                                
 1486                                
 1487                            </li>
 1488                        
 1489                            <li class="index-item property protected inherited">
 1490                                <a href="#property__prevStage">_prevStage</a>
 1491
 1492                                
 1493                                
 1494                            </li>
 1495                        
 1496                            <li class="index-item property private inherited">
 1497                                <a href="#property__primaryPointerID">_primaryPointerID</a>
 1498
 1499                                
 1500                                
 1501                            </li>
 1502                        
 1503                            <li class="index-item property protected">
 1504                                <a href="#property__projectionMatrix">_projectionMatrix</a>
 1505
 1506                                
 1507                                
 1508                            </li>
 1509                        
 1510                            <li class="index-item property protected inherited">
 1511                                <a href="#property__props">_props</a>
 1512
 1513                                
 1514                                
 1515                            </li>
 1516                        
 1517                            <li class="index-item property protected inherited">
 1518                                <a href="#property__rectangle">_rectangle</a>
 1519
 1520                                
 1521                                
 1522                            </li>
 1523                        
 1524                            <li class="index-item property protected">
 1525                                <a href="#property__slotBlackList">_slotBlackList</a>
 1526
 1527                                
 1528                                
 1529                            </li>
 1530                        
 1531                            <li class="index-item property protected">
 1532                                <a href="#property__textureIDs">_textureIDs</a>
 1533
 1534                                
 1535                                
 1536                            </li>
 1537                        
 1538                            <li class="index-item property protected">
 1539                                <a href="#property__textureIndexBuffer">_textureIndexBuffer</a>
 1540
 1541                                
 1542                                
 1543                            </li>
 1544                        
 1545                            <li class="index-item property protected">
 1546                                <a href="#property__transparent">_transparent</a>
 1547
 1548                                
 1549                                
 1550                            </li>
 1551                        
 1552                            <li class="index-item property protected">
 1553                                <a href="#property__uvPositionBuffer">_uvPositionBuffer</a>
 1554
 1555                                
 1556                                
 1557                            </li>
 1558                        
 1559                            <li class="index-item property protected">
 1560                                <a href="#property__uvs">_uvs</a>
 1561
 1562                                
 1563                                
 1564                            </li>
 1565                        
 1566                            <li class="index-item property protected">
 1567                                <a href="#property__vertexPositionBuffer">_vertexPositionBuffer</a>
 1568
 1569                                
 1570                                
 1571                            </li>
 1572                        
 1573                            <li class="index-item property protected">
 1574                                <a href="#property__vertices">_vertices</a>
 1575
 1576                                
 1577                                
 1578                            </li>
 1579                        
 1580                            <li class="index-item property protected">
 1581                                <a href="#property__viewportHeight">_viewportHeight</a>
 1582
 1583                                
 1584                                
 1585                            </li>
 1586                        
 1587                            <li class="index-item property protected">
 1588                                <a href="#property__viewportWidth">_viewportWidth</a>
 1589
 1590                                
 1591                                
 1592                            </li>
 1593                        
 1594                            <li class="index-item property protected">
 1595                                <a href="#property__webGLContext">_webGLContext</a>
 1596
 1597                                
 1598                                
 1599                            </li>
 1600                        
 1601                            <li class="index-item property protected inherited">
 1602                                <a href="#property__webGLRenderStyle">_webGLRenderStyle</a>
 1603
 1604                                
 1605                                
 1606                            </li>
 1607                        
 1608                            <li class="index-item property inherited">
 1609                                <a href="#property_alpha">alpha</a>
 1610
 1611                                
 1612                                
 1613                            </li>
 1614                        
 1615                            <li class="index-item property inherited">
 1616                                <a href="#property_autoClear">autoClear</a>
 1617
 1618                                
 1619                                
 1620                            </li>
 1621                        
 1622                            <li class="index-item property protected">
 1623                                <a href="#property_autoPurge">autoPurge</a>
 1624
 1625                                
 1626                                
 1627                            </li>
 1628                        
 1629                            <li class="index-item property inherited">
 1630                                <a href="#property_bitmapCache">bitmapCache</a>
 1631
 1632                                
 1633                                
 1634                            </li>
 1635                        
 1636                            <li class="index-item property inherited">
 1637                                <a href="#property_cacheCanvas">cacheCanvas</a>
 1638
 1639                                
 1640                                
 1641                            </li>
 1642                        
 1643                            <li class="index-item property deprecated inherited">
 1644                                <a href="#property_cacheID">cacheID</a>
 1645
 1646                                
 1647                                
 1648                                    <span class="flag deprecated">deprecated</span>
 1649                                
 1650                            </li>
 1651                        
 1652                            <li class="index-item property inherited">
 1653                                <a href="#property_canvas">canvas</a>
 1654
 1655                                
 1656                                
 1657                            </li>
 1658                        
 1659                            <li class="index-item property inherited">
 1660                                <a href="#property_children">children</a>
 1661
 1662                                
 1663                                
 1664                            </li>
 1665                        
 1666                            <li class="index-item property inherited">
 1667                                <a href="#property_compositeOperation">compositeOperation</a>
 1668
 1669                                
 1670                                
 1671                            </li>
 1672                        
 1673                            <li class="index-item property">
 1674                                <a href="#property_COVER_FRAGMENT_BODY">COVER_FRAGMENT_BODY</a>
 1675
 1676                                
 1677                                    <span class="flag static">static</span>
 1678                                
 1679                                
 1680                            </li>
 1681                        
 1682                            <li class="index-item property">
 1683                                <a href="#property_COVER_FRAGMENT_HEADER">COVER_FRAGMENT_HEADER</a>
 1684
 1685                                
 1686                                    <span class="flag static">static</span>
 1687                                
 1688                                
 1689                            </li>
 1690                        
 1691                            <li class="index-item property">
 1692                                <a href="#property_COVER_UV">COVER_UV</a>
 1693
 1694                                
 1695                                    <span class="flag static">static</span>
 1696                                
 1697                                
 1698                            </li>
 1699                        
 1700                            <li class="index-item property">
 1701                                <a href="#property_COVER_UV_FLIP">COVER_UV_FLIP</a>
 1702
 1703                                
 1704                                    <span class="flag static">static</span>
 1705                                
 1706                                
 1707                            </li>
 1708                        
 1709                            <li class="index-item property">
 1710                                <a href="#property_COVER_VARYING_HEADER">COVER_VARYING_HEADER</a>
 1711
 1712                                
 1713                                    <span class="flag static">static</span>
 1714                                
 1715                                
 1716                            </li>
 1717                        
 1718                            <li class="index-item property">
 1719                                <a href="#property_COVER_VERT">COVER_VERT</a>
 1720
 1721                                
 1722                                    <span class="flag static">static</span>
 1723                                
 1724                                
 1725                            </li>
 1726                        
 1727                            <li class="index-item property">
 1728                                <a href="#property_COVER_VERTEX_BODY">COVER_VERTEX_BODY</a>
 1729
 1730                                
 1731                                    <span class="flag static">static</span>
 1732                                
 1733                                
 1734                            </li>
 1735                        
 1736                            <li class="index-item property">
 1737                                <a href="#property_COVER_VERTEX_HEADER">COVER_VERTEX_HEADER</a>
 1738
 1739                                
 1740                                    <span class="flag static">static</span>
 1741                                
 1742                                
 1743                            </li>
 1744                        
 1745                            <li class="index-item property inherited">
 1746                                <a href="#property_cursor">cursor</a>
 1747
 1748                                
 1749                                
 1750                            </li>
 1751                        
 1752                            <li class="index-item property">
 1753                                <a href="#property_DEFAULT_MAX_BATCH_SIZE">DEFAULT_MAX_BATCH_SIZE</a>
 1754
 1755                                
 1756                                    <span class="flag static">static</span>
 1757                                
 1758                                
 1759                            </li>
 1760                        
 1761                            <li class="index-item property inherited">
 1762                                <a href="#property_drawRect">drawRect</a>
 1763
 1764                                
 1765                                
 1766                            </li>
 1767                        
 1768                            <li class="index-item property inherited">
 1769                                <a href="#property_filters">filters</a>
 1770
 1771                                
 1772                                
 1773                            </li>
 1774                        
 1775                            <li class="index-item property inherited">
 1776                                <a href="#property_handleEvent">handleEvent</a>
 1777
 1778                                
 1779                                
 1780                            </li>
 1781                        
 1782                            <li class="index-item property inherited inherited">
 1783                                <a href="#property_hitArea">hitArea</a>
 1784
 1785                                
 1786                                
 1787                            </li>
 1788                        
 1789                            <li class="index-item property inherited">
 1790                                <a href="#property_id">id</a>
 1791
 1792                                
 1793                                
 1794                            </li>
 1795                        
 1796                            <li class="index-item property">
 1797                                <a href="#property_INDICIES_PER_CARD">INDICIES_PER_CARD</a>
 1798
 1799                                
 1800                                    <span class="flag static">static</span>
 1801                                
 1802                                
 1803                            </li>
 1804                        
 1805                            <li class="index-item property protected">
 1806                                <a href="#property_isCacheControlled">isCacheControlled</a>
 1807
 1808                                
 1809                                
 1810                            </li>
 1811                        
 1812                            <li class="index-item property">
 1813                                <a href="#property_isWebGL">isWebGL</a>
 1814
 1815                                
 1816                                
 1817                            </li>
 1818                        
 1819                            <li class="index-item property inherited">
 1820                                <a href="#property_mask">mask</a>
 1821
 1822                                
 1823                                
 1824                            </li>
 1825                        
 1826                            <li class="index-item property inherited">
 1827                                <a href="#property_mouseChildren">mouseChildren</a>
 1828
 1829                                
 1830                                
 1831                            </li>
 1832                        
 1833                            <li class="index-item property inherited">
 1834                                <a href="#property_mouseEnabled">mouseEnabled</a>
 1835
 1836                                
 1837                                
 1838                            </li>
 1839                        
 1840                            <li class="index-item property inherited">
 1841                                <a href="#property_mouseInBounds">mouseInBounds</a>
 1842
 1843                                
 1844                                
 1845                            </li>
 1846                        
 1847                            <li class="index-item property inherited">
 1848                                <a href="#property_mouseMoveOutside">mouseMoveOutside</a>
 1849
 1850                                
 1851                                
 1852                            </li>
 1853                        
 1854                            <li class="index-item property inherited">
 1855                                <a href="#property_mouseX">mouseX</a>
 1856
 1857                                
 1858                                
 1859                            </li>
 1860                        
 1861                            <li class="index-item property inherited">
 1862                                <a href="#property_mouseY">mouseY</a>
 1863
 1864                                
 1865                                
 1866                            </li>
 1867                        
 1868                            <li class="index-item property inherited">
 1869                                <a href="#property_name">name</a>
 1870
 1871                                
 1872                                
 1873                            </li>
 1874                        
 1875                            <li class="index-item property inherited">
 1876                                <a href="#property_nextStage">nextStage</a>
 1877
 1878                                
 1879                                
 1880                            </li>
 1881                        
 1882                            <li class="index-item property inherited">
 1883                                <a href="#property_numChildren">numChildren</a>
 1884
 1885                                
 1886                                
 1887                            </li>
 1888                        
 1889                            <li class="index-item property inherited">
 1890                                <a href="#property_parent">parent</a>
 1891
 1892                                
 1893                                
 1894                            </li>
 1895                        
 1896                            <li class="index-item property">
 1897                                <a href="#property_PARTICLE_FRAGMENT_BODY">PARTICLE_FRAGMENT_BODY</a>
 1898
 1899                                
 1900                                    <span class="flag static">static</span>
 1901                                
 1902                                
 1903                            </li>
 1904                        
 1905                            <li class="index-item property">
 1906                                <a href="#property_PARTICLE_VERTEX_BODY">PARTICLE_VERTEX_BODY</a>
 1907
 1908                                
 1909                                    <span class="flag static">static</span>
 1910                                
 1911                                
 1912                            </li>
 1913                        
 1914                            <li class="index-item property inherited">
 1915                                <a href="#property_preventSelection">preventSelection</a>
 1916
 1917                                
 1918                                
 1919                            </li>
 1920                        
 1921                            <li class="index-item property">
 1922                                <a href="#property_REGULAR_FRAGMENT_BODY">REGULAR_FRAGMENT_BODY</a>
 1923
 1924                                
 1925                                    <span class="flag static">static</span>
 1926                                
 1927                                
 1928                            </li>
 1929                        
 1930                            <li class="index-item property">
 1931                                <a href="#property_REGULAR_FRAGMENT_HEADER">REGULAR_FRAGMENT_HEADER</a>
 1932
 1933                                
 1934                                    <span class="flag static">static</span>
 1935                                
 1936                                
 1937                            </li>
 1938                        
 1939                            <li class="index-item property">
 1940                                <a href="#property_REGULAR_VARYING_HEADER">REGULAR_VARYING_HEADER</a>
 1941
 1942                                
 1943                                    <span class="flag static">static</span>
 1944                                
 1945                                
 1946                            </li>
 1947                        
 1948                            <li class="index-item property">
 1949                                <a href="#property_REGULAR_VERTEX_BODY">REGULAR_VERTEX_BODY</a>
 1950
 1951                                
 1952                                    <span class="flag static">static</span>
 1953                                
 1954                                
 1955                            </li>
 1956                        
 1957                            <li class="index-item property">
 1958                                <a href="#property_REGULAR_VERTEX_HEADER">REGULAR_VERTEX_HEADER</a>
 1959
 1960                                
 1961                                    <span class="flag static">static</span>
 1962                                
 1963                                
 1964                            </li>
 1965                        
 1966                            <li class="index-item property inherited">
 1967                                <a href="#property_regX">regX</a>
 1968
 1969                                
 1970                                
 1971                            </li>
 1972                        
 1973                            <li class="index-item property inherited">
 1974                                <a href="#property_regY">regY</a>
 1975
 1976                                
 1977                                
 1978                            </li>
 1979                        
 1980                            <li class="index-item property inherited">
 1981                                <a href="#property_rotation">rotation</a>
 1982
 1983                                
 1984                                
 1985                            </li>
 1986                        
 1987                            <li class="index-item property inherited inherited">
 1988                                <a href="#property_scaleX">scaleX</a>
 1989
 1990                                
 1991                                
 1992                            </li>
 1993                        
 1994                            <li class="index-item property inherited">
 1995                                <a href="#property_scaleY">scaleY</a>
 1996
 1997                                
 1998                                
 1999                            </li>
 2000                        
 2001                            <li class="index-item property inherited">
 2002                                <a href="#property_shadow">shadow</a>
 2003
 2004                                
 2005                                
 2006                            </li>
 2007                        
 2008                            <li class="index-item property inherited">
 2009                                <a href="#property_skewX">skewX</a>
 2010
 2011                                
 2012                                
 2013                            </li>
 2014                        
 2015                            <li class="index-item property inherited">
 2016                                <a href="#property_skewY">skewY</a>
 2017
 2018                                
 2019                                
 2020                            </li>
 2021                        
 2022                            <li class="index-item property inherited">
 2023                                <a href="#property_snapToPixel">snapToPixel</a>
 2024
 2025                                
 2026                                
 2027                            </li>
 2028                        
 2029                            <li class="index-item property inherited">
 2030                                <a href="#property_snapToPixelEnabled">snapToPixelEnabled</a>
 2031
 2032                                
 2033                                
 2034                            </li>
 2035                        
 2036                            <li class="index-item property inherited">
 2037                                <a href="#property_stage">stage</a>
 2038
 2039                                
 2040                                
 2041                            </li>
 2042                        
 2043                            <li class="index-item property inherited">
 2044                                <a href="#property_tickChildren">tickChildren</a>
 2045
 2046                                
 2047                                
 2048                            </li>
 2049                        
 2050                            <li class="index-item property inherited">
 2051                                <a href="#property_tickEnabled">tickEnabled</a>
 2052
 2053                                
 2054                                
 2055                            </li>
 2056                        
 2057                            <li class="index-item property inherited">
 2058                                <a href="#property_tickOnUpdate">tickOnUpdate</a>
 2059
 2060                                
 2061                                
 2062                            </li>
 2063                        
 2064                            <li class="index-item property inherited">
 2065                                <a href="#property_transformMatrix">transformMatrix</a>
 2066
 2067                                
 2068                                
 2069                            </li>
 2070                        
 2071                            <li class="index-item property">
 2072                                <a href="#property_UV_RECT">UV_RECT</a>
 2073
 2074                                
 2075                                    <span class="flag static">static</span>
 2076                                
 2077                                
 2078                            </li>
 2079                        
 2080                            <li class="index-item property">
 2081                                <a href="#property_VERTEX_PROPERTY_COUNT">VERTEX_PROPERTY_COUNT</a>
 2082
 2083                                
 2084                                    <span class="flag static">static</span>
 2085                                
 2086                                
 2087                            </li>
 2088                        
 2089                            <li class="index-item property inherited">
 2090                                <a href="#property_visible">visible</a>
 2091
 2092                                
 2093                                
 2094                            </li>
 2095                        
 2096                            <li class="index-item property">
 2097                                <a href="#property_vocalDebug">vocalDebug</a>
 2098
 2099                                
 2100                                
 2101                            </li>
 2102                        
 2103                            <li class="index-item property">
 2104                                <a href="#property_WEBGL_MAX_INDEX_NUM">WEBGL_MAX_INDEX_NUM</a>
 2105
 2106                                
 2107                                    <span class="flag static">static</span>
 2108                                
 2109                                
 2110                            </li>
 2111                        
 2112                            <li class="index-item property inherited">
 2113                                <a href="#property_x">x</a>
 2114
 2115                                
 2116                                
 2117                            </li>
 2118                        
 2119                            <li class="index-item property inherited">
 2120                                <a href="#property_y">y</a>
 2121
 2122                                
 2123                                
 2124                            </li>
 2125                        
 2126                    </ul>
 2127                </div>
 2128            
 2129
 2130            
 2131
 2132            
 2133                <div class="index-section events">
 2134                    <h3>Events</h3>
 2135
 2136                    <ul class="index-list events extends">
 2137                        
 2138                            <li class="index-item event inherited">
 2139                                <a href="#event_added">added</a>
 2140
 2141                                
 2142                                
 2143                            </li>
 2144                        
 2145                            <li class="index-item event inherited">
 2146                                <a href="#event_click">click</a>
 2147
 2148                                
 2149                                
 2150                            </li>
 2151                        
 2152                            <li class="index-item event inherited">
 2153                                <a href="#event_dblclick">dblclick</a>
 2154
 2155                                
 2156                                
 2157                            </li>
 2158                        
 2159                            <li class="index-item event inherited">
 2160                                <a href="#event_drawend">drawend</a>
 2161
 2162                                
 2163                                
 2164                            </li>
 2165                        
 2166                            <li class="index-item event inherited">
 2167                                <a href="#event_drawstart">drawstart</a>
 2168
 2169                                
 2170                                
 2171                            </li>
 2172                        
 2173                            <li class="index-item event inherited">
 2174                                <a href="#event_mousedown">mousedown</a>
 2175
 2176                                
 2177                                
 2178                            </li>
 2179                        
 2180                            <li class="index-item event inherited">
 2181                                <a href="#event_mouseenter">mouseenter</a>
 2182
 2183                                
 2184                                
 2185                            </li>
 2186                        
 2187                            <li class="index-item event inherited">
 2188                                <a href="#event_mouseleave">mouseleave</a>
 2189
 2190                                
 2191                                
 2192                            </li>
 2193                        
 2194                            <li class="index-item event inherited">
 2195                                <a href="#event_mouseout">mouseout</a>
 2196
 2197                                
 2198                                
 2199                            </li>
 2200                        
 2201                            <li class="index-item event inherited">
 2202                                <a href="#event_mouseover">mouseover</a>
 2203
 2204                                
 2205                                
 2206                            </li>
 2207                        
 2208                            <li class="index-item event inherited">
 2209                                <a href="#event_pressmove">pressmove</a>
 2210
 2211                                
 2212                                
 2213                            </li>
 2214                        
 2215                            <li class="index-item event inherited">
 2216                                <a href="#event_pressup">pressup</a>
 2217
 2218                                
 2219                                
 2220                            </li>
 2221                        
 2222                            <li class="index-item event inherited">
 2223                                <a href="#event_removed">removed</a>
 2224
 2225                                
 2226                                
 2227                            </li>
 2228                        
 2229                            <li class="index-item event inherited">
 2230                                <a href="#event_rollout">rollout</a>
 2231
 2232                                
 2233                                
 2234                            </li>
 2235                        
 2236                            <li class="index-item event inherited">
 2237                                <a href="#event_rollover">rollover</a>
 2238
 2239                                
 2240                                
 2241                            </li>
 2242                        
 2243                            <li class="index-item event inherited">
 2244                                <a href="#event_stagemousedown">stagemousedown</a>
 2245
 2246                                
 2247                                
 2248                            </li>
 2249                        
 2250                            <li class="index-item event inherited">
 2251                                <a href="#event_stagemousemove">stagemousemove</a>
 2252
 2253                                
 2254                                
 2255                            </li>
 2256                        
 2257                            <li class="index-item event inherited">
 2258                                <a href="#event_stagemouseup">stagemouseup</a>
 2259
 2260                                
 2261                                
 2262                            </li>
 2263                        
 2264                            <li class="index-item event inherited">
 2265                                <a href="#event_tick">tick</a>
 2266
 2267                                
 2268                                
 2269                            </li>
 2270                        
 2271                            <li class="index-item event inherited">
 2272                                <a href="#event_tickend">tickend</a>
 2273
 2274                                
 2275                                
 2276                            </li>
 2277                        
 2278                            <li class="index-item event inherited">
 2279                                <a href="#event_tickstart">tickstart</a>
 2280
 2281                                
 2282                                
 2283                            </li>
 2284                        
 2285                    </ul>
 2286                </div>
 2287            
 2288        </div>
 2289
 2290        
 2291            <div id="methods" class="api-class-tabpanel">
 2292                <h2 class="off-left">Methods</h2>
 2293
 2294                
 2295                    <div id="method__appendToBatchGroup" class="method item protected">
 2296    <h3 class="name"><code>_appendToBatchGroup</code></h3>
 2297
 2298    
 2299        <div class="args">
 2300            <span class="paren">(</span><ul class="args-list inline commas">
 2301            
 2302                <li class="arg">
 2303                    
 2304                        <code>container</code>
 2305                    
 2306                </li>
 2307            
 2308                <li class="arg">
 2309                    
 2310                        <code>gl</code>
 2311                    
 2312                </li>
 2313            
 2314                <li class="arg">
 2315                    
 2316                        <code>concatMtx</code>
 2317                    
 2318                </li>
 2319            
 2320                <li class="arg">
 2321                    
 2322                        <code>concatAlpha</code>
 2323                    
 2324                </li>
 2325            
 2326                <li class="arg">
 2327                    
 2328                        <code>ignoreCache</code>
 2329                    
 2330                </li>
 2331            
 2332            </ul><span class="paren">)</span>
 2333        </div>
 2334    
 2335
 2336    
 2337
 2338    
 2339
 2340    
 2341        <span class="flag protected">protected</span>
 2342    
 2343
 2344    
 2345
 2346    
 2347
 2348    
 2349
 2350    
 2351
 2352    <div class="meta">
 2353        
 2354            
 2355                
 2356                <p>
 2357                
 2358                Defined in
 2359                
 2360            
 2361        
 2362        
 2363        <a href="../files/easeljs_display_StageGL.js.html#l2160"><code>_appendToBatchGroup:2160</code></a>
 2364        
 2365        </p>
 2366
 2367
 2368        
 2369
 2370        
 2371    </div>
 2372
 2373    <div class="description">
 2374        <p>Add all the contents of a container to the pending buffers, called recursively on each container. This may
 2375trigger a draw if a buffer runs out of space. This is the main workforce of the render loop.</p>
 2376
 2377    </div>
 2378
 2379    
 2380        <div class="params">
 2381            <h4>Parameters:</h4>
 2382
 2383            <ul class="params-list">
 2384            
 2385                <li class="param">
 2386                    
 2387                        <code class="param-name">container</code>
 2388                        <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
 2389                    
 2390
 2391                    
 2392
 2393                    <div class="param-description">
 2394                        <p>The <a href="../classes/Container.html" class="crosslink">Container</a> that contains everything to be drawn.</p>
 2395
 2396                    </div>
 2397
 2398                    
 2399                </li>
 2400            
 2401                <li class="param">
 2402                    
 2403                        <code class="param-name">gl</code>
 2404                        <span class="type">WebGLRenderingContext</span>
 2405                    
 2406
 2407                    
 2408
 2409                    <div class="param-description">
 2410                        <p>The canvas WebGL context object to draw into.</p>
 2411
 2412                    </div>
 2413
 2414                    
 2415                </li>
 2416            
 2417                <li class="param">
 2418                    
 2419                        <code class="param-name">concatMtx</code>
 2420                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 2421                    
 2422
 2423                    
 2424
 2425                    <div class="param-description">
 2426                        <p>The effective (concatenated) transformation matrix when beginning this container</p>
 2427
 2428                    </div>
 2429
 2430                    
 2431                </li>
 2432            
 2433                <li class="param">
 2434                    
 2435                        <code class="param-name">concatAlpha</code>
 2436                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2437                    
 2438
 2439                    
 2440
 2441                    <div class="param-description">
 2442                        <p>The effective (concatenated) alpha when beginning this container</p>
 2443
 2444                    </div>
 2445
 2446                    
 2447                </li>
 2448            
 2449                <li class="param">
 2450                    
 2451                        <code class="param-name">ignoreCache</code>
 2452                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2453                    
 2454
 2455                    
 2456
 2457                    <div class="param-description">
 2458                        <p>Don&#39;t use an element&#39;s cache during this draw</p>
 2459
 2460                    </div>
 2461
 2462                    
 2463                </li>
 2464            
 2465            </ul>
 2466        </div>
 2467    
 2468
 2469    
 2470
 2471    
 2472</div>
 2473
 2474                
 2475                    <div id="method__applyShadow" class="method item protected inherited">
 2476    <h3 class="name"><code>_applyShadow</code></h3>
 2477
 2478    
 2479        <div class="args">
 2480            <span class="paren">(</span><ul class="args-list inline commas">
 2481            
 2482                <li class="arg">
 2483                    
 2484                        <code>ctx</code>
 2485                    
 2486                </li>
 2487            
 2488                <li class="arg">
 2489                    
 2490                        <code>shadow</code>
 2491                    
 2492                </li>
 2493            
 2494            </ul><span class="paren">)</span>
 2495        </div>
 2496    
 2497
 2498    
 2499
 2500    
 2501
 2502    
 2503        <span class="flag protected">protected</span>
 2504    
 2505
 2506    
 2507
 2508    
 2509
 2510    
 2511
 2512    
 2513
 2514    <div class="meta">
 2515        
 2516            
 2517                <p>Inherited from
 2518                <a href="../classes/DisplayObject.html#method__applyShadow">DisplayObject</a>:
 2519            
 2520        
 2521        
 2522        <a href="../files/easeljs_display_DisplayObject.js.html#l1261"><code>_applyShadow:1261</code></a>
 2523        
 2524        </p>
 2525
 2526
 2527        
 2528
 2529        
 2530    </div>
 2531
 2532    <div class="description">
 2533        
 2534    </div>
 2535
 2536    
 2537        <div class="params">
 2538            <h4>Parameters:</h4>
 2539
 2540            <ul class="params-list">
 2541            
 2542                <li class="param">
 2543                    
 2544                        <code class="param-name">ctx</code>
 2545                        <span class="type">CanvasRenderingContext2D</span>
 2546                    
 2547
 2548                    
 2549
 2550                    <div class="param-description">
 2551                        
 2552                    </div>
 2553
 2554                    
 2555                </li>
 2556            
 2557                <li class="param">
 2558                    
 2559                        <code class="param-name">shadow</code>
 2560                        <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
 2561                    
 2562
 2563                    
 2564
 2565                    <div class="param-description">
 2566                        
 2567                    </div>
 2568
 2569                    
 2570                </li>
 2571            
 2572            </ul>
 2573        </div>
 2574    
 2575
 2576    
 2577
 2578    
 2579</div>
 2580
 2581                
 2582                    <div id="method__backupBatchTextures" class="method item protected">
 2583    <h3 class="name"><code>_backupBatchTextures</code></h3>
 2584
 2585    
 2586        <div class="args">
 2587            <span class="paren">(</span><ul class="args-list inline commas">
 2588            
 2589                <li class="arg">
 2590                    
 2591                        <code>restore</code>
 2592                    
 2593                </li>
 2594            
 2595                <li class="arg">
 2596                    
 2597                        <code class="optional">[target=this._backupTextures]</code>
 2598                    
 2599                </li>
 2600            
 2601            </ul><span class="paren">)</span>
 2602        </div>
 2603    
 2604
 2605    
 2606
 2607    
 2608
 2609    
 2610        <span class="flag protected">protected</span>
 2611    
 2612
 2613    
 2614
 2615    
 2616
 2617    
 2618
 2619    
 2620
 2621    <div class="meta">
 2622        
 2623            
 2624                
 2625                <p>
 2626                
 2627                Defined in
 2628                
 2629            
 2630        
 2631        
 2632        <a href="../files/easeljs_display_StageGL.js.html#l1941"><code>_backupBatchTextures:1941</code></a>
 2633        
 2634        </p>
 2635
 2636
 2637        
 2638
 2639        
 2640    </div>
 2641
 2642    <div class="description">
 2643        <p>Store or restore current batch textures into a backup array</p>
 2644
 2645    </div>
 2646
 2647    
 2648        <div class="params">
 2649            <h4>Parameters:</h4>
 2650
 2651            <ul class="params-list">
 2652            
 2653                <li class="param">
 2654                    
 2655                        <code class="param-name">restore</code>
 2656                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2657                    
 2658
 2659                    
 2660
 2661                    <div class="param-description">
 2662                        <p>Perform a restore instead of a store.</p>
 2663
 2664                    </div>
 2665
 2666                    
 2667                </li>
 2668            
 2669                <li class="param">
 2670                    
 2671                        <code class="param-name optional">[target=this._backupTextures]</code>
 2672                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 2673                        <span class="flag optional" title="This parameter is optional.">optional</span>
 2674                    
 2675
 2676                    
 2677
 2678                    <div class="param-description">
 2679                        <p>Where to perform the backup, defaults to internal backup.</p>
 2680
 2681                    </div>
 2682
 2683                    
 2684                </li>
 2685            
 2686            </ul>
 2687        </div>
 2688    
 2689
 2690    
 2691
 2692    
 2693</div>
 2694
 2695                
 2696                    <div id="method__batchDraw" class="method item protected">
 2697    <h3 class="name"><code>_batchDraw</code></h3>
 2698
 2699    
 2700        <div class="args">
 2701            <span class="paren">(</span><ul class="args-list inline commas">
 2702            
 2703                <li class="arg">
 2704                    
 2705                        <code>gl</code>
 2706                    
 2707                </li>
 2708            
 2709                <li class="arg">
 2710                    
 2711                        <code>sceneGraph</code>
 2712                    
 2713                </li>
 2714            
 2715                <li class="arg">
 2716                    
 2717                        <code>ignoreCache</code>
 2718                    
 2719                </li>
 2720            
 2721            </ul><span class="paren">)</span>
 2722        </div>
 2723    
 2724
 2725    
 2726
 2727    
 2728
 2729    
 2730        <span class="flag protected">protected</span>
 2731    
 2732
 2733    
 2734
 2735    
 2736
 2737    
 2738
 2739    
 2740
 2741    <div class="meta">
 2742        
 2743            
 2744                
 2745                <p>
 2746                
 2747                Defined in
 2748                
 2749            
 2750        
 2751        
 2752        <a href="../files/easeljs_display_StageGL.js.html#l1969"><code>_batchDraw:1969</code></a>
 2753        
 2754        </p>
 2755
 2756
 2757        
 2758
 2759        
 2760    </div>
 2761
 2762    <div class="description">
 2763        <p>Begin the drawing process for a regular render.</p>
 2764
 2765    </div>
 2766
 2767    
 2768        <div class="params">
 2769            <h4>Parameters:</h4>
 2770
 2771            <ul class="params-list">
 2772            
 2773                <li class="param">
 2774                    
 2775                        <code class="param-name">gl</code>
 2776                        <span class="type">WebGLRenderingContext</span>
 2777                    
 2778
 2779                    
 2780
 2781                    <div class="param-description">
 2782                        <p>The canvas WebGL context object to draw into.</p>
 2783
 2784                    </div>
 2785
 2786                    
 2787                </li>
 2788            
 2789                <li class="param">
 2790                    
 2791                        <code class="param-name">sceneGraph</code>
 2792                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a> |  | <a href="../classes/Container.html" class="crosslink">Container</a></span>
 2793                    
 2794
 2795                    
 2796
 2797                    <div class="param-description">
 2798                        <p><a href="../classes/Container.html" class="crosslink">Container</a> object with all that needs to rendered, preferably a Stage.</p>
 2799
 2800                    </div>
 2801
 2802                    
 2803                </li>
 2804            
 2805                <li class="param">
 2806                    
 2807                        <code class="param-name">ignoreCache</code>
 2808                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2809                    
 2810
 2811                    
 2812
 2813                    <div class="param-description">
 2814                         
 2815                    </div>
 2816
 2817                    
 2818                </li>
 2819            
 2820            </ul>
 2821        </div>
 2822    
 2823
 2824    
 2825
 2826    
 2827</div>
 2828
 2829                
 2830                    <div id="method__cacheDraw" class="method item protected">
 2831    <h3 class="name"><code>_cacheDraw</code></h3>
 2832
 2833    
 2834        <div class="args">
 2835            <span class="paren">(</span><ul class="args-list inline commas">
 2836            
 2837                <li class="arg">
 2838                    
 2839                        <code>target</code>
 2840                    
 2841                </li>
 2842            
 2843                <li class="arg">
 2844                    
 2845                        <code>filters</code>
 2846                    
 2847                </li>
 2848            
 2849                <li class="arg">
 2850                    
 2851                        <code>manager</code>
 2852                    
 2853                </li>
 2854            
 2855            </ul><span class="paren">)</span>
 2856        </div>
 2857    
 2858
 2859    
 2860
 2861    
 2862
 2863    
 2864        <span class="flag protected">protected</span>
 2865    
 2866
 2867    
 2868
 2869    
 2870
 2871    
 2872
 2873    
 2874
 2875    <div class="meta">
 2876        
 2877            
 2878                
 2879                <p>
 2880                
 2881                Defined in
 2882                
 2883            
 2884        
 2885        
 2886        <a href="../files/easeljs_display_StageGL.js.html#l1994"><code>_cacheDraw:1994</code></a>
 2887        
 2888        </p>
 2889
 2890
 2891        
 2892
 2893        
 2894    </div>
 2895
 2896    <div class="description">
 2897        <p>Perform the drawing process to fill a specific cache texture, including applying filters.</p>
 2898
 2899    </div>
 2900
 2901    
 2902        <div class="params">
 2903            <h4>Parameters:</h4>
 2904
 2905            <ul class="params-list">
 2906            
 2907                <li class="param">
 2908                    
 2909                        <code class="param-name">target</code>
 2910                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 2911                    
 2912
 2913                    
 2914
 2915                    <div class="param-description">
 2916                        <p>The object we&#39;re drawing into the cache. For example, used for drawing the cache
 2917(to prevent it from simply drawing an existing cache back into itself).</p>
 2918
 2919                    </div>
 2920
 2921                    
 2922                </li>
 2923            
 2924                <li class="param">
 2925                    
 2926                        <code class="param-name">filters</code>
 2927                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 2928                    
 2929
 2930                    
 2931
 2932                    <div class="param-description">
 2933                        <p>The filters we&#39;re drawing into cache.</p>
 2934
 2935                    </div>
 2936
 2937                    
 2938                </li>
 2939            
 2940                <li class="param">
 2941                    
 2942                        <code class="param-name">manager</code>
 2943                        <span class="type"><a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></span>
 2944                    
 2945
 2946                    
 2947
 2948                    <div class="param-description">
 2949                        <p>The BitmapCache instance looking after the cache</p>
 2950
 2951                    </div>
 2952
 2953                    
 2954                </li>
 2955            
 2956            </ul>
 2957        </div>
 2958    
 2959
 2960    
 2961
 2962    
 2963</div>
 2964
 2965                
 2966                    <div id="method__cloneProps" class="method item protected inherited">
 2967    <h3 class="name"><code>_cloneProps</code></h3>
 2968
 2969    
 2970        <div class="args">
 2971            <span class="paren">(</span><ul class="args-list inline commas">
 2972            
 2973                <li class="arg">
 2974                    
 2975                        <code>o</code>
 2976                    
 2977                </li>
 2978            
 2979            </ul><span class="paren">)</span>
 2980        </div>
 2981    
 2982
 2983    
 2984        <span class="returns-inline">
 2985            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 2986        </span>
 2987    
 2988
 2989    
 2990
 2991    
 2992        <span class="flag protected">protected</span>
 2993    
 2994
 2995    
 2996
 2997    
 2998
 2999    
 3000
 3001    
 3002
 3003    <div class="meta">
 3004        
 3005            
 3006                <p>Inherited from
 3007                <a href="../classes/DisplayObject.html#method__cloneProps">DisplayObject</a>:
 3008            
 3009        
 3010        
 3011        <a href="../files/easeljs_display_DisplayObject.js.html#l1228"><code>_cloneProps:1228</code></a>
 3012        
 3013        </p>
 3014
 3015
 3016        
 3017
 3018        
 3019    </div>
 3020
 3021    <div class="description">
 3022        
 3023    </div>
 3024
 3025    
 3026        <div class="params">
 3027            <h4>Parameters:</h4>
 3028
 3029            <ul class="params-list">
 3030            
 3031                <li class="param">
 3032                    
 3033                        <code class="param-name">o</code>
 3034                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 3035                    
 3036
 3037                    
 3038
 3039                    <div class="param-description">
 3040                        <p>The DisplayObject instance which will have properties from the current DisplayObject
 3041instance copied into.</p>
 3042
 3043                    </div>
 3044
 3045                    
 3046                </li>
 3047            
 3048            </ul>
 3049        </div>
 3050    
 3051
 3052    
 3053        <div class="returns">
 3054            <h4>Returns:</h4>
 3055
 3056            <div class="returns-description">
 3057                
 3058                    
 3059                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 3060                    
 3061                    <p>o</p>
 3062
 3063                
 3064            </div>
 3065        </div>
 3066    
 3067
 3068    
 3069</div>
 3070
 3071                
 3072                    <div id="method__createBuffers" class="method item protected">
 3073    <h3 class="name"><code>_createBuffers</code></h3>
 3074
 3075    
 3076        <div class="args">
 3077            <span class="paren">(</span><ul class="args-list inline commas">
 3078            
 3079                <li class="arg">
 3080                    
 3081                        <code>gl</code>
 3082                    
 3083                </li>
 3084            
 3085            </ul><span class="paren">)</span>
 3086        </div>
 3087    
 3088
 3089    
 3090
 3091    
 3092
 3093    
 3094        <span class="flag protected">protected</span>
 3095    
 3096
 3097    
 3098
 3099    
 3100
 3101    
 3102
 3103    
 3104
 3105    <div class="meta">
 3106        
 3107            
 3108                
 3109                <p>
 3110                
 3111                Defined in
 3112                
 3113            
 3114        
 3115        
 3116        <a href="../files/easeljs_display_StageGL.js.html#l1633"><code>_createBuffers:1633</code></a>
 3117        
 3118        </p>
 3119
 3120
 3121        
 3122
 3123        
 3124    </div>
 3125
 3126    <div class="description">
 3127        <p>Sets up the necessary vertex property buffers, including position and U/V.</p>
 3128
 3129    </div>
 3130
 3131    
 3132        <div class="params">
 3133            <h4>Parameters:</h4>
 3134
 3135            <ul class="params-list">
 3136            
 3137                <li class="param">
 3138                    
 3139                        <code class="param-name">gl</code>
 3140                        <span class="type">WebGLRenderingContext</span>
 3141                    
 3142
 3143                    
 3144
 3145                    <div class="param-description">
 3146                         
 3147                    </div>
 3148
 3149                    
 3150                </li>
 3151            
 3152            </ul>
 3153        </div>
 3154    
 3155
 3156    
 3157
 3158    
 3159</div>
 3160
 3161                
 3162                    <div id="method__createShader" class="method item protected">
 3163    <h3 class="name"><code>_createShader</code></h3>
 3164
 3165    
 3166        <div class="args">
 3167            <span class="paren">(</span><ul class="args-list inline commas">
 3168            
 3169                <li class="arg">
 3170                    
 3171                        <code>gl</code>
 3172                    
 3173                </li>
 3174            
 3175                <li class="arg">
 3176                    
 3177                        <code>type</code>
 3178                    
 3179                </li>
 3180            
 3181                <li class="arg">
 3182                    
 3183                        <code>str</code>
 3184                    
 3185                </li>
 3186            
 3187            </ul><span class="paren">)</span>
 3188        </div>
 3189    
 3190
 3191    
 3192        <span class="returns-inline">
 3193            <span class="type">WebGLShader</span>
 3194        </span>
 3195    
 3196
 3197    
 3198
 3199    
 3200        <span class="flag protected">protected</span>
 3201    
 3202
 3203    
 3204
 3205    
 3206
 3207    
 3208
 3209    
 3210
 3211    <div class="meta">
 3212        
 3213            
 3214                
 3215                <p>
 3216                
 3217                Defined in
 3218                
 3219            
 3220        
 3221        
 3222        <a href="../files/easeljs_display_StageGL.js.html#l1598"><code>_createShader:1598</code></a>
 3223        
 3224        </p>
 3225
 3226
 3227        
 3228
 3229        
 3230    </div>
 3231
 3232    <div class="description">
 3233        <p>Creates a shader from the specified string replacing templates. Template items are defined via <code>{{</code> <code>key</code> <code>}}</code>`.</p>
 3234
 3235    </div>
 3236
 3237    
 3238        <div class="params">
 3239            <h4>Parameters:</h4>
 3240
 3241            <ul class="params-list">
 3242            
 3243                <li class="param">
 3244                    
 3245                        <code class="param-name">gl</code>
 3246                        <span class="type">WebGLRenderingContext</span>
 3247                    
 3248
 3249                    
 3250
 3251                    <div class="param-description">
 3252                        <p>The canvas WebGL context object to draw into.</p>
 3253
 3254                    </div>
 3255
 3256                    
 3257                </li>
 3258            
 3259                <li class="param">
 3260                    
 3261                        <code class="param-name">type</code>
 3262                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3263                    
 3264
 3265                    
 3266
 3267                    <div class="param-description">
 3268                        <p>The type of shader to create. gl.VERTEX_SHADER | gl.FRAGMENT_SHADER</p>
 3269
 3270                    </div>
 3271
 3272                    
 3273                </li>
 3274            
 3275                <li class="param">
 3276                    
 3277                        <code class="param-name">str</code>
 3278                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 3279                    
 3280
 3281                    
 3282
 3283                    <div class="param-description">
 3284                        <p>The definition for the shader.</p>
 3285
 3286                    </div>
 3287
 3288                    
 3289                </li>
 3290            
 3291            </ul>
 3292        </div>
 3293    
 3294
 3295    
 3296        <div class="returns">
 3297            <h4>Returns:</h4>
 3298
 3299            <div class="returns-description">
 3300                
 3301                    
 3302                        <span class="type">WebGLShader</span>:
 3303                    
 3304                
 3305            </div>
 3306        </div>
 3307    
 3308
 3309    
 3310</div>
 3311
 3312                
 3313                    <div id="method__dispatchEvent" class="method item protected inherited">
 3314    <h3 class="name"><code>_dispatchEvent</code></h3>
 3315
 3316    
 3317        <div class="args">
 3318            <span class="paren">(</span><ul class="args-list inline commas">
 3319            
 3320                <li class="arg">
 3321                    
 3322                        <code>eventObj</code>
 3323                    
 3324                </li>
 3325            
 3326                <li class="arg">
 3327                    
 3328                        <code>eventPhase</code>
 3329                    
 3330                </li>
 3331            
 3332            </ul><span class="paren">)</span>
 3333        </div>
 3334    
 3335
 3336    
 3337
 3338    
 3339
 3340    
 3341        <span class="flag protected">protected</span>
 3342    
 3343
 3344    
 3345
 3346    
 3347
 3348    
 3349
 3350    
 3351
 3352    <div class="meta">
 3353        
 3354            
 3355                <p>Inherited from
 3356                <a href="../classes/EventDispatcher.html#method__dispatchEvent">EventDispatcher</a>:
 3357            
 3358        
 3359        
 3360        <a href="../files/createjs_events_EventDispatcher.js.html#l380"><code>_dispatchEvent:380</code></a>
 3361        
 3362        </p>
 3363
 3364
 3365        
 3366
 3367        
 3368    </div>
 3369
 3370    <div class="description">
 3371        
 3372    </div>
 3373
 3374    
 3375        <div class="params">
 3376            <h4>Parameters:</h4>
 3377
 3378            <ul class="params-list">
 3379            
 3380                <li class="param">
 3381                    
 3382                        <code class="param-name">eventObj</code>
 3383                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="../classes/Event.html" class="crosslink">Event</a></span>
 3384                    
 3385
 3386                    
 3387
 3388                    <div class="param-description">
 3389                         
 3390                    </div>
 3391
 3392                    
 3393                </li>
 3394            
 3395                <li class="param">
 3396                    
 3397                        <code class="param-name">eventPhase</code>
 3398                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 3399                    
 3400
 3401                    
 3402
 3403                    <div class="param-description">
 3404                         
 3405                    </div>
 3406
 3407                    
 3408                </li>
 3409            
 3410            </ul>
 3411        </div>
 3412    
 3413
 3414    
 3415
 3416    
 3417</div>
 3418
 3419                
 3420                    <div id="method__dispatchMouseEvent" class="method item protected inherited">
 3421    <h3 class="name"><code>_dispatchMouseEvent</code></h3>
 3422
 3423    
 3424        <div class="args">
 3425            <span class="paren">(</span><ul class="args-list inline commas">
 3426            
 3427                <li class="arg">
 3428                    
 3429                        <code>target</code>
 3430                    
 3431                </li>
 3432            
 3433                <li class="arg">
 3434                    
 3435                        <code>type</code>
 3436                    
 3437                </li>
 3438            
 3439                <li class="arg">
 3440                    
 3441                        <code>bubbles</code>
 3442                    
 3443                </li>
 3444            
 3445                <li class="arg">
 3446                    
 3447                        <code>pointerId</code>
 3448                    
 3449                </li>
 3450            
 3451                <li class="arg">
 3452                    
 3453                        <code>o</code>
 3454                    
 3455                </li>
 3456            
 3457                <li class="arg">
 3458                    
 3459                        <code class="optional">[nativeEvent]</code>
 3460                    
 3461                </li>
 3462            
 3463                <li class="arg">
 3464                    
 3465                        <code class="optional">[relatedTarget]</code>
 3466                    
 3467                </li>
 3468            
 3469            </ul><span class="paren">)</span>
 3470        </div>
 3471    
 3472
 3473    
 3474
 3475    
 3476
 3477    
 3478        <span class="flag protected">protected</span>
 3479    
 3480
 3481    
 3482
 3483    
 3484
 3485    
 3486
 3487    
 3488
 3489    <div class="meta">
 3490        
 3491            
 3492                <p>Inherited from
 3493                <a href="../classes/Stage.html#method__dispatchMouseEvent">Stage</a>:
 3494            
 3495        
 3496        
 3497        <a href="../files/easeljs_display_Stage.js.html#l838"><code>_dispatchMouseEvent:838</code></a>
 3498        
 3499        </p>
 3500
 3501
 3502        
 3503
 3504        
 3505    </div>
 3506
 3507    <div class="description">
 3508        
 3509    </div>
 3510
 3511    
 3512        <div class="params">
 3513            <h4>Parameters:</h4>
 3514
 3515            <ul class="params-list">
 3516            
 3517                <li class="param">
 3518                    
 3519                        <code class="param-name">target</code>
 3520                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 3521                    
 3522
 3523                    
 3524
 3525                    <div class="param-description">
 3526                        
 3527                    </div>
 3528
 3529                    
 3530                </li>
 3531            
 3532                <li class="param">
 3533                    
 3534                        <code class="param-name">type</code>
 3535                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 3536                    
 3537
 3538                    
 3539
 3540                    <div class="param-description">
 3541                        
 3542                    </div>
 3543
 3544                    
 3545                </li>
 3546            
 3547                <li class="param">
 3548                    
 3549                        <code class="param-name">bubbles</code>
 3550                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3551                    
 3552
 3553                    
 3554
 3555                    <div class="param-description">
 3556                        
 3557                    </div>
 3558
 3559                    
 3560                </li>
 3561            
 3562                <li class="param">
 3563                    
 3564                        <code class="param-name">pointerId</code>
 3565                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3566                    
 3567
 3568                    
 3569
 3570                    <div class="param-description">
 3571                        
 3572                    </div>
 3573
 3574                    
 3575                </li>
 3576            
 3577                <li class="param">
 3578                    
 3579                        <code class="param-name">o</code>
 3580                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 3581                    
 3582
 3583                    
 3584
 3585                    <div class="param-description">
 3586                        
 3587                    </div>
 3588
 3589                    
 3590                </li>
 3591            
 3592                <li class="param">
 3593                    
 3594                        <code class="param-name optional">[nativeEvent]</code>
 3595                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 3596                        <span class="flag optional" title="This parameter is optional.">optional</span>
 3597                    
 3598
 3599                    
 3600
 3601                    <div class="param-description">
 3602                        
 3603                    </div>
 3604
 3605                    
 3606                </li>
 3607            
 3608                <li class="param">
 3609                    
 3610                        <code class="param-name optional">[relatedTarget]</code>
 3611                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 3612                        <span class="flag optional" title="This parameter is optional.">optional</span>
 3613                    
 3614
 3615                    
 3616
 3617                    <div class="param-description">
 3618                        
 3619                    </div>
 3620
 3621                    
 3622                </li>
 3623            
 3624            </ul>
 3625        </div>
 3626    
 3627
 3628    
 3629
 3630    
 3631</div>
 3632
 3633                
 3634                    <div id="method__drawBuffers" class="method item protected">
 3635    <h3 class="name"><code>_drawBuffers</code></h3>
 3636
 3637    
 3638        <div class="args">
 3639            <span class="paren">(</span><ul class="args-list inline commas">
 3640            
 3641                <li class="arg">
 3642                    
 3643                        <code>gl</code>
 3644                    
 3645                </li>
 3646            
 3647            </ul><span class="paren">)</span>
 3648        </div>
 3649    
 3650
 3651    
 3652
 3653    
 3654
 3655    
 3656        <span class="flag protected">protected</span>
 3657    
 3658
 3659    
 3660
 3661    
 3662
 3663    
 3664
 3665    
 3666
 3667    <div class="meta">
 3668        
 3669            
 3670                
 3671                <p>
 3672                
 3673                Defined in
 3674                
 3675            
 3676        
 3677        
 3678        <a href="../files/easeljs_display_StageGL.js.html#l2340"><code>_drawBuffers:2340</code></a>
 3679        
 3680        </p>
 3681
 3682
 3683        
 3684
 3685        
 3686    </div>
 3687
 3688    <div class="description">
 3689        <p>Draws all the currently defined cards in the buffer to the render surface.</p>
 3690
 3691    </div>
 3692
 3693    
 3694        <div class="params">
 3695            <h4>Parameters:</h4>
 3696
 3697            <ul class="params-list">
 3698            
 3699                <li class="param">
 3700                    
 3701                        <code class="param-name">gl</code>
 3702                        <span class="type">WebGLRenderingContext</span>
 3703                    
 3704
 3705                    
 3706
 3707                    <div class="param-description">
 3708                        <p>The canvas WebGL context object to draw into.</p>
 3709
 3710                    </div>
 3711
 3712                    
 3713                </li>
 3714            
 3715            </ul>
 3716        </div>
 3717    
 3718
 3719    
 3720
 3721    
 3722</div>
 3723
 3724                
 3725                    <div id="method__drawBuffers" class="method item protected">
 3726    <h3 class="name"><code>_drawBuffers</code></h3>
 3727
 3728    
 3729        <div class="args">
 3730            <span class="paren">(</span><ul class="args-list inline commas">
 3731            
 3732                <li class="arg">
 3733                    
 3734                        <code>gl</code>
 3735                    
 3736                </li>
 3737            
 3738                <li class="arg">
 3739                    
 3740                        <code>flipY</code>
 3741                    
 3742                </li>
 3743            
 3744            </ul><span class="paren">)</span>
 3745        </div>
 3746    
 3747
 3748    
 3749
 3750    
 3751
 3752    
 3753        <span class="flag protected">protected</span>
 3754    
 3755
 3756    
 3757
 3758    
 3759
 3760    
 3761
 3762    
 3763
 3764    <div class="meta">
 3765        
 3766            
 3767                
 3768                <p>
 3769                
 3770                Defined in
 3771                
 3772            
 3773        
 3774        
 3775        <a href="../files/easeljs_display_StageGL.js.html#l2389"><code>_drawBuffers:2389</code></a>
 3776        
 3777        </p>
 3778
 3779
 3780        
 3781
 3782        
 3783    </div>
 3784
 3785    <div class="description">
 3786        <p>Draws a card that covers the entire render surface. Mainly used for filters.</p>
 3787
 3788    </div>
 3789
 3790    
 3791        <div class="params">
 3792            <h4>Parameters:</h4>
 3793
 3794            <ul class="params-list">
 3795            
 3796                <li class="param">
 3797                    
 3798                        <code class="param-name">gl</code>
 3799                        <span class="type">WebGLRenderingContext</span>
 3800                    
 3801
 3802                    
 3803
 3804                    <div class="param-description">
 3805                        <p>The canvas WebGL context object to draw into.</p>
 3806
 3807                    </div>
 3808
 3809                    
 3810                </li>
 3811            
 3812                <li class="param">
 3813                    
 3814                        <code class="param-name">flipY</code>
 3815                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3816                    
 3817
 3818                    
 3819
 3820                    <div class="param-description">
 3821                        <p>Covers are used for things like RenderTextures and because of 3D vs Canvas space this can
 3822end up meaning the <code>y</code> space sometimes requires flipping in the render.</p>
 3823
 3824                    </div>
 3825
 3826                    
 3827                </li>
 3828            
 3829            </ul>
 3830        </div>
 3831    
 3832
 3833    
 3834
 3835    
 3836</div>
 3837
 3838                
 3839                    <div id="method__drawFilters" class="method item">
 3840    <h3 class="name"><code>_drawFilters</code></h3>
 3841
 3842    
 3843        <div class="args">
 3844            <span class="paren">(</span><ul class="args-list inline commas">
 3845            
 3846                <li class="arg">
 3847                    
 3848                        <code>target</code>
 3849                    
 3850                </li>
 3851            
 3852                <li class="arg">
 3853                    
 3854                        <code>filters</code>
 3855                    
 3856                </li>
 3857            
 3858                <li class="arg">
 3859                    
 3860                        <code>manager</code>
 3861                    
 3862                </li>
 3863            
 3864            </ul><span class="paren">)</span>
 3865        </div>
 3866    
 3867
 3868    
 3869
 3870    
 3871
 3872    
 3873
 3874    
 3875
 3876    
 3877
 3878    
 3879
 3880    
 3881
 3882    <div class="meta">
 3883        
 3884            
 3885                
 3886                <p>
 3887                
 3888                Defined in
 3889                
 3890            
 3891        
 3892        
 3893        <a href="../files/easeljs_display_StageGL.js.html#l2066"><code>_drawFilters:2066</code></a>
 3894        
 3895        </p>
 3896
 3897
 3898        
 3899
 3900        
 3901    </div>
 3902
 3903    <div class="description">
 3904        <p>Sub portion of _cacheDraw, split off for readability. Do not call independently.</p>
 3905
 3906    </div>
 3907
 3908    
 3909        <div class="params">
 3910            <h4>Parameters:</h4>
 3911
 3912            <ul class="params-list">
 3913            
 3914                <li class="param">
 3915                    
 3916                        <code class="param-name">target</code>
 3917                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 3918                    
 3919
 3920                    
 3921
 3922                    <div class="param-description">
 3923                        <p>The object we&#39;re drawing with a filter.</p>
 3924
 3925                    </div>
 3926
 3927                    
 3928                </li>
 3929            
 3930                <li class="param">
 3931                    
 3932                        <code class="param-name">filters</code>
 3933                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 3934                    
 3935
 3936                    
 3937
 3938                    <div class="param-description">
 3939                        <p>The filters we&#39;re drawing into cache.</p>
 3940
 3941                    </div>
 3942
 3943                    
 3944                </li>
 3945            
 3946                <li class="param">
 3947                    
 3948                        <code class="param-name">manager</code>
 3949                        <span class="type"><a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></span>
 3950                    
 3951
 3952                    
 3953
 3954                    <div class="param-description">
 3955                        <p>The BitmapCache instance looking after the cache</p>
 3956
 3957                    </div>
 3958
 3959                    
 3960                </li>
 3961            
 3962            </ul>
 3963        </div>
 3964    
 3965
 3966    
 3967
 3968    
 3969</div>
 3970
 3971                
 3972                    <div id="method__fetchShaderProgram" class="method item protected">
 3973    <h3 class="name"><code>_fetchShaderProgram</code></h3>
 3974
 3975    
 3976        <div class="args">
 3977            <span class="paren">(</span><ul class="args-list inline commas">
 3978            
 3979                <li class="arg">
 3980                    
 3981                        <code>gl</code>
 3982                    
 3983                </li>
 3984            
 3985                <li class="arg">
 3986                    
 3987                        <code class="optional">[shaderName=&quot;regular&quot;]</code>
 3988                    
 3989                </li>
 3990            
 3991                <li class="arg">
 3992                    
 3993                        <code class="optional">[customVTX]</code>
 3994                    
 3995                </li>
 3996            
 3997                <li class="arg">
 3998                    
 3999                        <code class="optional">[customFRAG]</code>
 4000                    
 4001                </li>
 4002            
 4003                <li class="arg">
 4004                    
 4005                        <code class="optional">[shaderParamSetup]</code>
 4006                    
 4007                </li>
 4008            
 4009            </ul><span class="paren">)</span>
 4010        </div>
 4011    
 4012
 4013    
 4014        <span class="returns-inline">
 4015            <span class="type">WebGLProgram</span>
 4016        </span>
 4017    
 4018
 4019    
 4020
 4021    
 4022        <span class="flag protected">protected</span>
 4023    
 4024
 4025    
 4026
 4027    
 4028
 4029    
 4030
 4031    
 4032
 4033    <div class="meta">
 4034        
 4035            
 4036                
 4037                <p>
 4038                
 4039                Defined in
 4040                
 4041            
 4042        
 4043        
 4044        <a href="../files/easeljs_display_StageGL.js.html#l1482"><code>_fetchShaderProgram:1482</code></a>
 4045        
 4046        </p>
 4047
 4048
 4049        
 4050
 4051        
 4052    </div>
 4053
 4054    <div class="description">
 4055        <p>Create the completed Shader Program from the vertex and fragment shaders. Allows building of custom shaders for
 4056filters. Once compiled, shaders are saved so. If the Shader code requires dynamic alterations re-run this function
 4057to generate a new shader.</p>
 4058
 4059    </div>
 4060
 4061    
 4062        <div class="params">
 4063            <h4>Parameters:</h4>
 4064
 4065            <ul class="params-list">
 4066            
 4067                <li class="param">
 4068                    
 4069                        <code class="param-name">gl</code>
 4070                        <span class="type">WebGLRenderingContext</span>
 4071                    
 4072
 4073                    
 4074
 4075                    <div class="param-description">
 4076                        <p>The canvas WebGL context object to draw into.</p>
 4077
 4078                    </div>
 4079
 4080                    
 4081                </li>
 4082            
 4083                <li class="param">
 4084                    
 4085                        <code class="param-name optional">[shaderName=&quot;regular&quot;]</code>
 4086                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 4087                        <span class="flag optional" title="This parameter is optional.">optional</span>
 4088                    
 4089
 4090                    
 4091
 4092                    <div class="param-description">
 4093                        <p>Working values: "regular", "override", and "filter". Which type of shader to build.
 4094Filter and override both accept the custom params. Regular and override have all features. Filter is a special case reduced feature shader meant to be over-ridden.</p>
 4095
 4096                    </div>
 4097
 4098                    
 4099                </li>
 4100            
 4101                <li class="param">
 4102                    
 4103                        <code class="param-name optional">[customVTX]</code>
 4104                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 4105                        <span class="flag optional" title="This parameter is optional.">optional</span>
 4106                    
 4107
 4108                    
 4109
 4110                    <div class="param-description">
 4111                        <p>Extra vertex shader information to replace a regular draw, see 
 4112StageGL/COVER_VERTEX_BODY for default and <a href="../classes/Filter.html" class="crosslink">Filter</a> for examples.</p>
 4113
 4114                    </div>
 4115
 4116                    
 4117                </li>
 4118            
 4119                <li class="param">
 4120                    
 4121                        <code class="param-name optional">[customFRAG]</code>
 4122                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 4123                        <span class="flag optional" title="This parameter is optional.">optional</span>
 4124                    
 4125
 4126                    
 4127
 4128                    <div class="param-description">
 4129                        <p>Extra fragment shader information to replace a regular draw, see 
 4130StageGL/COVER_FRAGMENT_BODY for default and <a href="../classes/Filter.html" class="crosslink">Filter</a> for examples.</p>
 4131
 4132                    </div>
 4133
 4134                    
 4135                </li>
 4136            
 4137                <li class="param">
 4138                    
 4139                        <code class="param-name optional">[shaderParamSetup]</code>
 4140                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
 4141                        <span class="flag optional" title="This parameter is optional.">optional</span>
 4142                    
 4143
 4144                    
 4145
 4146                    <div class="param-description">
 4147                        <p>Function to run so custom shader parameters can get applied for the render.</p>
 4148
 4149                    </div>
 4150
 4151                    
 4152                </li>
 4153            
 4154            </ul>
 4155        </div>
 4156    
 4157
 4158    
 4159        <div class="returns">
 4160            <h4>Returns:</h4>
 4161
 4162            <div class="returns-description">
 4163                
 4164                    
 4165                        <span class="type">WebGLProgram</span>:
 4166                    
 4167                    <p>The compiled and linked shader</p>
 4168
 4169                
 4170            </div>
 4171        </div>
 4172    
 4173
 4174    
 4175</div>
 4176
 4177                
 4178                    <div id="method__fetchWebGLContext" class="method item protected">
 4179    <h3 class="name"><code>_fetchWebGLContext</code></h3>
 4180
 4181    
 4182        <div class="args">
 4183            <span class="paren">(</span><ul class="args-list inline commas">
 4184            
 4185                <li class="arg">
 4186                    
 4187                        <code>canvas</code>
 4188                    
 4189                </li>
 4190            
 4191                <li class="arg">
 4192                    
 4193                        <code>options</code>
 4194                    
 4195                </li>
 4196            
 4197            </ul><span class="paren">)</span>
 4198        </div>
 4199    
 4200
 4201    
 4202        <span class="returns-inline">
 4203            <span class="type">WebGLRenderingContext</span>
 4204        </span>
 4205    
 4206
 4207    
 4208
 4209    
 4210        <span class="flag protected">protected</span>
 4211    
 4212
 4213    
 4214
 4215    
 4216
 4217    
 4218
 4219    
 4220
 4221    <div class="meta">
 4222        
 4223            
 4224                
 4225                <p>
 4226                
 4227                Defined in
 4228                
 4229            
 4230        
 4231        
 4232        <a href="../files/easeljs_display_StageGL.js.html#l1453"><code>_fetchWebGLContext:1453</code></a>
 4233        
 4234        </p>
 4235
 4236
 4237        
 4238
 4239        
 4240    </div>
 4241
 4242    <div class="description">
 4243        <p>Sets up and returns the WebGL context for the canvas. May return undefined in error scenarios. These can include 
 4244situations where the canvas element already has a context, 2D or GL.</p>
 4245
 4246    </div>
 4247
 4248    
 4249        <div class="params">
 4250            <h4>Parameters:</h4>
 4251
 4252            <ul class="params-list">
 4253            
 4254                <li class="param">
 4255                    
 4256                        <code class="param-name">canvas</code>
 4257                        <span class="type">Canvas</span>
 4258                    
 4259
 4260                    
 4261
 4262                    <div class="param-description">
 4263                        <p>The DOM canvas element to attach to</p>
 4264
 4265                    </div>
 4266
 4267                    
 4268                </li>
 4269            
 4270                <li class="param">
 4271                    
 4272                        <code class="param-name">options</code>
 4273                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 4274                    
 4275
 4276                    
 4277
 4278                    <div class="param-description">
 4279                        <p>The options to be handed into the WebGL object, see WebGL spec</p>
 4280
 4281                    </div>
 4282
 4283                    
 4284                </li>
 4285            
 4286            </ul>
 4287        </div>
 4288    
 4289
 4290    
 4291        <div class="returns">
 4292            <h4>Returns:</h4>
 4293
 4294            <div class="returns-description">
 4295                
 4296                    
 4297                        <span class="type">WebGLRenderingContext</span>:
 4298                    
 4299                    <p>The WebGL context, may return undefined in error scenarios</p>
 4300
 4301                
 4302            </div>
 4303        </div>
 4304    
 4305
 4306    
 4307</div>
 4308
 4309                
 4310                    <div id="method__getBounds" class="method item protected inherited">
 4311    <h3 class="name"><code>_getBounds</code></h3>
 4312
 4313    
 4314        <div class="args">
 4315            <span class="paren">(</span><ul class="args-list inline commas">
 4316            
 4317                <li class="arg">
 4318                    
 4319                        <code>matrix</code>
 4320                    
 4321                </li>
 4322            
 4323                <li class="arg">
 4324                    
 4325                        <code>ignoreTransform</code>
 4326                    
 4327                </li>
 4328            
 4329            </ul><span class="paren">)</span>
 4330        </div>
 4331    
 4332
 4333    
 4334        <span class="returns-inline">
 4335            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 4336        </span>
 4337    
 4338
 4339    
 4340
 4341    
 4342        <span class="flag protected">protected</span>
 4343    
 4344
 4345    
 4346
 4347    
 4348
 4349    
 4350
 4351    
 4352
 4353    <div class="meta">
 4354        
 4355            <p>Inherited from
 4356            <a href="../classes/DisplayObject.html#method__getBounds">
 4357                DisplayObject
 4358            </a>
 4359            
 4360            but overwritten in
 4361            
 4362        
 4363        
 4364        <a href="../files/easeljs_display_Container.js.html#l681"><code>_getBounds:681</code></a>
 4365        
 4366        </p>
 4367
 4368
 4369        
 4370
 4371        
 4372    </div>
 4373
 4374    <div class="description">
 4375        
 4376    </div>
 4377
 4378    
 4379        <div class="params">
 4380            <h4>Parameters:</h4>
 4381
 4382            <ul class="params-list">
 4383            
 4384                <li class="param">
 4385                    
 4386                        <code class="param-name">matrix</code>
 4387                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 4388                    
 4389
 4390                    
 4391
 4392                    <div class="param-description">
 4393                        
 4394                    </div>
 4395
 4396                    
 4397                </li>
 4398            
 4399                <li class="param">
 4400                    
 4401                        <code class="param-name">ignoreTransform</code>
 4402                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 4403                    
 4404
 4405                    
 4406
 4407                    <div class="param-description">
 4408                        <p>If true, does not apply this object&#39;s transform.</p>
 4409
 4410                    </div>
 4411
 4412                    
 4413                </li>
 4414            
 4415            </ul>
 4416        </div>
 4417    
 4418
 4419    
 4420        <div class="returns">
 4421            <h4>Returns:</h4>
 4422
 4423            <div class="returns-description">
 4424                
 4425                    
 4426                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 4427                    
 4428                
 4429            </div>
 4430        </div>
 4431    
 4432
 4433    
 4434</div>
 4435
 4436                
 4437                    <div id="method__getElementRect" class="method item protected inherited">
 4438    <h3 class="name"><code>_getElementRect</code></h3>
 4439
 4440    
 4441        <div class="args">
 4442            <span class="paren">(</span><ul class="args-list inline commas">
 4443            
 4444                <li class="arg">
 4445                    
 4446                        <code>e</code>
 4447                    
 4448                </li>
 4449            
 4450            </ul><span class="paren">)</span>
 4451        </div>
 4452    
 4453
 4454    
 4455
 4456    
 4457
 4458    
 4459        <span class="flag protected">protected</span>
 4460    
 4461
 4462    
 4463
 4464    
 4465
 4466    
 4467
 4468    
 4469
 4470    <div class="meta">
 4471        
 4472            
 4473                <p>Inherited from
 4474                <a href="../classes/Stage.html#method__getElementRect">Stage</a>:
 4475            
 4476        
 4477        
 4478        <a href="../files/easeljs_display_Stage.js.html#l571"><code>_getElementRect:571</code></a>
 4479        
 4480        </p>
 4481
 4482
 4483        
 4484
 4485        
 4486    </div>
 4487
 4488    <div class="description">
 4489        
 4490    </div>
 4491
 4492    
 4493        <div class="params">
 4494            <h4>Parameters:</h4>
 4495
 4496            <ul class="params-list">
 4497            
 4498                <li class="param">
 4499                    
 4500                        <code class="param-name">e</code>
 4501                        <span class="type"><a href="https://developer.mozilla.org/en/Document_Object_Model_(DOM)/HTMLElement" class="crosslink external" target="_blank">HTMLElement</a></span>
 4502                    
 4503
 4504                    
 4505
 4506                    <div class="param-description">
 4507                        
 4508                    </div>
 4509
 4510                    
 4511                </li>
 4512            
 4513            </ul>
 4514        </div>
 4515    
 4516
 4517    
 4518
 4519    
 4520</div>
 4521
 4522                
 4523                    <div id="method__getNumChildren" class="method item protected inherited">
 4524    <h3 class="name"><code>_getNumChildren</code></h3>
 4525
 4526    
 4527        <span class="paren">()</span>
 4528    
 4529
 4530    
 4531        <span class="returns-inline">
 4532            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4533        </span>
 4534    
 4535
 4536    
 4537
 4538    
 4539        <span class="flag protected">protected</span>
 4540    
 4541
 4542    
 4543
 4544    
 4545
 4546    
 4547
 4548    
 4549
 4550    <div class="meta">
 4551        
 4552            
 4553                <p>Inherited from
 4554                <a href="../classes/Container.html#method__getNumChildren">Container</a>:
 4555            
 4556        
 4557        
 4558        <a href="../files/easeljs_display_Container.js.html#l97"><code>_getNumChildren:97</code></a>
 4559        
 4560        </p>
 4561
 4562
 4563        
 4564
 4565        
 4566    </div>
 4567
 4568    <div class="description">
 4569        <p>Use the <a href="../classes/Container.html#property_numChildren" class="crosslink">numChildren</a> property instead.</p>
 4570
 4571    </div>
 4572
 4573    
 4574
 4575    
 4576        <div class="returns">
 4577            <h4>Returns:</h4>
 4578
 4579            <div class="returns-description">
 4580                
 4581                    
 4582                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
 4583                    
 4584                
 4585            </div>
 4586        </div>
 4587    
 4588
 4589    
 4590</div>
 4591
 4592                
 4593                    <div id="method__getObjectsUnderPoint" class="method item protected inherited">
 4594    <h3 class="name"><code>_getObjectsUnderPoint</code></h3>
 4595
 4596    
 4597        <div class="args">
 4598            <span class="paren">(</span><ul class="args-list inline commas">
 4599            
 4600                <li class="arg">
 4601                    
 4602                        <code>x</code>
 4603                    
 4604                </li>
 4605            
 4606                <li class="arg">
 4607                    
 4608                        <code>y</code>
 4609                    
 4610                </li>
 4611            
 4612                <li class="arg">
 4613                    
 4614                        <code>arr</code>
 4615                    
 4616                </li>
 4617            
 4618                <li class="arg">
 4619                    
 4620                        <code>mouse</code>
 4621                    
 4622                </li>
 4623            
 4624                <li class="arg">
 4625                    
 4626                        <code>activeListener</code>
 4627                    
 4628                </li>
 4629            
 4630                <li class="arg">
 4631                    
 4632                        <code>currentDepth</code>
 4633                    
 4634                </li>
 4635            
 4636            </ul><span class="paren">)</span>
 4637        </div>
 4638    
 4639
 4640    
 4641        <span class="returns-inline">
 4642            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 4643        </span>
 4644    
 4645
 4646    
 4647
 4648    
 4649        <span class="flag protected">protected</span>
 4650    
 4651
 4652    
 4653
 4654    
 4655
 4656    
 4657
 4658    
 4659
 4660    <div class="meta">
 4661        
 4662            
 4663                <p>Inherited from
 4664                <a href="../classes/Container.html#method__getObjectsUnderPoint">Container</a>:
 4665            
 4666        
 4667        
 4668        <a href="../files/easeljs_display_Container.js.html#l596"><code>_getObjectsUnderPoint:596</code></a>
 4669        
 4670        </p>
 4671
 4672
 4673        
 4674
 4675        
 4676    </div>
 4677
 4678    <div class="description">
 4679        
 4680    </div>
 4681
 4682    
 4683        <div class="params">
 4684            <h4>Parameters:</h4>
 4685
 4686            <ul class="params-list">
 4687            
 4688                <li class="param">
 4689                    
 4690                        <code class="param-name">x</code>
 4691                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4692                    
 4693
 4694                    
 4695
 4696                    <div class="param-description">
 4697                        
 4698                    </div>
 4699
 4700                    
 4701                </li>
 4702            
 4703                <li class="param">
 4704                    
 4705                        <code class="param-name">y</code>
 4706                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4707                    
 4708
 4709                    
 4710
 4711                    <div class="param-description">
 4712                        
 4713                    </div>
 4714
 4715                    
 4716                </li>
 4717            
 4718                <li class="param">
 4719                    
 4720                        <code class="param-name">arr</code>
 4721                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 4722                    
 4723
 4724                    
 4725
 4726                    <div class="param-description">
 4727                        
 4728                    </div>
 4729
 4730                    
 4731                </li>
 4732            
 4733                <li class="param">
 4734                    
 4735                        <code class="param-name">mouse</code>
 4736                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 4737                    
 4738
 4739                    
 4740
 4741                    <div class="param-description">
 4742                        <p>If true, it will respect mouse interaction properties like mouseEnabled, mouseChildren, and active listeners.</p>
 4743
 4744                    </div>
 4745
 4746                    
 4747                </li>
 4748            
 4749                <li class="param">
 4750                    
 4751                        <code class="param-name">activeListener</code>
 4752                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 4753                    
 4754
 4755                    
 4756
 4757                    <div class="param-description">
 4758                        <p>If true, there is an active mouse event listener on a parent object.</p>
 4759
 4760                    </div>
 4761
 4762                    
 4763                </li>
 4764            
 4765                <li class="param">
 4766                    
 4767                        <code class="param-name">currentDepth</code>
 4768                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4769                    
 4770
 4771                    
 4772
 4773                    <div class="param-description">
 4774                        <p>Indicates the current depth of the search.</p>
 4775
 4776                    </div>
 4777
 4778                    
 4779                </li>
 4780            
 4781            </ul>
 4782        </div>
 4783    
 4784
 4785    
 4786        <div class="returns">
 4787            <h4>Returns:</h4>
 4788
 4789            <div class="returns-description">
 4790                
 4791                    
 4792                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 4793                    
 4794                
 4795            </div>
 4796        </div>
 4797    
 4798
 4799    
 4800</div>
 4801
 4802                
 4803                    <div id="method__getPointerData" class="method item protected inherited">
 4804    <h3 class="name"><code>_getPointerData</code></h3>
 4805
 4806    
 4807        <div class="args">
 4808            <span class="paren">(</span><ul class="args-list inline commas">
 4809            
 4810                <li class="arg">
 4811                    
 4812                        <code>id</code>
 4813                    
 4814                </li>
 4815            
 4816            </ul><span class="paren">)</span>
 4817        </div>
 4818    
 4819
 4820    
 4821
 4822    
 4823
 4824    
 4825        <span class="flag protected">protected</span>
 4826    
 4827
 4828    
 4829
 4830    
 4831
 4832    
 4833
 4834    
 4835
 4836    <div class="meta">
 4837        
 4838            
 4839                <p>Inherited from
 4840                <a href="../classes/Stage.html#method__getPointerData">Stage</a>:
 4841            
 4842        
 4843        
 4844        <a href="../files/easeljs_display_Stage.js.html#l599"><code>_getPointerData:599</code></a>
 4845        
 4846        </p>
 4847
 4848
 4849        
 4850
 4851        
 4852    </div>
 4853
 4854    <div class="description">
 4855        
 4856    </div>
 4857
 4858    
 4859        <div class="params">
 4860            <h4>Parameters:</h4>
 4861
 4862            <ul class="params-list">
 4863            
 4864                <li class="param">
 4865                    
 4866                        <code class="param-name">id</code>
 4867                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4868                    
 4869
 4870                    
 4871
 4872                    <div class="param-description">
 4873                        
 4874                    </div>
 4875
 4876                    
 4877                </li>
 4878            
 4879            </ul>
 4880        </div>
 4881    
 4882
 4883    
 4884
 4885    
 4886</div>
 4887
 4888                
 4889                    <div id="method__getStage" class="method item protected inherited">
 4890    <h3 class="name"><code>_getStage</code></h3>
 4891
 4892    
 4893        <span class="paren">()</span>
 4894    
 4895
 4896    
 4897        <span class="returns-inline">
 4898            <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 4899        </span>
 4900    
 4901
 4902    
 4903
 4904    
 4905        <span class="flag protected">protected</span>
 4906    
 4907
 4908    
 4909
 4910    
 4911
 4912    
 4913
 4914    
 4915
 4916    <div class="meta">
 4917        
 4918            
 4919                <p>Inherited from
 4920                <a href="../classes/DisplayObject.html#method__getStage">DisplayObject</a>:
 4921            
 4922        
 4923        
 4924        <a href="../files/easeljs_display_DisplayObject.js.html#l672"><code>_getStage:672</code></a>
 4925        
 4926        </p>
 4927
 4928
 4929        
 4930
 4931        
 4932    </div>
 4933
 4934    <div class="description">
 4935        <p>Use the <a href="../classes/DisplayObject.html#property_stage" class="crosslink">stage</a> property instead.</p>
 4936
 4937    </div>
 4938
 4939    
 4940
 4941    
 4942        <div class="returns">
 4943            <h4>Returns:</h4>
 4944
 4945            <div class="returns-description">
 4946                
 4947                    
 4948                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>:
 4949                    
 4950                
 4951            </div>
 4952        </div>
 4953    
 4954
 4955    
 4956</div>
 4957
 4958                
 4959                    <div id="method__handleDoubleClick" class="method item protected inherited">
 4960    <h3 class="name"><code>_handleDoubleClick</code></h3>
 4961
 4962    
 4963        <div class="args">
 4964            <span class="paren">(</span><ul class="args-list inline commas">
 4965            
 4966                <li class="arg">
 4967                    
 4968                        <code>e</code>
 4969                    
 4970                </li>
 4971            
 4972                <li class="arg">
 4973                    
 4974                        <code>owner</code>
 4975                    
 4976                </li>
 4977            
 4978            </ul><span class="paren">)</span>
 4979        </div>
 4980    
 4981
 4982    
 4983
 4984    
 4985
 4986    
 4987        <span class="flag protected">protected</span>
 4988    
 4989
 4990    
 4991
 4992    
 4993
 4994    
 4995
 4996    
 4997
 4998    <div class="meta">
 4999        
 5000            
 5001                <p>Inherited from
 5002                <a href="../classes/Stage.html#method__handleDoubleClick">Stage</a>:
 5003            
 5004        
 5005        
 5006        <a href="../files/easeljs_display_Stage.js.html#l823"><code>_handleDoubleClick:823</code></a>
 5007        
 5008        </p>
 5009
 5010
 5011        
 5012
 5013        
 5014    </div>
 5015
 5016    <div class="description">
 5017        
 5018    </div>
 5019
 5020    
 5021        <div class="params">
 5022            <h4>Parameters:</h4>
 5023
 5024            <ul class="params-list">
 5025            
 5026                <li class="param">
 5027                    
 5028                        <code class="param-name">e</code>
 5029                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 5030                    
 5031
 5032                    
 5033
 5034                    <div class="param-description">
 5035                        
 5036                    </div>
 5037
 5038                    
 5039                </li>
 5040            
 5041                <li class="param">
 5042                    
 5043                        <code class="param-name">owner</code>
 5044                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 5045                    
 5046
 5047                    
 5048
 5049                    <div class="param-description">
 5050                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 5051
 5052                    </div>
 5053
 5054                    
 5055                </li>
 5056            
 5057            </ul>
 5058        </div>
 5059    
 5060
 5061    
 5062
 5063    
 5064</div>
 5065
 5066                
 5067                    <div id="method__handleMouseDown" class="method item protected inherited">
 5068    <h3 class="name"><code>_handleMouseDown</code></h3>
 5069
 5070    
 5071        <div class="args">
 5072            <span class="paren">(</span><ul class="args-list inline commas">
 5073            
 5074                <li class="arg">
 5075                    
 5076                        <code>e</code>
 5077                    
 5078                </li>
 5079            
 5080            </ul><span class="paren">)</span>
 5081        </div>
 5082    
 5083
 5084    
 5085
 5086    
 5087
 5088    
 5089        <span class="flag protected">protected</span>
 5090    
 5091
 5092    
 5093
 5094    
 5095
 5096    
 5097
 5098    
 5099
 5100    <div class="meta">
 5101        
 5102            
 5103                <p>Inherited from
 5104                <a href="../classes/Stage.html#method__handleMouseDown">Stage</a>:
 5105            
 5106        
 5107        
 5108        <a href="../files/easeljs_display_Stage.js.html#l722"><code>_handleMouseDown:722</code></a>
 5109        
 5110        </p>
 5111
 5112
 5113        
 5114
 5115        
 5116    </div>
 5117
 5118    <div class="description">
 5119        
 5120    </div>
 5121
 5122    
 5123        <div class="params">
 5124            <h4>Parameters:</h4>
 5125
 5126            <ul class="params-list">
 5127            
 5128                <li class="param">
 5129                    
 5130                        <code class="param-name">e</code>
 5131                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 5132                    
 5133
 5134                    
 5135
 5136                    <div class="param-description">
 5137                        
 5138                    </div>
 5139
 5140                    
 5141                </li>
 5142            
 5143            </ul>
 5144        </div>
 5145    
 5146
 5147    
 5148
 5149    
 5150</div>
 5151
 5152                
 5153                    <div id="method__handleMouseMove" class="method item protected inherited">
 5154    <h3 class="name"><code>_handleMouseMove</code></h3>
 5155
 5156    
 5157        <div class="args">
 5158            <span class="paren">(</span><ul class="args-list inline commas">
 5159            
 5160                <li class="arg">
 5161                    
 5162                        <code>e</code>
 5163                    
 5164                </li>
 5165            
 5166            </ul><span class="paren">)</span>
 5167        </div>
 5168    
 5169
 5170    
 5171
 5172    
 5173
 5174    
 5175        <span class="flag protected">protected</span>
 5176    
 5177
 5178    
 5179
 5180    
 5181
 5182    
 5183
 5184    
 5185
 5186    <div class="meta">
 5187        
 5188            
 5189                <p>Inherited from
 5190                <a href="../classes/Stage.html#method__handleMouseMove">Stage</a>:
 5191            
 5192        
 5193        
 5194        <a href="../files/easeljs_display_Stage.js.html#l610"><code>_handleMouseMove:610</code></a>
 5195        
 5196        </p>
 5197
 5198
 5199        
 5200
 5201        
 5202    </div>
 5203
 5204    <div class="description">
 5205        
 5206    </div>
 5207
 5208    
 5209        <div class="params">
 5210            <h4>Parameters:</h4>
 5211
 5212            <ul class="params-list">
 5213            
 5214                <li class="param">
 5215                    
 5216                        <code class="param-name">e</code>
 5217                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 5218                    
 5219
 5220                    
 5221
 5222                    <div class="param-description">
 5223                        
 5224                    </div>
 5225
 5226                    
 5227                </li>
 5228            
 5229            </ul>
 5230        </div>
 5231    
 5232
 5233    
 5234
 5235    
 5236</div>
 5237
 5238                
 5239                    <div id="method__handleMouseUp" class="method item protected inherited">
 5240    <h3 class="name"><code>_handleMouseUp</code></h3>
 5241
 5242    
 5243        <div class="args">
 5244            <span class="paren">(</span><ul class="args-list inline commas">
 5245            
 5246                <li class="arg">
 5247                    
 5248                        <code>e</code>
 5249                    
 5250                </li>
 5251            
 5252            </ul><span class="paren">)</span>
 5253        </div>
 5254    
 5255
 5256    
 5257
 5258    
 5259
 5260    
 5261        <span class="flag protected">protected</span>
 5262    
 5263
 5264    
 5265
 5266    
 5267
 5268    
 5269
 5270    
 5271
 5272    <div class="meta">
 5273        
 5274            
 5275                <p>Inherited from
 5276                <a href="../classes/Stage.html#method__handleMouseUp">Stage</a>:
 5277            
 5278        
 5279        
 5280        <a href="../files/easeljs_display_Stage.js.html#l685"><code>_handleMouseUp:685</code></a>
 5281        
 5282        </p>
 5283
 5284
 5285        
 5286
 5287        
 5288    </div>
 5289
 5290    <div class="description">
 5291        
 5292    </div>
 5293
 5294    
 5295        <div class="params">
 5296            <h4>Parameters:</h4>
 5297
 5298            <ul class="params-list">
 5299            
 5300                <li class="param">
 5301                    
 5302                        <code class="param-name">e</code>
 5303                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 5304                    
 5305
 5306                    
 5307
 5308                    <div class="param-description">
 5309                        
 5310                    </div>
 5311
 5312                    
 5313                </li>
 5314            
 5315            </ul>
 5316        </div>
 5317    
 5318
 5319    
 5320
 5321    
 5322</div>
 5323
 5324                
 5325                    <div id="method__handlePointerDown" class="method item protected inherited">
 5326    <h3 class="name"><code>_handlePointerDown</code></h3>
 5327
 5328    
 5329        <div class="args">
 5330            <span class="paren">(</span><ul class="args-list inline commas">
 5331            
 5332                <li class="arg">
 5333                    
 5334                        <code>id</code>
 5335                    
 5336                </li>
 5337            
 5338                <li class="arg">
 5339                    
 5340                        <code>e</code>
 5341                    
 5342                </li>
 5343            
 5344                <li class="arg">
 5345                    
 5346                        <code>pageX</code>
 5347                    
 5348                </li>
 5349            
 5350                <li class="arg">
 5351                    
 5352                        <code>pageY</code>
 5353                    
 5354                </li>
 5355            
 5356                <li class="arg">
 5357                    
 5358                        <code>owner</code>
 5359                    
 5360                </li>
 5361            
 5362            </ul><span class="paren">)</span>
 5363        </div>
 5364    
 5365
 5366    
 5367
 5368    
 5369
 5370    
 5371        <span class="flag protected">protected</span>
 5372    
 5373
 5374    
 5375
 5376    
 5377
 5378    
 5379
 5380    
 5381
 5382    <div class="meta">
 5383        
 5384            
 5385                <p>Inherited from
 5386                <a href="../classes/Stage.html#method__handlePointerDown">Stage</a>:
 5387            
 5388        
 5389        
 5390        <a href="../files/easeljs_display_Stage.js.html#l731"><code>_handlePointerDown:731</code></a>
 5391        
 5392        </p>
 5393
 5394
 5395        
 5396
 5397        
 5398    </div>
 5399
 5400    <div class="description">
 5401        
 5402    </div>
 5403
 5404    
 5405        <div class="params">
 5406            <h4>Parameters:</h4>
 5407
 5408            <ul class="params-list">
 5409            
 5410                <li class="param">
 5411                    
 5412                        <code class="param-name">id</code>
 5413                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5414                    
 5415
 5416                    
 5417
 5418                    <div class="param-description">
 5419                        
 5420                    </div>
 5421
 5422                    
 5423                </li>
 5424            
 5425                <li class="param">
 5426                    
 5427                        <code class="param-name">e</code>
 5428                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
 5429                    
 5430
 5431                    
 5432
 5433                    <div class="param-description">
 5434                        
 5435                    </div>
 5436
 5437                    
 5438                </li>
 5439            
 5440                <li class="param">
 5441                    
 5442                        <code class="param-name">pageX</code>
 5443                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5444                    
 5445
 5446                    
 5447
 5448                    <div class="param-description">
 5449                        
 5450                    </div>
 5451
 5452                    
 5453                </li>
 5454            
 5455                <li class="param">
 5456                    
 5457                        <code class="param-name">pageY</code>
 5458                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5459                    
 5460
 5461                    
 5462
 5463                    <div class="param-description">
 5464                        
 5465                    </div>
 5466
 5467                    
 5468                </li>
 5469            
 5470                <li class="param">
 5471                    
 5472                        <code class="param-name">owner</code>
 5473                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 5474                    
 5475
 5476                    
 5477
 5478                    <div class="param-description">
 5479                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 5480
 5481                    </div>
 5482
 5483                    
 5484                </li>
 5485            
 5486            </ul>
 5487        </div>
 5488    
 5489
 5490    
 5491
 5492    
 5493</div>
 5494
 5495                
 5496                    <div id="method__handlePointerMove" class="method item protected inherited">
 5497    <h3 class="name"><code>_handlePointerMove</code></h3>
 5498
 5499    
 5500        <div class="args">
 5501            <span class="paren">(</span><ul class="args-list inline commas">
 5502            
 5503                <li class="arg">
 5504                    
 5505                        <code>id</code>
 5506                    
 5507                </li>
 5508            
 5509                <li class="arg">
 5510                    
 5511                        <code>e</code>
 5512                    
 5513                </li>
 5514            
 5515                <li class="arg">
 5516                    
 5517                        <code>pageX</code>
 5518                    
 5519                </li>
 5520            
 5521                <li class="arg">
 5522                    
 5523                        <code>pageY</code>
 5524                    
 5525                </li>
 5526            
 5527                <li class="arg">
 5528                    
 5529                        <code>owner</code>
 5530                    
 5531                </li>
 5532            
 5533            </ul><span class="paren">)</span>
 5534        </div>
 5535    
 5536
 5537    
 5538
 5539    
 5540
 5541    
 5542        <span class="flag protected">protected</span>
 5543    
 5544
 5545    
 5546
 5547    
 5548
 5549    
 5550
 5551    
 5552
 5553    <div class="meta">
 5554        
 5555            
 5556                <p>Inherited from
 5557                <a href="../classes/Stage.html#method__handlePointerMove">Stage</a>:
 5558            
 5559        
 5560        
 5561        <a href="../files/easeljs_display_Stage.js.html#l620"><code>_handlePointerMove:620</code></a>
 5562        
 5563        </p>
 5564
 5565
 5566        
 5567
 5568        
 5569    </div>
 5570
 5571    <div class="description">
 5572        
 5573    </div>
 5574
 5575    
 5576        <div class="params">
 5577            <h4>Parameters:</h4>
 5578
 5579            <ul class="params-list">
 5580            
 5581                <li class="param">
 5582                    
 5583                        <code class="param-name">id</code>
 5584                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5585                    
 5586
 5587                    
 5588
 5589                    <div class="param-description">
 5590                        
 5591                    </div>
 5592
 5593                    
 5594                </li>
 5595            
 5596                <li class="param">
 5597                    
 5598                        <code class="param-name">e</code>
 5599                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
 5600                    
 5601
 5602                    
 5603
 5604                    <div class="param-description">
 5605                        
 5606                    </div>
 5607
 5608                    
 5609                </li>
 5610            
 5611                <li class="param">
 5612                    
 5613                        <code class="param-name">pageX</code>
 5614                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5615                    
 5616
 5617                    
 5618
 5619                    <div class="param-description">
 5620                        
 5621                    </div>
 5622
 5623                    
 5624                </li>
 5625            
 5626                <li class="param">
 5627                    
 5628                        <code class="param-name">pageY</code>
 5629                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5630                    
 5631
 5632                    
 5633
 5634                    <div class="param-description">
 5635                        
 5636                    </div>
 5637
 5638                    
 5639                </li>
 5640            
 5641                <li class="param">
 5642                    
 5643                        <code class="param-name">owner</code>
 5644                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 5645                    
 5646
 5647                    
 5648
 5649                    <div class="param-description">
 5650                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 5651
 5652                    </div>
 5653
 5654                    
 5655                </li>
 5656            
 5657            </ul>
 5658        </div>
 5659    
 5660
 5661    
 5662
 5663    
 5664</div>
 5665
 5666                
 5667                    <div id="method__handlePointerUp" class="method item protected inherited">
 5668    <h3 class="name"><code>_handlePointerUp</code></h3>
 5669
 5670    
 5671        <div class="args">
 5672            <span class="paren">(</span><ul class="args-list inline commas">
 5673            
 5674                <li class="arg">
 5675                    
 5676                        <code>id</code>
 5677                    
 5678                </li>
 5679            
 5680                <li class="arg">
 5681                    
 5682                        <code>e</code>
 5683                    
 5684                </li>
 5685            
 5686                <li class="arg">
 5687                    
 5688                        <code>clear</code>
 5689                    
 5690                </li>
 5691            
 5692                <li class="arg">
 5693                    
 5694                        <code>owner</code>
 5695                    
 5696                </li>
 5697            
 5698            </ul><span class="paren">)</span>
 5699        </div>
 5700    
 5701
 5702    
 5703
 5704    
 5705
 5706    
 5707        <span class="flag protected">protected</span>
 5708    
 5709
 5710    
 5711
 5712    
 5713
 5714    
 5715
 5716    
 5717
 5718    <div class="meta">
 5719        
 5720            
 5721                <p>Inherited from
 5722                <a href="../classes/Stage.html#method__handlePointerUp">Stage</a>:
 5723            
 5724        
 5725        
 5726        <a href="../files/easeljs_display_Stage.js.html#l694"><code>_handlePointerUp:694</code></a>
 5727        
 5728        </p>
 5729
 5730
 5731        
 5732
 5733        
 5734    </div>
 5735
 5736    <div class="description">
 5737        
 5738    </div>
 5739
 5740    
 5741        <div class="params">
 5742            <h4>Parameters:</h4>
 5743
 5744            <ul class="params-list">
 5745            
 5746                <li class="param">
 5747                    
 5748                        <code class="param-name">id</code>
 5749                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5750                    
 5751
 5752                    
 5753
 5754                    <div class="param-description">
 5755                        
 5756                    </div>
 5757
 5758                    
 5759                </li>
 5760            
 5761                <li class="param">
 5762                    
 5763                        <code class="param-name">e</code>
 5764                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
 5765                    
 5766
 5767                    
 5768
 5769                    <div class="param-description">
 5770                        
 5771                    </div>
 5772
 5773                    
 5774                </li>
 5775            
 5776                <li class="param">
 5777                    
 5778                        <code class="param-name">clear</code>
 5779                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5780                    
 5781
 5782                    
 5783
 5784                    <div class="param-description">
 5785                        
 5786                    </div>
 5787
 5788                    
 5789                </li>
 5790            
 5791                <li class="param">
 5792                    
 5793                        <code class="param-name">owner</code>
 5794                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 5795                    
 5796
 5797                    
 5798
 5799                    <div class="param-description">
 5800                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 5801
 5802                    </div>
 5803
 5804                    
 5805                </li>
 5806            
 5807            </ul>
 5808        </div>
 5809    
 5810
 5811    
 5812
 5813    
 5814</div>
 5815
 5816                
 5817                    <div id="method__initializeWebGL" class="method item protected">
 5818    <h3 class="name"><code>_initializeWebGL</code></h3>
 5819
 5820    
 5821        <span class="paren">()</span>
 5822    
 5823
 5824    
 5825        <span class="returns-inline">
 5826            <span class="type">WebGLRenderingContext</span>
 5827        </span>
 5828    
 5829
 5830    
 5831
 5832    
 5833        <span class="flag protected">protected</span>
 5834    
 5835
 5836    
 5837
 5838    
 5839
 5840    
 5841
 5842    
 5843
 5844    <div class="meta">
 5845        
 5846            
 5847                
 5848                <p>
 5849                
 5850                Defined in
 5851                
 5852            
 5853        
 5854        
 5855        <a href="../files/easeljs_display_StageGL.js.html#l893"><code>_initializeWebGL:893</code></a>
 5856        
 5857        </p>
 5858
 5859
 5860        
 5861
 5862        
 5863    </div>
 5864
 5865    <div class="description">
 5866        <p>Create and properly initialize the WebGL instance.</p>
 5867
 5868    </div>
 5869
 5870    
 5871
 5872    
 5873        <div class="returns">
 5874            <h4>Returns:</h4>
 5875
 5876            <div class="returns-description">
 5877                
 5878                    
 5879                        <span class="type">WebGLRenderingContext</span>:
 5880                    
 5881                
 5882            </div>
 5883        </div>
 5884    
 5885
 5886    
 5887</div>
 5888
 5889                
 5890                    <div id="method__initTextures" class="method item protected">
 5891    <h3 class="name"><code>_initTextures</code></h3>
 5892
 5893    
 5894        <span class="paren">()</span>
 5895    
 5896
 5897    
 5898
 5899    
 5900
 5901    
 5902        <span class="flag protected">protected</span>
 5903    
 5904
 5905    
 5906
 5907    
 5908
 5909    
 5910
 5911    
 5912
 5913    <div class="meta">
 5914        
 5915            
 5916                
 5917                <p>
 5918                
 5919                Defined in
 5920                
 5921            
 5922        
 5923        
 5924        <a href="../files/easeljs_display_StageGL.js.html#l1711"><code>_initTextures:1711</code></a>
 5925        
 5926        </p>
 5927
 5928
 5929        
 5930
 5931        
 5932    </div>
 5933
 5934    <div class="description">
 5935        <p>Do all the setup steps for textures in the system.</p>
 5936
 5937    </div>
 5938
 5939    
 5940
 5941    
 5942
 5943    
 5944</div>
 5945
 5946                
 5947                    <div id="method__insertTextureInBatch" class="method item protected">
 5948    <h3 class="name"><code>_insertTextureInBatch</code></h3>
 5949
 5950    
 5951        <div class="args">
 5952            <span class="paren">(</span><ul class="args-list inline commas">
 5953            
 5954                <li class="arg">
 5955                    
 5956                        <code>gl</code>
 5957                    
 5958                </li>
 5959            
 5960                <li class="arg">
 5961                    
 5962                        <code>texture</code>
 5963                    
 5964                </li>
 5965            
 5966            </ul><span class="paren">)</span>
 5967        </div>
 5968    
 5969
 5970    
 5971
 5972    
 5973
 5974    
 5975        <span class="flag protected">protected</span>
 5976    
 5977
 5978    
 5979
 5980    
 5981
 5982    
 5983
 5984    
 5985
 5986    <div class="meta">
 5987        
 5988            
 5989                
 5990                <p>
 5991                
 5992                Defined in
 5993                
 5994            
 5995        
 5996        
 5997        <a href="../files/easeljs_display_StageGL.js.html#l1843"><code>_insertTextureInBatch:1843</code></a>
 5998        
 5999        </p>
 6000
 6001
 6002        
 6003
 6004        
 6005    </div>
 6006
 6007    <div class="description">
 6008        <p>Adds the texture to a spot in the current batch, forcing a draw if no spots are free.</p>
 6009
 6010    </div>
 6011
 6012    
 6013        <div class="params">
 6014            <h4>Parameters:</h4>
 6015
 6016            <ul class="params-list">
 6017            
 6018                <li class="param">
 6019                    
 6020                        <code class="param-name">gl</code>
 6021                        <span class="type">WebGLRenderingContext</span>
 6022                    
 6023
 6024                    
 6025
 6026                    <div class="param-description">
 6027                        <p>The canvas WebGL context object to draw into.</p>
 6028
 6029                    </div>
 6030
 6031                    
 6032                </li>
 6033            
 6034                <li class="param">
 6035                    
 6036                        <code class="param-name">texture</code>
 6037                        <span class="type">WebGLTexture</span>
 6038                    
 6039
 6040                    
 6041
 6042                    <div class="param-description">
 6043                        <p>The texture to be inserted.</p>
 6044
 6045                    </div>
 6046
 6047                    
 6048                </li>
 6049            
 6050            </ul>
 6051        </div>
 6052    
 6053
 6054    
 6055
 6056    
 6057</div>
 6058
 6059                
 6060                    <div id="method__isMouseOpaque" class="method item protected inherited">
 6061    <h3 class="name"><code>_isMouseOpaque</code></h3>
 6062
 6063    
 6064        <span class="paren">()</span>
 6065    
 6066
 6067    
 6068        <span class="returns-inline">
 6069            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6070        </span>
 6071    
 6072
 6073    
 6074
 6075    
 6076        <span class="flag protected">protected</span>
 6077    
 6078
 6079    
 6080
 6081    
 6082
 6083    
 6084
 6085    
 6086
 6087    <div class="meta">
 6088        
 6089            
 6090                <p>Inherited from
 6091                <a href="../classes/DisplayObject.html#method__isMouseOpaque">DisplayObject</a>:
 6092            
 6093        
 6094        
 6095        <a href="../files/easeljs_display_DisplayObject.js.html#l1352"><code>_isMouseOpaque:1352</code></a>
 6096        
 6097        </p>
 6098
 6099
 6100        
 6101
 6102        
 6103    </div>
 6104
 6105    <div class="description">
 6106        <p>Indicates whether the display object has any mouse event listeners or a cursor.</p>
 6107
 6108    </div>
 6109
 6110    
 6111
 6112    
 6113        <div class="returns">
 6114            <h4>Returns:</h4>
 6115
 6116            <div class="returns-description">
 6117                
 6118                    
 6119                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 6120                    
 6121                
 6122            </div>
 6123        </div>
 6124    
 6125
 6126    
 6127</div>
 6128
 6129                
 6130                    <div id="method__killTextureObject" class="method item protected">
 6131    <h3 class="name"><code>_killTextureObject</code></h3>
 6132
 6133    
 6134        <div class="args">
 6135            <span class="paren">(</span><ul class="args-list inline commas">
 6136            
 6137                <li class="arg">
 6138                    
 6139                        <code>tex</code>
 6140                    
 6141                </li>
 6142            
 6143            </ul><span class="paren">)</span>
 6144        </div>
 6145    
 6146
 6147    
 6148
 6149    
 6150
 6151    
 6152        <span class="flag protected">protected</span>
 6153    
 6154
 6155    
 6156
 6157    
 6158
 6159    
 6160
 6161    
 6162
 6163    <div class="meta">
 6164        
 6165            
 6166                
 6167                <p>
 6168                
 6169                Defined in
 6170                
 6171            
 6172        
 6173        
 6174        <a href="../files/easeljs_display_StageGL.js.html#l1896"><code>_killTextureObject:1896</code></a>
 6175        
 6176        </p>
 6177
 6178
 6179        
 6180
 6181        
 6182    </div>
 6183
 6184    <div class="description">
 6185        <p>Remove and clean the texture, expects a texture and is inflexible. Mostly for internal use, recommended to call 
 6186<a href="../classes/StageGL.html#method_releaseTexture" class="crosslink">releaseTexture</a> instead as it will call this with the correct texture object(s).
 6187Note: Testing shows this may not happen immediately, have to wait frames for WebGL to have actually adjust memory.</p>
 6188
 6189    </div>
 6190
 6191    
 6192        <div class="params">
 6193            <h4>Parameters:</h4>
 6194
 6195            <ul class="params-list">
 6196            
 6197                <li class="param">
 6198                    
 6199                        <code class="param-name">tex</code>
 6200                        <span class="type">Texture</span>
 6201                    
 6202
 6203                    
 6204
 6205                    <div class="param-description">
 6206                        <p>The texture to be cleaned out</p>
 6207
 6208                    </div>
 6209
 6210                    
 6211                </li>
 6212            
 6213            </ul>
 6214        </div>
 6215    
 6216
 6217    
 6218
 6219    
 6220</div>
 6221
 6222                
 6223                    <div id="method__loadTextureImage" class="method item protected">
 6224    <h3 class="name"><code>_loadTextureImage</code></h3>
 6225
 6226    
 6227        <div class="args">
 6228            <span class="paren">(</span><ul class="args-list inline commas">
 6229            
 6230                <li class="arg">
 6231                    
 6232                        <code>gl</code>
 6233                    
 6234                </li>
 6235            
 6236                <li class="arg">
 6237                    
 6238                        <code>image</code>
 6239                    
 6240                </li>
 6241            
 6242            </ul><span class="paren">)</span>
 6243        </div>
 6244    
 6245
 6246    
 6247        <span class="returns-inline">
 6248            <span class="type">WebGLTexture</span>
 6249        </span>
 6250    
 6251
 6252    
 6253
 6254    
 6255        <span class="flag protected">protected</span>
 6256    
 6257
 6258    
 6259
 6260    
 6261
 6262    
 6263
 6264    
 6265
 6266    <div class="meta">
 6267        
 6268            
 6269                
 6270                <p>
 6271                
 6272                Defined in
 6273                
 6274            
 6275        
 6276        
 6277        <a href="../files/easeljs_display_StageGL.js.html#l1738"><code>_loadTextureImage:1738</code></a>
 6278        
 6279        </p>
 6280
 6281
 6282        
 6283
 6284        
 6285    </div>
 6286
 6287    <div class="description">
 6288        <p>Load a specific texture, accounting for potential delay, as it might not be preloaded.</p>
 6289
 6290    </div>
 6291
 6292    
 6293        <div class="params">
 6294            <h4>Parameters:</h4>
 6295
 6296            <ul class="params-list">
 6297            
 6298                <li class="param">
 6299                    
 6300                        <code class="param-name">gl</code>
 6301                        <span class="type">WebGLRenderingContext</span>
 6302                    
 6303
 6304                    
 6305
 6306                    <div class="param-description">
 6307                         
 6308                    </div>
 6309
 6310                    
 6311                </li>
 6312            
 6313                <li class="param">
 6314                    
 6315                        <code class="param-name">image</code>
 6316                        <span class="type">Image</span>
 6317                    
 6318
 6319                    
 6320
 6321                    <div class="param-description">
 6322                        <p>Actual image to be loaded</p>
 6323
 6324                    </div>
 6325
 6326                    
 6327                </li>
 6328            
 6329            </ul>
 6330        </div>
 6331    
 6332
 6333    
 6334        <div class="returns">
 6335            <h4>Returns:</h4>
 6336
 6337            <div class="returns-description">
 6338                
 6339                    
 6340                        <span class="type">WebGLTexture</span>:
 6341                    
 6342                    <p>The resulting Texture object</p>
 6343
 6344                
 6345            </div>
 6346        </div>
 6347    
 6348
 6349    
 6350</div>
 6351
 6352                
 6353                    <div id="method__testHit" class="method item protected inherited">
 6354    <h3 class="name"><code>_testHit</code></h3>
 6355
 6356    
 6357        <div class="args">
 6358            <span class="paren">(</span><ul class="args-list inline commas">
 6359            
 6360                <li class="arg">
 6361                    
 6362                        <code>ctx</code>
 6363                    
 6364                </li>
 6365            
 6366            </ul><span class="paren">)</span>
 6367        </div>
 6368    
 6369
 6370    
 6371        <span class="returns-inline">
 6372            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6373        </span>
 6374    
 6375
 6376    
 6377
 6378    
 6379        <span class="flag protected">protected</span>
 6380    
 6381
 6382    
 6383
 6384    
 6385
 6386    
 6387
 6388    
 6389
 6390    <div class="meta">
 6391        
 6392            
 6393                <p>Inherited from
 6394                <a href="../classes/DisplayObject.html#method__testHit">DisplayObject</a>:
 6395            
 6396        
 6397        
 6398        <a href="../files/easeljs_display_DisplayObject.js.html#l1291"><code>_testHit:1291</code></a>
 6399        
 6400        </p>
 6401
 6402
 6403        
 6404
 6405        
 6406    </div>
 6407
 6408    <div class="description">
 6409        
 6410    </div>
 6411
 6412    
 6413        <div class="params">
 6414            <h4>Parameters:</h4>
 6415
 6416            <ul class="params-list">
 6417            
 6418                <li class="param">
 6419                    
 6420                        <code class="param-name">ctx</code>
 6421                        <span class="type">CanvasRenderingContext2D</span>
 6422                    
 6423
 6424                    
 6425
 6426                    <div class="param-description">
 6427                        
 6428                    </div>
 6429
 6430                    
 6431                </li>
 6432            
 6433            </ul>
 6434        </div>
 6435    
 6436
 6437    
 6438        <div class="returns">
 6439            <h4>Returns:</h4>
 6440
 6441            <div class="returns-description">
 6442                
 6443                    
 6444                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 6445                    
 6446                
 6447            </div>
 6448        </div>
 6449    
 6450
 6451    
 6452</div>
 6453
 6454                
 6455                    <div id="method__testMask" class="method item protected inherited">
 6456    <h3 class="name"><code>_testMask</code></h3>
 6457
 6458    
 6459        <div class="args">
 6460            <span class="paren">(</span><ul class="args-list inline commas">
 6461            
 6462                <li class="arg">
 6463                    
 6464                        <code>target</code>
 6465                    
 6466                </li>
 6467            
 6468                <li class="arg">
 6469                    
 6470                        <code>x</code>
 6471                    
 6472                </li>
 6473            
 6474                <li class="arg">
 6475                    
 6476                        <code>y</code>
 6477                    
 6478                </li>
 6479            
 6480            </ul><span class="paren">)</span>
 6481        </div>
 6482    
 6483
 6484    
 6485        <span class="returns-inline">
 6486            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6487        </span>
 6488    
 6489
 6490    
 6491
 6492    
 6493        <span class="flag protected">protected</span>
 6494    
 6495
 6496    
 6497
 6498    
 6499
 6500    
 6501
 6502    
 6503
 6504    <div class="meta">
 6505        
 6506            
 6507                <p>Inherited from
 6508                <a href="../classes/Container.html#method__testMask">Container</a>:
 6509            
 6510        
 6511        
 6512        <a href="../files/easeljs_display_Container.js.html#l650"><code>_testMask:650</code></a>
 6513        
 6514        </p>
 6515
 6516
 6517        
 6518
 6519        
 6520    </div>
 6521
 6522    <div class="description">
 6523        
 6524    </div>
 6525
 6526    
 6527        <div class="params">
 6528            <h4>Parameters:</h4>
 6529
 6530            <ul class="params-list">
 6531            
 6532                <li class="param">
 6533                    
 6534                        <code class="param-name">target</code>
 6535                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 6536                    
 6537
 6538                    
 6539
 6540                    <div class="param-description">
 6541                        
 6542                    </div>
 6543
 6544                    
 6545                </li>
 6546            
 6547                <li class="param">
 6548                    
 6549                        <code class="param-name">x</code>
 6550                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6551                    
 6552
 6553                    
 6554
 6555                    <div class="param-description">
 6556                        
 6557                    </div>
 6558
 6559                    
 6560                </li>
 6561            
 6562                <li class="param">
 6563                    
 6564                        <code class="param-name">y</code>
 6565                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6566                    
 6567
 6568                    
 6569
 6570                    <div class="param-description">
 6571                        
 6572                    </div>
 6573
 6574                    
 6575                </li>
 6576            
 6577            </ul>
 6578        </div>
 6579    
 6580
 6581    
 6582        <div class="returns">
 6583            <h4>Returns:</h4>
 6584
 6585            <div class="returns-description">
 6586                
 6587                    
 6588                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 6589                    
 6590                    <p>Indicates whether the x/y is within the masked region.</p>
 6591
 6592                
 6593            </div>
 6594        </div>
 6595    
 6596
 6597    
 6598</div>
 6599
 6600                
 6601                    <div id="method__testMouseOver" class="method item protected inherited">
 6602    <h3 class="name"><code>_testMouseOver</code></h3>
 6603
 6604    
 6605        <div class="args">
 6606            <span class="paren">(</span><ul class="args-list inline commas">
 6607            
 6608                <li class="arg">
 6609                    
 6610                        <code>clear</code>
 6611                    
 6612                </li>
 6613            
 6614                <li class="arg">
 6615                    
 6616                        <code>owner</code>
 6617                    
 6618                </li>
 6619            
 6620                <li class="arg">
 6621                    
 6622                        <code>eventTarget</code>
 6623                    
 6624                </li>
 6625            
 6626            </ul><span class="paren">)</span>
 6627        </div>
 6628    
 6629
 6630    
 6631
 6632    
 6633
 6634    
 6635        <span class="flag protected">protected</span>
 6636    
 6637
 6638    
 6639
 6640    
 6641
 6642    
 6643
 6644    
 6645
 6646    <div class="meta">
 6647        
 6648            
 6649                <p>Inherited from
 6650                <a href="../classes/Stage.html#method__testMouseOver">Stage</a>:
 6651            
 6652        
 6653        
 6654        <a href="../files/easeljs_display_Stage.js.html#l754"><code>_testMouseOver:754</code></a>
 6655        
 6656        </p>
 6657
 6658
 6659        
 6660
 6661        
 6662    </div>
 6663
 6664    <div class="description">
 6665        
 6666    </div>
 6667
 6668    
 6669        <div class="params">
 6670            <h4>Parameters:</h4>
 6671
 6672            <ul class="params-list">
 6673            
 6674                <li class="param">
 6675                    
 6676                        <code class="param-name">clear</code>
 6677                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6678                    
 6679
 6680                    
 6681
 6682                    <div class="param-description">
 6683                        <p>If true, clears the mouseover / rollover (ie. no target)</p>
 6684
 6685                    </div>
 6686
 6687                    
 6688                </li>
 6689            
 6690                <li class="param">
 6691                    
 6692                        <code class="param-name">owner</code>
 6693                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 6694                    
 6695
 6696                    
 6697
 6698                    <div class="param-description">
 6699                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 6700
 6701                    </div>
 6702
 6703                    
 6704                </li>
 6705            
 6706                <li class="param">
 6707                    
 6708                        <code class="param-name">eventTarget</code>
 6709                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 6710                    
 6711
 6712                    
 6713
 6714                    <div class="param-description">
 6715                        <p>The stage that the cursor is actively over.</p>
 6716
 6717                    </div>
 6718
 6719                    
 6720                </li>
 6721            
 6722            </ul>
 6723        </div>
 6724    
 6725
 6726    
 6727
 6728    
 6729</div>
 6730
 6731                
 6732                    <div id="method__tick" class="method item protected inherited">
 6733    <h3 class="name"><code>_tick</code></h3>
 6734
 6735    
 6736        <div class="args">
 6737            <span class="paren">(</span><ul class="args-list inline commas">
 6738            
 6739                <li class="arg">
 6740                    
 6741                        <code>evtObj</code>
 6742                    
 6743                </li>
 6744            
 6745            </ul><span class="paren">)</span>
 6746        </div>
 6747    
 6748
 6749    
 6750
 6751    
 6752
 6753    
 6754        <span class="flag protected">protected</span>
 6755    
 6756
 6757    
 6758
 6759    
 6760
 6761    
 6762
 6763    
 6764
 6765    <div class="meta">
 6766        
 6767            <p>Inherited from
 6768            <a href="../classes/DisplayObject.html#method__tick">
 6769                DisplayObject
 6770            </a>
 6771            
 6772            but overwritten in
 6773            
 6774        
 6775        
 6776        <a href="../files/easeljs_display_Container.js.html#l547"><code>_tick:547</code></a>
 6777        
 6778        </p>
 6779
 6780
 6781        
 6782
 6783        
 6784    </div>
 6785
 6786    <div class="description">
 6787        
 6788    </div>
 6789
 6790    
 6791        <div class="params">
 6792            <h4>Parameters:</h4>
 6793
 6794            <ul class="params-list">
 6795            
 6796                <li class="param">
 6797                    
 6798                        <code class="param-name">evtObj</code>
 6799                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 6800                    
 6801
 6802                    
 6803
 6804                    <div class="param-description">
 6805                        <p>An event object that will be dispatched to all tick listeners. This object is reused between dispatchers to reduce construction &amp; GC costs.</p>
 6806
 6807                    </div>
 6808
 6809                    
 6810                </li>
 6811            
 6812            </ul>
 6813        </div>
 6814    
 6815
 6816    
 6817
 6818    
 6819</div>
 6820
 6821                
 6822                    <div id="method__transformBounds" class="method item protected inherited">
 6823    <h3 class="name"><code>_transformBounds</code></h3>
 6824
 6825    
 6826        <div class="args">
 6827            <span class="paren">(</span><ul class="args-list inline commas">
 6828            
 6829                <li class="arg">
 6830                    
 6831                        <code>bounds</code>
 6832                    
 6833                </li>
 6834            
 6835                <li class="arg">
 6836                    
 6837                        <code>matrix</code>
 6838                    
 6839                </li>
 6840            
 6841                <li class="arg">
 6842                    
 6843                        <code>ignoreTransform</code>
 6844                    
 6845                </li>
 6846            
 6847            </ul><span class="paren">)</span>
 6848        </div>
 6849    
 6850
 6851    
 6852        <span class="returns-inline">
 6853            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 6854        </span>
 6855    
 6856
 6857    
 6858
 6859    
 6860        <span class="flag protected">protected</span>
 6861    
 6862
 6863    
 6864
 6865    
 6866
 6867    
 6868
 6869    
 6870
 6871    <div class="meta">
 6872        
 6873            
 6874                <p>Inherited from
 6875                <a href="../classes/DisplayObject.html#method__transformBounds">DisplayObject</a>:
 6876            
 6877        
 6878        
 6879        <a href="../files/easeljs_display_DisplayObject.js.html#l1319"><code>_transformBounds:1319</code></a>
 6880        
 6881        </p>
 6882
 6883
 6884        
 6885
 6886        
 6887    </div>
 6888
 6889    <div class="description">
 6890        
 6891    </div>
 6892
 6893    
 6894        <div class="params">
 6895            <h4>Parameters:</h4>
 6896
 6897            <ul class="params-list">
 6898            
 6899                <li class="param">
 6900                    
 6901                        <code class="param-name">bounds</code>
 6902                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 6903                    
 6904
 6905                    
 6906
 6907                    <div class="param-description">
 6908                        
 6909                    </div>
 6910
 6911                    
 6912                </li>
 6913            
 6914                <li class="param">
 6915                    
 6916                        <code class="param-name">matrix</code>
 6917                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 6918                    
 6919
 6920                    
 6921
 6922                    <div class="param-description">
 6923                        
 6924                    </div>
 6925
 6926                    
 6927                </li>
 6928            
 6929                <li class="param">
 6930                    
 6931                        <code class="param-name">ignoreTransform</code>
 6932                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6933                    
 6934
 6935                    
 6936
 6937                    <div class="param-description">
 6938                        
 6939                    </div>
 6940
 6941                    
 6942                </li>
 6943            
 6944            </ul>
 6945        </div>
 6946    
 6947
 6948    
 6949        <div class="returns">
 6950            <h4>Returns:</h4>
 6951
 6952            <div class="returns-description">
 6953                
 6954                    
 6955                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 6956                    
 6957                
 6958            </div>
 6959        </div>
 6960    
 6961
 6962    
 6963</div>
 6964
 6965                
 6966                    <div id="method__updatePointerPosition" class="method item protected inherited">
 6967    <h3 class="name"><code>_updatePointerPosition</code></h3>
 6968
 6969    
 6970        <div class="args">
 6971            <span class="paren">(</span><ul class="args-list inline commas">
 6972            
 6973                <li class="arg">
 6974                    
 6975                        <code>id</code>
 6976                    
 6977                </li>
 6978            
 6979                <li class="arg">
 6980                    
 6981                        <code>e</code>
 6982                    
 6983                </li>
 6984            
 6985                <li class="arg">
 6986                    
 6987                        <code>pageX</code>
 6988                    
 6989                </li>
 6990            
 6991                <li class="arg">
 6992                    
 6993                        <code>pageY</code>
 6994                    
 6995                </li>
 6996            
 6997            </ul><span class="paren">)</span>
 6998        </div>
 6999    
 7000
 7001    
 7002
 7003    
 7004
 7005    
 7006        <span class="flag protected">protected</span>
 7007    
 7008
 7009    
 7010
 7011    
 7012
 7013    
 7014
 7015    
 7016
 7017    <div class="meta">
 7018        
 7019            
 7020                <p>Inherited from
 7021                <a href="../classes/Stage.html#method__updatePointerPosition">Stage</a>:
 7022            
 7023        
 7024        
 7025        <a href="../files/easeljs_display_Stage.js.html#l648"><code>_updatePointerPosition:648</code></a>
 7026        
 7027        </p>
 7028
 7029
 7030        
 7031
 7032        
 7033    </div>
 7034
 7035    <div class="description">
 7036        
 7037    </div>
 7038
 7039    
 7040        <div class="params">
 7041            <h4>Parameters:</h4>
 7042
 7043            <ul class="params-list">
 7044            
 7045                <li class="param">
 7046                    
 7047                        <code class="param-name">id</code>
 7048                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7049                    
 7050
 7051                    
 7052
 7053                    <div class="param-description">
 7054                        
 7055                    </div>
 7056
 7057                    
 7058                </li>
 7059            
 7060                <li class="param">
 7061                    
 7062                        <code class="param-name">e</code>
 7063                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
 7064                    
 7065
 7066                    
 7067
 7068                    <div class="param-description">
 7069                        
 7070                    </div>
 7071
 7072                    
 7073                </li>
 7074            
 7075                <li class="param">
 7076                    
 7077                        <code class="param-name">pageX</code>
 7078                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7079                    
 7080
 7081                    
 7082
 7083                    <div class="param-description">
 7084                        
 7085                    </div>
 7086
 7087                    
 7088                </li>
 7089            
 7090                <li class="param">
 7091                    
 7092                        <code class="param-name">pageY</code>
 7093                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7094                    
 7095
 7096                    
 7097
 7098                    <div class="param-description">
 7099                        
 7100                    </div>
 7101
 7102                    
 7103                </li>
 7104            
 7105            </ul>
 7106        </div>
 7107    
 7108
 7109    
 7110
 7111    
 7112</div>
 7113
 7114                
 7115                    <div id="method__updateState" class="method item inherited">
 7116    <h3 class="name"><code>_updateState</code></h3>
 7117
 7118    
 7119        <span class="paren">()</span>
 7120    
 7121
 7122    
 7123
 7124    
 7125
 7126    
 7127
 7128    
 7129
 7130    
 7131
 7132    
 7133
 7134    
 7135
 7136    <div class="meta">
 7137        
 7138            
 7139                <p>Inherited from
 7140                <a href="../classes/DisplayObject.html#method__updateState">DisplayObject</a>:
 7141            
 7142        
 7143        
 7144        <a href="../files/easeljs_display_DisplayObject.js.html#l1214"><code>_updateState:1214</code></a>
 7145        
 7146        </p>
 7147
 7148
 7149        
 7150
 7151        
 7152    </div>
 7153
 7154    <div class="description">
 7155        <p>Called before the object gets drawn and is a chance to ensure the display state of the object is correct.
 7156Mostly used by <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> and <a href="../classes/BitmapText.html" class="crosslink">BitmapText</a> to
 7157correct their internal state and children prior to being drawn.</p>
 7158<p>Is manually called via draw in a <a href="../classes/Stage.html" class="crosslink">Stage</a> but is automatically called when
 7159present in a <a href="../classes/StageGL.html" class="crosslink">StageGL</a> instance.</p>
 7160
 7161    </div>
 7162
 7163    
 7164
 7165    
 7166
 7167    
 7168</div>
 7169
 7170                
 7171                    <div id="method_addChild" class="method item inherited">
 7172    <h3 class="name"><code>addChild</code></h3>
 7173
 7174    
 7175        <div class="args">
 7176            <span class="paren">(</span><ul class="args-list inline commas">
 7177            
 7178                <li class="arg">
 7179                    
 7180                        <code>child</code>
 7181                    
 7182                </li>
 7183            
 7184            </ul><span class="paren">)</span>
 7185        </div>
 7186    
 7187
 7188    
 7189        <span class="returns-inline">
 7190            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 7191        </span>
 7192    
 7193
 7194    
 7195
 7196    
 7197
 7198    
 7199
 7200    
 7201
 7202    
 7203
 7204    
 7205
 7206    <div class="meta">
 7207        
 7208            
 7209                <p>Inherited from
 7210                <a href="../classes/Container.html#method_addChild">Container</a>:
 7211            
 7212        
 7213        
 7214        <a href="../files/easeljs_display_Container.js.html#l173"><code>addChild:173</code></a>
 7215        
 7216        </p>
 7217
 7218
 7219        
 7220
 7221        
 7222    </div>
 7223
 7224    <div class="description">
 7225        <p><p>Adds a child to the top of the display list.</p></p>
 7226<h4>Example</h4>
 7227
 7228<pre class="code prettyprint"><code>    container.addChild(bitmapInstance);</code></pre>
 7229<p>You can also add multiple children at once:</p>
 7230<pre class="code prettyprint"><code>    container.addChild(bitmapInstance, shapeInstance, textInstance);</code></pre>
 7231
 7232    </div>
 7233
 7234    
 7235        <div class="params">
 7236            <h4>Parameters:</h4>
 7237
 7238            <ul class="params-list">
 7239            
 7240                <li class="param">
 7241                    
 7242                        <code class="param-name">child</code>
 7243                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 7244                    
 7245
 7246                    
 7247
 7248                    <div class="param-description">
 7249                        <p>The display object to add.</p>
 7250
 7251                    </div>
 7252
 7253                    
 7254                </li>
 7255            
 7256            </ul>
 7257        </div>
 7258    
 7259
 7260    
 7261        <div class="returns">
 7262            <h4>Returns:</h4>
 7263
 7264            <div class="returns-description">
 7265                
 7266                    
 7267                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 7268                    
 7269                    <p>The child that was added, or the last child if multiple children were added.</p>
 7270
 7271                
 7272            </div>
 7273        </div>
 7274    
 7275
 7276    
 7277</div>
 7278
 7279                
 7280                    <div id="method_addChildAt" class="method item inherited">
 7281    <h3 class="name"><code>addChildAt</code></h3>
 7282
 7283    
 7284        <div class="args">
 7285            <span class="paren">(</span><ul class="args-list inline commas">
 7286            
 7287                <li class="arg">
 7288                    
 7289                        <code>child</code>
 7290                    
 7291                </li>
 7292            
 7293                <li class="arg">
 7294                    
 7295                        <code>index</code>
 7296                    
 7297                </li>
 7298            
 7299            </ul><span class="paren">)</span>
 7300        </div>
 7301    
 7302
 7303    
 7304        <span class="returns-inline">
 7305            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 7306        </span>
 7307    
 7308
 7309    
 7310
 7311    
 7312
 7313    
 7314
 7315    
 7316
 7317    
 7318
 7319    
 7320
 7321    <div class="meta">
 7322        
 7323            
 7324                <p>Inherited from
 7325                <a href="../classes/Container.html#method_addChildAt">Container</a>:
 7326            
 7327        
 7328        
 7329        <a href="../files/easeljs_display_Container.js.html#l204"><code>addChildAt:204</code></a>
 7330        
 7331        </p>
 7332
 7333
 7334        
 7335
 7336        
 7337    </div>
 7338
 7339    <div class="description">
 7340        <p>Adds a child to the display list at the specified index, bumping children at equal or greater indexes up one, and
 7341setting its parent to this Container.</p>
 7342<h4>Example</h4>
 7343
 7344<pre class="code prettyprint"><code> addChildAt(child1, index);</code></pre>
 7345<p>You can also add multiple children, such as:</p>
 7346<pre class="code prettyprint"><code> addChildAt(child1, child2, ..., index);</code></pre>
 7347<p>The index must be between 0 and numChildren. For example, to add myShape under otherShape in the display list,
 7348you could use:</p>
 7349<pre class="code prettyprint"><code> container.addChildAt(myShape, container.getChildIndex(otherShape));</code></pre>
 7350<p>This would also bump otherShape&#39;s index up by one. Fails silently if the index is out of range.</p>
 7351
 7352    </div>
 7353
 7354    
 7355        <div class="params">
 7356            <h4>Parameters:</h4>
 7357
 7358            <ul class="params-list">
 7359            
 7360                <li class="param">
 7361                    
 7362                        <code class="param-name">child</code>
 7363                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 7364                    
 7365
 7366                    
 7367
 7368                    <div class="param-description">
 7369                        <p>The display object to add.</p>
 7370
 7371                    </div>
 7372
 7373                    
 7374                </li>
 7375            
 7376                <li class="param">
 7377                    
 7378                        <code class="param-name">index</code>
 7379                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7380                    
 7381
 7382                    
 7383
 7384                    <div class="param-description">
 7385                        <p>The index to add the child at.</p>
 7386
 7387                    </div>
 7388
 7389                    
 7390                </li>
 7391            
 7392            </ul>
 7393        </div>
 7394    
 7395
 7396    
 7397        <div class="returns">
 7398            <h4>Returns:</h4>
 7399
 7400            <div class="returns-description">
 7401                
 7402                    
 7403                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 7404                    
 7405                    <p>Returns the last child that was added, or the last child if multiple children were added.</p>
 7406
 7407                
 7408            </div>
 7409        </div>
 7410    
 7411
 7412    
 7413</div>
 7414
 7415                
 7416                    <div id="method_addEventListener" class="method item inherited">
 7417    <h3 class="name"><code>addEventListener</code></h3>
 7418
 7419    
 7420        <div class="args">
 7421            <span class="paren">(</span><ul class="args-list inline commas">
 7422            
 7423                <li class="arg">
 7424                    
 7425                        <code>type</code>
 7426                    
 7427                </li>
 7428            
 7429                <li class="arg">
 7430                    
 7431                        <code>listener</code>
 7432                    
 7433                </li>
 7434            
 7435                <li class="arg">
 7436                    
 7437                        <code class="optional">[useCapture]</code>
 7438                    
 7439                </li>
 7440            
 7441            </ul><span class="paren">)</span>
 7442        </div>
 7443    
 7444
 7445    
 7446        <span class="returns-inline">
 7447            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 7448        </span>
 7449    
 7450
 7451    
 7452
 7453    
 7454
 7455    
 7456
 7457    
 7458
 7459    
 7460
 7461    
 7462
 7463    <div class="meta">
 7464        
 7465            
 7466                <p>Inherited from
 7467                <a href="../classes/EventDispatcher.html#method_addEventListener">EventDispatcher</a>:
 7468            
 7469        
 7470        
 7471        <a href="../files/createjs_events_EventDispatcher.js.html#l140"><code>addEventListener:140</code></a>
 7472        
 7473        </p>
 7474
 7475
 7476        
 7477
 7478        
 7479    </div>
 7480
 7481    <div class="description">
 7482        <p><p>Adds the specified event listener. Note that adding multiple listeners to the same function will result in
 7483multiple callbacks getting fired.</p></p>
 7484<h4>Example</h4>
 7485
 7486<pre class="code prettyprint"><code> displayObject.addEventListener("click", handleClick);
 7487 function handleClick(event) {
 7488    // Click happened.
 7489 }</code></pre>
 7490
 7491    </div>
 7492
 7493    
 7494        <div class="params">
 7495            <h4>Parameters:</h4>
 7496
 7497            <ul class="params-list">
 7498            
 7499                <li class="param">
 7500                    
 7501                        <code class="param-name">type</code>
 7502                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 7503                    
 7504
 7505                    
 7506
 7507                    <div class="param-description">
 7508                        <p>The string type of the event.</p>
 7509
 7510                    </div>
 7511
 7512                    
 7513                </li>
 7514            
 7515                <li class="param">
 7516                    
 7517                        <code class="param-name">listener</code>
 7518                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 7519                    
 7520
 7521                    
 7522
 7523                    <div class="param-description">
 7524                        <p>An object with a handleEvent method, or a function that will be called when
 7525the event is dispatched.</p>
 7526
 7527                    </div>
 7528
 7529                    
 7530                </li>
 7531            
 7532                <li class="param">
 7533                    
 7534                        <code class="param-name optional">[useCapture]</code>
 7535                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 7536                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7537                    
 7538
 7539                    
 7540
 7541                    <div class="param-description">
 7542                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
 7543
 7544                    </div>
 7545
 7546                    
 7547                </li>
 7548            
 7549            </ul>
 7550        </div>
 7551    
 7552
 7553    
 7554        <div class="returns">
 7555            <h4>Returns:</h4>
 7556
 7557            <div class="returns-description">
 7558                
 7559                    
 7560                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
 7561                    
 7562                    <p>Returns the listener for chaining or assignment.</p>
 7563
 7564                
 7565            </div>
 7566        </div>
 7567    
 7568
 7569    
 7570</div>
 7571
 7572                
 7573                    <div id="method_buildUVRects" class="method item">
 7574    <h3 class="name"><code>buildUVRects</code></h3>
 7575
 7576    
 7577        <div class="args">
 7578            <span class="paren">(</span><ul class="args-list inline commas">
 7579            
 7580                <li class="arg">
 7581                    
 7582                        <code>spritesheet</code>
 7583                    
 7584                </li>
 7585            
 7586                <li class="arg">
 7587                    
 7588                        <code class="optional">[target=-1]</code>
 7589                    
 7590                </li>
 7591            
 7592                <li class="arg">
 7593                    
 7594                        <code class="optional">[onlyTarget=false]</code>
 7595                    
 7596                </li>
 7597            
 7598            </ul><span class="paren">)</span>
 7599        </div>
 7600    
 7601
 7602    
 7603        <span class="returns-inline">
 7604            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 7605        </span>
 7606    
 7607
 7608    
 7609
 7610    
 7611
 7612    
 7613
 7614    
 7615        <span class="flag static">static</span>
 7616    
 7617
 7618    
 7619
 7620    
 7621
 7622    <div class="meta">
 7623        
 7624            
 7625                
 7626                <p>
 7627                
 7628                Defined in
 7629                
 7630            
 7631        
 7632        
 7633        <a href="../files/easeljs_display_StageGL.js.html#l461"><code>buildUVRects:461</code></a>
 7634        
 7635        </p>
 7636
 7637
 7638        
 7639
 7640        
 7641    </div>
 7642
 7643    <div class="description">
 7644        <p>Calculate the U/V co-ordinate based info for sprite frames. Instead of pixel count it uses a 0-1 space. Also includes
 7645the ability to get info back for a specific frame, or only calculate that one frame.</p>
 7646<pre class="code prettyprint"><code>//generate UV rects for all entries
 7647StageGL.buildUVRects( spriteSheetA );
 7648//generate all, fetch the first
 7649var firstFrame = StageGL.buildUVRects( spriteSheetB, 0 );
 7650//generate the rect for just a single frame for performance&#39;s sake
 7651var newFrame = StageGL.buildUVRects( dynamicSpriteSheet, newFrameIndex, true );</code></pre>
 7652<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
 7653
 7654    </div>
 7655
 7656    
 7657        <div class="params">
 7658            <h4>Parameters:</h4>
 7659
 7660            <ul class="params-list">
 7661            
 7662                <li class="param">
 7663                    
 7664                        <code class="param-name">spritesheet</code>
 7665                        <span class="type"><a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a></span>
 7666                    
 7667
 7668                    
 7669
 7670                    <div class="param-description">
 7671                        <p>The spritesheet to find the frames on</p>
 7672
 7673                    </div>
 7674
 7675                    
 7676                </li>
 7677            
 7678                <li class="param">
 7679                    
 7680                        <code class="param-name optional">[target=-1]</code>
 7681                        <span class="type">Int</span>
 7682                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7683                    
 7684
 7685                    
 7686
 7687                    <div class="param-description">
 7688                        <p>The index of the frame to return</p>
 7689
 7690                    </div>
 7691
 7692                    
 7693                </li>
 7694            
 7695                <li class="param">
 7696                    
 7697                        <code class="param-name optional">[onlyTarget=false]</code>
 7698                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 7699                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7700                    
 7701
 7702                    
 7703
 7704                    <div class="param-description">
 7705                        <p>Whether "target" is the only frame that gets calculated</p>
 7706
 7707                    </div>
 7708
 7709                    
 7710                </li>
 7711            
 7712            </ul>
 7713        </div>
 7714    
 7715
 7716    
 7717        <div class="returns">
 7718            <h4>Returns:</h4>
 7719
 7720            <div class="returns-description">
 7721                
 7722                    
 7723                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
 7724                    
 7725                    <p>the target frame if supplied and present or a generic frame {t, l, b, r}</p>
 7726
 7727                
 7728            </div>
 7729        </div>
 7730    
 7731
 7732    
 7733</div>
 7734
 7735                
 7736                    <div id="method_cache" class="method item inherited">
 7737    <h3 class="name"><code>cache</code></h3>
 7738
 7739    
 7740        <div class="args">
 7741            <span class="paren">(</span><ul class="args-list inline commas">
 7742            
 7743                <li class="arg">
 7744                    
 7745                        <code>x</code>
 7746                    
 7747                </li>
 7748            
 7749                <li class="arg">
 7750                    
 7751                        <code>y</code>
 7752                    
 7753                </li>
 7754            
 7755                <li class="arg">
 7756                    
 7757                        <code>width</code>
 7758                    
 7759                </li>
 7760            
 7761                <li class="arg">
 7762                    
 7763                        <code>height</code>
 7764                    
 7765                </li>
 7766            
 7767                <li class="arg">
 7768                    
 7769                        <code class="optional">[scale=1]</code>
 7770                    
 7771                </li>
 7772            
 7773                <li class="arg">
 7774                    
 7775                        <code class="optional">[options=undefined]</code>
 7776                    
 7777                </li>
 7778            
 7779            </ul><span class="paren">)</span>
 7780        </div>
 7781    
 7782
 7783    
 7784
 7785    
 7786
 7787    
 7788
 7789    
 7790
 7791    
 7792
 7793    
 7794
 7795    
 7796
 7797    <div class="meta">
 7798        
 7799            
 7800                <p>Inherited from
 7801                <a href="../classes/DisplayObject.html#method_cache">DisplayObject</a>:
 7802            
 7803        
 7804        
 7805        <a href="../files/easeljs_display_DisplayObject.js.html#l792"><code>cache:792</code></a>
 7806        
 7807        </p>
 7808
 7809
 7810        
 7811
 7812        
 7813    </div>
 7814
 7815    <div class="description">
 7816        <p>Draws the display object into a new element, which is then used for subsequent draws. Intended for complex content
 7817that does not change frequently (ex. a Container with many children that do not move, or a complex vector Shape),
 7818this can provide for much faster rendering because the content does not need to be re-rendered each tick. The
 7819cached display object can be moved, rotated, faded, etc freely, however if its content changes, you must manually
 7820update the cache by calling <code>updateCache()</code> again. You must specify the cached area via the x, y, w,
 7821and h parameters. This defines the rectangle that will be rendered and cached using this display object&#39;s coordinates.</p>
 7822<p><h4>Example</h4>
 7823For example if you defined a Shape that drew a circle at 0, 0 with a radius of 25:</p>
 7824<pre class="code prettyprint"><code> var shape = new createjs.Shape();
 7825 shape.graphics.beginFill("#ff0000").drawCircle(0, 0, 25);
 7826 shape.cache(-25, -25, 50, 50);</code></pre>
 7827<p>Note that filters need to be defined <em>before</em> the cache is applied or you will have to call updateCache after
 7828application. Check out the <a href="../classes/Filter.html" class="crosslink">Filter</a> class for more information. Some filters
 7829(ex. BlurFilter) may not work as expected in conjunction with the scale param.</p>
 7830<p>Usually, the resulting cacheCanvas will have the dimensions width <em> scale, height </em> scale, however some filters (ex. BlurFilter)
 7831will add padding to the canvas dimensions.</p>
 7832<p>In previous versions caching was handled on DisplayObject but has since been moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>.
 7833This allows for easier interaction and alternate cache methods like WebGL with <a href="../classes/StageGL.html" class="crosslink">StageGL</a>.
 7834For more information on the options object, see the BitmapCache BitmapCache/define.</p>
 7835
 7836    </div>
 7837
 7838    
 7839        <div class="params">
 7840            <h4>Parameters:</h4>
 7841
 7842            <ul class="params-list">
 7843            
 7844                <li class="param">
 7845                    
 7846                        <code class="param-name">x</code>
 7847                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7848                    
 7849
 7850                    
 7851
 7852                    <div class="param-description">
 7853                        <p>The x coordinate origin for the cache region.</p>
 7854
 7855                    </div>
 7856
 7857                    
 7858                </li>
 7859            
 7860                <li class="param">
 7861                    
 7862                        <code class="param-name">y</code>
 7863                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7864                    
 7865
 7866                    
 7867
 7868                    <div class="param-description">
 7869                        <p>The y coordinate origin for the cache region.</p>
 7870
 7871                    </div>
 7872
 7873                    
 7874                </li>
 7875            
 7876                <li class="param">
 7877                    
 7878                        <code class="param-name">width</code>
 7879                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7880                    
 7881
 7882                    
 7883
 7884                    <div class="param-description">
 7885                        <p>The width of the cache region.</p>
 7886
 7887                    </div>
 7888
 7889                    
 7890                </li>
 7891            
 7892                <li class="param">
 7893                    
 7894                        <code class="param-name">height</code>
 7895                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7896                    
 7897
 7898                    
 7899
 7900                    <div class="param-description">
 7901                        <p>The height of the cache region.</p>
 7902
 7903                    </div>
 7904
 7905                    
 7906                </li>
 7907            
 7908                <li class="param">
 7909                    
 7910                        <code class="param-name optional">[scale=1]</code>
 7911                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7912                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7913                    
 7914
 7915                    
 7916
 7917                    <div class="param-description">
 7918                        <p>The scale at which the cache will be created. For example, if you cache a vector shape using
 7919    myShape.cache(0,0,100,100,2) then the resulting cacheCanvas will be 200x200 px. This lets you scale and rotate
 7920    cached elements with greater fidelity. Default is 1.</p>
 7921
 7922                    </div>
 7923
 7924                    
 7925                </li>
 7926            
 7927                <li class="param">
 7928                    
 7929                        <code class="param-name optional">[options=undefined]</code>
 7930                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 7931                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7932                    
 7933
 7934                    
 7935
 7936                    <div class="param-description">
 7937                        <p>Specify additional parameters for the cache logic</p>
 7938
 7939                    </div>
 7940
 7941                    
 7942                </li>
 7943            
 7944            </ul>
 7945        </div>
 7946    
 7947
 7948    
 7949
 7950    
 7951</div>
 7952
 7953                
 7954                    <div id="method_cacheDraw" class="method item">
 7955    <h3 class="name"><code>cacheDraw</code></h3>
 7956
 7957    
 7958        <div class="args">
 7959            <span class="paren">(</span><ul class="args-list inline commas">
 7960            
 7961                <li class="arg">
 7962                    
 7963                        <code>target</code>
 7964                    
 7965                </li>
 7966            
 7967                <li class="arg">
 7968                    
 7969                        <code>filters</code>
 7970                    
 7971                </li>
 7972            
 7973                <li class="arg">
 7974                    
 7975                        <code>manager</code>
 7976                    
 7977                </li>
 7978            
 7979            </ul><span class="paren">)</span>
 7980        </div>
 7981    
 7982
 7983    
 7984        <span class="returns-inline">
 7985            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 7986        </span>
 7987    
 7988
 7989    
 7990
 7991    
 7992
 7993    
 7994
 7995    
 7996
 7997    
 7998
 7999    
 8000
 8001    <div class="meta">
 8002        
 8003            
 8004                
 8005                <p>
 8006                
 8007                Defined in
 8008                
 8009            
 8010        
 8011        
 8012        <a href="../files/easeljs_display_StageGL.js.html#l1006"><code>cacheDraw:1006</code></a>
 8013        
 8014        </p>
 8015
 8016
 8017        
 8018
 8019        
 8020    </div>
 8021
 8022    <div class="description">
 8023        <p>Draws the target into the correct context, be it a canvas or Render Texture using WebGL.</p>
 8024<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
 8025
 8026    </div>
 8027
 8028    
 8029        <div class="params">
 8030            <h4>Parameters:</h4>
 8031
 8032            <ul class="params-list">
 8033            
 8034                <li class="param">
 8035                    
 8036                        <code class="param-name">target</code>
 8037                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 8038                    
 8039
 8040                    
 8041
 8042                    <div class="param-description">
 8043                        <p>The object we&#39;re drawing into cache.
 8044For example, used for drawing the cache (to prevent it from simply drawing an existing cache back into itself).</p>
 8045
 8046                    </div>
 8047
 8048                    
 8049                </li>
 8050            
 8051                <li class="param">
 8052                    
 8053                        <code class="param-name">filters</code>
 8054                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 8055                    
 8056
 8057                    
 8058
 8059                    <div class="param-description">
 8060                        <p>The filters we&#39;re drawing into cache.</p>
 8061
 8062                    </div>
 8063
 8064                    
 8065                </li>
 8066            
 8067                <li class="param">
 8068                    
 8069                        <code class="param-name">manager</code>
 8070                        <span class="type"><a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></span>
 8071                    
 8072
 8073                    
 8074
 8075                    <div class="param-description">
 8076                        <p>The BitmapCache instance looking after the cache</p>
 8077
 8078                    </div>
 8079
 8080                    
 8081                </li>
 8082            
 8083            </ul>
 8084        </div>
 8085    
 8086
 8087    
 8088        <div class="returns">
 8089            <h4>Returns:</h4>
 8090
 8091            <div class="returns-description">
 8092                
 8093                    
 8094                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 8095                    
 8096                    <p>If the draw was handled by this function</p>
 8097
 8098                
 8099            </div>
 8100        </div>
 8101    
 8102
 8103    
 8104</div>
 8105
 8106                
 8107                    <div id="method_clear" class="method item inherited">
 8108    <h3 class="name"><code>clear</code></h3>
 8109
 8110    
 8111        <span class="paren">()</span>
 8112    
 8113
 8114    
 8115
 8116    
 8117
 8118    
 8119
 8120    
 8121
 8122    
 8123
 8124    
 8125
 8126    
 8127
 8128    <div class="meta">
 8129        
 8130            
 8131                <p>Inherited from
 8132                <a href="../classes/Stage.html#method_clear">Stage</a>:
 8133            
 8134        
 8135        
 8136        <a href="../files/easeljs_display_Stage.js.html#l438"><code>clear:438</code></a>
 8137        
 8138        </p>
 8139
 8140
 8141        
 8142
 8143        
 8144    </div>
 8145
 8146    <div class="description">
 8147        <p>Clears the target canvas. Useful if <a href="../classes/Stage.html#property_autoClear" class="crosslink">autoClear</a> is set to <code>false</code>.</p>
 8148
 8149    </div>
 8150
 8151    
 8152
 8153    
 8154
 8155    
 8156</div>
 8157
 8158                
 8159                    <div id="method_clone" class="method item inherited">
 8160    <h3 class="name"><code>clone</code></h3>
 8161
 8162    
 8163        <span class="paren">()</span>
 8164    
 8165
 8166    
 8167
 8168    
 8169
 8170    
 8171
 8172    
 8173
 8174    
 8175
 8176    
 8177
 8178    
 8179
 8180    <div class="meta">
 8181        
 8182            <p>Inherited from
 8183            <a href="../classes/DisplayObject.html#method_clone">
 8184                DisplayObject
 8185            </a>
 8186            
 8187            but overwritten in
 8188            
 8189        
 8190        
 8191        <a href="../files/easeljs_display_Stage.js.html#l552"><code>clone:552</code></a>
 8192        
 8193        </p>
 8194
 8195
 8196        
 8197
 8198        
 8199    </div>
 8200
 8201    <div class="description">
 8202        <p>Stage instances cannot be cloned.</p>
 8203
 8204    </div>
 8205
 8206    
 8207
 8208    
 8209
 8210    
 8211</div>
 8212
 8213                
 8214                    <div id="method_cloneChildren" class="method item protected inherited">
 8215    <h3 class="name"><code>cloneChildren</code></h3>
 8216
 8217    
 8218        <div class="args">
 8219            <span class="paren">(</span><ul class="args-list inline commas">
 8220            
 8221                <li class="arg">
 8222                    
 8223                        <code>o</code>
 8224                    
 8225                </li>
 8226            
 8227            </ul><span class="paren">)</span>
 8228        </div>
 8229    
 8230
 8231    
 8232
 8233    
 8234
 8235    
 8236        <span class="flag protected">protected</span>
 8237    
 8238
 8239    
 8240
 8241    
 8242
 8243    
 8244
 8245    
 8246
 8247    <div class="meta">
 8248        
 8249            
 8250                <p>Inherited from
 8251                <a href="../classes/Container.html#method_cloneChildren">Container</a>:
 8252            
 8253        
 8254        
 8255        <a href="../files/easeljs_display_Container.js.html#l562"><code>cloneChildren:562</code></a>
 8256        
 8257        </p>
 8258
 8259
 8260        
 8261
 8262        
 8263    </div>
 8264
 8265    <div class="description">
 8266        <p>Recursively clones all children of this container, and adds them to the target container.</p>
 8267
 8268    </div>
 8269
 8270    
 8271        <div class="params">
 8272            <h4>Parameters:</h4>
 8273
 8274            <ul class="params-list">
 8275            
 8276                <li class="param">
 8277                    
 8278                        <code class="param-name">o</code>
 8279                        <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
 8280                    
 8281
 8282                    
 8283
 8284                    <div class="param-description">
 8285                        <p>The target container.</p>
 8286
 8287                    </div>
 8288
 8289                    
 8290                </li>
 8291            
 8292            </ul>
 8293        </div>
 8294    
 8295
 8296    
 8297
 8298    
 8299</div>
 8300
 8301                
 8302                    <div id="method_contains" class="method item inherited">
 8303    <h3 class="name"><code>contains</code></h3>
 8304
 8305    
 8306        <div class="args">
 8307            <span class="paren">(</span><ul class="args-list inline commas">
 8308            
 8309                <li class="arg">
 8310                    
 8311                        <code>child</code>
 8312                    
 8313                </li>
 8314            
 8315            </ul><span class="paren">)</span>
 8316        </div>
 8317    
 8318
 8319    
 8320        <span class="returns-inline">
 8321            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8322        </span>
 8323    
 8324
 8325    
 8326
 8327    
 8328
 8329    
 8330
 8331    
 8332
 8333    
 8334
 8335    
 8336
 8337    <div class="meta">
 8338        
 8339            
 8340                <p>Inherited from
 8341                <a href="../classes/Container.html#method_contains">Container</a>:
 8342            
 8343        
 8344        
 8345        <a href="../files/easeljs_display_Container.js.html#l430"><code>contains:430</code></a>
 8346        
 8347        </p>
 8348
 8349
 8350        
 8351
 8352        
 8353    </div>
 8354
 8355    <div class="description">
 8356        <p>Returns true if the specified display object either is this container or is a descendent (child, grandchild, etc)
 8357of this container.</p>
 8358
 8359    </div>
 8360
 8361    
 8362        <div class="params">
 8363            <h4>Parameters:</h4>
 8364
 8365            <ul class="params-list">
 8366            
 8367                <li class="param">
 8368                    
 8369                        <code class="param-name">child</code>
 8370                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 8371                    
 8372
 8373                    
 8374
 8375                    <div class="param-description">
 8376                        <p>The DisplayObject to be checked.</p>
 8377
 8378                    </div>
 8379
 8380                    
 8381                </li>
 8382            
 8383            </ul>
 8384        </div>
 8385    
 8386
 8387    
 8388        <div class="returns">
 8389            <h4>Returns:</h4>
 8390
 8391            <div class="returns-description">
 8392                
 8393                    
 8394                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 8395                    
 8396                    <p>true if the specified display object either is this container or is a descendent.</p>
 8397
 8398                
 8399            </div>
 8400        </div>
 8401    
 8402
 8403    
 8404</div>
 8405
 8406                
 8407                    <div id="method_dispatchEvent" class="method item inherited">
 8408    <h3 class="name"><code>dispatchEvent</code></h3>
 8409
 8410    
 8411        <div class="args">
 8412            <span class="paren">(</span><ul class="args-list inline commas">
 8413            
 8414                <li class="arg">
 8415                    
 8416                        <code>eventObj</code>
 8417                    
 8418                </li>
 8419            
 8420                <li class="arg">
 8421                    
 8422                        <code class="optional">[bubbles]</code>
 8423                    
 8424                </li>
 8425            
 8426                <li class="arg">
 8427                    
 8428                        <code class="optional">[cancelable]</code>
 8429                    
 8430                </li>
 8431            
 8432            </ul><span class="paren">)</span>
 8433        </div>
 8434    
 8435
 8436    
 8437        <span class="returns-inline">
 8438            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8439        </span>
 8440    
 8441
 8442    
 8443
 8444    
 8445
 8446    
 8447
 8448    
 8449
 8450    
 8451
 8452    
 8453
 8454    <div class="meta">
 8455        
 8456            
 8457                <p>Inherited from
 8458                <a href="../classes/EventDispatcher.html#method_dispatchEvent">EventDispatcher</a>:
 8459            
 8460        
 8461        
 8462        <a href="../files/createjs_events_EventDispatcher.js.html#l285"><code>dispatchEvent:285</code></a>
 8463        
 8464        </p>
 8465
 8466
 8467        
 8468
 8469        
 8470    </div>
 8471
 8472    <div class="description">
 8473        <p><p>Dispatches the specified event to all listeners.</p></p>
 8474<h4>Example</h4>
 8475
 8476<pre class="code prettyprint"><code> // Use a string event
 8477 this.dispatchEvent("complete");
 8478
 8479 // Use an Event instance
 8480 var event = new createjs.Event("progress");
 8481 this.dispatchEvent(event);</code></pre>
 8482
 8483    </div>
 8484
 8485    
 8486        <div class="params">
 8487            <h4>Parameters:</h4>
 8488
 8489            <ul class="params-list">
 8490            
 8491                <li class="param">
 8492                    
 8493                        <code class="param-name">eventObj</code>
 8494                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Event.html" class="crosslink">Event</a></span>
 8495                    
 8496
 8497                    
 8498
 8499                    <div class="param-description">
 8500                        <p>An object with a "type" property, or a string type.
 8501While a generic object will work, it is recommended to use a CreateJS Event instance. If a string is used,
 8502dispatchEvent will construct an Event instance if necessary with the specified type. This latter approach can
 8503be used to avoid event object instantiation for non-bubbling events that may not have any listeners.</p>
 8504
 8505                    </div>
 8506
 8507                    
 8508                </li>
 8509            
 8510                <li class="param">
 8511                    
 8512                        <code class="param-name optional">[bubbles]</code>
 8513                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8514                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8515                    
 8516
 8517                    
 8518
 8519                    <div class="param-description">
 8520                        <p>Specifies the <code>bubbles</code> value when a string was passed to eventObj.</p>
 8521
 8522                    </div>
 8523
 8524                    
 8525                </li>
 8526            
 8527                <li class="param">
 8528                    
 8529                        <code class="param-name optional">[cancelable]</code>
 8530                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8531                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8532                    
 8533
 8534                    
 8535
 8536                    <div class="param-description">
 8537                        <p>Specifies the <code>cancelable</code> value when a string was passed to eventObj.</p>
 8538
 8539                    </div>
 8540
 8541                    
 8542                </li>
 8543            
 8544            </ul>
 8545        </div>
 8546    
 8547
 8548    
 8549        <div class="returns">
 8550            <h4>Returns:</h4>
 8551
 8552            <div class="returns-description">
 8553                
 8554                    
 8555                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 8556                    
 8557                    <p>Returns false if <code>preventDefault()</code> was called on a cancelable event, true otherwise.</p>
 8558
 8559                
 8560            </div>
 8561        </div>
 8562    
 8563
 8564    
 8565</div>
 8566
 8567                
 8568                    <div id="method_draw" class="method item">
 8569    <h3 class="name"><code>draw</code></h3>
 8570
 8571    
 8572        <div class="args">
 8573            <span class="paren">(</span><ul class="args-list inline commas">
 8574            
 8575                <li class="arg">
 8576                    
 8577                        <code>context</code>
 8578                    
 8579                </li>
 8580            
 8581                <li class="arg">
 8582                    
 8583                        <code class="optional">[ignoreCache=false]</code>
 8584                    
 8585                </li>
 8586            
 8587            </ul><span class="paren">)</span>
 8588        </div>
 8589    
 8590
 8591    
 8592        <span class="returns-inline">
 8593            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8594        </span>
 8595    
 8596
 8597    
 8598
 8599    
 8600
 8601    
 8602
 8603    
 8604
 8605    
 8606
 8607    
 8608
 8609    <div class="meta">
 8610        
 8611            <p>Inherited from
 8612            <a href="../classes/DisplayObject.html#method_draw">
 8613                DisplayObject
 8614            </a>
 8615            
 8616            but overwritten in
 8617            
 8618        
 8619        
 8620        <a href="../files/easeljs_display_StageGL.js.html#l984"><code>draw:984</code></a>
 8621        
 8622        </p>
 8623
 8624
 8625        
 8626
 8627        
 8628    </div>
 8629
 8630    <div class="description">
 8631        <p>Draws the stage into the supplied context if possible. Many WebGL properties only exist on their context. As such
 8632you cannot share contexts among many StageGLs and each context requires a unique StageGL instance. Contexts that
 8633don&#39;t match the context managed by this StageGL will be treated as a 2D context.</p>
 8634<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
 8635
 8636    </div>
 8637
 8638    
 8639        <div class="params">
 8640            <h4>Parameters:</h4>
 8641
 8642            <ul class="params-list">
 8643            
 8644                <li class="param">
 8645                    
 8646                        <code class="param-name">context</code>
 8647                        <span class="type">CanvasRenderingContext2D | WebGLRenderingContext</span>
 8648                    
 8649
 8650                    
 8651
 8652                    <div class="param-description">
 8653                        <p>The context object to draw into.</p>
 8654
 8655                    </div>
 8656
 8657                    
 8658                </li>
 8659            
 8660                <li class="param">
 8661                    
 8662                        <code class="param-name optional">[ignoreCache=false]</code>
 8663                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8664                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8665                    
 8666
 8667                    
 8668
 8669                    <div class="param-description">
 8670                        <p>Indicates whether the draw operation should ignore any current cache. For
 8671 example, used for drawing the cache (to prevent it from simply drawing an existing cache back into itself).</p>
 8672
 8673                    </div>
 8674
 8675                    
 8676                </li>
 8677            
 8678            </ul>
 8679        </div>
 8680    
 8681
 8682    
 8683        <div class="returns">
 8684            <h4>Returns:</h4>
 8685
 8686            <div class="returns-description">
 8687                
 8688                    
 8689                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 8690                    
 8691                    <p>If the draw was handled by this function</p>
 8692
 8693                
 8694            </div>
 8695        </div>
 8696    
 8697
 8698    
 8699</div>
 8700
 8701                
 8702                    <div id="method_enableDOMEvents" class="method item inherited">
 8703    <h3 class="name"><code>enableDOMEvents</code></h3>
 8704
 8705    
 8706        <div class="args">
 8707            <span class="paren">(</span><ul class="args-list inline commas">
 8708            
 8709                <li class="arg">
 8710                    
 8711                        <code class="optional">[enable=true]</code>
 8712                    
 8713                </li>
 8714            
 8715            </ul><span class="paren">)</span>
 8716        </div>
 8717    
 8718
 8719    
 8720
 8721    
 8722
 8723    
 8724
 8725    
 8726
 8727    
 8728
 8729    
 8730
 8731    
 8732
 8733    <div class="meta">
 8734        
 8735            
 8736                <p>Inherited from
 8737                <a href="../classes/Stage.html#method_enableDOMEvents">Stage</a>:
 8738            
 8739        
 8740        
 8741        <a href="../files/easeljs_display_Stage.js.html#l512"><code>enableDOMEvents:512</code></a>
 8742        
 8743        </p>
 8744
 8745
 8746        
 8747
 8748        
 8749    </div>
 8750
 8751    <div class="description">
 8752        <p><p>Enables or disables the event listeners that stage adds to DOM elements (window, document and canvas). It is good
 8753practice to disable events when disposing of a Stage instance, otherwise the stage will continue to receive
 8754events from the page.</p></p>
 8755<p><p>When changing the canvas property you must disable the events on the old canvas, and enable events on the
 8756new canvas or mouse events will not work as expected. For example:</p></p>
 8757<pre class="code prettyprint"><code> myStage.enableDOMEvents(false);
 8758 myStage.canvas = anotherCanvas;
 8759 myStage.enableDOMEvents(true);</code></pre>
 8760
 8761    </div>
 8762
 8763    
 8764        <div class="params">
 8765            <h4>Parameters:</h4>
 8766
 8767            <ul class="params-list">
 8768            
 8769                <li class="param">
 8770                    
 8771                        <code class="param-name optional">[enable=true]</code>
 8772                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8773                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8774                    
 8775
 8776                    
 8777
 8778                    <div class="param-description">
 8779                        <p>Indicates whether to enable or disable the events. Default is true.</p>
 8780
 8781                    </div>
 8782
 8783                    
 8784                </li>
 8785            
 8786            </ul>
 8787        </div>
 8788    
 8789
 8790    
 8791
 8792    
 8793</div>
 8794
 8795                
 8796                    <div id="method_enableMouseOver" class="method item inherited">
 8797    <h3 class="name"><code>enableMouseOver</code></h3>
 8798
 8799    
 8800        <div class="args">
 8801            <span class="paren">(</span><ul class="args-list inline commas">
 8802            
 8803                <li class="arg">
 8804                    
 8805                        <code class="optional">[frequency=20]</code>
 8806                    
 8807                </li>
 8808            
 8809            </ul><span class="paren">)</span>
 8810        </div>
 8811    
 8812
 8813    
 8814
 8815    
 8816
 8817    
 8818
 8819    
 8820
 8821    
 8822
 8823    
 8824
 8825    
 8826
 8827    <div class="meta">
 8828        
 8829            
 8830                <p>Inherited from
 8831                <a href="../classes/Stage.html#method_enableMouseOver">Stage</a>:
 8832            
 8833        
 8834        
 8835        <a href="../files/easeljs_display_Stage.js.html#l481"><code>enableMouseOver:481</code></a>
 8836        
 8837        </p>
 8838
 8839
 8840        
 8841
 8842        
 8843    </div>
 8844
 8845    <div class="description">
 8846        <p><p>Enables or disables (by passing a frequency of 0) mouse over (<a href="../classes/DisplayObject.html#event_mouseover" class="crosslink">mouseover</a>
 8847and <a href="../classes/DisplayObject.html#event_mouseout" class="crosslink">mouseout</a>) and roll over events (<a href="../classes/DisplayObject.html#event_rollover" class="crosslink">rollover</a>
 8848and <a href="../classes/DisplayObject.html#event_rollout" class="crosslink">rollout</a>) for this stage&#39;s display list. These events can
 8849be expensive to generate, so they are disabled by default. The frequency of the events can be controlled
 8850independently of mouse move events via the optional <code>frequency</code> parameter.</p></p>
 8851<h4>Example</h4>
 8852
 8853<pre class="code prettyprint"><code> var stage = new createjs.Stage("canvasId");
 8854 stage.enableMouseOver(10); // 10 updates per second</code></pre>
 8855
 8856    </div>
 8857
 8858    
 8859        <div class="params">
 8860            <h4>Parameters:</h4>
 8861
 8862            <ul class="params-list">
 8863            
 8864                <li class="param">
 8865                    
 8866                        <code class="param-name optional">[frequency=20]</code>
 8867                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8868                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8869                    
 8870
 8871                    
 8872
 8873                    <div class="param-description">
 8874                        <p>Optional param specifying the maximum number of times per second to broadcast
 8875mouse over/out events. Set to 0 to disable mouse over events completely. Maximum is 50. A lower frequency is less
 8876responsive, but uses less CPU.</p>
 8877
 8878                    </div>
 8879
 8880                    
 8881                </li>
 8882            
 8883            </ul>
 8884        </div>
 8885    
 8886
 8887    
 8888
 8889    
 8890</div>
 8891
 8892                
 8893                    <div id="method_getBaseTexture" class="method item">
 8894    <h3 class="name"><code>getBaseTexture</code></h3>
 8895
 8896    
 8897        <div class="args">
 8898            <span class="paren">(</span><ul class="args-list inline commas">
 8899            
 8900                <li class="arg">
 8901                    
 8902                        <code class="optional">[w=1]</code>
 8903                    
 8904                </li>
 8905            
 8906                <li class="arg">
 8907                    
 8908                        <code class="optional">[h=1]</code>
 8909                    
 8910                </li>
 8911            
 8912            </ul><span class="paren">)</span>
 8913        </div>
 8914    
 8915
 8916    
 8917
 8918    
 8919
 8920    
 8921
 8922    
 8923
 8924    
 8925
 8926    
 8927
 8928    
 8929
 8930    <div class="meta">
 8931        
 8932            
 8933                
 8934                <p>
 8935                
 8936                Defined in
 8937                
 8938            
 8939        
 8940        
 8941        <a href="../files/easeljs_display_StageGL.js.html#l1286"><code>getBaseTexture:1286</code></a>
 8942        
 8943        </p>
 8944
 8945
 8946        
 8947
 8948        
 8949    </div>
 8950
 8951    <div class="description">
 8952        <p>Returns a base texture that has no image or data loaded. Not intended for loading images. It may return <code>null</code>
 8953in some error cases, and trying to use a "null" texture can cause renders to fail.</p>
 8954
 8955    </div>
 8956
 8957    
 8958        <div class="params">
 8959            <h4>Parameters:</h4>
 8960
 8961            <ul class="params-list">
 8962            
 8963                <li class="param">
 8964                    
 8965                        <code class="param-name optional">[w=1]</code>
 8966                        <span class="type">Uint</span>
 8967                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8968                    
 8969
 8970                    
 8971
 8972                    <div class="param-description">
 8973                        <p>The width of the texture in pixels, defaults to 1</p>
 8974
 8975                    </div>
 8976
 8977                    
 8978                </li>
 8979            
 8980                <li class="param">
 8981                    
 8982                        <code class="param-name optional">[h=1]</code>
 8983                        <span class="type">Uint</span>
 8984                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8985                    
 8986
 8987                    
 8988
 8989                    <div class="param-description">
 8990                        <p>The height of the texture in pixels, defaults to 1</p>
 8991
 8992                    </div>
 8993
 8994                    
 8995                </li>
 8996            
 8997            </ul>
 8998        </div>
 8999    
 9000
 9001    
 9002
 9003    
 9004</div>
 9005
 9006                
 9007                    <div id="method_getBounds" class="method item inherited">
 9008    <h3 class="name"><code>getBounds</code></h3>
 9009
 9010    
 9011        <span class="paren">()</span>
 9012    
 9013
 9014    
 9015        <span class="returns-inline">
 9016            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 9017        </span>
 9018    
 9019
 9020    
 9021
 9022    
 9023
 9024    
 9025
 9026    
 9027
 9028    
 9029
 9030    
 9031
 9032    <div class="meta">
 9033        
 9034            
 9035                <p>Inherited from
 9036                <a href="../classes/DisplayObject.html#method_getBounds">DisplayObject</a>:
 9037            
 9038        
 9039        
 9040        <a href="../files/easeljs_display_DisplayObject.js.html#l1089"><code>getBounds:1089</code></a>
 9041        
 9042        </p>
 9043
 9044
 9045        
 9046
 9047        
 9048    </div>
 9049
 9050    <div class="description">
 9051        <p><p>Returns a rectangle representing this object&#39;s bounds in its local coordinate system (ie. with no transformation).
 9052Objects that have been cached will return the bounds of the cache.</p></p>
 9053<p><p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use 
 9054<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
 9055bounds.</p></p>
 9056<table>
 9057    <tr><td><b>All</b></td><td>
 9058        All display objects support setting bounds manually using setBounds(). Likewise, display objects that
 9059        have been cached using cache() will return the bounds of their cache. Manual and cache bounds will override
 9060        the automatic calculations listed below.
 9061    </td></tr>
 9062    <tr><td><b>Bitmap</b></td><td>
 9063        Returns the width and height of the sourceRect (if specified) or image, extending from (x=0,y=0).
 9064    </td></tr>
 9065    <tr><td><b>Sprite</b></td><td>
 9066        Returns the bounds of the current frame. May have non-zero x/y if a frame registration point was specified
 9067        in the spritesheet data. See also <a href="../classes/SpriteSheet.html#method_getFrameBounds" class="crosslink">getFrameBounds</a>
 9068    </td></tr>
 9069    <tr><td><b>Container</b></td><td>
 9070        Returns the aggregate (combined) bounds of all children that return a non-null value from getBounds().
 9071    </td></tr>
 9072    <tr><td><b>Shape</b></td><td>
 9073        Does not currently support automatic bounds calculations. Use setBounds() to manually define bounds.
 9074    </td></tr>
 9075    <tr><td><b>Text</b></td><td>
 9076        Returns approximate bounds. Horizontal values (x/width) are quite accurate, but vertical values (y/height) are
 9077        not, especially when using textBaseline values other than "top".
 9078    </td></tr>
 9079    <tr><td><b>BitmapText</b></td><td>
 9080        Returns approximate bounds. Values will be more accurate if spritesheet frame registration points are close
 9081        to (x=0,y=0).
 9082    </td></tr>
 9083</table>
 9084
 9085<p><p>Bounds can be expensive to calculate for some objects (ex. text, or containers with many children), and
 9086are recalculated each time you call getBounds(). You can prevent recalculation on static objects by setting the
 9087bounds explicitly:</p></p>
 9088<pre class="code prettyprint"><code>var bounds = obj.getBounds();
 9089obj.setBounds(bounds.x, bounds.y, bounds.width, bounds.height);
 9090// getBounds will now use the set values, instead of recalculating</code></pre>
 9091<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
 9092values if you need to retain it.</p>
 9093<pre class="code prettyprint"><code>var myBounds = obj.getBounds().clone();
 9094// OR:
 9095myRect.copy(obj.getBounds());</code></pre>
 9096
 9097    </div>
 9098
 9099    
 9100
 9101    
 9102        <div class="returns">
 9103            <h4>Returns:</h4>
 9104
 9105            <div class="returns-description">
 9106                
 9107                    
 9108                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 9109                    
 9110                    <p>A Rectangle instance representing the bounds, or null if bounds are not available for this
 9111object.</p>
 9112
 9113                
 9114            </div>
 9115        </div>
 9116    
 9117
 9118    
 9119</div>
 9120
 9121                
 9122                    <div id="method_getCacheDataURL" class="method item inherited">
 9123    <h3 class="name"><code>getCacheDataURL</code></h3>
 9124
 9125    
 9126        <span class="paren">()</span>
 9127    
 9128
 9129    
 9130        <span class="returns-inline">
 9131            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 9132        </span>
 9133    
 9134
 9135    
 9136
 9137    
 9138
 9139    
 9140
 9141    
 9142
 9143    
 9144
 9145    
 9146
 9147    <div class="meta">
 9148        
 9149            
 9150                <p>Inherited from
 9151                <a href="../classes/DisplayObject.html#method_getCacheDataURL">DisplayObject</a>:
 9152            
 9153        
 9154        
 9155        <a href="../files/easeljs_display_DisplayObject.js.html#l875"><code>getCacheDataURL:875</code></a>
 9156        
 9157        </p>
 9158
 9159
 9160        
 9161
 9162        
 9163    </div>
 9164
 9165    <div class="description">
 9166        <p>Returns a data URL for the cache, or null if this display object is not cached.
 9167Only generated if the cache has changed, otherwise returns last result.</p>
 9168
 9169    </div>
 9170
 9171    
 9172
 9173    
 9174        <div class="returns">
 9175            <h4>Returns:</h4>
 9176
 9177            <div class="returns-description">
 9178                
 9179                    
 9180                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
 9181                    
 9182                    <p>The image data url for the cache.</p>
 9183
 9184                
 9185            </div>
 9186        </div>
 9187    
 9188
 9189    
 9190</div>
 9191
 9192                
 9193                    <div id="method_getChildAt" class="method item inherited">
 9194    <h3 class="name"><code>getChildAt</code></h3>
 9195
 9196    
 9197        <div class="args">
 9198            <span class="paren">(</span><ul class="args-list inline commas">
 9199            
 9200                <li class="arg">
 9201                    
 9202                        <code>index</code>
 9203                    
 9204                </li>
 9205            
 9206            </ul><span class="paren">)</span>
 9207        </div>
 9208    
 9209
 9210    
 9211        <span class="returns-inline">
 9212            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 9213        </span>
 9214    
 9215
 9216    
 9217
 9218    
 9219
 9220    
 9221
 9222    
 9223
 9224    
 9225
 9226    
 9227
 9228    <div class="meta">
 9229        
 9230            
 9231                <p>Inherited from
 9232                <a href="../classes/Container.html#method_getChildAt">Container</a>:
 9233            
 9234        
 9235        
 9236        <a href="../files/easeljs_display_Container.js.html#l314"><code>getChildAt:314</code></a>
 9237        
 9238        </p>
 9239
 9240
 9241        
 9242
 9243        
 9244    </div>
 9245
 9246    <div class="description">
 9247        <p><p>Returns the child at the specified index.</p></p>
 9248<h4>Example</h4>
 9249
 9250<pre class="code prettyprint"><code> container.getChildAt(2);</code></pre>
 9251
 9252    </div>
 9253
 9254    
 9255        <div class="params">
 9256            <h4>Parameters:</h4>
 9257
 9258            <ul class="params-list">
 9259            
 9260                <li class="param">
 9261                    
 9262                        <code class="param-name">index</code>
 9263                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9264                    
 9265
 9266                    
 9267
 9268                    <div class="param-description">
 9269                        <p>The index of the child to return.</p>
 9270
 9271                    </div>
 9272
 9273                    
 9274                </li>
 9275            
 9276            </ul>
 9277        </div>
 9278    
 9279
 9280    
 9281        <div class="returns">
 9282            <h4>Returns:</h4>
 9283
 9284            <div class="returns-description">
 9285                
 9286                    
 9287                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 9288                    
 9289                    <p>The child at the specified index. Returns null if there is no child at the index.</p>
 9290
 9291                
 9292            </div>
 9293        </div>
 9294    
 9295
 9296    
 9297</div>
 9298
 9299                
 9300                    <div id="method_getChildByName" class="method item inherited">
 9301    <h3 class="name"><code>getChildByName</code></h3>
 9302
 9303    
 9304        <div class="args">
 9305            <span class="paren">(</span><ul class="args-list inline commas">
 9306            
 9307                <li class="arg">
 9308                    
 9309                        <code>name</code>
 9310                    
 9311                </li>
 9312            
 9313            </ul><span class="paren">)</span>
 9314        </div>
 9315    
 9316
 9317    
 9318        <span class="returns-inline">
 9319            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 9320        </span>
 9321    
 9322
 9323    
 9324
 9325    
 9326
 9327    
 9328
 9329    
 9330
 9331    
 9332
 9333    
 9334
 9335    <div class="meta">
 9336        
 9337            
 9338                <p>Inherited from
 9339                <a href="../classes/Container.html#method_getChildByName">Container</a>:
 9340            
 9341        
 9342        
 9343        <a href="../files/easeljs_display_Container.js.html#l329"><code>getChildByName:329</code></a>
 9344        
 9345        </p>
 9346
 9347
 9348        
 9349
 9350        
 9351    </div>
 9352
 9353    <div class="description">
 9354        <p>Returns the child with the specified name.</p>
 9355
 9356    </div>
 9357
 9358    
 9359        <div class="params">
 9360            <h4>Parameters:</h4>
 9361
 9362            <ul class="params-list">
 9363            
 9364                <li class="param">
 9365                    
 9366                        <code class="param-name">name</code>
 9367                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 9368                    
 9369
 9370                    
 9371
 9372                    <div class="param-description">
 9373                        <p>The name of the child to return.</p>
 9374
 9375                    </div>
 9376
 9377                    
 9378                </li>
 9379            
 9380            </ul>
 9381        </div>
 9382    
 9383
 9384    
 9385        <div class="returns">
 9386            <h4>Returns:</h4>
 9387
 9388            <div class="returns-description">
 9389                
 9390                    
 9391                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 9392                    
 9393                    <p>The child with the specified name.</p>
 9394
 9395                
 9396            </div>
 9397        </div>
 9398    
 9399
 9400    
 9401</div>
 9402
 9403                
 9404                    <div id="method_getChildIndex" class="method item inherited">
 9405    <h3 class="name"><code>getChildIndex</code></h3>
 9406
 9407    
 9408        <div class="args">
 9409            <span class="paren">(</span><ul class="args-list inline commas">
 9410            
 9411                <li class="arg">
 9412                    
 9413                        <code>child</code>
 9414                    
 9415                </li>
 9416            
 9417            </ul><span class="paren">)</span>
 9418        </div>
 9419    
 9420
 9421    
 9422        <span class="returns-inline">
 9423            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9424        </span>
 9425    
 9426
 9427    
 9428
 9429    
 9430
 9431    
 9432
 9433    
 9434
 9435    
 9436
 9437    
 9438
 9439    <div class="meta">
 9440        
 9441            
 9442                <p>Inherited from
 9443                <a href="../classes/Container.html#method_getChildIndex">Container</a>:
 9444            
 9445        
 9446        
 9447        <a href="../files/easeljs_display_Container.js.html#l363"><code>getChildIndex:363</code></a>
 9448        
 9449        </p>
 9450
 9451
 9452        
 9453
 9454        
 9455    </div>
 9456
 9457    <div class="description">
 9458        <p><p>Returns the index of the specified child in the display list, or -1 if it is not in the display list.</p></p>
 9459<h4>Example</h4>
 9460
 9461<pre class="code prettyprint"><code> var index = container.getChildIndex(child);</code></pre>
 9462
 9463    </div>
 9464
 9465    
 9466        <div class="params">
 9467            <h4>Parameters:</h4>
 9468
 9469            <ul class="params-list">
 9470            
 9471                <li class="param">
 9472                    
 9473                        <code class="param-name">child</code>
 9474                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 9475                    
 9476
 9477                    
 9478
 9479                    <div class="param-description">
 9480                        <p>The child to return the index of.</p>
 9481
 9482                    </div>
 9483
 9484                    
 9485                </li>
 9486            
 9487            </ul>
 9488        </div>
 9489    
 9490
 9491    
 9492        <div class="returns">
 9493            <h4>Returns:</h4>
 9494
 9495            <div class="returns-description">
 9496                
 9497                    
 9498                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
 9499                    
 9500                    <p>The index of the specified child. -1 if the child is not found.</p>
 9501
 9502                
 9503            </div>
 9504        </div>
 9505    
 9506
 9507    
 9508</div>
 9509
 9510                
 9511                    <div id="method_getConcatenatedDisplayProps" class="method item inherited">
 9512    <h3 class="name"><code>getConcatenatedDisplayProps</code></h3>
 9513
 9514    
 9515        <div class="args">
 9516            <span class="paren">(</span><ul class="args-list inline commas">
 9517            
 9518                <li class="arg">
 9519                    
 9520                        <code class="optional">[props]</code>
 9521                    
 9522                </li>
 9523            
 9524            </ul><span class="paren">)</span>
 9525        </div>
 9526    
 9527
 9528    
 9529        <span class="returns-inline">
 9530            <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 9531        </span>
 9532    
 9533
 9534    
 9535
 9536    
 9537
 9538    
 9539
 9540    
 9541
 9542    
 9543
 9544    
 9545
 9546    <div class="meta">
 9547        
 9548            
 9549                <p>Inherited from
 9550                <a href="../classes/DisplayObject.html#method_getConcatenatedDisplayProps">DisplayObject</a>:
 9551            
 9552        
 9553        
 9554        <a href="../files/easeljs_display_DisplayObject.js.html#l1021"><code>getConcatenatedDisplayProps:1021</code></a>
 9555        
 9556        </p>
 9557
 9558
 9559        
 9560
 9561        
 9562    </div>
 9563
 9564    <div class="description">
 9565        <p>Generates a DisplayProps object representing the combined display properties of the  object and all of its
 9566parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>).</p>
 9567
 9568    </div>
 9569
 9570    
 9571        <div class="params">
 9572            <h4>Parameters:</h4>
 9573
 9574            <ul class="params-list">
 9575            
 9576                <li class="param">
 9577                    
 9578                        <code class="param-name optional">[props]</code>
 9579                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 9580                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9581                    
 9582
 9583                    
 9584
 9585                    <div class="param-description">
 9586                        <p>A <a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a> object to populate with the calculated values.
 9587If null, a new DisplayProps object is returned.</p>
 9588
 9589                    </div>
 9590
 9591                    
 9592                </li>
 9593            
 9594            </ul>
 9595        </div>
 9596    
 9597
 9598    
 9599        <div class="returns">
 9600            <h4>Returns:</h4>
 9601
 9602            <div class="returns-description">
 9603                
 9604                    
 9605                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
 9606                    
 9607                    <p>The combined display properties.</p>
 9608
 9609                
 9610            </div>
 9611        </div>
 9612    
 9613
 9614    
 9615</div>
 9616
 9617                
 9618                    <div id="method_getConcatenatedMatrix" class="method item inherited">
 9619    <h3 class="name"><code>getConcatenatedMatrix</code></h3>
 9620
 9621    
 9622        <div class="args">
 9623            <span class="paren">(</span><ul class="args-list inline commas">
 9624            
 9625                <li class="arg">
 9626                    
 9627                        <code class="optional">[matrix]</code>
 9628                    
 9629                </li>
 9630            
 9631            </ul><span class="paren">)</span>
 9632        </div>
 9633    
 9634
 9635    
 9636        <span class="returns-inline">
 9637            <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 9638        </span>
 9639    
 9640
 9641    
 9642
 9643    
 9644
 9645    
 9646
 9647    
 9648
 9649    
 9650
 9651    
 9652
 9653    <div class="meta">
 9654        
 9655            
 9656                <p>Inherited from
 9657                <a href="../classes/DisplayObject.html#method_getConcatenatedMatrix">DisplayObject</a>:
 9658            
 9659        
 9660        
 9661        <a href="../files/easeljs_display_DisplayObject.js.html#l1003"><code>getConcatenatedMatrix:1003</code></a>
 9662        
 9663        </p>
 9664
 9665
 9666        
 9667
 9668        
 9669    </div>
 9670
 9671    <div class="description">
 9672        <p>Generates a Matrix2D object representing the combined transform of the display object and all of its
 9673parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>). This can
 9674be used to transform positions between coordinate spaces, such as with <a href="../classes/DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a>
 9675and <a href="../classes/DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>.</p>
 9676
 9677    </div>
 9678
 9679    
 9680        <div class="params">
 9681            <h4>Parameters:</h4>
 9682
 9683            <ul class="params-list">
 9684            
 9685                <li class="param">
 9686                    
 9687                        <code class="param-name optional">[matrix]</code>
 9688                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 9689                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9690                    
 9691
 9692                    
 9693
 9694                    <div class="param-description">
 9695                        <p>A <a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a> object to populate with the calculated values.
 9696If null, a new Matrix2D object is returned.</p>
 9697
 9698                    </div>
 9699
 9700                    
 9701                </li>
 9702            
 9703            </ul>
 9704        </div>
 9705    
 9706
 9707    
 9708        <div class="returns">
 9709            <h4>Returns:</h4>
 9710
 9711            <div class="returns-description">
 9712                
 9713                    
 9714                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
 9715                    
 9716                    <p>The combined matrix.</p>
 9717
 9718                
 9719            </div>
 9720        </div>
 9721    
 9722
 9723    
 9724</div>
 9725
 9726                
 9727                    <div id="method_getFilterShader" class="method item">
 9728    <h3 class="name"><code>getFilterShader</code></h3>
 9729
 9730    
 9731        <div class="args">
 9732            <span class="paren">(</span><ul class="args-list inline commas">
 9733            
 9734                <li class="arg">
 9735                    
 9736                        <code>filter</code>
 9737                    
 9738                </li>
 9739            
 9740            </ul><span class="paren">)</span>
 9741        </div>
 9742    
 9743
 9744    
 9745        <span class="returns-inline">
 9746            <span class="type">WebGLProgram</span>
 9747        </span>
 9748    
 9749
 9750    
 9751
 9752    
 9753
 9754    
 9755
 9756    
 9757
 9758    
 9759
 9760    
 9761
 9762    <div class="meta">
 9763        
 9764            
 9765                
 9766                <p>
 9767                
 9768                Defined in
 9769                
 9770            
 9771        
 9772        
 9773        <a href="../files/easeljs_display_StageGL.js.html#l1251"><code>getFilterShader:1251</code></a>
 9774        
 9775        </p>
 9776
 9777
 9778        
 9779
 9780        
 9781    </div>
 9782
 9783    <div class="description">
 9784        <p>Fetches the shader compiled and set up to work with the provided filter/object. The shader is compiled on first
 9785use and returned on subsequent calls.</p>
 9786
 9787    </div>
 9788
 9789    
 9790        <div class="params">
 9791            <h4>Parameters:</h4>
 9792
 9793            <ul class="params-list">
 9794            
 9795                <li class="param">
 9796                    
 9797                        <code class="param-name">filter</code>
 9798                        <span class="type"><a href="../classes/Filter.html" class="crosslink">Filter</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 9799                    
 9800
 9801                    
 9802
 9803                    <div class="param-description">
 9804                        <p>The object which will provide the information needed to construct the filter shader.</p>
 9805
 9806                    </div>
 9807
 9808                    
 9809                </li>
 9810            
 9811            </ul>
 9812        </div>
 9813    
 9814
 9815    
 9816        <div class="returns">
 9817            <h4>Returns:</h4>
 9818
 9819            <div class="returns-description">
 9820                
 9821                    
 9822                        <span class="type">WebGLProgram</span>:
 9823                    
 9824                
 9825            </div>
 9826        </div>
 9827    
 9828
 9829    
 9830</div>
 9831
 9832                
 9833                    <div id="method_getMatrix" class="method item inherited">
 9834    <h3 class="name"><code>getMatrix</code></h3>
 9835
 9836    
 9837        <div class="args">
 9838            <span class="paren">(</span><ul class="args-list inline commas">
 9839            
 9840                <li class="arg">
 9841                    
 9842                        <code>matrix</code>
 9843                    
 9844                </li>
 9845            
 9846            </ul><span class="paren">)</span>
 9847        </div>
 9848    
 9849
 9850    
 9851        <span class="returns-inline">
 9852            <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 9853        </span>
 9854    
 9855
 9856    
 9857
 9858    
 9859
 9860    
 9861
 9862    
 9863
 9864    
 9865
 9866    
 9867
 9868    <div class="meta">
 9869        
 9870            
 9871                <p>Inherited from
 9872                <a href="../classes/DisplayObject.html#method_getMatrix">DisplayObject</a>:
 9873            
 9874        
 9875        
 9876        <a href="../files/easeljs_display_DisplayObject.js.html#l991"><code>getMatrix:991</code></a>
 9877        
 9878        </p>
 9879
 9880
 9881        
 9882
 9883        
 9884    </div>
 9885
 9886    <div class="description">
 9887        <p>Returns a matrix based on this object&#39;s current transform.</p>
 9888
 9889    </div>
 9890
 9891    
 9892        <div class="params">
 9893            <h4>Parameters:</h4>
 9894
 9895            <ul class="params-list">
 9896            
 9897                <li class="param">
 9898                    
 9899                        <code class="param-name">matrix</code>
 9900                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 9901                    
 9902
 9903                    
 9904
 9905                    <div class="param-description">
 9906                        <p>Optional. A Matrix2D object to populate with the calculated values. If null, a new
 9907Matrix object is returned.</p>
 9908
 9909                    </div>
 9910
 9911                    
 9912                </li>
 9913            
 9914            </ul>
 9915        </div>
 9916    
 9917
 9918    
 9919        <div class="returns">
 9920            <h4>Returns:</h4>
 9921
 9922            <div class="returns-description">
 9923                
 9924                    
 9925                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
 9926                    
 9927                    <p>A matrix representing this display object&#39;s transform.</p>
 9928
 9929                
 9930            </div>
 9931        </div>
 9932    
 9933
 9934    
 9935</div>
 9936
 9937                
 9938                    <div id="method_getObjectsUnderPoint" class="method item inherited">
 9939    <h3 class="name"><code>getObjectsUnderPoint</code></h3>
 9940
 9941    
 9942        <div class="args">
 9943            <span class="paren">(</span><ul class="args-list inline commas">
 9944            
 9945                <li class="arg">
 9946                    
 9947                        <code>x</code>
 9948                    
 9949                </li>
 9950            
 9951                <li class="arg">
 9952                    
 9953                        <code>y</code>
 9954                    
 9955                </li>
 9956            
 9957                <li class="arg">
 9958                    
 9959                        <code class="optional">[mode=0]</code>
 9960                    
 9961                </li>
 9962            
 9963            </ul><span class="paren">)</span>
 9964        </div>
 9965    
 9966
 9967    
 9968        <span class="returns-inline">
 9969            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 9970        </span>
 9971    
 9972
 9973    
 9974
 9975    
 9976
 9977    
 9978
 9979    
 9980
 9981    
 9982
 9983    
 9984
 9985    <div class="meta">
 9986        
 9987            
 9988                <p>Inherited from
 9989                <a href="../classes/Container.html#method_getObjectsUnderPoint">Container</a>:
 9990            
 9991        
 9992        
 9993        <a href="../files/easeljs_display_Container.js.html#l460"><code>getObjectsUnderPoint:460</code></a>
 9994        
 9995        </p>
 9996
 9997
 9998        
 9999
10000        
10001    </div>
10002
10003    <div class="description">
10004        <p>Returns an array of all display objects under the specified coordinates that are in this container&#39;s display
10005list. This routine ignores any display objects with <a href="../classes/DisplayObject.html#property_mouseEnabled" class="crosslink">mouseEnabled</a>
10006set to <code>false</code>. The array will be sorted in order of visual depth, with the top-most display object at index 0.
10007This uses shape based hit detection, and can be an expensive operation to run, so it is best to use it carefully.
10008For example, if testing for objects under the mouse, test on tick (instead of on DisplayObject/mousemove:event),
10009and only if the mouse&#39;s position has changed.</p>
10010<p><ul>
10011    <li>By default (mode=0) this method evaluates all display objects.</li>
10012    <li>By setting the <code>mode</code> parameter to <code>1</code>, the <a href="../classes/DisplayObject.html#property_mouseEnabled" class="crosslink">mouseEnabled</a>
10013        and MouseChildren:property properties will be respected.</li>
10014       <li>Setting the <code>mode</code> to <code>2</code> additionally excludes display objects that do not have active mouse event
10015           listeners or a DisplayObject:cursor:property property. That is, only objects
10016           that would normally intercept mouse interaction will be included. This can significantly improve performance
10017           in some cases by reducing the number of display objects that need to be tested.</li>
10018</li></p>
10019<p>This method accounts for both <a href="../classes/DisplayObject.html#property_hitArea" class="crosslink">hitArea</a> and <a href="../classes/DisplayObject.html#property_mask" class="crosslink">mask</a>.</p>
10020
10021    </div>
10022
10023    
10024        <div class="params">
10025            <h4>Parameters:</h4>
10026
10027            <ul class="params-list">
10028            
10029                <li class="param">
10030                    
10031                        <code class="param-name">x</code>
10032                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10033                    
10034
10035                    
10036
10037                    <div class="param-description">
10038                        <p>The x position in the container to test.</p>
10039
10040                    </div>
10041
10042                    
10043                </li>
10044            
10045                <li class="param">
10046                    
10047                        <code class="param-name">y</code>
10048                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10049                    
10050
10051                    
10052
10053                    <div class="param-description">
10054                        <p>The y position in the container to test.</p>
10055
10056                    </div>
10057
10058                    
10059                </li>
10060            
10061                <li class="param">
10062                    
10063                        <code class="param-name optional">[mode=0]</code>
10064                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10065                        <span class="flag optional" title="This parameter is optional.">optional</span>
10066                    
10067
10068                    
10069
10070                    <div class="param-description">
10071                        <p>The mode to use to determine which display objects to include. 0-all, 1-respect mouseEnabled/mouseChildren, 2-only mouse opaque objects.</p>
10072
10073                    </div>
10074
10075                    
10076                </li>
10077            
10078            </ul>
10079        </div>
10080    
10081
10082    
10083        <div class="returns">
10084            <h4>Returns:</h4>
10085
10086            <div class="returns-description">
10087                
10088                    
10089                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>:
10090                    
10091                    <p>An Array of DisplayObjects under the specified coordinates.</p>
10092
10093                
10094            </div>
10095        </div>
10096    
10097
10098    
10099</div>
10100
10101                
10102                    <div id="method_getObjectUnderPoint" class="method item inherited">
10103    <h3 class="name"><code>getObjectUnderPoint</code></h3>
10104
10105    
10106        <div class="args">
10107            <span class="paren">(</span><ul class="args-list inline commas">
10108            
10109                <li class="arg">
10110                    
10111                        <code>x</code>
10112                    
10113                </li>
10114            
10115                <li class="arg">
10116                    
10117                        <code>y</code>
10118                    
10119                </li>
10120            
10121                <li class="arg">
10122                    
10123                        <code>mode</code>
10124                    
10125                </li>
10126            
10127            </ul><span class="paren">)</span>
10128        </div>
10129    
10130
10131    
10132        <span class="returns-inline">
10133            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
10134        </span>
10135    
10136
10137    
10138
10139    
10140
10141    
10142
10143    
10144
10145    
10146
10147    
10148
10149    <div class="meta">
10150        
10151            
10152                <p>Inherited from
10153                <a href="../classes/Container.html#method_getObjectUnderPoint">Container</a>:
10154            
10155        
10156        
10157        <a href="../files/easeljs_display_Container.js.html#l492"><code>getObjectUnderPoint:492</code></a>
10158        
10159        </p>
10160
10161
10162        
10163
10164        
10165    </div>
10166
10167    <div class="description">
10168        <p>Similar to <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>, but returns only the top-most display
10169object. This runs significantly faster than <code>getObjectsUnderPoint()</code>, but is still potentially an expensive
10170operation. See <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a> for more information.</p>
10171
10172    </div>
10173
10174    
10175        <div class="params">
10176            <h4>Parameters:</h4>
10177
10178            <ul class="params-list">
10179            
10180                <li class="param">
10181                    
10182                        <code class="param-name">x</code>
10183                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10184                    
10185
10186                    
10187
10188                    <div class="param-description">
10189                        <p>The x position in the container to test.</p>
10190
10191                    </div>
10192
10193                    
10194                </li>
10195            
10196                <li class="param">
10197                    
10198                        <code class="param-name">y</code>
10199                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10200                    
10201
10202                    
10203
10204                    <div class="param-description">
10205                        <p>The y position in the container to test.</p>
10206
10207                    </div>
10208
10209                    
10210                </li>
10211            
10212                <li class="param">
10213                    
10214                        <code class="param-name">mode</code>
10215                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10216                    
10217
10218                    
10219
10220                    <div class="param-description">
10221                        <p>The mode to use to determine which display objects to include.  0-all, 1-respect mouseEnabled/mouseChildren, 2-only mouse opaque objects.</p>
10222
10223                    </div>
10224
10225                    
10226                </li>
10227            
10228            </ul>
10229        </div>
10230    
10231
10232    
10233        <div class="returns">
10234            <h4>Returns:</h4>
10235
10236            <div class="returns-description">
10237                
10238                    
10239                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
10240                    
10241                    <p>The top-most display object under the specified coordinates.</p>
10242
10243                
10244            </div>
10245        </div>
10246    
10247
10248    
10249</div>
10250
10251                
10252                    <div id="method_getRenderBufferTexture" class="method item">
10253    <h3 class="name"><code>getRenderBufferTexture</code></h3>
10254
10255    
10256        <div class="args">
10257            <span class="paren">(</span><ul class="args-list inline commas">
10258            
10259                <li class="arg">
10260                    
10261                        <code>w</code>
10262                    
10263                </li>
10264            
10265                <li class="arg">
10266                    
10267                        <code>h</code>
10268                    
10269                </li>
10270            
10271            </ul><span class="paren">)</span>
10272        </div>
10273    
10274
10275    
10276        <span class="returns-inline">
10277            <span class="type">Texture</span>
10278        </span>
10279    
10280
10281    
10282
10283    
10284
10285    
10286
10287    
10288
10289    
10290
10291    
10292
10293    <div class="meta">
10294        
10295            
10296                
10297                <p>
10298                
10299                Defined in
10300                
10301            
10302        
10303        
10304        <a href="../files/easeljs_display_StageGL.js.html#l1335"><code>getRenderBufferTexture:1335</code></a>
10305        
10306        </p>
10307
10308
10309        
10310
10311        
10312    </div>
10313
10314    <div class="description">
10315        <p>Returns a base texture (see <a href="../classes/StageGL.html#method_getBaseTexture" class="crosslink">getBaseTexture</a>) for details. Also includes an
10316attached and linked render buffer in <code>texture._frameBuffer</code>. RenderTextures can be thought of as an internal
10317canvas on the GPU that can be drawn to.</p>
10318
10319    </div>
10320
10321    
10322        <div class="params">
10323            <h4>Parameters:</h4>
10324
10325            <ul class="params-list">
10326            
10327                <li class="param">
10328                    
10329                        <code class="param-name">w</code>
10330                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10331                    
10332
10333                    
10334
10335                    <div class="param-description">
10336                        <p>The width of the texture in pixels.</p>
10337
10338                    </div>
10339
10340                    
10341                </li>
10342            
10343                <li class="param">
10344                    
10345                        <code class="param-name">h</code>
10346                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10347                    
10348
10349                    
10350
10351                    <div class="param-description">
10352                        <p>The height of the texture in pixels.</p>
10353
10354                    </div>
10355
10356                    
10357                </li>
10358            
10359            </ul>
10360        </div>
10361    
10362
10363    
10364        <div class="returns">
10365            <h4>Returns:</h4>
10366
10367            <div class="returns-description">
10368                
10369                    
10370                        <span class="type">Texture</span>:
10371                    
10372                    <p>the basic texture instance with a render buffer property.</p>
10373
10374                
10375            </div>
10376        </div>
10377    
10378
10379    
10380</div>
10381
10382                
10383                    <div id="method_getTargetRenderTexture" class="method item">
10384    <h3 class="name"><code>getTargetRenderTexture</code></h3>
10385
10386    
10387        <div class="args">
10388            <span class="paren">(</span><ul class="args-list inline commas">
10389            
10390                <li class="arg">
10391                    
10392                        <code>target</code>
10393                    
10394                </li>
10395            
10396                <li class="arg">
10397                    
10398                        <code>w</code>
10399                    
10400                </li>
10401            
10402                <li class="arg">
10403                    
10404                        <code>h</code>
10405                    
10406                </li>
10407            
10408            </ul><span class="paren">)</span>
10409        </div>
10410    
10411
10412    
10413        <span class="returns-inline">
10414            <span class="type">Objet</span>
10415        </span>
10416    
10417
10418    
10419
10420    
10421
10422    
10423
10424    
10425
10426    
10427
10428    
10429
10430    <div class="meta">
10431        
10432            
10433                
10434                <p>
10435                
10436                Defined in
10437                
10438            
10439        
10440        
10441        <a href="../files/easeljs_display_StageGL.js.html#l1046"><code>getTargetRenderTexture:1046</code></a>
10442        
10443        </p>
10444
10445
10446        
10447
10448        
10449    </div>
10450
10451    <div class="description">
10452        <p>Render textures can&#39;t draw into themselves so any item being used for renderTextures needs two to alternate between.
10453This function creates, gets, and toggles the render surface between the two.</p>
10454<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
10455
10456    </div>
10457
10458    
10459        <div class="params">
10460            <h4>Parameters:</h4>
10461
10462            <ul class="params-list">
10463            
10464                <li class="param">
10465                    
10466                        <code class="param-name">target</code>
10467                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
10468                    
10469
10470                    
10471
10472                    <div class="param-description">
10473                        <p>The object associated with the render textures, usually a cached object.</p>
10474
10475                    </div>
10476
10477                    
10478                </li>
10479            
10480                <li class="param">
10481                    
10482                        <code class="param-name">w</code>
10483                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10484                    
10485
10486                    
10487
10488                    <div class="param-description">
10489                        <p>The width to create the texture at.</p>
10490
10491                    </div>
10492
10493                    
10494                </li>
10495            
10496                <li class="param">
10497                    
10498                        <code class="param-name">h</code>
10499                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10500                    
10501
10502                    
10503
10504                    <div class="param-description">
10505                        <p>The height to create the texture at.</p>
10506
10507                    </div>
10508
10509                    
10510                </li>
10511            
10512            </ul>
10513        </div>
10514    
10515
10516    
10517        <div class="returns">
10518            <h4>Returns:</h4>
10519
10520            <div class="returns-description">
10521                
10522                    
10523                        <span class="type">Objet</span>:
10524                    
10525                
10526            </div>
10527        </div>
10528    
10529
10530    
10531</div>
10532
10533                
10534                    <div id="method_getTransformedBounds" class="method item inherited">
10535    <h3 class="name"><code>getTransformedBounds</code></h3>
10536
10537    
10538        <span class="paren">()</span>
10539    
10540
10541    
10542        <span class="returns-inline">
10543            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
10544        </span>
10545    
10546
10547    
10548
10549    
10550
10551    
10552
10553    
10554
10555    
10556
10557    
10558
10559    <div class="meta">
10560        
10561            
10562                <p>Inherited from
10563                <a href="../classes/DisplayObject.html#method_getTransformedBounds">DisplayObject</a>:
10564            
10565        
10566        
10567        <a href="../files/easeljs_display_DisplayObject.js.html#l1155"><code>getTransformedBounds:1155</code></a>
10568        
10569        </p>
10570
10571
10572        
10573
10574        
10575    </div>
10576
10577    <div class="description">
10578        <p>Returns a rectangle representing this object&#39;s bounds in its parent&#39;s coordinate system (ie. with transformations applied).
10579Objects that have been cached will return the transformed bounds of the cache.</p>
10580<p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use 
10581<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
10582bounds.</p>
10583<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
10584values if you need to retain it.</p>
10585<p>Container instances calculate aggregate bounds for all children that return bounds via getBounds.</p>
10586
10587    </div>
10588
10589    
10590
10591    
10592        <div class="returns">
10593            <h4>Returns:</h4>
10594
10595            <div class="returns-description">
10596                
10597                    
10598                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
10599                    
10600                    <p>A Rectangle instance representing the bounds, or null if bounds are not available for this object.</p>
10601
10602                
10603            </div>
10604        </div>
10605    
10606
10607    
10608</div>
10609
10610                
10611                    <div id="method_globalToLocal" class="method item inherited">
10612    <h3 class="name"><code>globalToLocal</code></h3>
10613
10614    
10615        <div class="args">
10616            <span class="paren">(</span><ul class="args-list inline commas">
10617            
10618                <li class="arg">
10619                    
10620                        <code>x</code>
10621                    
10622                </li>
10623            
10624                <li class="arg">
10625                    
10626                        <code>y</code>
10627                    
10628                </li>
10629            
10630                <li class="arg">
10631                    
10632                        <code class="optional">[pt]</code>
10633                    
10634                </li>
10635            
10636            </ul><span class="paren">)</span>
10637        </div>
10638    
10639
10640    
10641        <span class="returns-inline">
10642            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
10643        </span>
10644    
10645
10646    
10647
10648    
10649
10650    
10651
10652    
10653
10654    
10655
10656    
10657
10658    <div class="meta">
10659        
10660            
10661                <p>Inherited from
10662                <a href="../classes/DisplayObject.html#method_globalToLocal">DisplayObject</a>:
10663            
10664        
10665        
10666        <a href="../files/easeljs_display_DisplayObject.js.html#l910"><code>globalToLocal:910</code></a>
10667        
10668        </p>
10669
10670
10671        
10672
10673        
10674    </div>
10675
10676    <div class="description">
10677        <p><p>Transforms the specified x and y position from the global (stage) coordinate space to the
10678coordinate space of the display object. For example, this could be used to determine
10679the current mouse position within the display object. Returns a Point instance with x and y properties
10680correlating to the transformed position in the display object&#39;s coordinate space.</p></p>
10681<h4>Example</h4>
10682
10683<pre class="code prettyprint"><code> displayObject.x = 300;
10684 displayObject.y = 200;
10685 stage.addChild(displayObject);
10686 var point = displayObject.globalToLocal(100, 100);
10687 // Results in x=-200, y=-100</code></pre>
10688
10689    </div>
10690
10691    
10692        <div class="params">
10693            <h4>Parameters:</h4>
10694
10695            <ul class="params-list">
10696            
10697                <li class="param">
10698                    
10699                        <code class="param-name">x</code>
10700                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10701                    
10702
10703                    
10704
10705                    <div class="param-description">
10706                        <p>The x position on the stage to transform.</p>
10707
10708                    </div>
10709
10710                    
10711                </li>
10712            
10713                <li class="param">
10714                    
10715                        <code class="param-name">y</code>
10716                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10717                    
10718
10719                    
10720
10721                    <div class="param-description">
10722                        <p>The y position on the stage to transform.</p>
10723
10724                    </div>
10725
10726                    
10727                </li>
10728            
10729                <li class="param">
10730                    
10731                        <code class="param-name optional">[pt]</code>
10732                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
10733                        <span class="flag optional" title="This parameter is optional.">optional</span>
10734                    
10735
10736                    
10737
10738                    <div class="param-description">
10739                        <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
10740
10741                    </div>
10742
10743                    
10744                </li>
10745            
10746            </ul>
10747        </div>
10748    
10749
10750    
10751        <div class="returns">
10752            <h4>Returns:</h4>
10753
10754            <div class="returns-description">
10755                
10756                    
10757                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
10758                    
10759                    <p>A Point instance with x and y properties correlating to the transformed position in the
10760display object&#39;s coordinate space.</p>
10761
10762                
10763            </div>
10764        </div>
10765    
10766
10767    
10768</div>
10769
10770                
10771                    <div id="method_hasEventListener" class="method item inherited">
10772    <h3 class="name"><code>hasEventListener</code></h3>
10773
10774    
10775        <div class="args">
10776            <span class="paren">(</span><ul class="args-list inline commas">
10777            
10778                <li class="arg">
10779                    
10780                        <code>type</code>
10781                    
10782                </li>
10783            
10784            </ul><span class="paren">)</span>
10785        </div>
10786    
10787
10788    
10789        <span class="returns-inline">
10790            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
10791        </span>
10792    
10793
10794    
10795
10796    
10797
10798    
10799
10800    
10801
10802    
10803
10804    
10805
10806    <div class="meta">
10807        
10808            
10809                <p>Inherited from
10810                <a href="../classes/EventDispatcher.html#method_hasEventListener">EventDispatcher</a>:
10811            
10812        
10813        
10814        <a href="../files/createjs_events_EventDispatcher.js.html#l339"><code>hasEventListener:339</code></a>
10815        
10816        </p>
10817
10818
10819        
10820
10821        
10822    </div>
10823
10824    <div class="description">
10825        <p>Indicates whether there is at least one listener for the specified event type.</p>
10826
10827    </div>
10828
10829    
10830        <div class="params">
10831            <h4>Parameters:</h4>
10832
10833            <ul class="params-list">
10834            
10835                <li class="param">
10836                    
10837                        <code class="param-name">type</code>
10838                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
10839                    
10840
10841                    
10842
10843                    <div class="param-description">
10844                        <p>The string type of the event.</p>
10845
10846                    </div>
10847
10848                    
10849                </li>
10850            
10851            </ul>
10852        </div>
10853    
10854
10855    
10856        <div class="returns">
10857            <h4>Returns:</h4>
10858
10859            <div class="returns-description">
10860                
10861                    
10862                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
10863                    
10864                    <p>Returns true if there is at least one listener for the specified event.</p>
10865
10866                
10867            </div>
10868        </div>
10869    
10870
10871    
10872</div>
10873
10874                
10875                    <div id="method_hitTest" class="method item inherited">
10876    <h3 class="name"><code>hitTest</code></h3>
10877
10878    
10879        <div class="args">
10880            <span class="paren">(</span><ul class="args-list inline commas">
10881            
10882                <li class="arg">
10883                    
10884                        <code>x</code>
10885                    
10886                </li>
10887            
10888                <li class="arg">
10889                    
10890                        <code>y</code>
10891                    
10892                </li>
10893            
10894            </ul><span class="paren">)</span>
10895        </div>
10896    
10897
10898    
10899        <span class="returns-inline">
10900            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
10901        </span>
10902    
10903
10904    
10905
10906    
10907
10908    
10909
10910    
10911
10912    
10913
10914    
10915
10916    <div class="meta">
10917        
10918            <p>Inherited from
10919            <a href="../classes/DisplayObject.html#method_hitTest">
10920                DisplayObject
10921            </a>
10922            
10923            but overwritten in
10924            
10925        
10926        
10927        <a href="../files/easeljs_display_Container.js.html#l445"><code>hitTest:445</code></a>
10928        
10929        </p>
10930
10931
10932        
10933
10934        
10935    </div>
10936
10937    <div class="description">
10938        <p>Tests whether the display object intersects the specified local point (ie. draws a pixel with alpha &gt; 0 at the
10939specified position). This ignores the alpha, shadow and compositeOperation of the display object, and all
10940transform properties including regX/Y.</p>
10941
10942    </div>
10943
10944    
10945        <div class="params">
10946            <h4>Parameters:</h4>
10947
10948            <ul class="params-list">
10949            
10950                <li class="param">
10951                    
10952                        <code class="param-name">x</code>
10953                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10954                    
10955
10956                    
10957
10958                    <div class="param-description">
10959                        <p>The x position to check in the display object&#39;s local coordinates.</p>
10960
10961                    </div>
10962
10963                    
10964                </li>
10965            
10966                <li class="param">
10967                    
10968                        <code class="param-name">y</code>
10969                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10970                    
10971
10972                    
10973
10974                    <div class="param-description">
10975                        <p>The y position to check in the display object&#39;s local coordinates.</p>
10976
10977                    </div>
10978
10979                    
10980                </li>
10981            
10982            </ul>
10983        </div>
10984    
10985
10986    
10987        <div class="returns">
10988            <h4>Returns:</h4>
10989
10990            <div class="returns-description">
10991                
10992                    
10993                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
10994                    
10995                    <p>A Boolean indicating whether there is a visible section of a DisplayObject that overlaps the specified
10996coordinates.</p>
10997
10998                
10999            </div>
11000        </div>
11001    
11002
11003    
11004</div>
11005
11006                
11007                    <div id="method_initialize" class="method item deprecated inherited">
11008    <h3 class="name"><code>initialize</code></h3>
11009
11010    
11011        <span class="paren">()</span>
11012    
11013
11014    
11015
11016    
11017        <span class="flag deprecated" title="in favour of &#x60;createjs.promote()&#x60;">deprecated</span>
11018    
11019
11020    
11021
11022    
11023
11024    
11025
11026    
11027
11028    
11029
11030    <div class="meta">
11031        
11032            
11033                <p>Inherited from
11034                <a href="../classes/Container.html#method_initialize">Container</a>:
11035            
11036        
11037        
11038        <a href="../files/easeljs_display_Container.js.html#l123"><code>initialize:123</code></a>
11039        
11040        </p>
11041
11042
11043        
11044            <p>Deprecated: in favour of &#x60;createjs.promote()&#x60;</p>
11045        
11046
11047        
11048    </div>
11049
11050    <div class="description">
11051        <p>Constructor alias for backwards compatibility. This method will be removed in future versions.
11052Subclasses should be updated to use Utility Methods/extends.</p>
11053
11054    </div>
11055
11056    
11057
11058    
11059
11060    
11061</div>
11062
11063                
11064                    <div id="method_isVisible" class="method item inherited">
11065    <h3 class="name"><code>isVisible</code></h3>
11066
11067    
11068        <span class="paren">()</span>
11069    
11070
11071    
11072        <span class="returns-inline">
11073            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
11074        </span>
11075    
11076
11077    
11078
11079    
11080
11081    
11082
11083    
11084
11085    
11086
11087    
11088
11089    <div class="meta">
11090        
11091            <p>Inherited from
11092            <a href="../classes/DisplayObject.html#method_isVisible">
11093                DisplayObject
11094            </a>
11095            
11096            but overwritten in
11097            
11098        
11099        
11100        <a href="../files/easeljs_display_Container.js.html#l131"><code>isVisible:131</code></a>
11101        
11102        </p>
11103
11104
11105        
11106
11107        
11108    </div>
11109
11110    <div class="description">
11111        <p>Returns true or false indicating whether the display object would be visible if drawn to a canvas.
11112This does not account for whether it would be visible within the boundaries of the stage.</p>
11113<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
11114
11115    </div>
11116
11117    
11118
11119    
11120        <div class="returns">
11121            <h4>Returns:</h4>
11122
11123            <div class="returns-description">
11124                
11125                    
11126                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
11127                    
11128                    <p>Boolean indicating whether the display object would be visible if drawn to a canvas</p>
11129
11130                
11131            </div>
11132        </div>
11133    
11134
11135    
11136</div>
11137
11138                
11139                    <div id="method_isWebGLActive" class="method item">
11140    <h3 class="name"><code>isWebGLActive</code></h3>
11141
11142    
11143        <div class="args">
11144            <span class="paren">(</span><ul class="args-list inline commas">
11145            
11146                <li class="arg">
11147                    
11148                        <code>ctx</code>
11149                    
11150                </li>
11151            
11152            </ul><span class="paren">)</span>
11153        </div>
11154    
11155
11156    
11157        <span class="returns-inline">
11158            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
11159        </span>
11160    
11161
11162    
11163
11164    
11165
11166    
11167
11168    
11169        <span class="flag static">static</span>
11170    
11171
11172    
11173
11174    
11175
11176    <div class="meta">
11177        
11178            
11179                
11180                <p>
11181                
11182                Defined in
11183                
11184            
11185        
11186        
11187        <a href="../files/easeljs_display_StageGL.js.html#l503"><code>isWebGLActive:503</code></a>
11188        
11189        </p>
11190
11191
11192        
11193
11194        
11195    </div>
11196
11197    <div class="description">
11198        <p>Test a context to see if it has WebGL enabled on it.</p>
11199
11200    </div>
11201
11202    
11203        <div class="params">
11204            <h4>Parameters:</h4>
11205
11206            <ul class="params-list">
11207            
11208                <li class="param">
11209                    
11210                        <code class="param-name">ctx</code>
11211                        <span class="type">CanvasContext</span>
11212                    
11213
11214                    
11215
11216                    <div class="param-description">
11217                        <p>The context to test</p>
11218
11219                    </div>
11220
11221                    
11222                </li>
11223            
11224            </ul>
11225        </div>
11226    
11227
11228    
11229        <div class="returns">
11230            <h4>Returns:</h4>
11231
11232            <div class="returns-description">
11233                
11234                    
11235                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
11236                    
11237                    <p>Whether WebGL is enabled</p>
11238
11239                
11240            </div>
11241        </div>
11242    
11243
11244    
11245</div>
11246
11247                
11248                    <div id="method_localToGlobal" class="method item inherited">
11249    <h3 class="name"><code>localToGlobal</code></h3>
11250
11251    
11252        <div class="args">
11253            <span class="paren">(</span><ul class="args-list inline commas">
11254            
11255                <li class="arg">
11256                    
11257                        <code>x</code>
11258                    
11259                </li>
11260            
11261                <li class="arg">
11262                    
11263                        <code>y</code>
11264                    
11265                </li>
11266            
11267                <li class="arg">
11268                    
11269                        <code class="optional">[pt]</code>
11270                    
11271                </li>
11272            
11273            </ul><span class="paren">)</span>
11274        </div>
11275    
11276
11277    
11278        <span class="returns-inline">
11279            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
11280        </span>
11281    
11282
11283    
11284
11285    
11286
11287    
11288
11289    
11290
11291    
11292
11293    
11294
11295    <div class="meta">
11296        
11297            
11298                <p>Inherited from
11299                <a href="../classes/DisplayObject.html#method_localToGlobal">DisplayObject</a>:
11300            
11301        
11302        
11303        <a href="../files/easeljs_display_DisplayObject.js.html#l885"><code>localToGlobal:885</code></a>
11304        
11305        </p>
11306
11307
11308        
11309
11310        
11311    </div>
11312
11313    <div class="description">
11314        <p><p>Transforms the specified x and y position from the coordinate space of the display object
11315to the global (stage) coordinate space. For example, this could be used to position an HTML label
11316over a specific point on a nested display object. Returns a Point instance with x and y properties
11317correlating to the transformed coordinates on the stage.</p></p>
11318<h4>Example</h4>
11319
11320<pre class="code prettyprint"><code> displayObject.x = 300;
11321 displayObject.y = 200;
11322 stage.addChild(displayObject);
11323 var point = displayObject.localToGlobal(100, 100);
11324 // Results in x=400, y=300</code></pre>
11325
11326    </div>
11327
11328    
11329        <div class="params">
11330            <h4>Parameters:</h4>
11331
11332            <ul class="params-list">
11333            
11334                <li class="param">
11335                    
11336                        <code class="param-name">x</code>
11337                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11338                    
11339
11340                    
11341
11342                    <div class="param-description">
11343                        <p>The x position in the source display object to transform.</p>
11344
11345                    </div>
11346
11347                    
11348                </li>
11349            
11350                <li class="param">
11351                    
11352                        <code class="param-name">y</code>
11353                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11354                    
11355
11356                    
11357
11358                    <div class="param-description">
11359                        <p>The y position in the source display object to transform.</p>
11360
11361                    </div>
11362
11363                    
11364                </li>
11365            
11366                <li class="param">
11367                    
11368                        <code class="param-name optional">[pt]</code>
11369                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
11370                        <span class="flag optional" title="This parameter is optional.">optional</span>
11371                    
11372
11373                    
11374
11375                    <div class="param-description">
11376                        <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
11377
11378                    </div>
11379
11380                    
11381                </li>
11382            
11383            </ul>
11384        </div>
11385    
11386
11387    
11388        <div class="returns">
11389            <h4>Returns:</h4>
11390
11391            <div class="returns-description">
11392                
11393                    
11394                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
11395                    
11396                    <p>A Point instance with x and y properties correlating to the transformed coordinates
11397on the stage.</p>
11398
11399                
11400            </div>
11401        </div>
11402    
11403
11404    
11405</div>
11406
11407                
11408                    <div id="method_localToLocal" class="method item inherited">
11409    <h3 class="name"><code>localToLocal</code></h3>
11410
11411    
11412        <div class="args">
11413            <span class="paren">(</span><ul class="args-list inline commas">
11414            
11415                <li class="arg">
11416                    
11417                        <code>x</code>
11418                    
11419                </li>
11420            
11421                <li class="arg">
11422                    
11423                        <code>y</code>
11424                    
11425                </li>
11426            
11427                <li class="arg">
11428                    
11429                        <code>target</code>
11430                    
11431                </li>
11432            
11433                <li class="arg">
11434                    
11435                        <code class="optional">[pt]</code>
11436                    
11437                </li>
11438            
11439            </ul><span class="paren">)</span>
11440        </div>
11441    
11442
11443    
11444        <span class="returns-inline">
11445            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
11446        </span>
11447    
11448
11449    
11450
11451    
11452
11453    
11454
11455    
11456
11457    
11458
11459    
11460
11461    <div class="meta">
11462        
11463            
11464                <p>Inherited from
11465                <a href="../classes/DisplayObject.html#method_localToLocal">DisplayObject</a>:
11466            
11467        
11468        
11469        <a href="../files/easeljs_display_DisplayObject.js.html#l935"><code>localToLocal:935</code></a>
11470        
11471        </p>
11472
11473
11474        
11475
11476        
11477    </div>
11478
11479    <div class="description">
11480        <p><p>Transforms the specified x and y position from the coordinate space of this display object to the coordinate
11481space of the target display object. Returns a Point instance with x and y properties correlating to the
11482transformed position in the target&#39;s coordinate space. Effectively the same as using the following code with
11483<a href="../classes/DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a> and <a href="../classes/DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>.</p></p>
11484<pre class="code prettyprint"><code> var pt = this.localToGlobal(x, y);
11485 pt = target.globalToLocal(pt.x, pt.y);</code></pre>
11486
11487    </div>
11488
11489    
11490        <div class="params">
11491            <h4>Parameters:</h4>
11492
11493            <ul class="params-list">
11494            
11495                <li class="param">
11496                    
11497                        <code class="param-name">x</code>
11498                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11499                    
11500
11501                    
11502
11503                    <div class="param-description">
11504                        <p>The x position in the source display object to transform.</p>
11505
11506                    </div>
11507
11508                    
11509                </li>
11510            
11511                <li class="param">
11512                    
11513                        <code class="param-name">y</code>
11514                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11515                    
11516
11517                    
11518
11519                    <div class="param-description">
11520                        <p>The y position on the source display object to transform.</p>
11521
11522                    </div>
11523
11524                    
11525                </li>
11526            
11527                <li class="param">
11528                    
11529                        <code class="param-name">target</code>
11530                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
11531                    
11532
11533                    
11534
11535                    <div class="param-description">
11536                        <p>The target display object to which the coordinates will be transformed.</p>
11537
11538                    </div>
11539
11540                    
11541                </li>
11542            
11543                <li class="param">
11544                    
11545                        <code class="param-name optional">[pt]</code>
11546                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
11547                        <span class="flag optional" title="This parameter is optional.">optional</span>
11548                    
11549
11550                    
11551
11552                    <div class="param-description">
11553                        <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
11554
11555                    </div>
11556
11557                    
11558                </li>
11559            
11560            </ul>
11561        </div>
11562    
11563
11564    
11565        <div class="returns">
11566            <h4>Returns:</h4>
11567
11568            <div class="returns-description">
11569                
11570                    
11571                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
11572                    
11573                    <p>Returns a Point instance with x and y properties correlating to the transformed position
11574in the target&#39;s coordinate space.</p>
11575
11576                
11577            </div>
11578        </div>
11579    
11580
11581    
11582</div>
11583
11584                
11585                    <div id="method_off" class="method item inherited">
11586    <h3 class="name"><code>off</code></h3>
11587
11588    
11589        <div class="args">
11590            <span class="paren">(</span><ul class="args-list inline commas">
11591            
11592                <li class="arg">
11593                    
11594                        <code>type</code>
11595                    
11596                </li>
11597            
11598                <li class="arg">
11599                    
11600                        <code>listener</code>
11601                    
11602                </li>
11603            
11604                <li class="arg">
11605                    
11606                        <code class="optional">[useCapture]</code>
11607                    
11608                </li>
11609            
11610            </ul><span class="paren">)</span>
11611        </div>
11612    
11613
11614    
11615
11616    
11617
11618    
11619
11620    
11621
11622    
11623
11624    
11625
11626    
11627
11628    <div class="meta">
11629        
11630            
11631                <p>Inherited from
11632                <a href="../classes/EventDispatcher.html#method_off">EventDispatcher</a>:
11633            
11634        
11635        
11636        <a href="../files/createjs_events_EventDispatcher.js.html#l249"><code>off:249</code></a>
11637        
11638        </p>
11639
11640
11641        
11642
11643        
11644    </div>
11645
11646    <div class="description">
11647        <p>A shortcut to the removeEventListener method, with the same parameters and return value. This is a companion to the
11648.on method.</p>
11649<p><b>IMPORTANT:</b> To remove a listener added with <code>on</code>, you must pass in the returned wrapper function as the listener. See 
11650<a href="../classes/EventDispatcher.html#method_on" class="crosslink">on</a> for an example.</p>
11651
11652    </div>
11653
11654    
11655        <div class="params">
11656            <h4>Parameters:</h4>
11657
11658            <ul class="params-list">
11659            
11660                <li class="param">
11661                    
11662                        <code class="param-name">type</code>
11663                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
11664                    
11665
11666                    
11667
11668                    <div class="param-description">
11669                        <p>The string type of the event.</p>
11670
11671                    </div>
11672
11673                    
11674                </li>
11675            
11676                <li class="param">
11677                    
11678                        <code class="param-name">listener</code>
11679                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
11680                    
11681
11682                    
11683
11684                    <div class="param-description">
11685                        <p>The listener function or object.</p>
11686
11687                    </div>
11688
11689                    
11690                </li>
11691            
11692                <li class="param">
11693                    
11694                        <code class="param-name optional">[useCapture]</code>
11695                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
11696                        <span class="flag optional" title="This parameter is optional.">optional</span>
11697                    
11698
11699                    
11700
11701                    <div class="param-description">
11702                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
11703
11704                    </div>
11705
11706                    
11707                </li>
11708            
11709            </ul>
11710        </div>
11711    
11712
11713    
11714
11715    
11716</div>
11717
11718                
11719                    <div id="method_on" class="method item inherited">
11720    <h3 class="name"><code>on</code></h3>
11721
11722    
11723        <div class="args">
11724            <span class="paren">(</span><ul class="args-list inline commas">
11725            
11726                <li class="arg">
11727                    
11728                        <code>type</code>
11729                    
11730                </li>
11731            
11732                <li class="arg">
11733                    
11734                        <code>listener</code>
11735                    
11736                </li>
11737            
11738                <li class="arg">
11739                    
11740                        <code class="optional">[scope]</code>
11741                    
11742                </li>
11743            
11744                <li class="arg">
11745                    
11746                        <code class="optional">[once=false]</code>
11747                    
11748                </li>
11749            
11750                <li class="arg">
11751                    
11752                        <code class="optional">[data]</code>
11753                    
11754                </li>
11755            
11756                <li class="arg">
11757                    
11758                        <code class="optional">[useCapture=false]</code>
11759                    
11760                </li>
11761            
11762            </ul><span class="paren">)</span>
11763        </div>
11764    
11765
11766    
11767        <span class="returns-inline">
11768            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
11769        </span>
11770    
11771
11772    
11773
11774    
11775
11776    
11777
11778    
11779
11780    
11781
11782    
11783
11784    <div class="meta">
11785        
11786            
11787                <p>Inherited from
11788                <a href="../classes/EventDispatcher.html#method_on">EventDispatcher</a>:
11789            
11790        
11791        
11792        <a href="../files/createjs_events_EventDispatcher.js.html#l173"><code>on:173</code></a>
11793        
11794        </p>
11795
11796
11797        
11798
11799        
11800    </div>
11801
11802    <div class="description">
11803        <p><p>A shortcut method for using addEventListener that makes it easier to specify an execution scope, have a listener
11804only run once, associate arbitrary data with the listener, and remove the listener.</p></p>
11805<p><p>This method works by creating an anonymous wrapper function and subscribing it with addEventListener.
11806The wrapper function is returned for use with <code>removeEventListener</code> (or <code>off</code>).</p></p>
11807<p><p><b>IMPORTANT:</b> To remove a listener added with <code>on</code>, you must pass in the returned wrapper function as the listener, or use
11808<a href="../classes/Event.html#method_remove" class="crosslink">remove</a>. Likewise, each time you call <code>on</code> a NEW wrapper function is subscribed, so multiple calls
11809to <code>on</code> with the same params will create multiple listeners.</p></p>
11810<h4>Example</h4>
11811
11812<pre class="code prettyprint"><code>    var listener = myBtn.on("click", handleClick, null, false, {count:3});
11813    function handleClick(evt, data) {
11814        data.count -= 1;
11815        console.log(this == myBtn); // true - scope defaults to the dispatcher
11816        if (data.count == 0) {
11817            alert("clicked 3 times!");
11818            myBtn.off("click", listener);
11819            // alternately: evt.remove();
11820        }
11821    }</code></pre>
11822
11823    </div>
11824
11825    
11826        <div class="params">
11827            <h4>Parameters:</h4>
11828
11829            <ul class="params-list">
11830            
11831                <li class="param">
11832                    
11833                        <code class="param-name">type</code>
11834                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
11835                    
11836
11837                    
11838
11839                    <div class="param-description">
11840                        <p>The string type of the event.</p>
11841
11842                    </div>
11843
11844                    
11845                </li>
11846            
11847                <li class="param">
11848                    
11849                        <code class="param-name">listener</code>
11850                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
11851                    
11852
11853                    
11854
11855                    <div class="param-description">
11856                        <p>An object with a handleEvent method, or a function that will be called when
11857the event is dispatched.</p>
11858
11859                    </div>
11860
11861                    
11862                </li>
11863            
11864                <li class="param">
11865                    
11866                        <code class="param-name optional">[scope]</code>
11867                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
11868                        <span class="flag optional" title="This parameter is optional.">optional</span>
11869                    
11870
11871                    
11872
11873                    <div class="param-description">
11874                        <p>The scope to execute the listener in. Defaults to the dispatcher/currentTarget for function listeners, and to the listener itself for object listeners (ie. using handleEvent).</p>
11875
11876                    </div>
11877
11878                    
11879                </li>
11880            
11881                <li class="param">
11882                    
11883                        <code class="param-name optional">[once=false]</code>
11884                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
11885                        <span class="flag optional" title="This parameter is optional.">optional</span>
11886                    
11887
11888                    
11889
11890                    <div class="param-description">
11891                        <p>If true, the listener will remove itself after the first time it is triggered.</p>
11892
11893                    </div>
11894
11895                    
11896                </li>
11897            
11898                <li class="param">
11899                    
11900                        <code class="param-name optional">[data]</code>
11901                        <span class="type"></span>
11902                        <span class="flag optional" title="This parameter is optional.">optional</span>
11903                    
11904
11905                    
11906
11907                    <div class="param-description">
11908                        <p>Arbitrary data that will be included as the second parameter when the listener is called.</p>
11909
11910                    </div>
11911
11912                    
11913                </li>
11914            
11915                <li class="param">
11916                    
11917                        <code class="param-name optional">[useCapture=false]</code>
11918                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
11919                        <span class="flag optional" title="This parameter is optional.">optional</span>
11920                    
11921
11922                    
11923
11924                    <div class="param-description">
11925                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
11926
11927                    </div>
11928
11929                    
11930                </li>
11931            
11932            </ul>
11933        </div>
11934    
11935
11936    
11937        <div class="returns">
11938            <h4>Returns:</h4>
11939
11940            <div class="returns-description">
11941                
11942                    
11943                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>:
11944                    
11945                    <p>Returns the anonymous function that was created and assigned as the listener. This is needed to remove the listener later using .removeEventListener.</p>
11946
11947                
11948            </div>
11949        </div>
11950    
11951
11952    
11953</div>
11954
11955                
11956                    <div id="method_protectTextureSlot" class="method item">
11957    <h3 class="name"><code>protectTextureSlot</code></h3>
11958
11959    
11960        <div class="args">
11961            <span class="paren">(</span><ul class="args-list inline commas">
11962            
11963                <li class="arg">
11964                    
11965                        <code>id</code>
11966                    
11967                </li>
11968            
11969                <li class="arg">
11970                    
11971                        <code class="optional">[lock=false]</code>
11972                    
11973                </li>
11974            
11975            </ul><span class="paren">)</span>
11976        </div>
11977    
11978
11979    
11980
11981    
11982
11983    
11984
11985    
11986
11987    
11988
11989    
11990
11991    
11992
11993    <div class="meta">
11994        
11995            
11996                
11997                <p>
11998                
11999                Defined in
12000                
12001            
12002        
12003        
12004        <a href="../files/easeljs_display_StageGL.js.html#l1027"><code>protectTextureSlot:1027</code></a>
12005        
12006        </p>
12007
12008
12009        
12010
12011        
12012    </div>
12013
12014    <div class="description">
12015        <p>Blocks, or frees a texture "slot" on the GPU. Can be useful if you are overflowing textures. When overflowing
12016textures they are re-uploaded to the GPU every time they&#39;re encountered, this can be expensive with large textures.
12017By blocking the slot you reduce available slots, potentially increasing draw calls, but mostly you prevent a
12018texture being re-uploaded if it would have moved slots due to overflow.</p>
12019<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.
12020For example, block the slot a background image is stored in so there is less re-loading of that image.</p>
12021
12022    </div>
12023
12024    
12025        <div class="params">
12026            <h4>Parameters:</h4>
12027
12028            <ul class="params-list">
12029            
12030                <li class="param">
12031                    
12032                        <code class="param-name">id</code>
12033                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12034                    
12035
12036                    
12037
12038                    <div class="param-description">
12039                        <p>The slot to be affected</p>
12040
12041                    </div>
12042
12043                    
12044                </li>
12045            
12046                <li class="param">
12047                    
12048                        <code class="param-name optional">[lock=false]</code>
12049                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12050                        <span class="flag optional" title="This parameter is optional.">optional</span>
12051                    
12052
12053                    
12054
12055                    <div class="param-description">
12056                        <p>Whether this slot is the one being locked.</p>
12057
12058                    </div>
12059
12060                    
12061                </li>
12062            
12063            </ul>
12064        </div>
12065    
12066
12067    
12068
12069    
12070</div>
12071
12072                
12073                    <div id="method_purgeTextures" class="method item">
12074    <h3 class="name"><code>purgeTextures</code></h3>
12075
12076    
12077        <div class="args">
12078            <span class="paren">(</span><ul class="args-list inline commas">
12079            
12080                <li class="arg">
12081                    
12082                        <code class="optional">[count=100]</code>
12083                    
12084                </li>
12085            
12086            </ul><span class="paren">)</span>
12087        </div>
12088    
12089
12090    
12091
12092    
12093
12094    
12095
12096    
12097
12098    
12099
12100    
12101
12102    
12103
12104    <div class="meta">
12105        
12106            
12107                
12108                <p>
12109                
12110                Defined in
12111                
12112            
12113        
12114        
12115        <a href="../files/easeljs_display_StageGL.js.html#l1156"><code>purgeTextures:1156</code></a>
12116        
12117        </p>
12118
12119
12120        
12121
12122        
12123    </div>
12124
12125    <div class="description">
12126        <p>Similar to ReleaseTexture, but this function differs by searching for textures to
12127release. It works by assuming that it can purge any texture which was last used more than "count" draw calls ago.
12128Because this process is unaware of the objects and whether they may be used on your stage, false positives can
12129occur. It is recommended to manually manage your memory with <a href="../classes/StageGL.html#method_releaseTexture" class="crosslink">releaseTexture</a>,
12130however, there are many use cases where this is simpler and error-free. This process is also run by default under
12131the hood to prevent leaks. To disable it see the <a href="../classes/StageGL.html#property_autoPurge" class="crosslink">autoPurge</a> property.</p>
12132
12133    </div>
12134
12135    
12136        <div class="params">
12137            <h4>Parameters:</h4>
12138
12139            <ul class="params-list">
12140            
12141                <li class="param">
12142                    
12143                        <code class="param-name optional">[count=100]</code>
12144                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12145                        <span class="flag optional" title="This parameter is optional.">optional</span>
12146                    
12147
12148                    
12149
12150                    <div class="param-description">
12151                        <p>How many renders ago the texture was last used</p>
12152
12153                    </div>
12154
12155                    
12156                </li>
12157            
12158            </ul>
12159        </div>
12160    
12161
12162    
12163
12164    
12165</div>
12166
12167                
12168                    <div id="method_releaseTexture" class="method item">
12169    <h3 class="name"><code>releaseTexture</code></h3>
12170
12171    
12172        <div class="args">
12173            <span class="paren">(</span><ul class="args-list inline commas">
12174            
12175                <li class="arg">
12176                    
12177                        <code>item</code>
12178                    
12179                </li>
12180            
12181            </ul><span class="paren">)</span>
12182        </div>
12183    
12184
12185    
12186
12187    
12188
12189    
12190
12191    
12192
12193    
12194
12195    
12196
12197    
12198
12199    <div class="meta">
12200        
12201            
12202                
12203                <p>
12204                
12205                Defined in
12206                
12207            
12208        
12209        
12210        <a href="../files/easeljs_display_StageGL.js.html#l1090"><code>releaseTexture:1090</code></a>
12211        
12212        </p>
12213
12214
12215        
12216
12217        
12218    </div>
12219
12220    <div class="description">
12221        <p>For every image encountered StageGL registers and tracks it automatically. This tracking can cause memory leaks 
12222if not purged. StageGL, by default, automatically purges them. This does have a cost and may unfortunately find
12223false positives. This function is for manual management of this memory instead of the automatic system controlled
12224by the <a href="../classes/StageGL.html#property_autoPurge" class="crosslink">autoPurge</a> property.</p>
12225<p>This function will recursively remove all textures found on the object, its children, cache, etc. It will uncache 
12226objects and remove any texture it finds REGARDLESS of whether it is currently in use elsewhere. It is up to the
12227developer to ensure that a texture in use is not removed.</p>
12228<p>Textures in use, or to be used again shortly, should not be removed. This is simply for performance reasons.
12229Removing a texture in use will cause the texture to have to be re-uploaded slowing rendering.</p>
12230
12231    </div>
12232
12233    
12234        <div class="params">
12235            <h4>Parameters:</h4>
12236
12237            <ul class="params-list">
12238            
12239                <li class="param">
12240                    
12241                        <code class="param-name">item</code>
12242                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a> | Texture | Image | Canvas</span>
12243                    
12244
12245                    
12246
12247                    <div class="param-description">
12248                        <p>An object that used the texture to be discarded.</p>
12249
12250                    </div>
12251
12252                    
12253                </li>
12254            
12255            </ul>
12256        </div>
12257    
12258
12259    
12260
12261    
12262</div>
12263
12264                
12265                    <div id="method_removeAllChildren" class="method item inherited">
12266    <h3 class="name"><code>removeAllChildren</code></h3>
12267
12268    
12269        <span class="paren">()</span>
12270    
12271
12272    
12273
12274    
12275
12276    
12277
12278    
12279
12280    
12281
12282    
12283
12284    
12285
12286    <div class="meta">
12287        
12288            
12289                <p>Inherited from
12290                <a href="../classes/Container.html#method_removeAllChildren">Container</a>:
12291            
12292        
12293        
12294        <a href="../files/easeljs_display_Container.js.html#l300"><code>removeAllChildren:300</code></a>
12295        
12296        </p>
12297
12298
12299        
12300
12301        
12302    </div>
12303
12304    <div class="description">
12305        <p><p>Removes all children from the display list.</p></p>
12306<h4>Example</h4>
12307
12308<pre class="code prettyprint"><code>container.removeAllChildren();</code></pre>
12309
12310    </div>
12311
12312    
12313
12314    
12315
12316    
12317</div>
12318
12319                
12320                    <div id="method_removeAllEventListeners" class="method item inherited">
12321    <h3 class="name"><code>removeAllEventListeners</code></h3>
12322
12323    
12324        <div class="args">
12325            <span class="paren">(</span><ul class="args-list inline commas">
12326            
12327                <li class="arg">
12328                    
12329                        <code class="optional">[type]</code>
12330                    
12331                </li>
12332            
12333            </ul><span class="paren">)</span>
12334        </div>
12335    
12336
12337    
12338
12339    
12340
12341    
12342
12343    
12344
12345    
12346
12347    
12348
12349    
12350
12351    <div class="meta">
12352        
12353            
12354                <p>Inherited from
12355                <a href="../classes/EventDispatcher.html#method_removeAllEventListeners">EventDispatcher</a>:
12356            
12357        
12358        
12359        <a href="../files/createjs_events_EventDispatcher.js.html#l263"><code>removeAllEventListeners:263</code></a>
12360        
12361        </p>
12362
12363
12364        
12365
12366        
12367    </div>
12368
12369    <div class="description">
12370        <p><p>Removes all listeners for the specified type, or all listeners of all types.</p></p>
12371<h4>Example</h4>
12372
12373<pre class="code prettyprint"><code> // Remove all listeners
12374 displayObject.removeAllEventListeners();
12375
12376 // Remove all click listeners
12377 displayObject.removeAllEventListeners("click");</code></pre>
12378
12379    </div>
12380
12381    
12382        <div class="params">
12383            <h4>Parameters:</h4>
12384
12385            <ul class="params-list">
12386            
12387                <li class="param">
12388                    
12389                        <code class="param-name optional">[type]</code>
12390                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
12391                        <span class="flag optional" title="This parameter is optional.">optional</span>
12392                    
12393
12394                    
12395
12396                    <div class="param-description">
12397                        <p>The string type of the event. If omitted, all listeners for all types will be removed.</p>
12398
12399                    </div>
12400
12401                    
12402                </li>
12403            
12404            </ul>
12405        </div>
12406    
12407
12408    
12409
12410    
12411</div>
12412
12413                
12414                    <div id="method_removeChild" class="method item inherited">
12415    <h3 class="name"><code>removeChild</code></h3>
12416
12417    
12418        <div class="args">
12419            <span class="paren">(</span><ul class="args-list inline commas">
12420            
12421                <li class="arg">
12422                    
12423                        <code>child</code>
12424                    
12425                </li>
12426            
12427            </ul><span class="paren">)</span>
12428        </div>
12429    
12430
12431    
12432        <span class="returns-inline">
12433            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12434        </span>
12435    
12436
12437    
12438
12439    
12440
12441    
12442
12443    
12444
12445    
12446
12447    
12448
12449    <div class="meta">
12450        
12451            
12452                <p>Inherited from
12453                <a href="../classes/Container.html#method_removeChild">Container</a>:
12454            
12455        
12456        
12457        <a href="../files/easeljs_display_Container.js.html#l244"><code>removeChild:244</code></a>
12458        
12459        </p>
12460
12461
12462        
12463
12464        
12465    </div>
12466
12467    <div class="description">
12468        <p>Removes the specified child from the display list. Note that it is faster to use removeChildAt() if the index is
12469already known.</p>
12470<h4>Example</h4>
12471
12472<pre class="code prettyprint"><code> container.removeChild(child);</code></pre>
12473<p>You can also remove multiple children:</p>
12474<pre class="code prettyprint"><code> removeChild(child1, child2, ...);</code></pre>
12475<p>Returns true if the child (or children) was removed, or false if it was not in the display list.</p>
12476
12477    </div>
12478
12479    
12480        <div class="params">
12481            <h4>Parameters:</h4>
12482
12483            <ul class="params-list">
12484            
12485                <li class="param">
12486                    
12487                        <code class="param-name">child</code>
12488                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
12489                    
12490
12491                    
12492
12493                    <div class="param-description">
12494                        <p>The child to remove.</p>
12495
12496                    </div>
12497
12498                    
12499                </li>
12500            
12501            </ul>
12502        </div>
12503    
12504
12505    
12506        <div class="returns">
12507            <h4>Returns:</h4>
12508
12509            <div class="returns-description">
12510                
12511                    
12512                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
12513                    
12514                    <p>true if the child (or children) was removed, or false if it was not in the display list.</p>
12515
12516                
12517            </div>
12518        </div>
12519    
12520
12521    
12522</div>
12523
12524                
12525                    <div id="method_removeChildAt" class="method item inherited">
12526    <h3 class="name"><code>removeChildAt</code></h3>
12527
12528    
12529        <div class="args">
12530            <span class="paren">(</span><ul class="args-list inline commas">
12531            
12532                <li class="arg">
12533                    
12534                        <code>index</code>
12535                    
12536                </li>
12537            
12538            </ul><span class="paren">)</span>
12539        </div>
12540    
12541
12542    
12543        <span class="returns-inline">
12544            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12545        </span>
12546    
12547
12548    
12549
12550    
12551
12552    
12553
12554    
12555
12556    
12557
12558    
12559
12560    <div class="meta">
12561        
12562            <p>Inherited from
12563            <a href="../classes/Container.html#method_removeChildAt">
12564                Container
12565            </a>
12566            
12567            but overwritten in
12568            
12569        
12570        
12571        <a href="../files/easeljs_display_Container.js.html#l271"><code>removeChildAt:271</code></a>
12572        
12573        </p>
12574
12575
12576        
12577
12578        
12579    </div>
12580
12581    <div class="description">
12582        <p>Removes the child at the specified index from the display list, and sets its parent to null.</p>
12583<h4>Example</h4>
12584
12585<pre class="code prettyprint"><code> container.removeChildAt(2);</code></pre>
12586<p>You can also remove multiple children:</p>
12587<pre class="code prettyprint"><code> container.removeChild(2, 7, ...)</code></pre>
12588<p>Returns true if the child (or children) was removed, or false if any index was out of range.</p>
12589
12590    </div>
12591
12592    
12593        <div class="params">
12594            <h4>Parameters:</h4>
12595
12596            <ul class="params-list">
12597            
12598                <li class="param">
12599                    
12600                        <code class="param-name">index</code>
12601                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12602                    
12603
12604                    
12605
12606                    <div class="param-description">
12607                        <p>The index of the child to remove.</p>
12608
12609                    </div>
12610
12611                    
12612                </li>
12613            
12614            </ul>
12615        </div>
12616    
12617
12618    
12619        <div class="returns">
12620            <h4>Returns:</h4>
12621
12622            <div class="returns-description">
12623                
12624                    
12625                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
12626                    
12627                    <p>true if the child (or children) was removed, or false if any index was out of range.</p>
12628
12629                
12630            </div>
12631        </div>
12632    
12633
12634    
12635</div>
12636
12637                
12638                    <div id="method_removeEventListener" class="method item inherited">
12639    <h3 class="name"><code>removeEventListener</code></h3>
12640
12641    
12642        <div class="args">
12643            <span class="paren">(</span><ul class="args-list inline commas">
12644            
12645                <li class="arg">
12646                    
12647                        <code>type</code>
12648                    
12649                </li>
12650            
12651                <li class="arg">
12652                    
12653                        <code>listener</code>
12654                    
12655                </li>
12656            
12657                <li class="arg">
12658                    
12659                        <code class="optional">[useCapture]</code>
12660                    
12661                </li>
12662            
12663            </ul><span class="paren">)</span>
12664        </div>
12665    
12666
12667    
12668
12669    
12670
12671    
12672
12673    
12674
12675    
12676
12677    
12678
12679    
12680
12681    <div class="meta">
12682        
12683            
12684                <p>Inherited from
12685                <a href="../classes/EventDispatcher.html#method_removeEventListener">EventDispatcher</a>:
12686            
12687        
12688        
12689        <a href="../files/createjs_events_EventDispatcher.js.html#l219"><code>removeEventListener:219</code></a>
12690        
12691        </p>
12692
12693
12694        
12695
12696        
12697    </div>
12698
12699    <div class="description">
12700        <p><p>Removes the specified event listener.</p></p>
12701<p><p><b>Important Note:</b> that you must pass the exact function reference used when the event was added. If a proxy
12702function, or function closure is used as the callback, the proxy/closure reference must be used - a new proxy or
12703closure will not work.</p></p>
12704<h4>Example</h4>
12705
12706<pre class="code prettyprint"><code> displayObject.removeEventListener("click", handleClick);</code></pre>
12707
12708    </div>
12709
12710    
12711        <div class="params">
12712            <h4>Parameters:</h4>
12713
12714            <ul class="params-list">
12715            
12716                <li class="param">
12717                    
12718                        <code class="param-name">type</code>
12719                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
12720                    
12721
12722                    
12723
12724                    <div class="param-description">
12725                        <p>The string type of the event.</p>
12726
12727                    </div>
12728
12729                    
12730                </li>
12731            
12732                <li class="param">
12733                    
12734                        <code class="param-name">listener</code>
12735                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
12736                    
12737
12738                    
12739
12740                    <div class="param-description">
12741                        <p>The listener function or object.</p>
12742
12743                    </div>
12744
12745                    
12746                </li>
12747            
12748                <li class="param">
12749                    
12750                        <code class="param-name optional">[useCapture]</code>
12751                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12752                        <span class="flag optional" title="This parameter is optional.">optional</span>
12753                    
12754
12755                    
12756
12757                    <div class="param-description">
12758                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
12759
12760                    </div>
12761
12762                    
12763                </li>
12764            
12765            </ul>
12766        </div>
12767    
12768
12769    
12770
12771    
12772</div>
12773
12774                
12775                    <div id="method_resizeTexture" class="method item protected">
12776    <h3 class="name"><code>resizeTexture</code></h3>
12777
12778    
12779        <div class="args">
12780            <span class="paren">(</span><ul class="args-list inline commas">
12781            
12782                <li class="arg">
12783                    
12784                        <code>texture</code>
12785                    
12786                </li>
12787            
12788                <li class="arg">
12789                    
12790                        <code class="optional">[width=1]</code>
12791                    
12792                </li>
12793            
12794                <li class="arg">
12795                    
12796                        <code class="optional">[height=1]</code>
12797                    
12798                </li>
12799            
12800            </ul><span class="paren">)</span>
12801        </div>
12802    
12803
12804    
12805
12806    
12807
12808    
12809        <span class="flag protected">protected</span>
12810    
12811
12812    
12813
12814    
12815
12816    
12817
12818    
12819
12820    <div class="meta">
12821        
12822            
12823                
12824                <p>
12825                
12826                Defined in
12827                
12828            
12829        
12830        
12831        <a href="../files/easeljs_display_StageGL.js.html#l1305"><code>resizeTexture:1305</code></a>
12832        
12833        </p>
12834
12835
12836        
12837
12838        
12839    </div>
12840
12841    <div class="description">
12842        <p>Resizes a supplied texture element. May generate invalid textures in some error cases such as; when the texture
12843is too large, when an out of texture memory error occurs, or other error scenarios. Trying to use an invalid texture
12844can cause renders to hard stop on some devices. Check the WebGL bound texture after running this function.</p>
12845<p>NOTE: The supplied texture must have been made with the WebGL "texImage2D" function, all default APIs in StageGL
12846use this, so this note only matters for library developers and plugins.</p>
12847
12848    </div>
12849
12850    
12851        <div class="params">
12852            <h4>Parameters:</h4>
12853
12854            <ul class="params-list">
12855            
12856                <li class="param">
12857                    
12858                        <code class="param-name">texture</code>
12859                        <span class="type">WebGLTexture</span>
12860                    
12861
12862                    
12863
12864                    <div class="param-description">
12865                        <p>The GL Texture to be modified.</p>
12866
12867                    </div>
12868
12869                    
12870                </li>
12871            
12872                <li class="param">
12873                    
12874                        <code class="param-name optional">[width=1]</code>
12875                        <span class="type">Uint</span>
12876                        <span class="flag optional" title="This parameter is optional.">optional</span>
12877                    
12878
12879                    
12880
12881                    <div class="param-description">
12882                        <p>The width of the texture in pixels, defaults to 1</p>
12883
12884                    </div>
12885
12886                    
12887                </li>
12888            
12889                <li class="param">
12890                    
12891                        <code class="param-name optional">[height=1]</code>
12892                        <span class="type">Uint</span>
12893                        <span class="flag optional" title="This parameter is optional.">optional</span>
12894                    
12895
12896                    
12897
12898                    <div class="param-description">
12899                        <p>The height of the texture in pixels, defaults to 1</p>
12900
12901                    </div>
12902
12903                    
12904                </li>
12905            
12906            </ul>
12907        </div>
12908    
12909
12910    
12911
12912    
12913</div>
12914
12915                
12916                    <div id="method_set" class="method item inherited">
12917    <h3 class="name"><code>set</code></h3>
12918
12919    
12920        <div class="args">
12921            <span class="paren">(</span><ul class="args-list inline commas">
12922            
12923                <li class="arg">
12924                    
12925                        <code>props</code>
12926                    
12927                </li>
12928            
12929            </ul><span class="paren">)</span>
12930        </div>
12931    
12932
12933    
12934        <span class="returns-inline">
12935            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
12936        </span>
12937    
12938
12939    
12940
12941    
12942
12943    
12944
12945    
12946
12947    
12948        <span class="flag chainable">chainable</span>
12949    
12950
12951    
12952
12953    <div class="meta">
12954        
12955            
12956                <p>Inherited from
12957                <a href="../classes/DisplayObject.html#method_set">DisplayObject</a>:
12958            
12959        
12960        
12961        <a href="../files/easeljs_display_DisplayObject.js.html#l1071"><code>set:1071</code></a>
12962        
12963        </p>
12964
12965
12966        
12967
12968        
12969    </div>
12970
12971    <div class="description">
12972        <p><p>Provides a chainable shortcut method for setting a number of properties on the instance.</p></p>
12973<h4>Example</h4>
12974
12975<pre class="code prettyprint"><code> var myGraphics = new createjs.Graphics().beginFill("#ff0000").drawCircle(0, 0, 25);
12976 var shape = stage.addChild(new Shape()).set({graphics:myGraphics, x:100, y:100, alpha:0.5});</code></pre>
12977
12978    </div>
12979
12980    
12981        <div class="params">
12982            <h4>Parameters:</h4>
12983
12984            <ul class="params-list">
12985            
12986                <li class="param">
12987                    
12988                        <code class="param-name">props</code>
12989                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
12990                    
12991
12992                    
12993
12994                    <div class="param-description">
12995                        <p>A generic object containing properties to copy to the DisplayObject instance.</p>
12996
12997                    </div>
12998
12999                    
13000                </li>
13001            
13002            </ul>
13003        </div>
13004    
13005
13006    
13007        <div class="returns">
13008            <h4>Returns:</h4>
13009
13010            <div class="returns-description">
13011                
13012                    
13013                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
13014                    
13015                    <p>Returns the instance the method is called on (useful for chaining calls.)</p>
13016
13017                
13018            </div>
13019        </div>
13020    
13021
13022    
13023</div>
13024
13025                
13026                    <div id="method_setBounds" class="method item inherited">
13027    <h3 class="name"><code>setBounds</code></h3>
13028
13029    
13030        <div class="args">
13031            <span class="paren">(</span><ul class="args-list inline commas">
13032            
13033                <li class="arg">
13034                    
13035                        <code>x</code>
13036                    
13037                </li>
13038            
13039                <li class="arg">
13040                    
13041                        <code>y</code>
13042                    
13043                </li>
13044            
13045                <li class="arg">
13046                    
13047                        <code>width</code>
13048                    
13049                </li>
13050            
13051                <li class="arg">
13052                    
13053                        <code>height</code>
13054                    
13055                </li>
13056            
13057            </ul><span class="paren">)</span>
13058        </div>
13059    
13060
13061    
13062
13063    
13064
13065    
13066
13067    
13068
13069    
13070
13071    
13072
13073    
13074
13075    <div class="meta">
13076        
13077            
13078                <p>Inherited from
13079                <a href="../classes/DisplayObject.html#method_setBounds">DisplayObject</a>:
13080            
13081        
13082        
13083        <a href="../files/easeljs_display_DisplayObject.js.html#l1174"><code>setBounds:1174</code></a>
13084        
13085        </p>
13086
13087
13088        
13089
13090        
13091    </div>
13092
13093    <div class="description">
13094        <p>Allows you to manually specify the bounds of an object that either cannot calculate their own bounds (ex. Shape &amp;
13095Text) for future reference, or so the object can be included in Container bounds. Manually set bounds will always
13096override calculated bounds.</p>
13097<p>The bounds should be specified in the object&#39;s local (untransformed) coordinates. For example, a Shape instance
13098with a 25px radius circle centered at 0,0 would have bounds of (-25, -25, 50, 50).</p>
13099
13100    </div>
13101
13102    
13103        <div class="params">
13104            <h4>Parameters:</h4>
13105
13106            <ul class="params-list">
13107            
13108                <li class="param">
13109                    
13110                        <code class="param-name">x</code>
13111                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13112                    
13113
13114                    
13115
13116                    <div class="param-description">
13117                        <p>The x origin of the bounds. Pass null to remove the manual bounds.</p>
13118
13119                    </div>
13120
13121                    
13122                </li>
13123            
13124                <li class="param">
13125                    
13126                        <code class="param-name">y</code>
13127                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13128                    
13129
13130                    
13131
13132                    <div class="param-description">
13133                        <p>The y origin of the bounds.</p>
13134
13135                    </div>
13136
13137                    
13138                </li>
13139            
13140                <li class="param">
13141                    
13142                        <code class="param-name">width</code>
13143                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13144                    
13145
13146                    
13147
13148                    <div class="param-description">
13149                        <p>The width of the bounds.</p>
13150
13151                    </div>
13152
13153                    
13154                </li>
13155            
13156                <li class="param">
13157                    
13158                        <code class="param-name">height</code>
13159                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13160                    
13161
13162                    
13163
13164                    <div class="param-description">
13165                        <p>The height of the bounds.</p>
13166
13167                    </div>
13168
13169                    
13170                </li>
13171            
13172            </ul>
13173        </div>
13174    
13175
13176    
13177
13178    
13179</div>
13180
13181                
13182                    <div id="method_setChildIndex" class="method item inherited">
13183    <h3 class="name"><code>setChildIndex</code></h3>
13184
13185    
13186        <div class="args">
13187            <span class="paren">(</span><ul class="args-list inline commas">
13188            
13189                <li class="arg">
13190                    
13191                        <code>child</code>
13192                    
13193                </li>
13194            
13195                <li class="arg">
13196                    
13197                        <code>index</code>
13198                    
13199                </li>
13200            
13201            </ul><span class="paren">)</span>
13202        </div>
13203    
13204
13205    
13206
13207    
13208
13209    
13210
13211    
13212
13213    
13214
13215    
13216
13217    
13218
13219    <div class="meta">
13220        
13221            
13222                <p>Inherited from
13223                <a href="../classes/Container.html#method_setChildIndex">Container</a>:
13224            
13225        
13226        
13227        <a href="../files/easeljs_display_Container.js.html#l413"><code>setChildIndex:413</code></a>
13228        
13229        </p>
13230
13231
13232        
13233
13234        
13235    </div>
13236
13237    <div class="description">
13238        <p>Changes the depth of the specified child. Fails silently if the child is not a child of this container, or the index is out of range.</p>
13239
13240    </div>
13241
13242    
13243        <div class="params">
13244            <h4>Parameters:</h4>
13245
13246            <ul class="params-list">
13247            
13248                <li class="param">
13249                    
13250                        <code class="param-name">child</code>
13251                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
13252                    
13253
13254                    
13255
13256                    <div class="param-description">
13257                        
13258                    </div>
13259
13260                    
13261                </li>
13262            
13263                <li class="param">
13264                    
13265                        <code class="param-name">index</code>
13266                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13267                    
13268
13269                    
13270
13271                    <div class="param-description">
13272                        
13273                    </div>
13274
13275                    
13276                </li>
13277            
13278            </ul>
13279        </div>
13280    
13281
13282    
13283
13284    
13285</div>
13286
13287                
13288                    <div id="method_setClearColor" class="method item">
13289    <h3 class="name"><code>setClearColor</code></h3>
13290
13291    
13292        <div class="args">
13293            <span class="paren">(</span><ul class="args-list inline commas">
13294            
13295                <li class="arg">
13296                    
13297                        <code class="optional">[color=0x00000000]</code>
13298                    
13299                </li>
13300            
13301            </ul><span class="paren">)</span>
13302        </div>
13303    
13304
13305    
13306
13307    
13308
13309    
13310
13311    
13312
13313    
13314
13315    
13316
13317    
13318
13319    <div class="meta">
13320        
13321            
13322                
13323                <p>
13324                
13325                Defined in
13326                
13327            
13328        
13329        
13330        <a href="../files/easeljs_display_StageGL.js.html#l1392"><code>setClearColor:1392</code></a>
13331        
13332        </p>
13333
13334
13335        
13336
13337        
13338    </div>
13339
13340    <div class="description">
13341        <p>Changes the webGL clear, aka "background" color to the provided value. A transparent clear is recommended, as
13342non-transparent colours may create undesired boxes around some visuals.</p>
13343<p>The clear color will also be used for filters and other "render textures". The stage background will ignore the
13344transparency value and display a solid color normally. For the stage to recognize and use transparency it must be
13345created with the transparent flag set to <code>true</code> (see StageGL/constructor)).</p>
13346<p>Using "transparent white" to demonstrate, the valid data formats are as follows:</p>
13347<ul>
13348    <li>"#FFF"</li>
13349    <li>"#FFFFFF"</li>
13350    <li>"#FFFFFF00"</li>
13351    <li>"rgba(255,255,255,0.0)"</li>
13352</ul>
13353    </div>
13354
13355    
13356        <div class="params">
13357            <h4>Parameters:</h4>
13358
13359            <ul class="params-list">
13360            
13361                <li class="param">
13362                    
13363                        <code class="param-name optional">[color=0x00000000]</code>
13364                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | Int</span>
13365                        <span class="flag optional" title="This parameter is optional.">optional</span>
13366                    
13367
13368                    
13369
13370                    <div class="param-description">
13371                        <p>The new color to use as the background</p>
13372
13373                    </div>
13374
13375                    
13376                </li>
13377            
13378            </ul>
13379        </div>
13380    
13381
13382    
13383
13384    
13385</div>
13386
13387                
13388                    <div id="method_setTextureParams" class="method item">
13389    <h3 class="name"><code>setTextureParams</code></h3>
13390
13391    
13392        <div class="args">
13393            <span class="paren">(</span><ul class="args-list inline commas">
13394            
13395                <li class="arg">
13396                    
13397                        <code>gl</code>
13398                    
13399                </li>
13400            
13401                <li class="arg">
13402                    
13403                        <code class="optional">[isPOT=false]</code>
13404                    
13405                </li>
13406            
13407            </ul><span class="paren">)</span>
13408        </div>
13409    
13410
13411    
13412
13413    
13414
13415    
13416
13417    
13418
13419    
13420
13421    
13422
13423    
13424
13425    <div class="meta">
13426        
13427            
13428                
13429                <p>
13430                
13431                Defined in
13432                
13433            
13434        
13435        
13436        <a href="../files/easeljs_display_StageGL.js.html#l1373"><code>setTextureParams:1373</code></a>
13437        
13438        </p>
13439
13440
13441        
13442
13443        
13444    </div>
13445
13446    <div class="description">
13447        <p>Common utility function used to apply the correct texture processing parameters for the bound texture.</p>
13448
13449    </div>
13450
13451    
13452        <div class="params">
13453            <h4>Parameters:</h4>
13454
13455            <ul class="params-list">
13456            
13457                <li class="param">
13458                    
13459                        <code class="param-name">gl</code>
13460                        <span class="type">WebGLRenderingContext</span>
13461                    
13462
13463                    
13464
13465                    <div class="param-description">
13466                        <p>The canvas WebGL context object to draw into.</p>
13467
13468                    </div>
13469
13470                    
13471                </li>
13472            
13473                <li class="param">
13474                    
13475                        <code class="param-name optional">[isPOT=false]</code>
13476                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
13477                        <span class="flag optional" title="This parameter is optional.">optional</span>
13478                    
13479
13480                    
13481
13482                    <div class="param-description">
13483                        <p>Marks whether the texture is "Power of Two", this may allow better quality AA.</p>
13484
13485                    </div>
13486
13487                    
13488                </li>
13489            
13490            </ul>
13491        </div>
13492    
13493
13494    
13495
13496    
13497</div>
13498
13499                
13500                    <div id="method_setTransform" class="method item inherited">
13501    <h3 class="name"><code>setTransform</code></h3>
13502
13503    
13504        <div class="args">
13505            <span class="paren">(</span><ul class="args-list inline commas">
13506            
13507                <li class="arg">
13508                    
13509                        <code class="optional">[x=0]</code>
13510                    
13511                </li>
13512            
13513                <li class="arg">
13514                    
13515                        <code class="optional">[y=0]</code>
13516                    
13517                </li>
13518            
13519                <li class="arg">
13520                    
13521                        <code class="optional">[scaleX=1]</code>
13522                    
13523                </li>
13524            
13525                <li class="arg">
13526                    
13527                        <code class="optional">[scaleY=1]</code>
13528                    
13529                </li>
13530            
13531                <li class="arg">
13532                    
13533                        <code class="optional">[rotation=0]</code>
13534                    
13535                </li>
13536            
13537                <li class="arg">
13538                    
13539                        <code class="optional">[skewX=0]</code>
13540                    
13541                </li>
13542            
13543                <li class="arg">
13544                    
13545                        <code class="optional">[skewY=0]</code>
13546                    
13547                </li>
13548            
13549                <li class="arg">
13550                    
13551                        <code class="optional">[regX=0]</code>
13552                    
13553                </li>
13554            
13555                <li class="arg">
13556                    
13557                        <code class="optional">[regY=0]</code>
13558                    
13559                </li>
13560            
13561            </ul><span class="paren">)</span>
13562        </div>
13563    
13564
13565    
13566        <span class="returns-inline">
13567            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
13568        </span>
13569    
13570
13571    
13572
13573    
13574
13575    
13576
13577    
13578
13579    
13580        <span class="flag chainable">chainable</span>
13581    
13582
13583    
13584
13585    <div class="meta">
13586        
13587            
13588                <p>Inherited from
13589                <a href="../classes/DisplayObject.html#method_setTransform">DisplayObject</a>:
13590            
13591        
13592        
13593        <a href="../files/easeljs_display_DisplayObject.js.html#l957"><code>setTransform:957</code></a>
13594        
13595        </p>
13596
13597
13598        
13599
13600        
13601    </div>
13602
13603    <div class="description">
13604        <p><p>Shortcut method to quickly set the transform properties on the display object. All parameters are optional.
13605Omitted parameters will have the default value set.</p></p>
13606<h4>Example</h4>
13607
13608<pre class="code prettyprint"><code> displayObject.setTransform(100, 100, 2, 2);</code></pre>
13609
13610    </div>
13611
13612    
13613        <div class="params">
13614            <h4>Parameters:</h4>
13615
13616            <ul class="params-list">
13617            
13618                <li class="param">
13619                    
13620                        <code class="param-name optional">[x=0]</code>
13621                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13622                        <span class="flag optional" title="This parameter is optional.">optional</span>
13623                    
13624
13625                    
13626
13627                    <div class="param-description">
13628                        <p>The horizontal translation (x position) in pixels</p>
13629
13630                    </div>
13631
13632                    
13633                </li>
13634            
13635                <li class="param">
13636                    
13637                        <code class="param-name optional">[y=0]</code>
13638                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13639                        <span class="flag optional" title="This parameter is optional.">optional</span>
13640                    
13641
13642                    
13643
13644                    <div class="param-description">
13645                        <p>The vertical translation (y position) in pixels</p>
13646
13647                    </div>
13648
13649                    
13650                </li>
13651            
13652                <li class="param">
13653                    
13654                        <code class="param-name optional">[scaleX=1]</code>
13655                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13656                        <span class="flag optional" title="This parameter is optional.">optional</span>
13657                    
13658
13659                    
13660
13661                    <div class="param-description">
13662                        <p>The horizontal scale, as a percentage of 1</p>
13663
13664                    </div>
13665
13666                    
13667                </li>
13668            
13669                <li class="param">
13670                    
13671                        <code class="param-name optional">[scaleY=1]</code>
13672                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13673                        <span class="flag optional" title="This parameter is optional.">optional</span>
13674                    
13675
13676                    
13677
13678                    <div class="param-description">
13679                        <p>the vertical scale, as a percentage of 1</p>
13680
13681                    </div>
13682
13683                    
13684                </li>
13685            
13686                <li class="param">
13687                    
13688                        <code class="param-name optional">[rotation=0]</code>
13689                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13690                        <span class="flag optional" title="This parameter is optional.">optional</span>
13691                    
13692
13693                    
13694
13695                    <div class="param-description">
13696                        <p>The rotation, in degrees</p>
13697
13698                    </div>
13699
13700                    
13701                </li>
13702            
13703                <li class="param">
13704                    
13705                        <code class="param-name optional">[skewX=0]</code>
13706                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13707                        <span class="flag optional" title="This parameter is optional.">optional</span>
13708                    
13709
13710                    
13711
13712                    <div class="param-description">
13713                        <p>The horizontal skew factor</p>
13714
13715                    </div>
13716
13717                    
13718                </li>
13719            
13720                <li class="param">
13721                    
13722                        <code class="param-name optional">[skewY=0]</code>
13723                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13724                        <span class="flag optional" title="This parameter is optional.">optional</span>
13725                    
13726
13727                    
13728
13729                    <div class="param-description">
13730                        <p>The vertical skew factor</p>
13731
13732                    </div>
13733
13734                    
13735                </li>
13736            
13737                <li class="param">
13738                    
13739                        <code class="param-name optional">[regX=0]</code>
13740                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13741                        <span class="flag optional" title="This parameter is optional.">optional</span>
13742                    
13743
13744                    
13745
13746                    <div class="param-description">
13747                        <p>The horizontal registration point in pixels</p>
13748
13749                    </div>
13750
13751                    
13752                </li>
13753            
13754                <li class="param">
13755                    
13756                        <code class="param-name optional">[regY=0]</code>
13757                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13758                        <span class="flag optional" title="This parameter is optional.">optional</span>
13759                    
13760
13761                    
13762
13763                    <div class="param-description">
13764                        <p>The vertical registration point in pixels</p>
13765
13766                    </div>
13767
13768                    
13769                </li>
13770            
13771            </ul>
13772        </div>
13773    
13774
13775    
13776        <div class="returns">
13777            <h4>Returns:</h4>
13778
13779            <div class="returns-description">
13780                
13781                    
13782                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
13783                    
13784                    <p>Returns this instance. Useful for chaining commands.</p>
13785
13786                
13787            </div>
13788        </div>
13789    
13790
13791    
13792</div>
13793
13794                
13795                    <div id="method_sortChildren" class="method item inherited">
13796    <h3 class="name"><code>sortChildren</code></h3>
13797
13798    
13799        <div class="args">
13800            <span class="paren">(</span><ul class="args-list inline commas">
13801            
13802                <li class="arg">
13803                    
13804                        <code>sortFunction</code>
13805                    
13806                </li>
13807            
13808            </ul><span class="paren">)</span>
13809        </div>
13810    
13811
13812    
13813
13814    
13815
13816    
13817
13818    
13819
13820    
13821
13822    
13823
13824    
13825
13826    <div class="meta">
13827        
13828            
13829                <p>Inherited from
13830                <a href="../classes/Container.html#method_sortChildren">Container</a>:
13831            
13832        
13833        
13834        <a href="../files/easeljs_display_Container.js.html#l343"><code>sortChildren:343</code></a>
13835        
13836        </p>
13837
13838
13839        
13840
13841        
13842    </div>
13843
13844    <div class="description">
13845        <p><p>Performs an array sort operation on the child list.</p></p>
13846<h4>Example: Display children with a higher y in front.</h4>
13847
13848<pre class="code prettyprint"><code> var sortFunction = function(obj1, obj2, options) {
13849     if (obj1.y &gt; obj2.y) { return 1; }
13850     if (obj1.y &lt; obj2.y) { return -1; }
13851     return 0;
13852 }
13853 container.sortChildren(sortFunction);</code></pre>
13854
13855    </div>
13856
13857    
13858        <div class="params">
13859            <h4>Parameters:</h4>
13860
13861            <ul class="params-list">
13862            
13863                <li class="param">
13864                    
13865                        <code class="param-name">sortFunction</code>
13866                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
13867                    
13868
13869                    
13870
13871                    <div class="param-description">
13872                        <p>the function to use to sort the child list. See JavaScript&#39;s <code>Array.sort</code>
13873documentation for details.</p>
13874
13875                    </div>
13876
13877                    
13878                </li>
13879            
13880            </ul>
13881        </div>
13882    
13883
13884    
13885
13886    
13887</div>
13888
13889                
13890                    <div id="method_swapChildren" class="method item inherited">
13891    <h3 class="name"><code>swapChildren</code></h3>
13892
13893    
13894        <div class="args">
13895            <span class="paren">(</span><ul class="args-list inline commas">
13896            
13897                <li class="arg">
13898                    
13899                        <code>child1</code>
13900                    
13901                </li>
13902            
13903                <li class="arg">
13904                    
13905                        <code>child2</code>
13906                    
13907                </li>
13908            
13909            </ul><span class="paren">)</span>
13910        </div>
13911    
13912
13913    
13914
13915    
13916
13917    
13918
13919    
13920
13921    
13922
13923    
13924
13925    
13926
13927    <div class="meta">
13928        
13929            
13930                <p>Inherited from
13931                <a href="../classes/Container.html#method_swapChildren">Container</a>:
13932            
13933        
13934        
13935        <a href="../files/easeljs_display_Container.js.html#l393"><code>swapChildren:393</code></a>
13936        
13937        </p>
13938
13939
13940        
13941
13942        
13943    </div>
13944
13945    <div class="description">
13946        <p>Swaps the specified children&#39;s depth in the display list. Fails silently if either child is not a child of this
13947Container.</p>
13948
13949    </div>
13950
13951    
13952        <div class="params">
13953            <h4>Parameters:</h4>
13954
13955            <ul class="params-list">
13956            
13957                <li class="param">
13958                    
13959                        <code class="param-name">child1</code>
13960                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
13961                    
13962
13963                    
13964
13965                    <div class="param-description">
13966                        
13967                    </div>
13968
13969                    
13970                </li>
13971            
13972                <li class="param">
13973                    
13974                        <code class="param-name">child2</code>
13975                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
13976                    
13977
13978                    
13979
13980                    <div class="param-description">
13981                        
13982                    </div>
13983
13984                    
13985                </li>
13986            
13987            </ul>
13988        </div>
13989    
13990
13991    
13992
13993    
13994</div>
13995
13996                
13997                    <div id="method_swapChildrenAt" class="method item inherited">
13998    <h3 class="name"><code>swapChildrenAt</code></h3>
13999
14000    
14001        <div class="args">
14002            <span class="paren">(</span><ul class="args-list inline commas">
14003            
14004                <li class="arg">
14005                    
14006                        <code>index1</code>
14007                    
14008                </li>
14009            
14010                <li class="arg">
14011                    
14012                        <code>index2</code>
14013                    
14014                </li>
14015            
14016            </ul><span class="paren">)</span>
14017        </div>
14018    
14019
14020    
14021
14022    
14023
14024    
14025
14026    
14027
14028    
14029
14030    
14031
14032    
14033
14034    <div class="meta">
14035        
14036            
14037                <p>Inherited from
14038                <a href="../classes/Container.html#method_swapChildrenAt">Container</a>:
14039            
14040        
14041        
14042        <a href="../files/easeljs_display_Container.js.html#l378"><code>swapChildrenAt:378</code></a>
14043        
14044        </p>
14045
14046
14047        
14048
14049        
14050    </div>
14051
14052    <div class="description">
14053        <p>Swaps the children at the specified indexes. Fails silently if either index is out of range.</p>
14054
14055    </div>
14056
14057    
14058        <div class="params">
14059            <h4>Parameters:</h4>
14060
14061            <ul class="params-list">
14062            
14063                <li class="param">
14064                    
14065                        <code class="param-name">index1</code>
14066                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
14067                    
14068
14069                    
14070
14071                    <div class="param-description">
14072                        
14073                    </div>
14074
14075                    
14076                </li>
14077            
14078                <li class="param">
14079                    
14080                        <code class="param-name">index2</code>
14081                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
14082                    
14083
14084                    
14085
14086                    <div class="param-description">
14087                        
14088                    </div>
14089
14090                    
14091                </li>
14092            
14093            </ul>
14094        </div>
14095    
14096
14097    
14098
14099    
14100</div>
14101
14102                
14103                    <div id="method_tick" class="method item inherited">
14104    <h3 class="name"><code>tick</code></h3>
14105
14106    
14107        <div class="args">
14108            <span class="paren">(</span><ul class="args-list inline commas">
14109            
14110                <li class="arg">
14111                    
14112                        <code class="optional">[props]</code>
14113                    
14114                </li>
14115            
14116            </ul><span class="paren">)</span>
14117        </div>
14118    
14119
14120    
14121
14122    
14123
14124    
14125
14126    
14127
14128    
14129
14130    
14131
14132    
14133
14134    <div class="meta">
14135        
14136            
14137                <p>Inherited from
14138                <a href="../classes/Stage.html#method_tick">Stage</a>:
14139            
14140        
14141        
14142        <a href="../files/easeljs_display_Stage.js.html#l380"><code>tick:380</code></a>
14143        
14144        </p>
14145
14146
14147        
14148
14149        
14150    </div>
14151
14152    <div class="description">
14153        <p><p>Propagates a tick event through the display list. This is automatically called by <a href="../classes/Stage.html#method_update" class="crosslink">update</a>
14154unless <a href="../classes/Stage.html#property_tickOnUpdate" class="crosslink">tickOnUpdate</a> is set to false.</p></p>
14155<p><p>If a props object is passed to <code>tick()</code>, then all of its properties will be copied to the event object that is
14156propagated to listeners.</p></p>
14157<p><p>Some time-based features in EaselJS (for example Sprite/framerate require that
14158a <a href="../classes/Ticker.html#event_tick" class="crosslink">tick</a> event object (or equivalent object with a delta property) be
14159passed as the <code>props</code> parameter to <code>tick()</code>. For example:</p></p>
14160<pre class="code prettyprint"><code>Ticker.on("tick", handleTick);
14161function handleTick(evtObj) {
14162    // clone the event object from Ticker, and add some custom data to it:
14163    var evt = evtObj.clone().set({greeting:"hello", name:"world"});
14164
14165    // pass it to stage.update():
14166    myStage.update(evt); // subsequently calls tick() with the same param
14167}
14168
14169// ...
14170myDisplayObject.on("tick", handleDisplayObjectTick);
14171function handleDisplayObjectTick(evt) {
14172    console.log(evt.delta); // the delta property from the Ticker tick event object
14173    console.log(evt.greeting, evt.name); // custom data: "hello world"
14174}</code></pre>
14175
14176    </div>
14177
14178    
14179        <div class="params">
14180            <h4>Parameters:</h4>
14181
14182            <ul class="params-list">
14183            
14184                <li class="param">
14185                    
14186                        <code class="param-name optional">[props]</code>
14187                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
14188                        <span class="flag optional" title="This parameter is optional.">optional</span>
14189                    
14190
14191                    
14192
14193                    <div class="param-description">
14194                        <p>An object with properties that should be copied to the event object. Should usually be a Ticker event object, or similar object with a delta property.</p>
14195
14196                    </div>
14197
14198                    
14199                </li>
14200            
14201            </ul>
14202        </div>
14203    
14204
14205    
14206
14207    
14208</div>
14209
14210                
14211                    <div id="method_toDataURL" class="method item inherited">
14212    <h3 class="name"><code>toDataURL</code></h3>
14213
14214    
14215        <div class="args">
14216            <span class="paren">(</span><ul class="args-list inline commas">
14217            
14218                <li class="arg">
14219                    
14220                        <code class="optional">[backgroundColor]</code>
14221                    
14222                </li>
14223            
14224                <li class="arg">
14225                    
14226                        <code class="optional">[mimeType=&quot;image/png&quot;]</code>
14227                    
14228                </li>
14229            
14230            </ul><span class="paren">)</span>
14231        </div>
14232    
14233
14234    
14235        <span class="returns-inline">
14236            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
14237        </span>
14238    
14239
14240    
14241
14242    
14243
14244    
14245
14246    
14247
14248    
14249
14250    
14251
14252    <div class="meta">
14253        
14254            
14255                <p>Inherited from
14256                <a href="../classes/Stage.html#method_toDataURL">Stage</a>:
14257            
14258        
14259        
14260        <a href="../files/easeljs_display_Stage.js.html#l449"><code>toDataURL:449</code></a>
14261        
14262        </p>
14263
14264
14265        
14266
14267        
14268    </div>
14269
14270    <div class="description">
14271        <p>Returns a data url that contains a Base64-encoded image of the contents of the stage. The returned data url can
14272be specified as the src value of an image element.</p>
14273
14274    </div>
14275
14276    
14277        <div class="params">
14278            <h4>Parameters:</h4>
14279
14280            <ul class="params-list">
14281            
14282                <li class="param">
14283                    
14284                        <code class="param-name optional">[backgroundColor]</code>
14285                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
14286                        <span class="flag optional" title="This parameter is optional.">optional</span>
14287                    
14288
14289                    
14290
14291                    <div class="param-description">
14292                        <p>The background color to be used for the generated image. Any valid CSS color
14293value is allowed. The default value is a transparent background.</p>
14294
14295                    </div>
14296
14297                    
14298                </li>
14299            
14300                <li class="param">
14301                    
14302                        <code class="param-name optional">[mimeType=&quot;image/png&quot;]</code>
14303                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
14304                        <span class="flag optional" title="This parameter is optional.">optional</span>
14305                    
14306
14307                    
14308
14309                    <div class="param-description">
14310                        <p>The MIME type of the image format to be create. The default is "image/png". If an unknown MIME type
14311is passed in, or if the browser does not support the specified MIME type, the default value will be used.</p>
14312
14313                    </div>
14314
14315                    
14316                </li>
14317            
14318            </ul>
14319        </div>
14320    
14321
14322    
14323        <div class="returns">
14324            <h4>Returns:</h4>
14325
14326            <div class="returns-description">
14327                
14328                    
14329                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
14330                    
14331                    <p>a Base64 encoded image.</p>
14332
14333                
14334            </div>
14335        </div>
14336    
14337
14338    
14339</div>
14340
14341                
14342                    <div id="method_toString" class="method item inherited">
14343    <h3 class="name"><code>toString</code></h3>
14344
14345    
14346        <span class="paren">()</span>
14347    
14348
14349    
14350        <span class="returns-inline">
14351            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
14352        </span>
14353    
14354
14355    
14356
14357    
14358
14359    
14360
14361    
14362
14363    
14364
14365    
14366
14367    <div class="meta">
14368        
14369            <p>Inherited from
14370            <a href="../classes/EventDispatcher.html#method_toString">
14371                EventDispatcher
14372            </a>
14373            
14374            but overwritten in
14375            
14376        
14377        
14378        <a href="../files/easeljs_display_Stage.js.html#l560"><code>toString:560</code></a>
14379        
14380        </p>
14381
14382
14383        
14384
14385        
14386    </div>
14387
14388    <div class="description">
14389        <p>Returns a string representation of this object.</p>
14390
14391    </div>
14392
14393    
14394
14395    
14396        <div class="returns">
14397            <h4>Returns:</h4>
14398
14399            <div class="returns-description">
14400                
14401                    
14402                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
14403                    
14404                    <p>a string representation of the instance.</p>
14405
14406                
14407            </div>
14408        </div>
14409    
14410
14411    
14412</div>
14413
14414                
14415                    <div id="method_uncache" class="method item inherited">
14416    <h3 class="name"><code>uncache</code></h3>
14417
14418    
14419        <span class="paren">()</span>
14420    
14421
14422    
14423
14424    
14425
14426    
14427
14428    
14429
14430    
14431
14432    
14433
14434    
14435
14436    <div class="meta">
14437        
14438            
14439                <p>Inherited from
14440                <a href="../classes/DisplayObject.html#method_uncache">DisplayObject</a>:
14441            
14442        
14443        
14444        <a href="../files/easeljs_display_DisplayObject.js.html#l864"><code>uncache:864</code></a>
14445        
14446        </p>
14447
14448
14449        
14450
14451        
14452    </div>
14453
14454    <div class="description">
14455        <p>Clears the current cache. See <a href="../classes/DisplayObject.html#method_cache" class="crosslink">cache</a> for more information.</p>
14456
14457    </div>
14458
14459    
14460
14461    
14462
14463    
14464</div>
14465
14466                
14467                    <div id="method_update" class="method item inherited">
14468    <h3 class="name"><code>update</code></h3>
14469
14470    
14471        <div class="args">
14472            <span class="paren">(</span><ul class="args-list inline commas">
14473            
14474                <li class="arg">
14475                    
14476                        <code class="optional">[props]</code>
14477                    
14478                </li>
14479            
14480            </ul><span class="paren">)</span>
14481        </div>
14482    
14483
14484    
14485
14486    
14487
14488    
14489
14490    
14491
14492    
14493
14494    
14495
14496    
14497
14498    <div class="meta">
14499        
14500            
14501                <p>Inherited from
14502                <a href="../classes/Stage.html#method_update">Stage</a>:
14503            
14504        
14505        
14506        <a href="../files/easeljs_display_Stage.js.html#l349"><code>update:349</code></a>
14507        
14508        </p>
14509
14510
14511        
14512
14513        
14514    </div>
14515
14516    <div class="description">
14517        <p>Each time the update method is called, the stage will call <a href="../classes/Stage.html#method_tick" class="crosslink">tick</a>
14518unless <a href="../classes/Stage.html#property_tickOnUpdate" class="crosslink">tickOnUpdate</a> is set to false,
14519and then render the display list to the canvas.</p>
14520
14521    </div>
14522
14523    
14524        <div class="params">
14525            <h4>Parameters:</h4>
14526
14527            <ul class="params-list">
14528            
14529                <li class="param">
14530                    
14531                        <code class="param-name optional">[props]</code>
14532                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
14533                        <span class="flag optional" title="This parameter is optional.">optional</span>
14534                    
14535
14536                    
14537
14538                    <div class="param-description">
14539                        <p>Props object to pass to <code>tick()</code>. Should usually be a <a href="../classes/Ticker.html" class="crosslink">Ticker</a> event object, or similar object with a delta property.</p>
14540
14541                    </div>
14542
14543                    
14544                </li>
14545            
14546            </ul>
14547        </div>
14548    
14549
14550    
14551
14552    
14553</div>
14554
14555                
14556                    <div id="method_updateCache" class="method item inherited">
14557    <h3 class="name"><code>updateCache</code></h3>
14558
14559    
14560        <div class="args">
14561            <span class="paren">(</span><ul class="args-list inline commas">
14562            
14563                <li class="arg">
14564                    
14565                        <code>compositeOperation</code>
14566                    
14567                </li>
14568            
14569            </ul><span class="paren">)</span>
14570        </div>
14571    
14572
14573    
14574
14575    
14576
14577    
14578
14579    
14580
14581    
14582
14583    
14584
14585    
14586
14587    <div class="meta">
14588        
14589            
14590                <p>Inherited from
14591                <a href="../classes/DisplayObject.html#method_updateCache">DisplayObject</a>:
14592            
14593        
14594        
14595        <a href="../files/easeljs_display_DisplayObject.js.html#l835"><code>updateCache:835</code></a>
14596        
14597        </p>
14598
14599
14600        
14601
14602        
14603    </div>
14604
14605    <div class="description">
14606        <p>Redraws the display object to its cache. Calling updateCache without an active cache will throw an error.
14607If compositeOperation is null the current cache will be cleared prior to drawing. Otherwise the display object
14608will be drawn over the existing cache using the specified compositeOperation.</p>
14609<p><h4>Example</h4>
14610Clear the current graphics of a cached shape, draw some new instructions, and then update the cache. The new line
14611will be drawn on top of the old one.</p>
14612<pre class="code prettyprint"><code> // Not shown: Creating the shape, and caching it.
14613 shapeInstance.clear();
14614 shapeInstance.setStrokeStyle(3).beginStroke("#ff0000").moveTo(100, 100).lineTo(200,200);
14615 shapeInstance.updateCache();</code></pre>
14616<p>In previous versions caching was handled on DisplayObject but has since been moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>.
14617This allows for easier interaction and alternate cache methods like WebGL and <a href="../classes/StageGL.html" class="crosslink">StageGL</a>.</p>
14618
14619    </div>
14620
14621    
14622        <div class="params">
14623            <h4>Parameters:</h4>
14624
14625            <ul class="params-list">
14626            
14627                <li class="param">
14628                    
14629                        <code class="param-name">compositeOperation</code>
14630                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
14631                    
14632
14633                    
14634
14635                    <div class="param-description">
14636                        <p>The compositeOperation to use, or null to clear the cache and redraw it.
14637<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
14638whatwg spec on compositing</a>.</p>
14639
14640                    </div>
14641
14642                    
14643                </li>
14644            
14645            </ul>
14646        </div>
14647    
14648
14649    
14650
14651    
14652</div>
14653
14654                
14655                    <div id="method_updateContext" class="method item inherited">
14656    <h3 class="name"><code>updateContext</code></h3>
14657
14658    
14659        <div class="args">
14660            <span class="paren">(</span><ul class="args-list inline commas">
14661            
14662                <li class="arg">
14663                    
14664                        <code>ctx</code>
14665                    
14666                </li>
14667            
14668            </ul><span class="paren">)</span>
14669        </div>
14670    
14671
14672    
14673
14674    
14675
14676    
14677
14678    
14679
14680    
14681
14682    
14683
14684    
14685
14686    <div class="meta">
14687        
14688            
14689                <p>Inherited from
14690                <a href="../classes/DisplayObject.html#method_updateContext">DisplayObject</a>:
14691            
14692        
14693        
14694        <a href="../files/easeljs_display_DisplayObject.js.html#l760"><code>updateContext:760</code></a>
14695        
14696        </p>
14697
14698
14699        
14700
14701        
14702    </div>
14703
14704    <div class="description">
14705        <p>Applies this display object&#39;s transformation, alpha, globalCompositeOperation, clipping path (mask), and shadow
14706to the specified context. This is typically called prior to <a href="../classes/DisplayObject.html#method_draw" class="crosslink">draw</a>.</p>
14707
14708    </div>
14709
14710    
14711        <div class="params">
14712            <h4>Parameters:</h4>
14713
14714            <ul class="params-list">
14715            
14716                <li class="param">
14717                    
14718                        <code class="param-name">ctx</code>
14719                        <span class="type">CanvasRenderingContext2D</span>
14720                    
14721
14722                    
14723
14724                    <div class="param-description">
14725                        <p>The canvas 2D to update.</p>
14726
14727                    </div>
14728
14729                    
14730                </li>
14731            
14732            </ul>
14733        </div>
14734    
14735
14736    
14737
14738    
14739</div>
14740
14741                
14742                    <div id="method_updateSimultaneousTextureCount" class="method item">
14743    <h3 class="name"><code>updateSimultaneousTextureCount</code></h3>
14744
14745    
14746        <div class="args">
14747            <span class="paren">(</span><ul class="args-list inline commas">
14748            
14749                <li class="arg">
14750                    
14751                        <code class="optional">[count=1]</code>
14752                    
14753                </li>
14754            
14755            </ul><span class="paren">)</span>
14756        </div>
14757    
14758
14759    
14760
14761    
14762
14763    
14764
14765    
14766
14767    
14768
14769    
14770
14771    
14772
14773    <div class="meta">
14774        
14775            
14776                
14777                <p>
14778                
14779                Defined in
14780                
14781            
14782        
14783        
14784        <a href="../files/easeljs_display_StageGL.js.html#l1180"><code>updateSimultaneousTextureCount:1180</code></a>
14785        
14786        </p>
14787
14788
14789        
14790
14791        
14792    </div>
14793
14794    <div class="description">
14795        <p>Try to set the max textures the system can handle. It should default to the hardware maximum, and lower values
14796may limit performance. Some devices have been known to mis-report their max textures, or you may need a standard
14797baseline cross devices for testing. Barring the previous suggestions, there is little need to call this function
14798as the library will automatically try to find the best value.</p>
14799<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
14800
14801    </div>
14802
14803    
14804        <div class="params">
14805            <h4>Parameters:</h4>
14806
14807            <ul class="params-list">
14808            
14809                <li class="param">
14810                    
14811                        <code class="param-name optional">[count=1]</code>
14812                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
14813                        <span class="flag optional" title="This parameter is optional.">optional</span>
14814                    
14815
14816                    
14817
14818                    <div class="param-description">
14819                        <p>The number of textures intended for simultaneous loading.</p>
14820
14821                    </div>
14822
14823                    
14824                </li>
14825            
14826            </ul>
14827        </div>
14828    
14829
14830    
14831
14832    
14833</div>
14834
14835                
14836                    <div id="method_updateViewport" class="method item">
14837    <h3 class="name"><code>updateViewport</code></h3>
14838
14839    
14840        <div class="args">
14841            <span class="paren">(</span><ul class="args-list inline commas">
14842            
14843                <li class="arg">
14844                    
14845                        <code>width</code>
14846                    
14847                </li>
14848            
14849                <li class="arg">
14850                    
14851                        <code>height</code>
14852                    
14853                </li>
14854            
14855            </ul><span class="paren">)</span>
14856        </div>
14857    
14858
14859    
14860
14861    
14862
14863    
14864
14865    
14866
14867    
14868
14869    
14870
14871    
14872
14873    <div class="meta">
14874        
14875            
14876                
14877                <p>
14878                
14879                Defined in
14880                
14881            
14882        
14883        
14884        <a href="../files/easeljs_display_StageGL.js.html#l1217"><code>updateViewport:1217</code></a>
14885        
14886        </p>
14887
14888
14889        
14890
14891        
14892    </div>
14893
14894    <div class="description">
14895        <p>Update the WebGL viewport. Note that this does <strong>not</strong> update the canvas element&#39;s width/height, but
14896the render surface&#39;s instead. This is necessary after manually resizing the canvas element on the DOM to avoid a
14897up/down scaled render.</p>
14898
14899    </div>
14900
14901    
14902        <div class="params">
14903            <h4>Parameters:</h4>
14904
14905            <ul class="params-list">
14906            
14907                <li class="param">
14908                    
14909                        <code class="param-name">width</code>
14910                        <span class="type">Integer</span>
14911                    
14912
14913                    
14914
14915                    <div class="param-description">
14916                        <p>The width of the render surface in pixels.</p>
14917
14918                    </div>
14919
14920                    
14921                </li>
14922            
14923                <li class="param">
14924                    
14925                        <code class="param-name">height</code>
14926                        <span class="type">Integer</span>
14927                    
14928
14929                    
14930
14931                    <div class="param-description">
14932                        <p>The height of the render surface in pixels.</p>
14933
14934                    </div>
14935
14936                    
14937                </li>
14938            
14939            </ul>
14940        </div>
14941    
14942
14943    
14944
14945    
14946</div>
14947
14948                
14949                    <div id="method_willTrigger" class="method item inherited">
14950    <h3 class="name"><code>willTrigger</code></h3>
14951
14952    
14953        <div class="args">
14954            <span class="paren">(</span><ul class="args-list inline commas">
14955            
14956                <li class="arg">
14957                    
14958                        <code>type</code>
14959                    
14960                </li>
14961            
14962            </ul><span class="paren">)</span>
14963        </div>
14964    
14965
14966    
14967        <span class="returns-inline">
14968            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
14969        </span>
14970    
14971
14972    
14973
14974    
14975
14976    
14977
14978    
14979
14980    
14981
14982    
14983
14984    <div class="meta">
14985        
14986            
14987                <p>Inherited from
14988                <a href="../classes/EventDispatcher.html#method_willTrigger">EventDispatcher</a>:
14989            
14990        
14991        
14992        <a href="../files/createjs_events_EventDispatcher.js.html#l350"><code>willTrigger:350</code></a>
14993        
14994        </p>
14995
14996
14997        
14998
14999        
15000    </div>
15001
15002    <div class="description">
15003        <p>Indicates whether there is at least one listener for the specified event type on this object or any of its
15004ancestors (parent, parent&#39;s parent, etc). A return value of true indicates that if a bubbling event of the
15005specified type is dispatched from this object, it will trigger at least one listener.</p>
15006<p>This is similar to <a href="../classes/EventDispatcher.html#method_hasEventListener" class="crosslink">hasEventListener</a>, but it searches the entire
15007event flow for a listener, not just this object.</p>
15008
15009    </div>
15010
15011    
15012        <div class="params">
15013            <h4>Parameters:</h4>
15014
15015            <ul class="params-list">
15016            
15017                <li class="param">
15018                    
15019                        <code class="param-name">type</code>
15020                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
15021                    
15022
15023                    
15024
15025                    <div class="param-description">
15026                        <p>The string type of the event.</p>
15027
15028                    </div>
15029
15030                    
15031                </li>
15032            
15033            </ul>
15034        </div>
15035    
15036
15037    
15038        <div class="returns">
15039            <h4>Returns:</h4>
15040
15041            <div class="returns-description">
15042                
15043                    
15044                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
15045                    
15046                    <p>Returns <code>true</code> if there is at least one listener for the specified event.</p>
15047
15048                
15049            </div>
15050        </div>
15051    
15052
15053    
15054</div>
15055
15056                
15057            </div>
15058        
15059
15060        
15061            <div id="properties" class="api-class-tabpanel">
15062                <h2 class="off-left">Properties</h2>
15063
15064                
15065                    <div id="property__activeShader" class="property item protected">
15066    <h3 class="name"><code>_activeShader</code></h3>
15067    <span class="type">WebGLProgram</span>
15068
15069    
15070
15071    
15072        <span class="flag protected">protected</span>
15073    
15074
15075    
15076
15077    
15078
15079    
15080
15081    <div class="meta">
15082        
15083            
15084                
15085                <p>
15086                
15087                Defined in
15088                
15089            
15090        
15091        
15092        <a href="../files/easeljs_display_StageGL.js.html#l249"><code>_activeShader:249</code></a>
15093        
15094        </p>
15095
15096        
15097
15098        
15099    </div>
15100
15101    <div class="description">
15102        <p>The shader program used to draw the current batch.</p>
15103
15104    </div>
15105
15106    
15107        <p><strong>Default:</strong> null</p>
15108    
15109
15110    
15111
15112    
15113</div>
15114
15115                
15116                    <div id="property__alphaBuffer" class="property item protected">
15117    <h3 class="name"><code>_alphaBuffer</code></h3>
15118    <span class="type">WebGLBuffer</span>
15119
15120    
15121
15122    
15123        <span class="flag protected">protected</span>
15124    
15125
15126    
15127
15128    
15129
15130    
15131
15132    <div class="meta">
15133        
15134            
15135                
15136                <p>
15137                
15138                Defined in
15139                
15140            
15141        
15142        
15143        <a href="../files/easeljs_display_StageGL.js.html#l321"><code>_alphaBuffer:321</code></a>
15144        
15145        </p>
15146
15147        
15148
15149        
15150    </div>
15151
15152    <div class="description">
15153        <p>The WebGL buffer attached to <a href="../classes/StageGL.html#property__alphas" class="crosslink">_alphas</a>.</p>
15154
15155    </div>
15156
15157    
15158        <p><strong>Default:</strong> null</p>
15159    
15160
15161    
15162
15163    
15164</div>
15165
15166                
15167                    <div id="property__alphas" class="property item protected">
15168    <h3 class="name"><code>_alphas</code></h3>
15169    <span class="type">Float32Array</span>
15170
15171    
15172
15173    
15174        <span class="flag protected">protected</span>
15175    
15176
15177    
15178
15179    
15180
15181    
15182
15183    <div class="meta">
15184        
15185            
15186                
15187                <p>
15188                
15189                Defined in
15190                
15191            
15192        
15193        
15194        <a href="../files/easeljs_display_StageGL.js.html#l312"><code>_alphas:312</code></a>
15195        
15196        </p>
15197
15198        
15199
15200        
15201    </div>
15202
15203    <div class="description">
15204        <p>The vertices data for the current draw call.</p>
15205
15206    </div>
15207
15208    
15209        <p><strong>Default:</strong> null</p>
15210    
15211
15212    
15213
15214    
15215</div>
15216
15217                
15218                    <div id="property__antialias" class="property item protected">
15219    <h3 class="name"><code>_antialias</code></h3>
15220    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
15221
15222    
15223
15224    
15225        <span class="flag protected">protected</span>
15226    
15227
15228    
15229
15230    
15231
15232    
15233
15234    <div class="meta">
15235        
15236            
15237                
15238                <p>
15239                
15240                Defined in
15241                
15242            
15243        
15244        
15245        <a href="../files/easeljs_display_StageGL.js.html#l156"><code>_antialias:156</code></a>
15246        
15247        </p>
15248
15249        
15250
15251        
15252    </div>
15253
15254    <div class="description">
15255        <p>Specifies whether or not the browser&#39;s WebGL implementation should try to perform anti-aliasing.</p>
15256
15257    </div>
15258
15259    
15260        <p><strong>Default:</strong> false</p>
15261    
15262
15263    
15264
15265    
15266</div>
15267
15268                
15269                    <div id="property__autoPurge" class="property item protected">
15270    <h3 class="name"><code>_autoPurge</code></h3>
15271    <span class="type">Integer</span>
15272
15273    
15274
15275    
15276        <span class="flag protected">protected</span>
15277    
15278
15279    
15280
15281    
15282
15283    
15284
15285    <div class="meta">
15286        
15287            
15288                
15289                <p>
15290                
15291                Defined in
15292                
15293            
15294        
15295        
15296        <a href="../files/easeljs_display_StageGL.js.html#l183"><code>_autoPurge:183</code></a>
15297        
15298        </p>
15299
15300        
15301
15302        
15303    </div>
15304
15305    <div class="description">
15306        <p>Internal value of StageGL/autoPurge</p>
15307
15308    </div>
15309
15310    
15311        <p><strong>Default:</strong> null</p>
15312    
15313
15314    
15315
15316    
15317</div>
15318
15319                
15320                    <div id="property__baseTextures" class="property item protected">
15321    <h3 class="name"><code>_baseTextures</code></h3>
15322    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
15323
15324    
15325
15326    
15327        <span class="flag protected">protected</span>
15328    
15329
15330    
15331
15332    
15333
15334    
15335
15336    <div class="meta">
15337        
15338            
15339                
15340                <p>
15341                
15342                Defined in
15343                
15344            
15345        
15346        
15347        <a href="../files/easeljs_display_StageGL.js.html#l355"><code>_baseTextures:355</code></a>
15348        
15349        </p>
15350
15351        
15352
15353        
15354    </div>
15355
15356    <div class="description">
15357        <p>An array of all the simple filler textures used to prevent issues with missing textures in a batch.</p>
15358
15359    </div>
15360
15361    
15362
15363    
15364
15365    
15366</div>
15367
15368                
15369                    <div id="property__batchId" class="property item protected">
15370    <h3 class="name"><code>_batchId</code></h3>
15371    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
15372
15373    
15374
15375    
15376        <span class="flag protected">protected</span>
15377    
15378
15379    
15380
15381    
15382
15383    
15384
15385    <div class="meta">
15386        
15387            
15388                
15389                <p>
15390                
15391                Defined in
15392                
15393            
15394        
15395        
15396        <a href="../files/easeljs_display_StageGL.js.html#l388"><code>_batchId:388</code></a>
15397        
15398        </p>
15399
15400        
15401
15402        
15403    </div>
15404
15405    <div class="description">
15406        <p>The current batch being drawn, A batch consists of a call to <code>drawElements</code> on the GPU. Many of these calls
15407can occur per draw.</p>
15408
15409    </div>
15410
15411    
15412        <p><strong>Default:</strong> 0</p>
15413    
15414
15415    
15416
15417    
15418</div>
15419
15420                
15421                    <div id="property__batchTextureCount" class="property item protected">
15422    <h3 class="name"><code>_batchTextureCount</code></h3>
15423    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
15424
15425    
15426
15427    
15428        <span class="flag protected">protected</span>
15429    
15430
15431    
15432
15433    
15434
15435    
15436
15437    <div class="meta">
15438        
15439            
15440                
15441                <p>
15442                
15443                Defined in
15444                
15445            
15446        
15447        
15448        <a href="../files/easeljs_display_StageGL.js.html#l363"><code>_batchTextureCount:363</code></a>
15449        
15450        </p>
15451
15452        
15453
15454        
15455    </div>
15456
15457    <div class="description">
15458        <p>The number of concurrent textures the GPU can handle. This value is dynamically set from WebGL during initialization
15459via <code>gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS)</code>. The WebGL spec states that the lowest guaranteed value is 8,
15460but it could be higher. Do not set this value higher than the value returned by the GPU. Setting it lower will
15461probably reduce performance, but may be advisable to reserve slots for custom filter work.
15462NOTE: Can also act as a length for {{#crossLink "StageGL/_batchTextures:property"}}.</p>
15463
15464    </div>
15465
15466    
15467        <p><strong>Default:</strong> 8</p>
15468    
15469
15470    
15471
15472    
15473</div>
15474
15475                
15476                    <div id="property__batchTextures" class="property item protected">
15477    <h3 class="name"><code>_batchTextures</code></h3>
15478    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
15479
15480    
15481
15482    
15483        <span class="flag protected">protected</span>
15484    
15485
15486    
15487
15488    
15489
15490    
15491
15492    <div class="meta">
15493        
15494            
15495                
15496                <p>
15497                
15498                Defined in
15499                
15500            
15501        
15502        
15503        <a href="../files/easeljs_display_StageGL.js.html#l347"><code>_batchTextures:347</code></a>
15504        
15505        </p>
15506
15507        
15508
15509        
15510    </div>
15511
15512    <div class="description">
15513        <p>An array of all the textures currently loaded into the GPU. The index in the array matches the GPU index.</p>
15514
15515    </div>
15516
15517    
15518
15519    
15520
15521    
15522</div>
15523
15524                
15525                    <div id="property__bounds" class="property item protected inherited">
15526    <h3 class="name"><code>_bounds</code></h3>
15527    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
15528
15529    
15530
15531    
15532        <span class="flag protected">protected</span>
15533    
15534
15535    
15536
15537    
15538
15539    
15540
15541    <div class="meta">
15542        
15543            
15544                <p>Inherited from
15545                <a href="../classes/DisplayObject.html#property__bounds">DisplayObject</a>:
15546            
15547        
15548        
15549        <a href="../files/easeljs_display_DisplayObject.js.html#l443"><code>_bounds:443</code></a>
15550        
15551        </p>
15552
15553        
15554
15555        
15556    </div>
15557
15558    <div class="description">
15559        
15560    </div>
15561
15562    
15563        <p><strong>Default:</strong> null</p>
15564    
15565
15566    
15567
15568    
15569</div>
15570
15571                
15572                    <div id="property__cacheContainer" class="property item protected">
15573    <h3 class="name"><code>_cacheContainer</code></h3>
15574    <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
15575
15576    
15577
15578    
15579        <span class="flag protected">protected</span>
15580    
15581
15582    
15583
15584    
15585
15586    
15587
15588    <div class="meta">
15589        
15590            
15591                
15592                <p>
15593                
15594                Defined in
15595                
15596            
15597        
15598        
15599        <a href="../files/easeljs_display_StageGL.js.html#l445"><code>_cacheContainer:445</code></a>
15600        
15601        </p>
15602
15603        
15604
15605        
15606    </div>
15607
15608    <div class="description">
15609        <p>Used to counter-position the object being cached so it aligns with the cache surface. Additionally ensures
15610that all rendering starts with a top level container.</p>
15611
15612    </div>
15613
15614    
15615        <p><strong>Default:</strong> An instance of an EaselJS Container.</p>
15616    
15617
15618    
15619
15620    
15621</div>
15622
15623                
15624                    <div id="property__cacheDataURL" class="property item protected deprecated inherited">
15625    <h3 class="name"><code>_cacheDataURL</code></h3>
15626    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
15627
15628    
15629        <span class="flag deprecated">deprecated</span>
15630    
15631
15632    
15633        <span class="flag protected">protected</span>
15634    
15635
15636    
15637
15638    
15639
15640    
15641
15642    <div class="meta">
15643        
15644            
15645                <p>Inherited from
15646                <a href="../classes/DisplayObject.html#property__cacheDataURL">DisplayObject</a>:
15647            
15648        
15649        
15650        <a href="../files/easeljs_display_DisplayObject.js.html#l418"><code>_cacheDataURL:418</code></a>
15651        
15652        </p>
15653
15654        
15655
15656        
15657    </div>
15658
15659    <div class="description">
15660        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
15661
15662    </div>
15663
15664    
15665        <p><strong>Default:</strong> null</p>
15666    
15667
15668    
15669
15670    
15671</div>
15672
15673                
15674                    <div id="property__cacheDataURLID" class="property item protected deprecated inherited">
15675    <h3 class="name"><code>_cacheDataURLID</code></h3>
15676    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
15677
15678    
15679        <span class="flag deprecated">deprecated</span>
15680    
15681
15682    
15683        <span class="flag protected">protected</span>
15684    
15685
15686    
15687
15688    
15689
15690    
15691
15692    <div class="meta">
15693        
15694            
15695                <p>Inherited from
15696                <a href="../classes/DisplayObject.html#property__cacheDataURLID">DisplayObject</a>:
15697            
15698        
15699        
15700        <a href="../files/easeljs_display_DisplayObject.js.html#l409"><code>_cacheDataURLID:409</code></a>
15701        
15702        </p>
15703
15704        
15705
15706        
15707    </div>
15708
15709    <div class="description">
15710        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
15711
15712    </div>
15713
15714    
15715        <p><strong>Default:</strong> 0</p>
15716    
15717
15718    
15719
15720    
15721</div>
15722
15723                
15724                    <div id="property__cacheScale" class="property item protected deprecated inherited">
15725    <h3 class="name"><code>_cacheScale</code></h3>
15726    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
15727
15728    
15729        <span class="flag deprecated">deprecated</span>
15730    
15731
15732    
15733        <span class="flag protected">protected</span>
15734    
15735
15736    
15737
15738    
15739
15740    
15741
15742    <div class="meta">
15743        
15744            
15745                <p>Inherited from
15746                <a href="../classes/DisplayObject.html#property__cacheScale">DisplayObject</a>:
15747            
15748        
15749        
15750        <a href="../files/easeljs_display_DisplayObject.js.html#l400"><code>_cacheScale:400</code></a>
15751        
15752        </p>
15753
15754        
15755
15756        
15757    </div>
15758
15759    <div class="description">
15760        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
15761
15762    </div>
15763
15764    
15765        <p><strong>Default:</strong> 1</p>
15766    
15767
15768    
15769
15770    
15771</div>
15772
15773                
15774                    <div id="property__captureListeners" class="property item protected inherited">
15775    <h3 class="name"><code>_captureListeners</code></h3>
15776    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
15777
15778    
15779
15780    
15781        <span class="flag protected">protected</span>
15782    
15783
15784    
15785
15786    
15787
15788    
15789
15790    <div class="meta">
15791        
15792            
15793                <p>Inherited from
15794                <a href="../classes/EventDispatcher.html#property__captureListeners">EventDispatcher</a>:
15795            
15796        
15797        
15798        <a href="../files/createjs_events_EventDispatcher.js.html#l106"><code>_captureListeners:106</code></a>
15799        
15800        </p>
15801
15802        
15803
15804        
15805    </div>
15806
15807    <div class="description">
15808        
15809    </div>
15810
15811    
15812
15813    
15814
15815    
15816</div>
15817
15818                
15819                    <div id="property__clearColor" class="property item protected">
15820    <h3 class="name"><code>_clearColor</code></h3>
15821    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
15822
15823    
15824
15825    
15826        <span class="flag protected">protected</span>
15827    
15828
15829    
15830
15831    
15832
15833    
15834
15835    <div class="meta">
15836        
15837            
15838                
15839                <p>
15840                
15841                Defined in
15842                
15843            
15844        
15845        
15846        <a href="../files/easeljs_display_StageGL.js.html#l230"><code>_clearColor:230</code></a>
15847        
15848        </p>
15849
15850        
15851
15852        
15853    </div>
15854
15855    <div class="description">
15856        <p>The color to use when the WebGL canvas has been cleared. May appear as a background color. Defaults to grey.</p>
15857
15858    </div>
15859
15860    
15861        <p><strong>Default:</strong> {r: 0.50, g: 0.50, b: 0.50, a: 0.00}</p>
15862    
15863
15864    
15865
15866    
15867</div>
15868
15869                
15870                    <div id="property__drawID" class="property item protected">
15871    <h3 class="name"><code>_drawID</code></h3>
15872    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
15873
15874    
15875
15876    
15877        <span class="flag protected">protected</span>
15878    
15879
15880    
15881
15882    
15883
15884    
15885
15886    <div class="meta">
15887        
15888            
15889                
15890                <p>
15891                
15892                Defined in
15893                
15894            
15895        
15896        
15897        <a href="../files/easeljs_display_StageGL.js.html#l398"><code>_drawID:398</code></a>
15898        
15899        </p>
15900
15901        
15902
15903        
15904    </div>
15905
15906    <div class="description">
15907        <p>The current draw being performed, may contain multiple batches. Comparing to StageGL/_batchID:property
15908can reveal batching efficiency.</p>
15909
15910    </div>
15911
15912    
15913        <p><strong>Default:</strong> 0</p>
15914    
15915
15916    
15917
15918    
15919</div>
15920
15921                
15922                    <div id="property__drawTexture" class="property item protected">
15923    <h3 class="name"><code>_drawTexture</code></h3>
15924    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
15925
15926    
15927
15928    
15929        <span class="flag protected">protected</span>
15930    
15931
15932    
15933
15934    
15935
15936    
15937
15938    <div class="meta">
15939        
15940            
15941                
15942                <p>
15943                
15944                Defined in
15945                
15946            
15947        
15948        
15949        <a href="../files/easeljs_display_StageGL.js.html#l330"><code>_drawTexture:330</code></a>
15950        
15951        </p>
15952
15953        
15954
15955        
15956    </div>
15957
15958    <div class="description">
15959        <p>An index based lookup of every WebGL Texture currently in use.</p>
15960
15961    </div>
15962
15963    
15964
15965    
15966
15967    
15968</div>
15969
15970                
15971                    <div id="property__indices" class="property item protected">
15972    <h3 class="name"><code>_indices</code></h3>
15973    <span class="type">Float32Array</span>
15974
15975    
15976
15977    
15978        <span class="flag protected">protected</span>
15979    
15980
15981    
15982
15983    
15984
15985    
15986
15987    <div class="meta">
15988        
15989            
15990                
15991                <p>
15992                
15993                Defined in
15994                
15995            
15996        
15997        
15998        <a href="../files/easeljs_display_StageGL.js.html#l294"><code>_indices:294</code></a>
15999        
16000        </p>
16001
16002        
16003
16004        
16005    </div>
16006
16007    <div class="description">
16008        <p>The vertex indices data for the current draw call.</p>
16009
16010    </div>
16011
16012    
16013        <p><strong>Default:</strong> null</p>
16014    
16015
16016    
16017
16018    
16019</div>
16020
16021                
16022                    <div id="property__isDrawing" class="property item protected">
16023    <h3 class="name"><code>_isDrawing</code></h3>
16024    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
16025
16026    
16027
16028    
16029        <span class="flag protected">protected</span>
16030    
16031
16032    
16033
16034    
16035
16036    
16037
16038    <div class="meta">
16039        
16040            
16041                
16042                <p>
16043                
16044                Defined in
16045                
16046            
16047        
16048        
16049        <a href="../files/easeljs_display_StageGL.js.html#l416"><code>_isDrawing:416</code></a>
16050        
16051        </p>
16052
16053        
16054
16055        
16056    </div>
16057
16058    <div class="description">
16059        <p>Used to prevent nested draw calls from accidentally overwriting drawing information by tracking depth.</p>
16060
16061    </div>
16062
16063    
16064        <p><strong>Default:</strong> 0</p>
16065    
16066
16067    
16068
16069    
16070</div>
16071
16072                
16073                    <div id="property__lastTextureInsert" class="property item protected">
16074    <h3 class="name"><code>_lastTextureInsert</code></h3>
16075    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
16076
16077    
16078
16079    
16080        <span class="flag protected">protected</span>
16081    
16082
16083    
16084
16085    
16086
16087    
16088
16089    <div class="meta">
16090        
16091            
16092                
16093                <p>
16094                
16095                Defined in
16096                
16097            
16098        
16099        
16100        <a href="../files/easeljs_display_StageGL.js.html#l376"><code>_lastTextureInsert:376</code></a>
16101        
16102        </p>
16103
16104        
16105
16106        
16107    </div>
16108
16109    <div class="description">
16110        <p>The location at which the last texture was inserted into a GPU slot in <a href="../classes/StageGL.html#property__batchTextures" class="crosslink">_batchTextures</a>.
16111Manual control of this variable can yield improvements in performance by intelligently replacing textures
16112inside a batch to reduce texture re-load. It is impossible to write automated general use code, as it requires
16113display list look ahead inspection and/or render foreknowledge.</p>
16114
16115    </div>
16116
16117    
16118        <p><strong>Default:</strong> -1</p>
16119    
16120
16121    
16122
16123    
16124</div>
16125
16126                
16127                    <div id="property__lastTrackedCanvas" class="property item protected">
16128    <h3 class="name"><code>_lastTrackedCanvas</code></h3>
16129    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
16130
16131    
16132
16133    
16134        <span class="flag protected">protected</span>
16135    
16136
16137    
16138
16139    
16140
16141    
16142
16143    <div class="meta">
16144        
16145            
16146                
16147                <p>
16148                
16149                Defined in
16150                
16151            
16152        
16153        
16154        <a href="../files/easeljs_display_StageGL.js.html#l425"><code>_lastTrackedCanvas:425</code></a>
16155        
16156        </p>
16157
16158        
16159
16160        
16161    </div>
16162
16163    <div class="description">
16164        <p>Used to ensure every canvas used as a texture source has a unique ID.</p>
16165
16166    </div>
16167
16168    
16169        <p><strong>Default:</strong> 0</p>
16170    
16171
16172    
16173
16174    
16175</div>
16176
16177                
16178                    <div id="property__listeners" class="property item protected inherited">
16179    <h3 class="name"><code>_listeners</code></h3>
16180    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
16181
16182    
16183
16184    
16185        <span class="flag protected">protected</span>
16186    
16187
16188    
16189
16190    
16191
16192    
16193
16194    <div class="meta">
16195        
16196            
16197                <p>Inherited from
16198                <a href="../classes/EventDispatcher.html#property__listeners">EventDispatcher</a>:
16199            
16200        
16201        
16202        <a href="../files/createjs_events_EventDispatcher.js.html#l99"><code>_listeners:99</code></a>
16203        
16204        </p>
16205
16206        
16207
16208        
16209    </div>
16210
16211    <div class="description">
16212        
16213    </div>
16214
16215    
16216
16217    
16218
16219    
16220</div>
16221
16222                
16223                    <div id="property__maxCardsPerBatch" class="property item protected">
16224    <h3 class="name"><code>_maxCardsPerBatch</code></h3>
16225    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
16226
16227    
16228
16229    
16230        <span class="flag protected">protected</span>
16231    
16232
16233    
16234
16235    
16236
16237    
16238
16239    <div class="meta">
16240        
16241            
16242                
16243                <p>
16244                
16245                Defined in
16246                
16247            
16248        
16249        
16250        <a href="../files/easeljs_display_StageGL.js.html#l239"><code>_maxCardsPerBatch:239</code></a>
16251        
16252        </p>
16253
16254        
16255
16256        
16257    </div>
16258
16259    <div class="description">
16260        <p>The maximum number of cards (aka a single sprite) that can be drawn in one draw call. Use getter/setters to
16261modify otherwise internal buffers may be incorrect sizes.</p>
16262
16263    </div>
16264
16265    
16266        <p><strong>Default:</strong> StageGL.DEFAULT_MAX_BATCH_SIZE (10000)</p>
16267    
16268
16269    
16270
16271    
16272</div>
16273
16274                
16275                    <div id="property__mouseOverIntervalID" class="property item protected inherited">
16276    <h3 class="name"><code>_mouseOverIntervalID</code></h3>
16277    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
16278
16279    
16280
16281    
16282        <span class="flag protected">protected</span>
16283    
16284
16285    
16286
16287    
16288
16289    
16290
16291    <div class="meta">
16292        
16293            
16294                <p>Inherited from
16295                <a href="../classes/Stage.html#property__mouseOverIntervalID">Stage</a>:
16296            
16297        
16298        
16299        <a href="../files/easeljs_display_Stage.js.html#l207"><code>_mouseOverIntervalID:207</code></a>
16300        
16301        </p>
16302
16303        
16304
16305        
16306    </div>
16307
16308    <div class="description">
16309        
16310    </div>
16311
16312    
16313
16314    
16315
16316    
16317</div>
16318
16319                
16320                    <div id="property__nextStage" class="property item protected inherited">
16321    <h3 class="name"><code>_nextStage</code></h3>
16322    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
16323
16324    
16325
16326    
16327        <span class="flag protected">protected</span>
16328    
16329
16330    
16331
16332    
16333
16334    
16335
16336    <div class="meta">
16337        
16338            
16339                <p>Inherited from
16340                <a href="../classes/Stage.html#property__nextStage">Stage</a>:
16341            
16342        
16343        
16344        <a href="../files/easeljs_display_Stage.js.html#l214"><code>_nextStage:214</code></a>
16345        
16346        </p>
16347
16348        
16349
16350        
16351    </div>
16352
16353    <div class="description">
16354        
16355    </div>
16356
16357    
16358
16359    
16360
16361    
16362</div>
16363
16364                
16365                    <div id="property__pointerCount" class="property item private inherited">
16366    <h3 class="name"><code>_pointerCount</code></h3>
16367    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
16368
16369    
16370
16371    
16372        <span class="flag private">private</span>
16373    
16374
16375    
16376
16377    
16378
16379    
16380
16381    <div class="meta">
16382        
16383            
16384                <p>Inherited from
16385                <a href="../classes/Stage.html#property__pointerCount">Stage</a>:
16386            
16387        
16388        
16389        <a href="../files/easeljs_display_Stage.js.html#l191"><code>_pointerCount:191</code></a>
16390        
16391        </p>
16392
16393        
16394
16395        
16396    </div>
16397
16398    <div class="description">
16399        <p>Number of active pointers.</p>
16400
16401    </div>
16402
16403    
16404
16405    
16406
16407    
16408</div>
16409
16410                
16411                    <div id="property__pointerData" class="property item private inherited">
16412    <h3 class="name"><code>_pointerData</code></h3>
16413    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
16414
16415    
16416
16417    
16418        <span class="flag private">private</span>
16419    
16420
16421    
16422
16423    
16424
16425    
16426
16427    <div class="meta">
16428        
16429            
16430                <p>Inherited from
16431                <a href="../classes/Stage.html#property__pointerData">Stage</a>:
16432            
16433        
16434        
16435        <a href="../files/easeljs_display_Stage.js.html#l182"><code>_pointerData:182</code></a>
16436        
16437        </p>
16438
16439        
16440
16441        
16442    </div>
16443
16444    <div class="description">
16445        <p>Holds objects with data for each active pointer id. Each object has the following properties:
16446x, y, event, target, overTarget, overX, overY, inBounds, posEvtObj (native event that last updated position)</p>
16447
16448    </div>
16449
16450    
16451
16452    
16453
16454    
16455</div>
16456
16457                
16458                    <div id="property__premultiply" class="property item protected">
16459    <h3 class="name"><code>_premultiply</code></h3>
16460    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
16461
16462    
16463
16464    
16465        <span class="flag protected">protected</span>
16466    
16467
16468    
16469
16470    
16471
16472    
16473
16474    <div class="meta">
16475        
16476            
16477                
16478                <p>
16479                
16480                Defined in
16481                
16482            
16483        
16484        
16485        <a href="../files/easeljs_display_StageGL.js.html#l174"><code>_premultiply:174</code></a>
16486        
16487        </p>
16488
16489        
16490
16491        
16492    </div>
16493
16494    <div class="description">
16495        <p>Specifies whether or not StageGL is handling colours as premultiplied alpha.</p>
16496
16497    </div>
16498
16499    
16500        <p><strong>Default:</strong> false</p>
16501    
16502
16503    
16504
16505    
16506</div>
16507
16508                
16509                    <div id="property__preserveBuffer" class="property item protected">
16510    <h3 class="name"><code>_preserveBuffer</code></h3>
16511    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
16512
16513    
16514
16515    
16516        <span class="flag protected">protected</span>
16517    
16518
16519    
16520
16521    
16522
16523    
16524
16525    <div class="meta">
16526        
16527            
16528                
16529                <p>
16530                
16531                Defined in
16532                
16533            
16534        
16535        
16536        <a href="../files/easeljs_display_StageGL.js.html#l145"><code>_preserveBuffer:145</code></a>
16537        
16538        </p>
16539
16540        
16541
16542        
16543    </div>
16544
16545    <div class="description">
16546        <p>Specifies whether or not the canvas is auto-cleared by WebGL. The WebGL spec discourages <code>true</code>.
16547If true, the canvas is NOT auto-cleared by WebGL. Used when the canvas context is created and requires
16548context re-creation to update.</p>
16549
16550    </div>
16551
16552    
16553        <p><strong>Default:</strong> false</p>
16554    
16555
16556    
16557
16558    
16559</div>
16560
16561                
16562                    <div id="property__prevStage" class="property item protected inherited">
16563    <h3 class="name"><code>_prevStage</code></h3>
16564    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
16565
16566    
16567
16568    
16569        <span class="flag protected">protected</span>
16570    
16571
16572    
16573
16574    
16575
16576    
16577
16578    <div class="meta">
16579        
16580            
16581                <p>Inherited from
16582                <a href="../classes/Stage.html#property__prevStage">Stage</a>:
16583            
16584        
16585        
16586        <a href="../files/easeljs_display_Stage.js.html#l221"><code>_prevStage:221</code></a>
16587        
16588        </p>
16589
16590        
16591
16592        
16593    </div>
16594
16595    <div class="description">
16596        
16597    </div>
16598
16599    
16600
16601    
16602
16603    
16604</div>
16605
16606                
16607                    <div id="property__primaryPointerID" class="property item private inherited">
16608    <h3 class="name"><code>_primaryPointerID</code></h3>
16609    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
16610
16611    
16612
16613    
16614        <span class="flag private">private</span>
16615    
16616
16617    
16618
16619    
16620
16621    
16622
16623    <div class="meta">
16624        
16625            
16626                <p>Inherited from
16627                <a href="../classes/Stage.html#property__primaryPointerID">Stage</a>:
16628            
16629        
16630        
16631        <a href="../files/easeljs_display_Stage.js.html#l199"><code>_primaryPointerID:199</code></a>
16632        
16633        </p>
16634
16635        
16636
16637        
16638    </div>
16639
16640    <div class="description">
16641        <p>The ID of the primary pointer.</p>
16642
16643    </div>
16644
16645    
16646
16647    
16648
16649    
16650</div>
16651
16652                
16653                    <div id="property__projectionMatrix" class="property item protected">
16654    <h3 class="name"><code>_projectionMatrix</code></h3>
16655    <span class="type">Float32Array</span>
16656
16657    
16658
16659    
16660        <span class="flag protected">protected</span>
16661    
16662
16663    
16664
16665    
16666
16667    
16668
16669    <div class="meta">
16670        
16671            
16672                
16673                <p>
16674                
16675                Defined in
16676                
16677            
16678        
16679        
16680        <a href="../files/easeljs_display_StageGL.js.html#l211"><code>_projectionMatrix:211</code></a>
16681        
16682        </p>
16683
16684        
16685
16686        
16687    </div>
16688
16689    <div class="description">
16690        <p>A 2D projection matrix used to convert WebGL&#39;s viewspace into canvas co-ordinates. Regular canvas display
16691uses Top-Left values of [0,0] where WebGL uses a Center [0,0] Top-Right [1,1] (euclidean) system.</p>
16692
16693    </div>
16694
16695    
16696        <p><strong>Default:</strong> null</p>
16697    
16698
16699    
16700
16701    
16702</div>
16703
16704                
16705                    <div id="property__props" class="property item protected inherited">
16706    <h3 class="name"><code>_props</code></h3>
16707    <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
16708
16709    
16710
16711    
16712        <span class="flag protected">protected</span>
16713    
16714
16715    
16716
16717    
16718
16719    
16720
16721    <div class="meta">
16722        
16723            
16724                <p>Inherited from
16725                <a href="../classes/DisplayObject.html#property__props">DisplayObject</a>:
16726            
16727        
16728        
16729        <a href="../files/easeljs_display_DisplayObject.js.html#l427"><code>_props:427</code></a>
16730        
16731        </p>
16732
16733        
16734
16735        
16736    </div>
16737
16738    <div class="description">
16739        
16740    </div>
16741
16742    
16743        <p><strong>Default:</strong> null</p>
16744    
16745
16746    
16747
16748    
16749</div>
16750
16751                
16752                    <div id="property__rectangle" class="property item protected inherited">
16753    <h3 class="name"><code>_rectangle</code></h3>
16754    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
16755
16756    
16757
16758    
16759        <span class="flag protected">protected</span>
16760    
16761
16762    
16763
16764    
16765
16766    
16767
16768    <div class="meta">
16769        
16770            
16771                <p>Inherited from
16772                <a href="../classes/DisplayObject.html#property__rectangle">DisplayObject</a>:
16773            
16774        
16775        
16776        <a href="../files/easeljs_display_DisplayObject.js.html#l435"><code>_rectangle:435</code></a>
16777        
16778        </p>
16779
16780        
16781
16782        
16783    </div>
16784
16785    <div class="description">
16786        
16787    </div>
16788
16789    
16790        <p><strong>Default:</strong> null</p>
16791    
16792
16793    
16794
16795    
16796</div>
16797
16798                
16799                    <div id="property__slotBlackList" class="property item protected">
16800    <h3 class="name"><code>_slotBlackList</code></h3>
16801    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
16802
16803    
16804
16805    
16806        <span class="flag protected">protected</span>
16807    
16808
16809    
16810
16811    
16812
16813    
16814
16815    <div class="meta">
16816        
16817            
16818                
16819                <p>
16820                
16821                Defined in
16822                
16823            
16824        
16825        
16826        <a href="../files/easeljs_display_StageGL.js.html#l408"><code>_slotBlackList:408</code></a>
16827        
16828        </p>
16829
16830        
16831
16832        
16833    </div>
16834
16835    <div class="description">
16836        <p>Used to prevent textures in certain GPU slots from being replaced by an insert.</p>
16837
16838    </div>
16839
16840    
16841
16842    
16843
16844    
16845</div>
16846
16847                
16848                    <div id="property__textureIDs" class="property item protected">
16849    <h3 class="name"><code>_textureIDs</code></h3>
16850    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
16851
16852    
16853
16854    
16855        <span class="flag protected">protected</span>
16856    
16857
16858    
16859
16860    
16861
16862    
16863
16864    <div class="meta">
16865        
16866            
16867                
16868                <p>
16869                
16870                Defined in
16871                
16872            
16873        
16874        
16875        <a href="../files/easeljs_display_StageGL.js.html#l338"><code>_textureIDs:338</code></a>
16876        
16877        </p>
16878
16879        
16880
16881        
16882    </div>
16883
16884    <div class="description">
16885        <p>A string based lookup hash of which index a texture is stored at in the dictionary. The lookup string is
16886often the src url.</p>
16887
16888    </div>
16889
16890    
16891
16892    
16893
16894    
16895</div>
16896
16897                
16898                    <div id="property__textureIndexBuffer" class="property item protected">
16899    <h3 class="name"><code>_textureIndexBuffer</code></h3>
16900    <span class="type">WebGLBuffer</span>
16901
16902    
16903
16904    
16905        <span class="flag protected">protected</span>
16906    
16907
16908    
16909
16910    
16911
16912    
16913
16914    <div class="meta">
16915        
16916            
16917                
16918                <p>
16919                
16920                Defined in
16921                
16922            
16923        
16924        
16925        <a href="../files/easeljs_display_StageGL.js.html#l303"><code>_textureIndexBuffer:303</code></a>
16926        
16927        </p>
16928
16929        
16930
16931        
16932    </div>
16933
16934    <div class="description">
16935        <p>The WebGL buffer attached to <a href="../classes/StageGL.html#property__indices" class="crosslink">_indices</a>.</p>
16936
16937    </div>
16938
16939    
16940        <p><strong>Default:</strong> null</p>
16941    
16942
16943    
16944
16945    
16946</div>
16947
16948                
16949                    <div id="property__transparent" class="property item protected">
16950    <h3 class="name"><code>_transparent</code></h3>
16951    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
16952
16953    
16954
16955    
16956        <span class="flag protected">protected</span>
16957    
16958
16959    
16960
16961    
16962
16963    
16964
16965    <div class="meta">
16966        
16967            
16968                
16969                <p>
16970                
16971                Defined in
16972                
16973            
16974        
16975        
16976        <a href="../files/easeljs_display_StageGL.js.html#l165"><code>_transparent:165</code></a>
16977        
16978        </p>
16979
16980        
16981
16982        
16983    </div>
16984
16985    <div class="description">
16986        <p>Specifies whether or not the browser&#39;s WebGL implementation should be transparent.</p>
16987
16988    </div>
16989
16990    
16991        <p><strong>Default:</strong> false</p>
16992    
16993
16994    
16995
16996    
16997</div>
16998
16999                
17000                    <div id="property__uvPositionBuffer" class="property item protected">
17001    <h3 class="name"><code>_uvPositionBuffer</code></h3>
17002    <span class="type">WebGLBuffer</span>
17003
17004    
17005
17006    
17007        <span class="flag protected">protected</span>
17008    
17009
17010    
17011
17012    
17013
17014    
17015
17016    <div class="meta">
17017        
17018            
17019                
17020                <p>
17021                
17022                Defined in
17023                
17024            
17025        
17026        
17027        <a href="../files/easeljs_display_StageGL.js.html#l285"><code>_uvPositionBuffer:285</code></a>
17028        
17029        </p>
17030
17031        
17032
17033        
17034    </div>
17035
17036    <div class="description">
17037        <p>The WebGL buffer attached to <a href="../classes/StageGL.html#property__uvs" class="crosslink">_uvs</a>.</p>
17038
17039    </div>
17040
17041    
17042        <p><strong>Default:</strong> null</p>
17043    
17044
17045    
17046
17047    
17048</div>
17049
17050                
17051                    <div id="property__uvs" class="property item protected">
17052    <h3 class="name"><code>_uvs</code></h3>
17053    <span class="type">Float32Array</span>
17054
17055    
17056
17057    
17058        <span class="flag protected">protected</span>
17059    
17060
17061    
17062
17063    
17064
17065    
17066
17067    <div class="meta">
17068        
17069            
17070                
17071                <p>
17072                
17073                Defined in
17074                
17075            
17076        
17077        
17078        <a href="../files/easeljs_display_StageGL.js.html#l276"><code>_uvs:276</code></a>
17079        
17080        </p>
17081
17082        
17083
17084        
17085    </div>
17086
17087    <div class="description">
17088        <p>The vertex U/V data for the current draw call.</p>
17089
17090    </div>
17091
17092    
17093        <p><strong>Default:</strong> null</p>
17094    
17095
17096    
17097
17098    
17099</div>
17100
17101                
17102                    <div id="property__vertexPositionBuffer" class="property item protected">
17103    <h3 class="name"><code>_vertexPositionBuffer</code></h3>
17104    <span class="type">WebGLBuffer</span>
17105
17106    
17107
17108    
17109        <span class="flag protected">protected</span>
17110    
17111
17112    
17113
17114    
17115
17116    
17117
17118    <div class="meta">
17119        
17120            
17121                
17122                <p>
17123                
17124                Defined in
17125                
17126            
17127        
17128        
17129        <a href="../files/easeljs_display_StageGL.js.html#l267"><code>_vertexPositionBuffer:267</code></a>
17130        
17131        </p>
17132
17133        
17134
17135        
17136    </div>
17137
17138    <div class="description">
17139        <p>The WebGL buffer attached to <a href="../classes/StageGL.html#property__vertices" class="crosslink">_vertices</a>.</p>
17140
17141    </div>
17142
17143    
17144        <p><strong>Default:</strong> null</p>
17145    
17146
17147    
17148
17149    
17150</div>
17151
17152                
17153                    <div id="property__vertices" class="property item protected">
17154    <h3 class="name"><code>_vertices</code></h3>
17155    <span class="type">Float32Array</span>
17156
17157    
17158
17159    
17160        <span class="flag protected">protected</span>
17161    
17162
17163    
17164
17165    
17166
17167    
17168
17169    <div class="meta">
17170        
17171            
17172                
17173                <p>
17174                
17175                Defined in
17176                
17177            
17178        
17179        
17180        <a href="../files/easeljs_display_StageGL.js.html#l258"><code>_vertices:258</code></a>
17181        
17182        </p>
17183
17184        
17185
17186        
17187    </div>
17188
17189    <div class="description">
17190        <p>The vertex position data for the current draw call.</p>
17191
17192    </div>
17193
17194    
17195        <p><strong>Default:</strong> null</p>
17196    
17197
17198    
17199
17200    
17201</div>
17202
17203                
17204                    <div id="property__viewportHeight" class="property item protected">
17205    <h3 class="name"><code>_viewportHeight</code></h3>
17206    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
17207
17208    
17209
17210    
17211        <span class="flag protected">protected</span>
17212    
17213
17214    
17215
17216    
17217
17218    
17219
17220    <div class="meta">
17221        
17222            
17223                
17224                <p>
17225                
17226                Defined in
17227                
17228            
17229        
17230        
17231        <a href="../files/easeljs_display_StageGL.js.html#l202"><code>_viewportHeight:202</code></a>
17232        
17233        </p>
17234
17235        
17236
17237        
17238    </div>
17239
17240    <div class="description">
17241        <p>The height in px of the drawing surface saved in memory.</p>
17242
17243    </div>
17244
17245    
17246        <p><strong>Default:</strong> 0</p>
17247    
17248
17249    
17250
17251    
17252</div>
17253
17254                
17255                    <div id="property__viewportWidth" class="property item protected">
17256    <h3 class="name"><code>_viewportWidth</code></h3>
17257    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
17258
17259    
17260
17261    
17262        <span class="flag protected">protected</span>
17263    
17264
17265    
17266
17267    
17268
17269    
17270
17271    <div class="meta">
17272        
17273            
17274                
17275                <p>
17276                
17277                Defined in
17278                
17279            
17280        
17281        
17282        <a href="../files/easeljs_display_StageGL.js.html#l193"><code>_viewportWidth:193</code></a>
17283        
17284        </p>
17285
17286        
17287
17288        
17289    </div>
17290
17291    <div class="description">
17292        <p>The width in px of the drawing surface saved in memory.</p>
17293
17294    </div>
17295
17296    
17297        <p><strong>Default:</strong> 0</p>
17298    
17299
17300    
17301
17302    
17303</div>
17304
17305                
17306                    <div id="property__webGLContext" class="property item protected">
17307    <h3 class="name"><code>_webGLContext</code></h3>
17308    <span class="type">WebGLRenderingContext</span>
17309
17310    
17311
17312    
17313        <span class="flag protected">protected</span>
17314    
17315
17316    
17317
17318    
17319
17320    
17321
17322    <div class="meta">
17323        
17324            
17325                
17326                <p>
17327                
17328                Defined in
17329                
17330            
17331        
17332        
17333        <a href="../files/easeljs_display_StageGL.js.html#l221"><code>_webGLContext:221</code></a>
17334        
17335        </p>
17336
17337        
17338
17339        
17340    </div>
17341
17342    <div class="description">
17343        <p>The current WebGL canvas context. Often shorthanded to just "gl" in many parts of the code.</p>
17344
17345    </div>
17346
17347    
17348        <p><strong>Default:</strong> null</p>
17349    
17350
17351    
17352
17353    
17354</div>
17355
17356                
17357                    <div id="property__webGLRenderStyle" class="property item protected inherited">
17358    <h3 class="name"><code>_webGLRenderStyle</code></h3>
17359    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
17360
17361    
17362
17363    
17364        <span class="flag protected">protected</span>
17365    
17366
17367    
17368
17369    
17370
17371    
17372
17373    <div class="meta">
17374        
17375            
17376                <p>Inherited from
17377                <a href="../classes/DisplayObject.html#property__webGLRenderStyle">DisplayObject</a>:
17378            
17379        
17380        
17381        <a href="../files/easeljs_display_DisplayObject.js.html#l451"><code>_webGLRenderStyle:451</code></a>
17382        
17383        </p>
17384
17385        
17386
17387        
17388    </div>
17389
17390    <div class="description">
17391        <p>Where StageGL should look for required display properties, matters only for leaf display objects. Containers
17392or cached objects won&#39;t use this property, it&#39;s for native display of terminal elements.</p>
17393
17394    </div>
17395
17396    
17397        <p><strong>Default:</strong> 0</p>
17398    
17399
17400    
17401
17402    
17403</div>
17404
17405                
17406                    <div id="property_alpha" class="property item inherited">
17407    <h3 class="name"><code>alpha</code></h3>
17408    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
17409
17410    
17411
17412    
17413
17414    
17415
17416    
17417
17418    
17419
17420    <div class="meta">
17421        
17422            
17423                <p>Inherited from
17424                <a href="../classes/DisplayObject.html#property_alpha">DisplayObject</a>:
17425            
17426        
17427        
17428        <a href="../files/easeljs_display_DisplayObject.js.html#l144"><code>alpha:144</code></a>
17429        
17430        </p>
17431
17432        
17433
17434        
17435    </div>
17436
17437    <div class="description">
17438        <p>The alpha (transparency) for this display object. 0 is fully transparent, 1 is fully opaque.</p>
17439
17440    </div>
17441
17442    
17443        <p><strong>Default:</strong> 1</p>
17444    
17445
17446    
17447
17448    
17449</div>
17450
17451                
17452                    <div id="property_autoClear" class="property item inherited">
17453    <h3 class="name"><code>autoClear</code></h3>
17454    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
17455
17456    
17457
17458    
17459
17460    
17461
17462    
17463
17464    
17465
17466    <div class="meta">
17467        
17468            
17469                <p>Inherited from
17470                <a href="../classes/Stage.html#property_autoClear">Stage</a>:
17471            
17472        
17473        
17474        <a href="../files/easeljs_display_Stage.js.html#l69"><code>autoClear:69</code></a>
17475        
17476        </p>
17477
17478        
17479
17480        
17481    </div>
17482
17483    <div class="description">
17484        <p><p>Indicates whether the stage should automatically clear the canvas before each render. You can set this to <code>false</code>
17485to manually control clearing (for generative art, or when pointing multiple stages at the same canvas for
17486example).</p></p>
17487<h4>Example</h4>
17488
17489<pre class="code prettyprint"><code> var stage = new createjs.Stage("canvasId");
17490 stage.autoClear = false;</code></pre>
17491
17492    </div>
17493
17494    
17495        <p><strong>Default:</strong> true</p>
17496    
17497
17498    
17499
17500    
17501</div>
17502
17503                
17504                    <div id="property_autoPurge" class="property item protected">
17505    <h3 class="name"><code>autoPurge</code></h3>
17506    <span class="type">Integer</span>
17507
17508    
17509
17510    
17511        <span class="flag protected">protected</span>
17512    
17513
17514    
17515
17516    
17517
17518    
17519
17520    <div class="meta">
17521        
17522            
17523                
17524                <p>
17525                
17526                Defined in
17527                
17528            
17529        
17530        
17531        <a href="../files/easeljs_display_StageGL.js.html#l879"><code>autoPurge:879</code></a>
17532        
17533        </p>
17534
17535        
17536
17537        
17538    </div>
17539
17540    <div class="description">
17541        <p>Specifies whether or not StageGL is automatically purging unused textures. Higher numbers purge less
17542often. Values below 10 are upgraded to 10, and -1 disables this feature.</p>
17543
17544    </div>
17545
17546    
17547        <p><strong>Default:</strong> 1000</p>
17548    
17549
17550    
17551
17552    
17553</div>
17554
17555                
17556                    <div id="property_bitmapCache" class="property item inherited">
17557    <h3 class="name"><code>bitmapCache</code></h3>
17558    <span class="type"><a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></span>
17559
17560    
17561
17562    
17563
17564    
17565
17566    
17567
17568    
17569        <span class="flag readonly">readonly</span>
17570    
17571
17572    <div class="meta">
17573        
17574            
17575                <p>Inherited from
17576                <a href="../classes/DisplayObject.html#property_bitmapCache">DisplayObject</a>:
17577            
17578        
17579        
17580        <a href="../files/easeljs_display_DisplayObject.js.html#l162"><code>bitmapCache:162</code></a>
17581        
17582        </p>
17583
17584        
17585
17586        
17587    </div>
17588
17589    <div class="description">
17590        <p>If a cache has been made, this returns the class that is managing the cacheCanvas and its properties. See <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>
17591for more information. Use this to control, inspect, and change the cache. In special circumstances this may be a modified or subclassed BitmapCache.</p>
17592
17593    </div>
17594
17595    
17596        <p><strong>Default:</strong> null</p>
17597    
17598
17599    
17600
17601    
17602</div>
17603
17604                
17605                    <div id="property_cacheCanvas" class="property item inherited">
17606    <h3 class="name"><code>cacheCanvas</code></h3>
17607    <span class="type">HTMLCanvasElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
17608
17609    
17610
17611    
17612
17613    
17614
17615    
17616
17617    
17618        <span class="flag readonly">readonly</span>
17619    
17620
17621    <div class="meta">
17622        
17623            
17624                <p>Inherited from
17625                <a href="../classes/DisplayObject.html#property_cacheCanvas">DisplayObject</a>:
17626            
17627        
17628        
17629        <a href="../files/easeljs_display_DisplayObject.js.html#l152"><code>cacheCanvas:152</code></a>
17630        
17631        </p>
17632
17633        
17634
17635        
17636    </div>
17637
17638    <div class="description">
17639        <p>If a cache is active, this returns the canvas that holds the image of this display object. See <a href="../classes/DisplayObject.html#method_cache" class="crosslink">cache</a>
17640for more information. Use this to display the result of a cache. This will be a HTMLCanvasElement unless special cache rules have been deliberately enabled for this cache.</p>
17641
17642    </div>
17643
17644    
17645        <p><strong>Default:</strong> null</p>
17646    
17647
17648    
17649
17650    
17651</div>
17652
17653                
17654                    <div id="property_cacheID" class="property item deprecated inherited">
17655    <h3 class="name"><code>cacheID</code></h3>
17656    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
17657
17658    
17659        <span class="flag deprecated">deprecated</span>
17660    
17661
17662    
17663
17664    
17665
17666    
17667
17668    
17669
17670    <div class="meta">
17671        
17672            
17673                <p>Inherited from
17674                <a href="../classes/DisplayObject.html#property_cacheID">DisplayObject</a>:
17675            
17676        
17677        
17678        <a href="../files/easeljs_display_DisplayObject.js.html#l695"><code>cacheID:695</code></a>
17679        
17680        </p>
17681
17682        
17683
17684        
17685    </div>
17686
17687    <div class="description">
17688        <p>Returns an ID number that uniquely identifies the current cache for this display object. This can be used to
17689determine if the cache has changed since a previous check.
17690Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
17691
17692    </div>
17693
17694    
17695        <p><strong>Default:</strong> 0</p>
17696    
17697
17698    
17699
17700    
17701</div>
17702
17703                
17704                    <div id="property_canvas" class="property item inherited">
17705    <h3 class="name"><code>canvas</code></h3>
17706    <span class="type">HTMLCanvasElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
17707
17708    
17709
17710    
17711
17712    
17713
17714    
17715
17716    
17717
17718    <div class="meta">
17719        
17720            
17721                <p>Inherited from
17722                <a href="../classes/Stage.html#property_canvas">Stage</a>:
17723            
17724        
17725        
17726        <a href="../files/easeljs_display_Stage.js.html#l85"><code>canvas:85</code></a>
17727        
17728        </p>
17729
17730        
17731
17732        
17733    </div>
17734
17735    <div class="description">
17736        <p><p>The canvas the stage will render to. Multiple stages can share a single canvas, but you must disable autoClear for all but the
17737first stage that will be ticked (or they will clear each other&#39;s render).</p></p>
17738<p><p>When changing the canvas property you must disable the events on the old canvas, and enable events on the
17739new canvas or mouse events will not work as expected. For example:</p></p>
17740<pre class="code prettyprint"><code> myStage.enableDOMEvents(false);
17741 myStage.canvas = anotherCanvas;
17742 myStage.enableDOMEvents(true);</code></pre>
17743
17744    </div>
17745
17746    
17747
17748    
17749
17750    
17751</div>
17752
17753                
17754                    <div id="property_children" class="property item inherited">
17755    <h3 class="name"><code>children</code></h3>
17756    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
17757
17758    
17759
17760    
17761
17762    
17763
17764    
17765
17766    
17767
17768    <div class="meta">
17769        
17770            
17771                <p>Inherited from
17772                <a href="../classes/Container.html#property_children">Container</a>:
17773            
17774        
17775        
17776        <a href="../files/easeljs_display_Container.js.html#l62"><code>children:62</code></a>
17777        
17778        </p>
17779
17780        
17781
17782        
17783    </div>
17784
17785    <div class="description">
17786        <p>The array of children in the display list. You should usually use the child management methods such as
17787<a href="../classes/Container.html#method_addChild" class="crosslink">addChild</a>, <a href="../classes/Container.html#method_removeChild" class="crosslink">removeChild</a>,
17788<a href="../classes/Container.html#method_swapChildren" class="crosslink">swapChildren</a>, etc, rather than accessing this directly, but it is
17789included for advanced uses.</p>
17790
17791    </div>
17792
17793    
17794        <p><strong>Default:</strong> null</p>
17795    
17796
17797    
17798
17799    
17800</div>
17801
17802                
17803                    <div id="property_compositeOperation" class="property item inherited">
17804    <h3 class="name"><code>compositeOperation</code></h3>
17805    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
17806
17807    
17808
17809    
17810
17811    
17812
17813    
17814
17815    
17816
17817    <div class="meta">
17818        
17819            
17820                <p>Inherited from
17821                <a href="../classes/DisplayObject.html#property_compositeOperation">DisplayObject</a>:
17822            
17823        
17824        
17825        <a href="../files/easeljs_display_DisplayObject.js.html#l330"><code>compositeOperation:330</code></a>
17826        
17827        </p>
17828
17829        
17830
17831        
17832    </div>
17833
17834    <div class="description">
17835        <p>The composite operation indicates how the pixels of this display object will be composited with the elements
17836behind it. If <code>null</code>, this property is inherited from the parent container. For more information, read the
17837<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
17838whatwg spec on compositing</a>. For a list of supported compositeOperation value, visit
17839<a href="https://drafts.fxtf.org/compositing/">the W3C draft on Compositing and Blending</a>.</p>
17840
17841    </div>
17842
17843    
17844        <p><strong>Default:</strong> null</p>
17845    
17846
17847    
17848
17849    
17850</div>
17851
17852                
17853                    <div id="property_COVER_FRAGMENT_BODY" class="property item">
17854    <h3 class="name"><code>COVER_FRAGMENT_BODY</code></h3>
17855    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
17856
17857    
17858
17859    
17860
17861    
17862        <span class="flag final">final</span>
17863    
17864
17865    
17866        <span class="flag static">static</span>
17867    
17868
17869    
17870        <span class="flag readonly">readonly</span>
17871    
17872
17873    <div class="meta">
17874        
17875            
17876                
17877                <p>
17878                
17879                Defined in
17880                
17881            
17882        
17883        
17884        <a href="../files/easeljs_display_StageGL.js.html#l824"><code>COVER_FRAGMENT_BODY:824</code></a>
17885        
17886        </p>
17887
17888        
17889
17890        
17891    </div>
17892
17893    <div class="description">
17894        <p>Body of the fragment shader. The cover shader is designed to be a simple vertex/uv only texture render that
17895covers the render surface. Shader code may contain templates that are replaced pre-compile.</p>
17896
17897    </div>
17898
17899    
17900
17901    
17902
17903    
17904</div>
17905
17906                
17907                    <div id="property_COVER_FRAGMENT_HEADER" class="property item">
17908    <h3 class="name"><code>COVER_FRAGMENT_HEADER</code></h3>
17909    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
17910
17911    
17912
17913    
17914
17915    
17916        <span class="flag final">final</span>
17917    
17918
17919    
17920        <span class="flag static">static</span>
17921    
17922
17923    
17924        <span class="flag readonly">readonly</span>
17925    
17926
17927    <div class="meta">
17928        
17929            
17930                
17931                <p>
17932                
17933                Defined in
17934                
17935            
17936        
17937        
17938        <a href="../files/easeljs_display_StageGL.js.html#l792"><code>COVER_FRAGMENT_HEADER:792</code></a>
17939        
17940        </p>
17941
17942        
17943
17944        
17945    </div>
17946
17947    <div class="description">
17948        <p>Actual full header for the fragment shader. Includes the varying header. The cover shader is designed to be a
17949simple vertex/uv only texture render that covers the render surface. Shader code may contain templates that are
17950replaced pre-compile.</p>
17951
17952    </div>
17953
17954    
17955
17956    
17957
17958    
17959</div>
17960
17961                
17962                    <div id="property_COVER_UV" class="property item">
17963    <h3 class="name"><code>COVER_UV</code></h3>
17964    <span class="type">Float32Array</span>
17965
17966    
17967
17968    
17969
17970    
17971        <span class="flag final">final</span>
17972    
17973
17974    
17975        <span class="flag static">static</span>
17976    
17977
17978    
17979        <span class="flag readonly">readonly</span>
17980    
17981
17982    <div class="meta">
17983        
17984            
17985                
17986                <p>
17987                
17988                Defined in
17989                
17990            
17991        
17992        
17993        <a href="../files/easeljs_display_StageGL.js.html#l592"><code>COVER_UV:592</code></a>
17994        
17995        </p>
17996
17997        
17998
17999        
18000    </div>
18001
18002    <div class="description">
18003        <p>U/V for <a href="../classes/StageGL.html#property_COVER_VERT" class="crosslink">COVER_VERT</a>.</p>
18004
18005    </div>
18006
18007    
18008
18009    
18010
18011    
18012</div>
18013
18014                
18015                    <div id="property_COVER_UV_FLIP" class="property item">
18016    <h3 class="name"><code>COVER_UV_FLIP</code></h3>
18017    <span class="type">Float32Array</span>
18018
18019    
18020
18021    
18022
18023    
18024        <span class="flag final">final</span>
18025    
18026
18027    
18028        <span class="flag static">static</span>
18029    
18030
18031    
18032        <span class="flag readonly">readonly</span>
18033    
18034
18035    <div class="meta">
18036        
18037            
18038                
18039                <p>
18040                
18041                Defined in
18042                
18043            
18044        
18045        
18046        <a href="../files/easeljs_display_StageGL.js.html#l609"><code>COVER_UV_FLIP:609</code></a>
18047        
18048        </p>
18049
18050        
18051
18052        
18053    </div>
18054
18055    <div class="description">
18056        <p>Flipped U/V for StageGL:COVER_VERT:property.</p>
18057
18058    </div>
18059
18060    
18061
18062    
18063
18064    
18065</div>
18066
18067                
18068                    <div id="property_COVER_VARYING_HEADER" class="property item">
18069    <h3 class="name"><code>COVER_VARYING_HEADER</code></h3>
18070    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
18071
18072    
18073
18074    
18075
18076    
18077        <span class="flag final">final</span>
18078    
18079
18080    
18081        <span class="flag static">static</span>
18082    
18083
18084    
18085        <span class="flag readonly">readonly</span>
18086    
18087
18088    <div class="meta">
18089        
18090            
18091                
18092                <p>
18093                
18094                Defined in
18095                
18096            
18097        
18098        
18099        <a href="../files/easeljs_display_StageGL.js.html#l758"><code>COVER_VARYING_HEADER:758</code></a>
18100        
18101        </p>
18102
18103        
18104
18105        
18106    </div>
18107
18108    <div class="description">
18109        <p>Portion of the shader that contains the "varying" properties required in both vertex and fragment shaders. The
18110cover shader is designed to be a simple vertex/uv only texture render that covers the render surface. Shader
18111code may contain templates that are replaced pre-compile.</p>
18112
18113    </div>
18114
18115    
18116
18117    
18118
18119    
18120</div>
18121
18122                
18123                    <div id="property_COVER_VERT" class="property item">
18124    <h3 class="name"><code>COVER_VERT</code></h3>
18125    <span class="type">Float32Array</span>
18126
18127    
18128
18129    
18130
18131    
18132        <span class="flag final">final</span>
18133    
18134
18135    
18136        <span class="flag static">static</span>
18137    
18138
18139    
18140        <span class="flag readonly">readonly</span>
18141    
18142
18143    <div class="meta">
18144        
18145            
18146                
18147                <p>
18148                
18149                Defined in
18150                
18151            
18152        
18153        
18154        <a href="../files/easeljs_display_StageGL.js.html#l575"><code>COVER_VERT:575</code></a>
18155        
18156        </p>
18157
18158        
18159
18160        
18161    </div>
18162
18163    <div class="description">
18164        <p>Vertex positions for a card that covers the entire render. Used with render targets primarily.</p>
18165
18166    </div>
18167
18168    
18169
18170    
18171
18172    
18173</div>
18174
18175                
18176                    <div id="property_COVER_VERTEX_BODY" class="property item">
18177    <h3 class="name"><code>COVER_VERTEX_BODY</code></h3>
18178    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
18179
18180    
18181
18182    
18183
18184    
18185        <span class="flag final">final</span>
18186    
18187
18188    
18189        <span class="flag static">static</span>
18190    
18191
18192    
18193        <span class="flag readonly">readonly</span>
18194    
18195
18196    <div class="meta">
18197        
18198            
18199                
18200                <p>
18201                
18202                Defined in
18203                
18204            
18205        
18206        
18207        <a href="../files/easeljs_display_StageGL.js.html#l807"><code>COVER_VERTEX_BODY:807</code></a>
18208        
18209        </p>
18210
18211        
18212
18213        
18214    </div>
18215
18216    <div class="description">
18217        <p>Body of the vertex shader. The cover shader is designed to be a simple vertex/uv only texture render that covers
18218the render surface. Shader code may contain templates that are replaced pre-compile.</p>
18219
18220    </div>
18221
18222    
18223
18224    
18225
18226    
18227</div>
18228
18229                
18230                    <div id="property_COVER_VERTEX_HEADER" class="property item">
18231    <h3 class="name"><code>COVER_VERTEX_HEADER</code></h3>
18232    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
18233
18234    
18235
18236    
18237
18238    
18239        <span class="flag final">final</span>
18240    
18241
18242    
18243        <span class="flag static">static</span>
18244    
18245
18246    
18247        <span class="flag readonly">readonly</span>
18248    
18249
18250    <div class="meta">
18251        
18252            
18253                
18254                <p>
18255                
18256                Defined in
18257                
18258            
18259        
18260        
18261        <a href="../files/easeljs_display_StageGL.js.html#l775"><code>COVER_VERTEX_HEADER:775</code></a>
18262        
18263        </p>
18264
18265        
18266
18267        
18268    </div>
18269
18270    <div class="description">
18271        <p>Actual full header for the vertex shader. Includes the varying header. The cover shader is designed to be a
18272simple vertex/uv only texture render that covers the render surface. Shader code may contain templates that are
18273replaced pre-compile.</p>
18274
18275    </div>
18276
18277    
18278
18279    
18280
18281    
18282</div>
18283
18284                
18285                    <div id="property_cursor" class="property item inherited">
18286    <h3 class="name"><code>cursor</code></h3>
18287    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
18288
18289    
18290
18291    
18292
18293    
18294
18295    
18296
18297    
18298
18299    <div class="meta">
18300        
18301            
18302                <p>Inherited from
18303                <a href="../classes/DisplayObject.html#property_cursor">DisplayObject</a>:
18304            
18305        
18306        
18307        <a href="../files/easeljs_display_DisplayObject.js.html#l388"><code>cursor:388</code></a>
18308        
18309        </p>
18310
18311        
18312
18313        
18314    </div>
18315
18316    <div class="description">
18317        <p>A CSS cursor (ex. "pointer", "help", "text", etc) that will be displayed when the user hovers over this display
18318object. You must enable mouseover events using the <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a> method to
18319use this property. Setting a non-null cursor on a Container will override the cursor set on its descendants.</p>
18320
18321    </div>
18322
18323    
18324        <p><strong>Default:</strong> null</p>
18325    
18326
18327    
18328
18329    
18330</div>
18331
18332                
18333                    <div id="property_DEFAULT_MAX_BATCH_SIZE" class="property item">
18334    <h3 class="name"><code>DEFAULT_MAX_BATCH_SIZE</code></h3>
18335    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
18336
18337    
18338
18339    
18340
18341    
18342        <span class="flag final">final</span>
18343    
18344
18345    
18346        <span class="flag static">static</span>
18347    
18348
18349    
18350        <span class="flag readonly">readonly</span>
18351    
18352
18353    <div class="meta">
18354        
18355            
18356                
18357                <p>
18358                
18359                Defined in
18360                
18361            
18362        
18363        
18364        <a href="../files/easeljs_display_StageGL.js.html#l539"><code>DEFAULT_MAX_BATCH_SIZE:539</code></a>
18365        
18366        </p>
18367
18368        
18369
18370        
18371    </div>
18372
18373    <div class="description">
18374        <p>The default value for the maximum number of cards we want to process in a batch. See
18375<a href="../classes/StageGL.html#property_WEBGL_MAX_INDEX_NUM" class="crosslink">WEBGL_MAX_INDEX_NUM</a> for a hard limit.</p>
18376
18377    </div>
18378
18379    
18380        <p><strong>Default:</strong> 10000</p>
18381    
18382
18383    
18384
18385    
18386</div>
18387
18388                
18389                    <div id="property_drawRect" class="property item inherited">
18390    <h3 class="name"><code>drawRect</code></h3>
18391    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
18392
18393    
18394
18395    
18396
18397    
18398
18399    
18400
18401    
18402
18403    <div class="meta">
18404        
18405            
18406                <p>Inherited from
18407                <a href="../classes/Stage.html#property_drawRect">Stage</a>:
18408            
18409        
18410        
18411        <a href="../files/easeljs_display_Stage.js.html#l119"><code>drawRect:119</code></a>
18412        
18413        </p>
18414
18415        
18416
18417        
18418    </div>
18419
18420    <div class="description">
18421        <p>Specifies the area of the stage to affect when calling update. This can be use to selectively
18422re-draw specific regions of the canvas. If null, the whole canvas area is drawn.</p>
18423
18424    </div>
18425
18426    
18427
18428    
18429
18430    
18431</div>
18432
18433                
18434                    <div id="property_filters" class="property item inherited">
18435    <h3 class="name"><code>filters</code></h3>
18436    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
18437
18438    
18439
18440    
18441
18442    
18443
18444    
18445
18446    
18447
18448    <div class="meta">
18449        
18450            
18451                <p>Inherited from
18452                <a href="../classes/DisplayObject.html#property_filters">DisplayObject</a>:
18453            
18454        
18455        
18456        <a href="../files/easeljs_display_DisplayObject.js.html#l352"><code>filters:352</code></a>
18457        
18458        </p>
18459
18460        
18461
18462        
18463    </div>
18464
18465    <div class="description">
18466        <p>An array of Filter objects to apply to this display object. Filters are only applied / updated when Cache
18467or UpdateCache is called on the display object, and only apply to the area that is
18468cached.</p>
18469
18470    </div>
18471
18472    
18473        <p><strong>Default:</strong> null</p>
18474    
18475
18476    
18477
18478    
18479</div>
18480
18481                
18482                    <div id="property_handleEvent" class="property item inherited">
18483    <h3 class="name"><code>handleEvent</code></h3>
18484    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
18485
18486    
18487
18488    
18489
18490    
18491
18492    
18493
18494    
18495
18496    <div class="meta">
18497        
18498            
18499                <p>Inherited from
18500                <a href="../classes/Stage.html#property_handleEvent">Stage</a>:
18501            
18502        
18503        
18504        <a href="../files/easeljs_display_Stage.js.html#l422"><code>handleEvent:422</code></a>
18505        
18506        </p>
18507
18508        
18509
18510        
18511    </div>
18512
18513    <div class="description">
18514        <p>Default event handler that calls the Stage <a href="../classes/Stage.html#method_update" class="crosslink">update</a> method when a <a href="../classes/DisplayObject.html#event_tick" class="crosslink">tick</a>
18515event is received. This allows you to register a Stage instance as a event listener on <a href="../classes/Ticker.html" class="crosslink">Ticker</a>
18516directly, using:</p>
18517<pre class="code prettyprint"><code> Ticker.addEventListener("tick", myStage);</code></pre>
18518<p>Note that if you subscribe to ticks using this pattern, then the tick event object will be passed through to
18519display object tick handlers, instead of <code>delta</code> and <code>paused</code> parameters.</p>
18520
18521    </div>
18522
18523    
18524
18525    
18526
18527    
18528</div>
18529
18530                
18531                    <div id="property_hitArea" class="property item inherited">
18532    <h3 class="name"><code>hitArea</code></h3>
18533    <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
18534
18535    
18536
18537    
18538
18539    
18540
18541    
18542
18543    
18544
18545    <div class="meta">
18546        
18547            <p>Inherited from
18548            <a href="../classes/DisplayObject.html#property_hitArea">
18549                DisplayObject
18550            </a>
18551            
18552            but overwritten in
18553            
18554        
18555        
18556        <a href="../files/easeljs_display_Stage.js.html#l173"><code>hitArea:173</code></a>
18557        
18558        </p>
18559
18560        
18561
18562        
18563    </div>
18564
18565    <div class="description">
18566        <p>The hitArea property is not supported for Stage.</p>
18567
18568    </div>
18569
18570    
18571        <p><strong>Default:</strong> null</p>
18572    
18573
18574    
18575
18576    
18577</div>
18578
18579                
18580                    <div id="property_id" class="property item inherited">
18581    <h3 class="name"><code>id</code></h3>
18582    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
18583
18584    
18585
18586    
18587
18588    
18589
18590    
18591
18592    
18593
18594    <div class="meta">
18595        
18596            
18597                <p>Inherited from
18598                <a href="../classes/DisplayObject.html#property_id">DisplayObject</a>:
18599            
18600        
18601        
18602        <a href="../files/easeljs_display_DisplayObject.js.html#l172"><code>id:172</code></a>
18603        
18604        </p>
18605
18606        
18607
18608        
18609    </div>
18610
18611    <div class="description">
18612        <p>Unique ID for this display object. Makes display objects easier for some uses.</p>
18613
18614    </div>
18615
18616    
18617        <p><strong>Default:</strong> -1</p>
18618    
18619
18620    
18621
18622    
18623</div>
18624
18625                
18626                    <div id="property_INDICIES_PER_CARD" class="property item">
18627    <h3 class="name"><code>INDICIES_PER_CARD</code></h3>
18628    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
18629
18630    
18631
18632    
18633
18634    
18635        <span class="flag final">final</span>
18636    
18637
18638    
18639        <span class="flag static">static</span>
18640    
18641
18642    
18643        <span class="flag readonly">readonly</span>
18644    
18645
18646    <div class="meta">
18647        
18648            
18649                
18650                <p>
18651                
18652                Defined in
18653                
18654            
18655        
18656        
18657        <a href="../files/easeljs_display_StageGL.js.html#l528"><code>INDICIES_PER_CARD:528</code></a>
18658        
18659        </p>
18660
18661        
18662
18663        
18664    </div>
18665
18666    <div class="description">
18667        <p>The number of triangle indices it takes to form a Card. 3 per triangle, 2 triangles.</p>
18668
18669    </div>
18670
18671    
18672        <p><strong>Default:</strong> 6</p>
18673    
18674
18675    
18676
18677    
18678</div>
18679
18680                
18681                    <div id="property_isCacheControlled" class="property item protected">
18682    <h3 class="name"><code>isCacheControlled</code></h3>
18683    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
18684
18685    
18686
18687    
18688        <span class="flag protected">protected</span>
18689    
18690
18691    
18692
18693    
18694
18695    
18696
18697    <div class="meta">
18698        
18699            
18700                
18701                <p>
18702                
18703                Defined in
18704                
18705            
18706        
18707        
18708        <a href="../files/easeljs_display_StageGL.js.html#l434"><code>isCacheControlled:434</code></a>
18709        
18710        </p>
18711
18712        
18713
18714        
18715    </div>
18716
18717    <div class="description">
18718        <p>Controls whether final rendering output of a CacheDraw is the canvas or a render
18719texture. See the Cache function modifications for full implications and discussion.</p>
18720
18721    </div>
18722
18723    
18724        <p><strong>Default:</strong> false</p>
18725    
18726
18727    
18728
18729    
18730</div>
18731
18732                
18733                    <div id="property_isWebGL" class="property item">
18734    <h3 class="name"><code>isWebGL</code></h3>
18735    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
18736
18737    
18738
18739    
18740
18741    
18742
18743    
18744
18745    
18746        <span class="flag readonly">readonly</span>
18747    
18748
18749    <div class="meta">
18750        
18751            
18752                
18753                <p>
18754                
18755                Defined in
18756                
18757            
18758        
18759        
18760        <a href="../files/easeljs_display_StageGL.js.html#l870"><code>isWebGL:870</code></a>
18761        
18762        </p>
18763
18764        
18765
18766        
18767    </div>
18768
18769    <div class="description">
18770        <p>Indicates whether WebGL is being used for rendering. For example, this would be <code>false</code> if WebGL is not
18771supported in the browser.</p>
18772
18773    </div>
18774
18775    
18776
18777    
18778
18779    
18780</div>
18781
18782                
18783                    <div id="property_mask" class="property item inherited">
18784    <h3 class="name"><code>mask</code></h3>
18785    <span class="type"><a href="../classes/Shape.html" class="crosslink">Shape</a></span>
18786
18787    
18788
18789    
18790
18791    
18792
18793    
18794
18795    
18796
18797    <div class="meta">
18798        
18799            
18800                <p>Inherited from
18801                <a href="../classes/DisplayObject.html#property_mask">DisplayObject</a>:
18802            
18803        
18804        
18805        <a href="../files/easeljs_display_DisplayObject.js.html#l362"><code>mask:362</code></a>
18806        
18807        </p>
18808
18809        
18810
18811        
18812    </div>
18813
18814    <div class="description">
18815        <p>A Shape instance that defines a vector mask (clipping path) for this display object.  The shape&#39;s transformation
18816will be applied relative to the display object&#39;s parent coordinates (as if it were a child of the parent).</p>
18817
18818    </div>
18819
18820    
18821        <p><strong>Default:</strong> null</p>
18822    
18823
18824    
18825
18826    
18827</div>
18828
18829                
18830                    <div id="property_mouseChildren" class="property item inherited">
18831    <h3 class="name"><code>mouseChildren</code></h3>
18832    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
18833
18834    
18835
18836    
18837
18838    
18839
18840    
18841
18842    
18843
18844    <div class="meta">
18845        
18846            
18847                <p>Inherited from
18848                <a href="../classes/Container.html#property_mouseChildren">Container</a>:
18849            
18850        
18851        
18852        <a href="../files/easeljs_display_Container.js.html#l73"><code>mouseChildren:73</code></a>
18853        
18854        </p>
18855
18856        
18857
18858        
18859    </div>
18860
18861    <div class="description">
18862        <p>Indicates whether the children of this container are independently enabled for mouse/pointer interaction.
18863If false, the children will be aggregated under the container - for example, a click on a child shape would
18864trigger a click event on the container.</p>
18865
18866    </div>
18867
18868    
18869        <p><strong>Default:</strong> true</p>
18870    
18871
18872    
18873
18874    
18875</div>
18876
18877                
18878                    <div id="property_mouseEnabled" class="property item inherited">
18879    <h3 class="name"><code>mouseEnabled</code></h3>
18880    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
18881
18882    
18883
18884    
18885
18886    
18887
18888    
18889
18890    
18891
18892    <div class="meta">
18893        
18894            
18895                <p>Inherited from
18896                <a href="../classes/DisplayObject.html#property_mouseEnabled">DisplayObject</a>:
18897            
18898        
18899        
18900        <a href="../files/easeljs_display_DisplayObject.js.html#l180"><code>mouseEnabled:180</code></a>
18901        
18902        </p>
18903
18904        
18905
18906        
18907    </div>
18908
18909    <div class="description">
18910        <p>Indicates whether to include this object when running mouse interactions. Setting this to <code>false</code> for children
18911of a <a href="../classes/Container.html" class="crosslink">Container</a> will cause events on the Container to not fire when that child is
18912clicked. Setting this property to <code>false</code> does not prevent the <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>
18913method from returning the child.</p>
18914<p><strong>Note:</strong> In EaselJS 0.7.0, the mouseEnabled property will not work properly with nested Containers. Please
18915check out the latest NEXT version in <a href="https://github.com/CreateJS/EaselJS/tree/master/lib">GitHub</a> for an updated version with this issue resolved. The fix will be
18916provided in the next release of EaselJS.</p>
18917
18918    </div>
18919
18920    
18921        <p><strong>Default:</strong> true</p>
18922    
18923
18924    
18925
18926    
18927</div>
18928
18929                
18930                    <div id="property_mouseInBounds" class="property item inherited">
18931    <h3 class="name"><code>mouseInBounds</code></h3>
18932    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
18933
18934    
18935
18936    
18937
18938    
18939
18940    
18941
18942    
18943
18944    <div class="meta">
18945        
18946            
18947                <p>Inherited from
18948                <a href="../classes/Stage.html#property_mouseInBounds">Stage</a>:
18949            
18950        
18951        
18952        <a href="../files/easeljs_display_Stage.js.html#l137"><code>mouseInBounds:137</code></a>
18953        
18954        </p>
18955
18956        
18957
18958        
18959    </div>
18960
18961    <div class="description">
18962        <p>Indicates whether the mouse is currently within the bounds of the canvas.</p>
18963
18964    </div>
18965
18966    
18967        <p><strong>Default:</strong> false</p>
18968    
18969
18970    
18971
18972    
18973</div>
18974
18975                
18976                    <div id="property_mouseMoveOutside" class="property item inherited">
18977    <h3 class="name"><code>mouseMoveOutside</code></h3>
18978    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
18979
18980    
18981
18982    
18983
18984    
18985
18986    
18987
18988    
18989
18990    <div class="meta">
18991        
18992            
18993                <p>Inherited from
18994                <a href="../classes/Stage.html#property_mouseMoveOutside">Stage</a>:
18995            
18996        
18997        
18998        <a href="../files/easeljs_display_Stage.js.html#l153"><code>mouseMoveOutside:153</code></a>
18999        
19000        </p>
19001
19002        
19003
19004        
19005    </div>
19006
19007    <div class="description">
19008        <p>If true, mouse move events will continue to be called when the mouse leaves the target canvas. See
19009<a href="../classes/Stage.html#property_mouseInBounds" class="crosslink">mouseInBounds</a>, and <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a>
19010x/y/rawX/rawY.</p>
19011
19012    </div>
19013
19014    
19015        <p><strong>Default:</strong> false</p>
19016    
19017
19018    
19019
19020    
19021</div>
19022
19023                
19024                    <div id="property_mouseX" class="property item inherited">
19025    <h3 class="name"><code>mouseX</code></h3>
19026    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
19027
19028    
19029
19030    
19031
19032    
19033
19034    
19035
19036    
19037        <span class="flag readonly">readonly</span>
19038    
19039
19040    <div class="meta">
19041        
19042            
19043                <p>Inherited from
19044                <a href="../classes/Stage.html#property_mouseX">Stage</a>:
19045            
19046        
19047        
19048        <a href="../files/easeljs_display_Stage.js.html#l101"><code>mouseX:101</code></a>
19049        
19050        </p>
19051
19052        
19053
19054        
19055    </div>
19056
19057    <div class="description">
19058        <p>The current mouse X position on the canvas. If the mouse leaves the canvas, this will indicate the most recent
19059position over the canvas, and mouseInBounds will be set to false.</p>
19060
19061    </div>
19062
19063    
19064
19065    
19066
19067    
19068</div>
19069
19070                
19071                    <div id="property_mouseY" class="property item inherited">
19072    <h3 class="name"><code>mouseY</code></h3>
19073    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
19074
19075    
19076
19077    
19078
19079    
19080
19081    
19082
19083    
19084        <span class="flag readonly">readonly</span>
19085    
19086
19087    <div class="meta">
19088        
19089            
19090                <p>Inherited from
19091                <a href="../classes/Stage.html#property_mouseY">Stage</a>:
19092            
19093        
19094        
19095        <a href="../files/easeljs_display_Stage.js.html#l110"><code>mouseY:110</code></a>
19096        
19097        </p>
19098
19099        
19100
19101        
19102    </div>
19103
19104    <div class="description">
19105        <p>The current mouse Y position on the canvas. If the mouse leaves the canvas, this will indicate the most recent
19106position over the canvas, and mouseInBounds will be set to false.</p>
19107
19108    </div>
19109
19110    
19111
19112    
19113
19114    
19115</div>
19116
19117                
19118                    <div id="property_name" class="property item inherited">
19119    <h3 class="name"><code>name</code></h3>
19120    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
19121
19122    
19123
19124    
19125
19126    
19127
19128    
19129
19130    
19131
19132    <div class="meta">
19133        
19134            
19135                <p>Inherited from
19136                <a href="../classes/DisplayObject.html#property_name">DisplayObject</a>:
19137            
19138        
19139        
19140        <a href="../files/easeljs_display_DisplayObject.js.html#l205"><code>name:205</code></a>
19141        
19142        </p>
19143
19144        
19145
19146        
19147    </div>
19148
19149    <div class="description">
19150        <p>An optional name for this display object. Included in <a href="../classes/DisplayObject.html#method_toString" class="crosslink">toString</a> . Useful for
19151debugging.</p>
19152
19153    </div>
19154
19155    
19156        <p><strong>Default:</strong> null</p>
19157    
19158
19159    
19160
19161    
19162</div>
19163
19164                
19165                    <div id="property_nextStage" class="property item inherited">
19166    <h3 class="name"><code>nextStage</code></h3>
19167    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
19168
19169    
19170
19171    
19172
19173    
19174
19175    
19176
19177    
19178
19179    <div class="meta">
19180        
19181            
19182                <p>Inherited from
19183                <a href="../classes/Stage.html#property_nextStage">Stage</a>:
19184            
19185        
19186        
19187        <a href="../files/easeljs_display_Stage.js.html#l302"><code>nextStage:302</code></a>
19188        
19189        </p>
19190
19191        
19192
19193        
19194    </div>
19195
19196    <div class="description">
19197        <p><p>Specifies a target stage that will have mouse / touch interactions relayed to it after this stage handles them.
19198This can be useful in cases where you have multiple layered canvases and want user interactions
19199events to pass through. For example, this would relay mouse events from topStage to bottomStage:</p></p>
19200<pre class="code prettyprint"><code> topStage.nextStage = bottomStage;</code></pre>
19201<p>To disable relaying, set nextStage to null.</p>
19202<p>MouseOver, MouseOut, RollOver, and RollOut interactions are also passed through using the mouse over settings
19203of the top-most stage, but are only processed if the target stage has mouse over interactions enabled.
19204Considerations when using roll over in relay targets:<OL></p>
19205<p><LI> The top-most (first) stage must have mouse over interactions enabled (via enableMouseOver)</LI></p>
19206<p><LI> All stages that wish to participate in mouse over interaction must enable them via enableMouseOver</LI></p>
19207<p><LI> All relay targets will share the frequency value of the top-most stage</LI>
19208</OL>
19209To illustrate, in this example the targetStage would process mouse over interactions at 10hz (despite passing
1921030 as it&#39;s desired frequency):
19211    topStage.nextStage = targetStage;
19212    topStage.enableMouseOver(10);
19213    targetStage.enableMouseOver(30);</p>
19214<p>If the target stage&#39;s canvas is completely covered by this stage&#39;s canvas, you may also want to disable its
19215DOM events using:</p>
19216<pre class="code prettyprint"><code>targetStage.enableDOMEvents(false);</code></pre>
19217
19218    </div>
19219
19220    
19221
19222    
19223
19224    
19225</div>
19226
19227                
19228                    <div id="property_numChildren" class="property item inherited">
19229    <h3 class="name"><code>numChildren</code></h3>
19230    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
19231
19232    
19233
19234    
19235
19236    
19237
19238    
19239
19240    
19241        <span class="flag readonly">readonly</span>
19242    
19243
19244    <div class="meta">
19245        
19246            
19247                <p>Inherited from
19248                <a href="../classes/Container.html#property_numChildren">Container</a>:
19249            
19250        
19251        
19252        <a href="../files/easeljs_display_Container.js.html#l109"><code>numChildren:109</code></a>
19253        
19254        </p>
19255
19256        
19257
19258        
19259    </div>
19260
19261    <div class="description">
19262        <p>Returns the number of children in the container.</p>
19263
19264    </div>
19265
19266    
19267
19268    
19269
19270    
19271</div>
19272
19273                
19274                    <div id="property_parent" class="property item inherited">
19275    <h3 class="name"><code>parent</code></h3>
19276    <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
19277
19278    
19279
19280    
19281
19282    
19283        <span class="flag final">final</span>
19284    
19285
19286    
19287
19288    
19289        <span class="flag readonly">readonly</span>
19290    
19291
19292    <div class="meta">
19293        
19294            
19295                <p>Inherited from
19296                <a href="../classes/DisplayObject.html#property_parent">DisplayObject</a>:
19297            
19298        
19299        
19300        <a href="../files/easeljs_display_DisplayObject.js.html#l214"><code>parent:214</code></a>
19301        
19302        </p>
19303
19304        
19305
19306        
19307    </div>
19308
19309    <div class="description">
19310        <p>A reference to the <a href="../classes/Container.html" class="crosslink">Container</a> or <a href="../classes/Stage.html" class="crosslink">Stage</a> object that
19311contains this display object, or null if it has not been added
19312to one.</p>
19313
19314    </div>
19315
19316    
19317        <p><strong>Default:</strong> null</p>
19318    
19319
19320    
19321
19322    
19323</div>
19324
19325                
19326                    <div id="property_PARTICLE_FRAGMENT_BODY" class="property item">
19327    <h3 class="name"><code>PARTICLE_FRAGMENT_BODY</code></h3>
19328    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
19329
19330    
19331
19332    
19333
19334    
19335        <span class="flag final">final</span>
19336    
19337
19338    
19339        <span class="flag static">static</span>
19340    
19341
19342    
19343        <span class="flag readonly">readonly</span>
19344    
19345
19346    <div class="meta">
19347        
19348            
19349                
19350                <p>
19351                
19352                Defined in
19353                
19354            
19355        
19356        
19357        <a href="../files/easeljs_display_StageGL.js.html#l746"><code>PARTICLE_FRAGMENT_BODY:746</code></a>
19358        
19359        </p>
19360
19361        
19362
19363        
19364    </div>
19365
19366    <div class="description">
19367        
19368    </div>
19369
19370    
19371
19372    
19373
19374    
19375</div>
19376
19377                
19378                    <div id="property_PARTICLE_VERTEX_BODY" class="property item">
19379    <h3 class="name"><code>PARTICLE_VERTEX_BODY</code></h3>
19380    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
19381
19382    
19383
19384    
19385
19386    
19387        <span class="flag final">final</span>
19388    
19389
19390    
19391        <span class="flag static">static</span>
19392    
19393
19394    
19395        <span class="flag readonly">readonly</span>
19396    
19397
19398    <div class="meta">
19399        
19400            
19401                
19402                <p>
19403                
19404                Defined in
19405                
19406            
19407        
19408        
19409        <a href="../files/easeljs_display_StageGL.js.html#l735"><code>PARTICLE_VERTEX_BODY:735</code></a>
19410        
19411        </p>
19412
19413        
19414
19415        
19416    </div>
19417
19418    <div class="description">
19419        
19420    </div>
19421
19422    
19423
19424    
19425
19426    
19427</div>
19428
19429                
19430                    <div id="property_preventSelection" class="property item inherited">
19431    <h3 class="name"><code>preventSelection</code></h3>
19432    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
19433
19434    
19435
19436    
19437
19438    
19439
19440    
19441
19442    
19443
19444    <div class="meta">
19445        
19446            
19447                <p>Inherited from
19448                <a href="../classes/Stage.html#property_preventSelection">Stage</a>:
19449            
19450        
19451        
19452        <a href="../files/easeljs_display_Stage.js.html#l164"><code>preventSelection:164</code></a>
19453        
19454        </p>
19455
19456        
19457
19458        
19459    </div>
19460
19461    <div class="description">
19462        <p>Prevents selection of other elements in the html page if the user clicks and drags, or double clicks on the canvas.
19463This works by calling <code>preventDefault()</code> on any mousedown events (or touch equivalent) originating on the canvas.</p>
19464
19465    </div>
19466
19467    
19468        <p><strong>Default:</strong> true</p>
19469    
19470
19471    
19472
19473    
19474</div>
19475
19476                
19477                    <div id="property_REGULAR_FRAGMENT_BODY" class="property item">
19478    <h3 class="name"><code>REGULAR_FRAGMENT_BODY</code></h3>
19479    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
19480
19481    
19482
19483    
19484
19485    
19486        <span class="flag final">final</span>
19487    
19488
19489    
19490        <span class="flag static">static</span>
19491    
19492
19493    
19494        <span class="flag readonly">readonly</span>
19495    
19496
19497    <div class="meta">
19498        
19499            
19500                
19501                <p>
19502                
19503                Defined in
19504                
19505            
19506        
19507        
19508        <a href="../files/easeljs_display_StageGL.js.html#l702"><code>REGULAR_FRAGMENT_BODY:702</code></a>
19509        
19510        </p>
19511
19512        
19513
19514        
19515    </div>
19516
19517    <div class="description">
19518        <p>Body of the fragment shader. The regular shader is designed to render all expected objects. Shader code may
19519contain templates that are replaced pre-compile.</p>
19520
19521    </div>
19522
19523    
19524
19525    
19526
19527    
19528</div>
19529
19530                
19531                    <div id="property_REGULAR_FRAGMENT_HEADER" class="property item">
19532    <h3 class="name"><code>REGULAR_FRAGMENT_HEADER</code></h3>
19533    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
19534
19535    
19536
19537    
19538
19539    
19540        <span class="flag final">final</span>
19541    
19542
19543    
19544        <span class="flag static">static</span>
19545    
19546
19547    
19548        <span class="flag readonly">readonly</span>
19549    
19550
19551    <div class="meta">
19552        
19553            
19554                
19555                <p>
19556                
19557                Defined in
19558                
19559            
19560        
19561        
19562        <a href="../files/easeljs_display_StageGL.js.html#l662"><code>REGULAR_FRAGMENT_HEADER:662</code></a>
19563        
19564        </p>
19565
19566        
19567
19568        
19569    </div>
19570
19571    <div class="description">
19572        <p>Actual full header for the fragment shader. Includes the varying header. The regular shader is designed to render
19573all expected objects. Shader code may contain templates that are replaced pre-compile.</p>
19574
19575    </div>
19576
19577    
19578
19579    
19580
19581    
19582</div>
19583
19584                
19585                    <div id="property_REGULAR_VARYING_HEADER" class="property item">
19586    <h3 class="name"><code>REGULAR_VARYING_HEADER</code></h3>
19587    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
19588
19589    
19590
19591    
19592
19593    
19594        <span class="flag final">final</span>
19595    
19596
19597    
19598        <span class="flag static">static</span>
19599    
19600
19601    
19602        <span class="flag readonly">readonly</span>
19603    
19604
19605    <div class="meta">
19606        
19607            
19608                
19609                <p>
19610                
19611                Defined in
19612                
19613            
19614        
19615        
19616        <a href="../files/easeljs_display_StageGL.js.html#l627"><code>REGULAR_VARYING_HEADER:627</code></a>
19617        
19618        </p>
19619
19620        
19621
19622        
19623    </div>
19624
19625    <div class="description">
19626        <p>Portion of the shader that contains the "varying" properties required in both vertex and fragment shaders. The
19627regular shader is designed to render all expected objects. Shader code may contain templates that are replaced
19628pre-compile.</p>
19629
19630    </div>
19631
19632    
19633
19634    
19635
19636    
19637</div>
19638
19639                
19640                    <div id="property_REGULAR_VERTEX_BODY" class="property item">
19641    <h3 class="name"><code>REGULAR_VERTEX_BODY</code></h3>
19642    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
19643
19644    
19645
19646    
19647
19648    
19649        <span class="flag final">final</span>
19650    
19651
19652    
19653        <span class="flag static">static</span>
19654    
19655
19656    
19657        <span class="flag readonly">readonly</span>
19658    
19659
19660    <div class="meta">
19661        
19662            
19663                
19664                <p>
19665                
19666                Defined in
19667                
19668            
19669        
19670        
19671        <a href="../files/easeljs_display_StageGL.js.html#l676"><code>REGULAR_VERTEX_BODY:676</code></a>
19672        
19673        </p>
19674
19675        
19676
19677        
19678    </div>
19679
19680    <div class="description">
19681        <p>Body of the vertex shader. The regular shader is designed to render all expected objects. Shader code may contain
19682templates that are replaced pre-compile.</p>
19683
19684    </div>
19685
19686    
19687
19688    
19689
19690    
19691</div>
19692
19693                
19694                    <div id="property_REGULAR_VERTEX_HEADER" class="property item">
19695    <h3 class="name"><code>REGULAR_VERTEX_HEADER</code></h3>
19696    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
19697
19698    
19699
19700    
19701
19702    
19703        <span class="flag final">final</span>
19704    
19705
19706    
19707        <span class="flag static">static</span>
19708    
19709
19710    
19711        <span class="flag readonly">readonly</span>
19712    
19713
19714    <div class="meta">
19715        
19716            
19717                
19718                <p>
19719                
19720                Defined in
19721                
19722            
19723        
19724        
19725        <a href="../files/easeljs_display_StageGL.js.html#l644"><code>REGULAR_VERTEX_HEADER:644</code></a>
19726        
19727        </p>
19728
19729        
19730
19731        
19732    </div>
19733
19734    <div class="description">
19735        <p>Actual full header for the vertex shader. Includes the varying header. The regular shader is designed to render
19736all expected objects. Shader code may contain templates that are replaced pre-compile.</p>
19737
19738    </div>
19739
19740    
19741
19742    
19743
19744    
19745</div>
19746
19747                
19748                    <div id="property_regX" class="property item inherited">
19749    <h3 class="name"><code>regX</code></h3>
19750    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
19751
19752    
19753
19754    
19755
19756    
19757
19758    
19759
19760    
19761
19762    <div class="meta">
19763        
19764            
19765                <p>Inherited from
19766                <a href="../classes/DisplayObject.html#property_regX">DisplayObject</a>:
19767            
19768        
19769        
19770        <a href="../files/easeljs_display_DisplayObject.js.html#l226"><code>regX:226</code></a>
19771        
19772        </p>
19773
19774        
19775
19776        
19777    </div>
19778
19779    <div class="description">
19780        <p>The left offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate
19781around its center, you would set regX and <a href="../classes/DisplayObject.html#property_regY" class="crosslink">regY</a> to 50.
19782Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>
19783
19784    </div>
19785
19786    
19787        <p><strong>Default:</strong> 0</p>
19788    
19789
19790    
19791
19792    
19793</div>
19794
19795                
19796                    <div id="property_regY" class="property item inherited">
19797    <h3 class="name"><code>regY</code></h3>
19798    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
19799
19800    
19801
19802    
19803
19804    
19805
19806    
19807
19808    
19809
19810    <div class="meta">
19811        
19812            
19813                <p>Inherited from
19814                <a href="../classes/DisplayObject.html#property_regY">DisplayObject</a>:
19815            
19816        
19817        
19818        <a href="../files/easeljs_display_DisplayObject.js.html#l236"><code>regY:236</code></a>
19819        
19820        </p>
19821
19822        
19823
19824        
19825    </div>
19826
19827    <div class="description">
19828        <p>The y offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate around
19829its center, you would set <a href="../classes/DisplayObject.html#property_regX" class="crosslink">regX</a> and regY to 50.
19830Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>
19831
19832    </div>
19833
19834    
19835        <p><strong>Default:</strong> 0</p>
19836    
19837
19838    
19839
19840    
19841</div>
19842
19843                
19844                    <div id="property_rotation" class="property item inherited">
19845    <h3 class="name"><code>rotation</code></h3>
19846    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
19847
19848    
19849
19850    
19851
19852    
19853
19854    
19855
19856    
19857
19858    <div class="meta">
19859        
19860            
19861                <p>Inherited from
19862                <a href="../classes/DisplayObject.html#property_rotation">DisplayObject</a>:
19863            
19864        
19865        
19866        <a href="../files/easeljs_display_DisplayObject.js.html#l246"><code>rotation:246</code></a>
19867        
19868        </p>
19869
19870        
19871
19872        
19873    </div>
19874
19875    <div class="description">
19876        <p>The rotation in degrees for this display object.</p>
19877
19878    </div>
19879
19880    
19881        <p><strong>Default:</strong> 0</p>
19882    
19883
19884    
19885
19886    
19887</div>
19888
19889                
19890                    <div id="property_scaleX" class="property item inherited">
19891    <h3 class="name"><code>scaleX</code></h3>
19892    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
19893
19894    
19895
19896    
19897
19898    
19899
19900    
19901
19902    
19903
19904    <div class="meta">
19905        
19906            <p>Inherited from
19907            <a href="../classes/DisplayObject.html#property_scaleX">
19908                DisplayObject
19909            </a>
19910            
19911            but overwritten in
19912            
19913        
19914        
19915        <a href="../files/easeljs_display_DisplayObject.js.html#l254"><code>scaleX:254</code></a>
19916        
19917        </p>
19918
19919        
19920
19921        
19922    </div>
19923
19924    <div class="description">
19925        <p>The factor to stretch this display object horizontally. For example, setting scaleX to 2 will stretch the display
19926object to twice its nominal width. To horizontally flip an object, set the scale to a negative number.</p>
19927
19928    </div>
19929
19930    
19931        <p><strong>Default:</strong> 1</p>
19932    
19933
19934    
19935
19936    
19937</div>
19938
19939                
19940                    <div id="property_scaleY" class="property item inherited">
19941    <h3 class="name"><code>scaleY</code></h3>
19942    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
19943
19944    
19945
19946    
19947
19948    
19949
19950    
19951
19952    
19953
19954    <div class="meta">
19955        
19956            
19957                <p>Inherited from
19958                <a href="../classes/DisplayObject.html#property_scaleY">DisplayObject</a>:
19959            
19960        
19961        
19962        <a href="../files/easeljs_display_DisplayObject.js.html#l263"><code>scaleY:263</code></a>
19963        
19964        </p>
19965
19966        
19967
19968        
19969    </div>
19970
19971    <div class="description">
19972        <p>The factor to stretch this display object vertically. For example, setting scaleY to 0.5 will stretch the display
19973object to half its nominal height. To vertically flip an object, set the scale to a negative number.</p>
19974
19975    </div>
19976
19977    
19978        <p><strong>Default:</strong> 1</p>
19979    
19980
19981    
19982
19983    
19984</div>
19985
19986                
19987                    <div id="property_shadow" class="property item inherited">
19988    <h3 class="name"><code>shadow</code></h3>
19989    <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
19990
19991    
19992
19993    
19994
19995    
19996
19997    
19998
19999    
20000
20001    <div class="meta">
20002        
20003            
20004                <p>Inherited from
20005                <a href="../classes/DisplayObject.html#property_shadow">DisplayObject</a>:
20006            
20007        
20008        
20009        <a href="../files/easeljs_display_DisplayObject.js.html#l288"><code>shadow:288</code></a>
20010        
20011        </p>
20012
20013        
20014
20015        
20016    </div>
20017
20018    <div class="description">
20019        <p>A shadow object that defines the shadow to render on this display object. Set to <code>null</code> to remove a shadow. If
20020null, this property is inherited from the parent container.</p>
20021
20022    </div>
20023
20024    
20025        <p><strong>Default:</strong> null</p>
20026    
20027
20028    
20029
20030    
20031</div>
20032
20033                
20034                    <div id="property_skewX" class="property item inherited">
20035    <h3 class="name"><code>skewX</code></h3>
20036    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
20037
20038    
20039
20040    
20041
20042    
20043
20044    
20045
20046    
20047
20048    <div class="meta">
20049        
20050            
20051                <p>Inherited from
20052                <a href="../classes/DisplayObject.html#property_skewX">DisplayObject</a>:
20053            
20054        
20055        
20056        <a href="../files/easeljs_display_DisplayObject.js.html#l272"><code>skewX:272</code></a>
20057        
20058        </p>
20059
20060        
20061
20062        
20063    </div>
20064
20065    <div class="description">
20066        <p>The factor to skew this display object horizontally.</p>
20067
20068    </div>
20069
20070    
20071        <p><strong>Default:</strong> 0</p>
20072    
20073
20074    
20075
20076    
20077</div>
20078
20079                
20080                    <div id="property_skewY" class="property item inherited">
20081    <h3 class="name"><code>skewY</code></h3>
20082    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
20083
20084    
20085
20086    
20087
20088    
20089
20090    
20091
20092    
20093
20094    <div class="meta">
20095        
20096            
20097                <p>Inherited from
20098                <a href="../classes/DisplayObject.html#property_skewY">DisplayObject</a>:
20099            
20100        
20101        
20102        <a href="../files/easeljs_display_DisplayObject.js.html#l280"><code>skewY:280</code></a>
20103        
20104        </p>
20105
20106        
20107
20108        
20109    </div>
20110
20111    <div class="description">
20112        <p>The factor to skew this display object vertically.</p>
20113
20114    </div>
20115
20116    
20117        <p><strong>Default:</strong> 0</p>
20118    
20119
20120    
20121
20122    
20123</div>
20124
20125                
20126                    <div id="property_snapToPixel" class="property item inherited">
20127    <h3 class="name"><code>snapToPixel</code></h3>
20128    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
20129
20130    
20131
20132    
20133
20134    
20135
20136    
20137
20138    
20139
20140    <div class="meta">
20141        
20142            
20143                <p>Inherited from
20144                <a href="../classes/DisplayObject.html#property_snapToPixel">DisplayObject</a>:
20145            
20146        
20147        
20148        <a href="../files/easeljs_display_DisplayObject.js.html#l342"><code>snapToPixel:342</code></a>
20149        
20150        </p>
20151
20152        
20153
20154        
20155    </div>
20156
20157    <div class="description">
20158        <p>Indicates whether the display object should be drawn to a whole pixel when
20159Stage/snapToPixelEnabled is true. To enable/disable snapping on whole
20160categories of display objects, set this value on the prototype (Ex. Text.prototype.snapToPixel = true).</p>
20161
20162    </div>
20163
20164    
20165        <p><strong>Default:</strong> true</p>
20166    
20167
20168    
20169
20170    
20171</div>
20172
20173                
20174                    <div id="property_snapToPixelEnabled" class="property item inherited">
20175    <h3 class="name"><code>snapToPixelEnabled</code></h3>
20176    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
20177
20178    
20179
20180    
20181
20182    
20183
20184    
20185
20186    
20187
20188    <div class="meta">
20189        
20190            
20191                <p>Inherited from
20192                <a href="../classes/Stage.html#property_snapToPixelEnabled">Stage</a>:
20193            
20194        
20195        
20196        <a href="../files/easeljs_display_Stage.js.html#l127"><code>snapToPixelEnabled:127</code></a>
20197        
20198        </p>
20199
20200        
20201
20202        
20203    </div>
20204
20205    <div class="description">
20206        <p>Indicates whether display objects should be rendered on whole pixels. You can set the
20207DisplayObject/snapToPixel property of
20208display objects to false to enable/disable this behaviour on a per instance basis.</p>
20209
20210    </div>
20211
20212    
20213        <p><strong>Default:</strong> false</p>
20214    
20215
20216    
20217
20218    
20219</div>
20220
20221                
20222                    <div id="property_stage" class="property item inherited">
20223    <h3 class="name"><code>stage</code></h3>
20224    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
20225
20226    
20227
20228    
20229
20230    
20231
20232    
20233
20234    
20235        <span class="flag readonly">readonly</span>
20236    
20237
20238    <div class="meta">
20239        
20240            
20241                <p>Inherited from
20242                <a href="../classes/DisplayObject.html#property_stage">DisplayObject</a>:
20243            
20244        
20245        
20246        <a href="../files/easeljs_display_DisplayObject.js.html#l688"><code>stage:688</code></a>
20247        
20248        </p>
20249
20250        
20251
20252        
20253    </div>
20254
20255    <div class="description">
20256        <p>Returns the Stage instance that this display object will be rendered on, or null if it has not been added to one.</p>
20257
20258    </div>
20259
20260    
20261
20262    
20263
20264    
20265</div>
20266
20267                
20268                    <div id="property_tickChildren" class="property item inherited">
20269    <h3 class="name"><code>tickChildren</code></h3>
20270    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
20271
20272    
20273
20274    
20275
20276    
20277
20278    
20279
20280    
20281
20282    <div class="meta">
20283        
20284            
20285                <p>Inherited from
20286                <a href="../classes/Container.html#property_tickChildren">Container</a>:
20287            
20288        
20289        
20290        <a href="../files/easeljs_display_Container.js.html#l83"><code>tickChildren:83</code></a>
20291        
20292        </p>
20293
20294        
20295
20296        
20297    </div>
20298
20299    <div class="description">
20300        <p>If false, the tick will not be propagated to children of this Container. This can provide some performance benefits.
20301In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates
20302on some display objects (ex. Sprite &amp; MovieClip frame advancing, DOMElement visibility handling).</p>
20303
20304    </div>
20305
20306    
20307        <p><strong>Default:</strong> true</p>
20308    
20309
20310    
20311
20312    
20313</div>
20314
20315                
20316                    <div id="property_tickEnabled" class="property item inherited">
20317    <h3 class="name"><code>tickEnabled</code></h3>
20318    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
20319
20320    
20321
20322    
20323
20324    
20325
20326    
20327
20328    
20329
20330    <div class="meta">
20331        
20332            
20333                <p>Inherited from
20334                <a href="../classes/DisplayObject.html#property_tickEnabled">DisplayObject</a>:
20335            
20336        
20337        
20338        <a href="../files/easeljs_display_DisplayObject.js.html#l195"><code>tickEnabled:195</code></a>
20339        
20340        </p>
20341
20342        
20343
20344        
20345    </div>
20346
20347    <div class="description">
20348        <p>If false, the tick will not run on this display object (or its children). This can provide some performance benefits.
20349In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates
20350on some display objects (ex. Sprite &amp; MovieClip frame advancing, and DOMElement display properties).</p>
20351
20352    </div>
20353
20354    
20355        <p><strong>Default:</strong> true</p>
20356    
20357
20358    
20359
20360    
20361</div>
20362
20363                
20364                    <div id="property_tickOnUpdate" class="property item inherited">
20365    <h3 class="name"><code>tickOnUpdate</code></h3>
20366    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
20367
20368    
20369
20370    
20371
20372    
20373
20374    
20375
20376    
20377
20378    <div class="meta">
20379        
20380            
20381                <p>Inherited from
20382                <a href="../classes/Stage.html#property_tickOnUpdate">Stage</a>:
20383            
20384        
20385        
20386        <a href="../files/easeljs_display_Stage.js.html#l145"><code>tickOnUpdate:145</code></a>
20387        
20388        </p>
20389
20390        
20391
20392        
20393    </div>
20394
20395    <div class="description">
20396        <p>If true, tick callbacks will be called on all display objects on the stage prior to rendering to the canvas.</p>
20397
20398    </div>
20399
20400    
20401        <p><strong>Default:</strong> true</p>
20402    
20403
20404    
20405
20406    
20407</div>
20408
20409                
20410                    <div id="property_transformMatrix" class="property item inherited">
20411    <h3 class="name"><code>transformMatrix</code></h3>
20412    <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
20413
20414    
20415
20416    
20417
20418    
20419
20420    
20421
20422    
20423
20424    <div class="meta">
20425        
20426            
20427                <p>Inherited from
20428                <a href="../classes/DisplayObject.html#property_transformMatrix">DisplayObject</a>:
20429            
20430        
20431        
20432        <a href="../files/easeljs_display_DisplayObject.js.html#l321"><code>transformMatrix:321</code></a>
20433        
20434        </p>
20435
20436        
20437
20438        
20439    </div>
20440
20441    <div class="description">
20442        <p>If set, defines the transformation for this display object, overriding all other transformation properties
20443(x, y, rotation, scale, skew).</p>
20444
20445    </div>
20446
20447    
20448        <p><strong>Default:</strong> null</p>
20449    
20450
20451    
20452
20453    
20454</div>
20455
20456                
20457                    <div id="property_UV_RECT" class="property item">
20458    <h3 class="name"><code>UV_RECT</code></h3>
20459    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
20460
20461    
20462
20463    
20464
20465    
20466        <span class="flag final">final</span>
20467    
20468
20469    
20470        <span class="flag static">static</span>
20471    
20472
20473    
20474        <span class="flag readonly">readonly</span>
20475    
20476
20477    <div class="meta">
20478        
20479            
20480                
20481                <p>
20482                
20483                Defined in
20484                
20485            
20486        
20487        
20488        <a href="../files/easeljs_display_StageGL.js.html#l563"><code>UV_RECT:563</code></a>
20489        
20490        </p>
20491
20492        
20493
20494        
20495    </div>
20496
20497    <div class="description">
20498        <p>Default U/V rect for dealing with full coverage from an image source.</p>
20499
20500    </div>
20501
20502    
20503        <p><strong>Default:</strong> {t:0, l:0, b:1, r:1}</p>
20504    
20505
20506    
20507
20508    
20509</div>
20510
20511                
20512                    <div id="property_VERTEX_PROPERTY_COUNT" class="property item">
20513    <h3 class="name"><code>VERTEX_PROPERTY_COUNT</code></h3>
20514    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
20515
20516    
20517
20518    
20519
20520    
20521        <span class="flag final">final</span>
20522    
20523
20524    
20525        <span class="flag static">static</span>
20526    
20527
20528    
20529        <span class="flag readonly">readonly</span>
20530    
20531
20532    <div class="meta">
20533        
20534            
20535                
20536                <p>
20537                
20538                Defined in
20539                
20540            
20541        
20542        
20543        <a href="../files/easeljs_display_StageGL.js.html#l517"><code>VERTEX_PROPERTY_COUNT:517</code></a>
20544        
20545        </p>
20546
20547        
20548
20549        
20550    </div>
20551
20552    <div class="description">
20553        <p>The number of properties defined per vertex (x, y, textureU, textureV, textureIndex, alpha)</p>
20554
20555    </div>
20556
20557    
20558        <p><strong>Default:</strong> 6</p>
20559    
20560
20561    
20562
20563    
20564</div>
20565
20566                
20567                    <div id="property_visible" class="property item inherited">
20568    <h3 class="name"><code>visible</code></h3>
20569    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
20570
20571    
20572
20573    
20574
20575    
20576
20577    
20578
20579    
20580
20581    <div class="meta">
20582        
20583            
20584                <p>Inherited from
20585                <a href="../classes/DisplayObject.html#property_visible">DisplayObject</a>:
20586            
20587        
20588        
20589        <a href="../files/easeljs_display_DisplayObject.js.html#l297"><code>visible:297</code></a>
20590        
20591        </p>
20592
20593        
20594
20595        
20596    </div>
20597
20598    <div class="description">
20599        <p>Indicates whether this display object should be rendered to the canvas and included when running the Stage
20600Stage/getObjectsUnderPoint method.</p>
20601
20602    </div>
20603
20604    
20605        <p><strong>Default:</strong> true</p>
20606    
20607
20608    
20609
20610    
20611</div>
20612
20613                
20614                    <div id="property_vocalDebug" class="property item">
20615    <h3 class="name"><code>vocalDebug</code></h3>
20616    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
20617
20618    
20619
20620    
20621
20622    
20623
20624    
20625
20626    
20627
20628    <div class="meta">
20629        
20630            
20631                
20632                <p>
20633                
20634                Defined in
20635                
20636            
20637        
20638        
20639        <a href="../files/easeljs_display_StageGL.js.html#l135"><code>vocalDebug:135</code></a>
20640        
20641        </p>
20642
20643        
20644
20645        
20646    </div>
20647
20648    <div class="description">
20649        <p>Console log potential issues and problems. This is designed to have <em>minimal</em> performance impact, so
20650if extensive debugging information is required, this may be inadequate. See <a href="../classes/WebGLInspector.html" class="crosslink">WebGLInspector</a></p>
20651
20652    </div>
20653
20654    
20655        <p><strong>Default:</strong> false</p>
20656    
20657
20658    
20659
20660    
20661</div>
20662
20663                
20664                    <div id="property_WEBGL_MAX_INDEX_NUM" class="property item">
20665    <h3 class="name"><code>WEBGL_MAX_INDEX_NUM</code></h3>
20666    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
20667
20668    
20669
20670    
20671
20672    
20673        <span class="flag final">final</span>
20674    
20675
20676    
20677        <span class="flag static">static</span>
20678    
20679
20680    
20681        <span class="flag readonly">readonly</span>
20682    
20683
20684    <div class="meta">
20685        
20686            
20687                
20688                <p>
20689                
20690                Defined in
20691                
20692            
20693        
20694        
20695        <a href="../files/easeljs_display_StageGL.js.html#l551"><code>WEBGL_MAX_INDEX_NUM:551</code></a>
20696        
20697        </p>
20698
20699        
20700
20701        
20702    </div>
20703
20704    <div class="description">
20705        <p>The maximum size WebGL allows for element index numbers. Uses a 16 bit unsigned integer. It takes 6 indices to
20706make a unique card.</p>
20707
20708    </div>
20709
20710    
20711        <p><strong>Default:</strong> 65536</p>
20712    
20713
20714    
20715
20716    
20717</div>
20718
20719                
20720                    <div id="property_x" class="property item inherited">
20721    <h3 class="name"><code>x</code></h3>
20722    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
20723
20724    
20725
20726    
20727
20728    
20729
20730    
20731
20732    
20733
20734    <div class="meta">
20735        
20736            
20737                <p>Inherited from
20738                <a href="../classes/DisplayObject.html#property_x">DisplayObject</a>:
20739            
20740        
20741        
20742        <a href="../files/easeljs_display_DisplayObject.js.html#l306"><code>x:306</code></a>
20743        
20744        </p>
20745
20746        
20747
20748        
20749    </div>
20750
20751    <div class="description">
20752        <p>The x (horizontal) position of the display object, relative to its parent.</p>
20753
20754    </div>
20755
20756    
20757        <p><strong>Default:</strong> 0</p>
20758    
20759
20760    
20761
20762    
20763</div>
20764
20765                
20766                    <div id="property_y" class="property item inherited">
20767    <h3 class="name"><code>y</code></h3>
20768    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
20769
20770    
20771
20772    
20773
20774    
20775
20776    
20777
20778    
20779
20780    <div class="meta">
20781        
20782            
20783                <p>Inherited from
20784                <a href="../classes/DisplayObject.html#property_y">DisplayObject</a>:
20785            
20786        
20787        
20788        <a href="../files/easeljs_display_DisplayObject.js.html#l314"><code>y:314</code></a>
20789        
20790        </p>
20791
20792        
20793
20794        
20795    </div>
20796
20797    <div class="description">
20798        
20799    </div>
20800
20801    
20802        <p><strong>Default:</strong> 0</p>
20803    
20804
20805    
20806
20807    
20808</div>
20809
20810                
20811            </div>
20812        
20813
20814        
20815
20816        
20817            <div id="events" class="api-class-tabpanel">
20818                <h2 class="off-left">Events</h2>
20819
20820                
20821                    <div id="event_added" class="events item inherited">
20822    <h3 class="name"><code>added</code></h3>
20823    <span class="type"></span>
20824
20825    
20826
20827    
20828
20829    
20830
20831    
20832
20833    <div class="meta">
20834        
20835            
20836                <p>Inherited from
20837                <a href="../classes/DisplayObject.html#event_added">DisplayObject</a>:
20838            
20839        
20840        
20841        <a href="../files/easeljs_display_DisplayObject.js.html#l646"><code>added:646</code></a>
20842        
20843        </p>
20844
20845        
20846
20847        
20848    </div>
20849
20850    <div class="description">
20851        <p>Dispatched when the display object is added to a parent container.</p>
20852
20853    </div>
20854
20855    
20856
20857
20858    
20859</div>
20860
20861                
20862                    <div id="event_click" class="events item inherited">
20863    <h3 class="name"><code>click</code></h3>
20864    <span class="type"></span>
20865
20866    
20867
20868    
20869
20870    
20871
20872    
20873
20874    <div class="meta">
20875        
20876            
20877                <p>Inherited from
20878                <a href="../classes/DisplayObject.html#event_click">DisplayObject</a>:
20879            
20880        
20881        
20882        <a href="../files/easeljs_display_DisplayObject.js.html#l546"><code>click:546</code></a>
20883        
20884        </p>
20885
20886        
20887
20888        
20889            <p>Available since 0.6.0</p>
20890        
20891    </div>
20892
20893    <div class="description">
20894        <p>Dispatched when the user presses their left mouse button and then releases it while over the display object.
20895See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
20896
20897    </div>
20898
20899    
20900
20901
20902    
20903</div>
20904
20905                
20906                    <div id="event_dblclick" class="events item inherited">
20907    <h3 class="name"><code>dblclick</code></h3>
20908    <span class="type"></span>
20909
20910    
20911
20912    
20913
20914    
20915
20916    
20917
20918    <div class="meta">
20919        
20920            
20921                <p>Inherited from
20922                <a href="../classes/DisplayObject.html#event_dblclick">DisplayObject</a>:
20923            
20924        
20925        
20926        <a href="../files/easeljs_display_DisplayObject.js.html#l553"><code>dblclick:553</code></a>
20927        
20928        </p>
20929
20930        
20931
20932        
20933            <p>Available since 0.6.0</p>
20934        
20935    </div>
20936
20937    <div class="description">
20938        <p>Dispatched when the user double clicks their left mouse button over this display object.
20939See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
20940
20941    </div>
20942
20943    
20944
20945
20946    
20947</div>
20948
20949                
20950                    <div id="event_drawend" class="events item">
20951    <h3 class="name"><code>drawend</code></h3>
20952    <span class="type"></span>
20953
20954    
20955
20956    
20957
20958    
20959
20960    
20961
20962    <div class="meta">
20963        
20964            <p>Inherited from
20965            <a href="../classes/Stage.html#event_drawend">
20966                Stage
20967            </a>
20968            
20969            but overwritten in
20970            
20971        
20972        
20973        <a href="../files/easeljs_display_StageGL.js.html#l847"><code>drawend:847</code></a>
20974        
20975        </p>
20976
20977        
20978
20979        
20980    </div>
20981
20982    <div class="description">
20983        <p>Dispatched each update immediately after the display list is drawn to the canvas and the canvas context is restored.</p>
20984
20985    </div>
20986
20987    
20988
20989
20990    
20991</div>
20992
20993                
20994                    <div id="event_drawstart" class="events item">
20995    <h3 class="name"><code>drawstart</code></h3>
20996    <span class="type"></span>
20997
20998    
20999
21000    
21001
21002    
21003
21004    
21005
21006    <div class="meta">
21007        
21008            <p>Inherited from
21009            <a href="../classes/Stage.html#event_drawstart">
21010                Stage
21011            </a>
21012            
21013            but overwritten in
21014            
21015        
21016        
21017        <a href="../files/easeljs_display_StageGL.js.html#l841"><code>drawstart:841</code></a>
21018        
21019        </p>
21020
21021        
21022
21023        
21024    </div>
21025
21026    <div class="description">
21027        <p>Dispatched each update immediately before the canvas is cleared and the display list is drawn to it. You can call
21028<a href="../classes/Event.html#method_preventDefault" class="crosslink">preventDefault</a> on the event to cancel the draw.</p>
21029
21030    </div>
21031
21032    
21033
21034
21035    
21036</div>
21037
21038                
21039                    <div id="event_mousedown" class="events item inherited">
21040    <h3 class="name"><code>mousedown</code></h3>
21041    <span class="type"></span>
21042
21043    
21044
21045    
21046
21047    
21048
21049    
21050
21051    <div class="meta">
21052        
21053            
21054                <p>Inherited from
21055                <a href="../classes/DisplayObject.html#event_mousedown">DisplayObject</a>:
21056            
21057        
21058        
21059        <a href="../files/easeljs_display_DisplayObject.js.html#l539"><code>mousedown:539</code></a>
21060        
21061        </p>
21062
21063        
21064
21065        
21066            <p>Available since 0.6.0</p>
21067        
21068    </div>
21069
21070    <div class="description">
21071        <p>Dispatched when the user presses their left mouse button over the display object. See the 
21072<a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
21073
21074    </div>
21075
21076    
21077
21078
21079    
21080</div>
21081
21082                
21083                    <div id="event_mouseenter" class="events item inherited">
21084    <h3 class="name"><code>mouseenter</code></h3>
21085    <span class="type"></span>
21086
21087    
21088
21089    
21090
21091    
21092
21093    
21094
21095    <div class="meta">
21096        
21097            
21098                <p>Inherited from
21099                <a href="../classes/Stage.html#event_mouseenter">Stage</a>:
21100            
21101        
21102        
21103        <a href="../files/easeljs_display_Stage.js.html#l265"><code>mouseenter:265</code></a>
21104        
21105        </p>
21106
21107        
21108
21109        
21110            <p>Available since 0.7.0</p>
21111        
21112    </div>
21113
21114    <div class="description">
21115        <p>Dispatched when the mouse moves into the canvas area (mouseInBounds == false) from outside it (mouseInBounds == true).
21116This is currently only dispatched for mouse input (not touch). See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a>
21117class for a listing of event properties.</p>
21118
21119    </div>
21120
21121    
21122
21123
21124    
21125</div>
21126
21127                
21128                    <div id="event_mouseleave" class="events item inherited">
21129    <h3 class="name"><code>mouseleave</code></h3>
21130    <span class="type"></span>
21131
21132    
21133
21134    
21135
21136    
21137
21138    
21139
21140    <div class="meta">
21141        
21142            
21143                <p>Inherited from
21144                <a href="../classes/Stage.html#event_mouseleave">Stage</a>:
21145            
21146        
21147        
21148        <a href="../files/easeljs_display_Stage.js.html#l257"><code>mouseleave:257</code></a>
21149        
21150        </p>
21151
21152        
21153
21154        
21155            <p>Available since 0.7.0</p>
21156        
21157    </div>
21158
21159    <div class="description">
21160        <p>Dispatched when the mouse moves from within the canvas area (mouseInBounds == true) to outside it (mouseInBounds == false).
21161This is currently only dispatched for mouse input (not touch). See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a>
21162class for a listing of event properties.</p>
21163
21164    </div>
21165
21166    
21167
21168
21169    
21170</div>
21171
21172                
21173                    <div id="event_mouseout" class="events item inherited">
21174    <h3 class="name"><code>mouseout</code></h3>
21175    <span class="type"></span>
21176
21177    
21178
21179    
21180
21181    
21182
21183    
21184
21185    <div class="meta">
21186        
21187            
21188                <p>Inherited from
21189                <a href="../classes/DisplayObject.html#event_mouseout">DisplayObject</a>:
21190            
21191        
21192        
21193        <a href="../files/easeljs_display_DisplayObject.js.html#l568"><code>mouseout:568</code></a>
21194        
21195        </p>
21196
21197        
21198
21199        
21200            <p>Available since 0.6.0</p>
21201        
21202    </div>
21203
21204    <div class="description">
21205        <p>Dispatched when the user&#39;s mouse leaves this display object. This event must be enabled using 
21206<a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="../classes/DisplayObject.html#event_rollout" class="crosslink">rollout</a>.
21207See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
21208
21209    </div>
21210
21211    
21212
21213
21214    
21215</div>
21216
21217                
21218                    <div id="event_mouseover" class="events item inherited">
21219    <h3 class="name"><code>mouseover</code></h3>
21220    <span class="type"></span>
21221
21222    
21223
21224    
21225
21226    
21227
21228    
21229
21230    <div class="meta">
21231        
21232            
21233                <p>Inherited from
21234                <a href="../classes/DisplayObject.html#event_mouseover">DisplayObject</a>:
21235            
21236        
21237        
21238        <a href="../files/easeljs_display_DisplayObject.js.html#l560"><code>mouseover:560</code></a>
21239        
21240        </p>
21241
21242        
21243
21244        
21245            <p>Available since 0.6.0</p>
21246        
21247    </div>
21248
21249    <div class="description">
21250        <p>Dispatched when the user&#39;s mouse enters this display object. This event must be enabled using 
21251<a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="../classes/DisplayObject.html#event_rollover" class="crosslink">rollover</a>.
21252See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
21253
21254    </div>
21255
21256    
21257
21258
21259    
21260</div>
21261
21262                
21263                    <div id="event_pressmove" class="events item inherited">
21264    <h3 class="name"><code>pressmove</code></h3>
21265    <span class="type"></span>
21266
21267    
21268
21269    
21270
21271    
21272
21273    
21274
21275    <div class="meta">
21276        
21277            
21278                <p>Inherited from
21279                <a href="../classes/DisplayObject.html#event_pressmove">DisplayObject</a>:
21280            
21281        
21282        
21283        <a href="../files/easeljs_display_DisplayObject.js.html#l616"><code>pressmove:616</code></a>
21284        
21285        </p>
21286
21287        
21288
21289        
21290            <p>Available since 0.7.0</p>
21291        
21292    </div>
21293
21294    <div class="description">
21295        <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressmove
21296event will be generated on that object whenever the mouse moves until the mouse press is released. This can be
21297useful for dragging and similar operations.</p>
21298<p><strong>Please note</strong> that if the initial mouse target from a <code>mousedown</code> event is removed from the stage after being pressed
21299(e.g. during a <code>pressmove</code> event), a <code>pressmove</code> event is still generated. However since it is no longer in the
21300display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
21301the event, and therefore can not re-dispatch it. If you intend to listen for <code><a href="../classes/DisplayObject.html#event_pressup" class="crosslink">pressup</a></code>
21302or <code>pressmove</code> on a dynamic object (such as a <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> or <a href="../classes/Container.html" class="crosslink">Container</a>),
21303then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
21304
21305    </div>
21306
21307    
21308
21309
21310    
21311</div>
21312
21313                
21314                    <div id="event_pressup" class="events item inherited">
21315    <h3 class="name"><code>pressup</code></h3>
21316    <span class="type"></span>
21317
21318    
21319
21320    
21321
21322    
21323
21324    
21325
21326    <div class="meta">
21327        
21328            
21329                <p>Inherited from
21330                <a href="../classes/DisplayObject.html#event_pressup">DisplayObject</a>:
21331            
21332        
21333        
21334        <a href="../files/easeljs_display_DisplayObject.js.html#l631"><code>pressup:631</code></a>
21335        
21336        </p>
21337
21338        
21339
21340        
21341            <p>Available since 0.7.0</p>
21342        
21343    </div>
21344
21345    <div class="description">
21346        <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressup event
21347will be generated on that object when that mouse press is released. This can be useful for dragging and similar
21348operations.</p>
21349<p><strong>Please note</strong> that if the initial mouse target from a <code>mousedown</code> event is removed from the stage after being pressed
21350(e.g. during a <code>pressmove</code> event), a <code>pressup</code> event is still generated. However since it is no longer in the
21351display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
21352the event, and therefore can not re-dispatch it. If you intend to listen for <code><a href="../classes/DisplayObject.html#event_pressmove" class="crosslink">pressmove</a></code>
21353or <code>pressup</code> on a dynamic object (such as a <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> or <a href="../classes/Container.html" class="crosslink">Container</a>),
21354then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
21355
21356    </div>
21357
21358    
21359
21360
21361    
21362</div>
21363
21364                
21365                    <div id="event_removed" class="events item inherited">
21366    <h3 class="name"><code>removed</code></h3>
21367    <span class="type"></span>
21368
21369    
21370
21371    
21372
21373    
21374
21375    
21376
21377    <div class="meta">
21378        
21379            
21380                <p>Inherited from
21381                <a href="../classes/DisplayObject.html#event_removed">DisplayObject</a>:
21382            
21383        
21384        
21385        <a href="../files/easeljs_display_DisplayObject.js.html#l651"><code>removed:651</code></a>
21386        
21387        </p>
21388
21389        
21390
21391        
21392    </div>
21393
21394    <div class="description">
21395        <p>Dispatched when the display object is removed from its parent container.</p>
21396
21397    </div>
21398
21399    
21400
21401
21402    
21403</div>
21404
21405                
21406                    <div id="event_rollout" class="events item inherited">
21407    <h3 class="name"><code>rollout</code></h3>
21408    <span class="type"></span>
21409
21410    
21411
21412    
21413
21414    
21415
21416    
21417
21418    <div class="meta">
21419        
21420            
21421                <p>Inherited from
21422                <a href="../classes/DisplayObject.html#event_rollout">DisplayObject</a>:
21423            
21424        
21425        
21426        <a href="../files/easeljs_display_DisplayObject.js.html#l596"><code>rollout:596</code></a>
21427        
21428        </p>
21429
21430        
21431
21432        
21433            <p>Available since 0.7.0</p>
21434        
21435    </div>
21436
21437    <div class="description">
21438        <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseout" class="crosslink">mouseout</a>, with the following
21439differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
21440aggregate of their content.</p>
21441<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
21442shapeA, then directly on to shapeB, then off both. With a listener for Mouseout:event
21443on myContainer, two events would be received, each targeting a child element:<OL></p>
21444<p><LI>when the mouse leaves shapeA (target=shapeA)</LI></p>
21445<p><LI>when the mouse leaves shapeB (target=shapeB)</LI>
21446</OL>
21447However, with a listener for "rollout" instead, only a single event is received when the mouse leaves
21448the aggregate myContainer content (target=myContainer).</p>
21449<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
21450See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
21451
21452    </div>
21453
21454    
21455
21456
21457    
21458</div>
21459
21460                
21461                    <div id="event_rollover" class="events item inherited">
21462    <h3 class="name"><code>rollover</code></h3>
21463    <span class="type"></span>
21464
21465    
21466
21467    
21468
21469    
21470
21471    
21472
21473    <div class="meta">
21474        
21475            
21476                <p>Inherited from
21477                <a href="../classes/DisplayObject.html#event_rollover">DisplayObject</a>:
21478            
21479        
21480        
21481        <a href="../files/easeljs_display_DisplayObject.js.html#l576"><code>rollover:576</code></a>
21482        
21483        </p>
21484
21485        
21486
21487        
21488            <p>Available since 0.7.0</p>
21489        
21490    </div>
21491
21492    <div class="description">
21493        <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseover" class="crosslink">mouseover</a>, with the following
21494differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
21495aggregate of their content.</p>
21496<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
21497shapeA and then directly on to shapeB. With a listener for Mouseover:event on
21498myContainer, two events would be received, each targeting a child element:<OL></p>
21499<p><LI>when the mouse enters shapeA (target=shapeA)</LI></p>
21500<p><LI>when the mouse enters shapeB (target=shapeB)</LI>
21501</OL>
21502However, with a listener for "rollover" instead, only a single event is received when the mouse first enters
21503the aggregate myContainer content (target=myContainer).</p>
21504<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
21505See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
21506
21507    </div>
21508
21509    
21510
21511
21512    
21513</div>
21514
21515                
21516                    <div id="event_stagemousedown" class="events item inherited">
21517    <h3 class="name"><code>stagemousedown</code></h3>
21518    <span class="type"></span>
21519
21520    
21521
21522    
21523
21524    
21525
21526    
21527
21528    <div class="meta">
21529        
21530            
21531                <p>Inherited from
21532                <a href="../classes/Stage.html#event_stagemousedown">Stage</a>:
21533            
21534        
21535        
21536        <a href="../files/easeljs_display_Stage.js.html#l242"><code>stagemousedown:242</code></a>
21537        
21538        </p>
21539
21540        
21541
21542        
21543            <p>Available since 0.6.0</p>
21544        
21545    </div>
21546
21547    <div class="description">
21548        <p>Dispatched when the user presses their left mouse button on the canvas. See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a>
21549class for a listing of event properties.</p>
21550
21551    </div>
21552
21553    
21554
21555
21556    
21557</div>
21558
21559                
21560                    <div id="event_stagemousemove" class="events item inherited">
21561    <h3 class="name"><code>stagemousemove</code></h3>
21562    <span class="type"></span>
21563
21564    
21565
21566    
21567
21568    
21569
21570    
21571
21572    <div class="meta">
21573        
21574            
21575                <p>Inherited from
21576                <a href="../classes/Stage.html#event_stagemousemove">Stage</a>:
21577            
21578        
21579        
21580        <a href="../files/easeljs_display_Stage.js.html#l235"><code>stagemousemove:235</code></a>
21581        
21582        </p>
21583
21584        
21585
21586        
21587            <p>Available since 0.6.0</p>
21588        
21589    </div>
21590
21591    <div class="description">
21592        <p>Dispatched when the user moves the mouse over the canvas.
21593See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
21594
21595    </div>
21596
21597    
21598
21599
21600    
21601</div>
21602
21603                
21604                    <div id="event_stagemouseup" class="events item inherited">
21605    <h3 class="name"><code>stagemouseup</code></h3>
21606    <span class="type"></span>
21607
21608    
21609
21610    
21611
21612    
21613
21614    
21615
21616    <div class="meta">
21617        
21618            
21619                <p>Inherited from
21620                <a href="../classes/Stage.html#event_stagemouseup">Stage</a>:
21621            
21622        
21623        
21624        <a href="../files/easeljs_display_Stage.js.html#l249"><code>stagemouseup:249</code></a>
21625        
21626        </p>
21627
21628        
21629
21630        
21631            <p>Available since 0.6.0</p>
21632        
21633    </div>
21634
21635    <div class="description">
21636        <p>Dispatched when the user the user presses somewhere on the stage, then releases the mouse button anywhere that the page can detect it (this varies slightly between browsers).
21637You can use <a href="../classes/Stage.html#property_mouseInBounds" class="crosslink">mouseInBounds</a> to check whether the mouse is currently within the stage bounds.
21638See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
21639
21640    </div>
21641
21642    
21643
21644
21645    
21646</div>
21647
21648                
21649                    <div id="event_tick" class="events item inherited">
21650    <h3 class="name"><code>tick</code></h3>
21651    <span class="type"></span>
21652
21653    
21654
21655    
21656
21657    
21658
21659    
21660
21661    <div class="meta">
21662        
21663            
21664                <p>Inherited from
21665                <a href="../classes/DisplayObject.html#event_tick">DisplayObject</a>:
21666            
21667        
21668        
21669        <a href="../files/easeljs_display_DisplayObject.js.html#l656"><code>tick:656</code></a>
21670        
21671        </p>
21672
21673        
21674
21675        
21676            <p>Available since 0.6.0</p>
21677        
21678    </div>
21679
21680    <div class="description">
21681        <p>Dispatched on each display object on a stage whenever the stage updates. This occurs immediately before the
21682rendering (draw) pass. When <a href="../classes/Stage.html#method_update" class="crosslink">update</a> is called, first all display objects on
21683the stage dispatch the tick event, then all of the display objects are drawn to stage. Children will have their
21684Tick:event event dispatched in order of their depth prior to the event being
21685dispatched on their parent.</p>
21686
21687    </div>
21688
21689    
21690        <div class="params">
21691            <h4>Event Payload:</h4>
21692
21693            <ul class="params-list">
21694            
21695                <li class="param">
21696                    
21697                        <code class="param-name">target</code>
21698                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
21699                    
21700
21701                    
21702
21703                    <div class="param-description">
21704                        <p>The object that dispatched the event.</p>
21705
21706                    </div>
21707
21708                    
21709                </li>
21710            
21711                <li class="param">
21712                    
21713                        <code class="param-name">type</code>
21714                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
21715                    
21716
21717                    
21718
21719                    <div class="param-description">
21720                        <p>The event type.</p>
21721
21722                    </div>
21723
21724                    
21725                </li>
21726            
21727                <li class="param">
21728                    
21729                        <code class="param-name">params</code>
21730                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
21731                    
21732
21733                    
21734
21735                    <div class="param-description">
21736                        <p>An array containing any arguments that were passed to the Stage.update() method. For
21737     example if you called stage.update("hello"), then the params would be ["hello"].</p>
21738
21739                    </div>
21740
21741                    
21742                </li>
21743            
21744            </ul>
21745        </div>
21746    
21747
21748
21749    
21750</div>
21751
21752                
21753                    <div id="event_tickend" class="events item inherited">
21754    <h3 class="name"><code>tickend</code></h3>
21755    <span class="type"></span>
21756
21757    
21758
21759    
21760
21761    
21762
21763    
21764
21765    <div class="meta">
21766        
21767            
21768                <p>Inherited from
21769                <a href="../classes/Stage.html#event_tickend">Stage</a>:
21770            
21771        
21772        
21773        <a href="../files/easeljs_display_Stage.js.html#l280"><code>tickend:280</code></a>
21774        
21775        </p>
21776
21777        
21778
21779        
21780            <p>Available since 0.7.0</p>
21781        
21782    </div>
21783
21784    <div class="description">
21785        <p>Dispatched each update immediately after the tick event is propagated through the display list. Does not fire if
21786tickOnUpdate is false. Precedes the "drawstart" event.</p>
21787
21788    </div>
21789
21790    
21791
21792
21793    
21794</div>
21795
21796                
21797                    <div id="event_tickstart" class="events item inherited">
21798    <h3 class="name"><code>tickstart</code></h3>
21799    <span class="type"></span>
21800
21801    
21802
21803    
21804
21805    
21806
21807    
21808
21809    <div class="meta">
21810        
21811            
21812                <p>Inherited from
21813                <a href="../classes/Stage.html#event_tickstart">Stage</a>:
21814            
21815        
21816        
21817        <a href="../files/easeljs_display_Stage.js.html#l273"><code>tickstart:273</code></a>
21818        
21819        </p>
21820
21821        
21822
21823        
21824            <p>Available since 0.7.0</p>
21825        
21826    </div>
21827
21828    <div class="description">
21829        <p>Dispatched each update immediately before the tick event is propagated through the display list.
21830You can call preventDefault on the event object to cancel propagating the tick event.</p>
21831
21832    </div>
21833
21834    
21835
21836
21837    
21838</div>
21839
21840                
21841            </div>
21842        
21843    </div>
21844</div>
21845
21846                    </div>
21847                </div>
21848            </div>
21849        </div>
21850    </div>
21851</div>
21852<script src="../assets/vendor/prettify/prettify-min.js"></script>
21853<script>prettyPrint();</script>
21854<script src="../assets/js/yui-prettify.js"></script>
21855<script src="../assets/../api.js"></script>
21856<script src="../assets/js/api-filter.js"></script>
21857<script src="../assets/js/api-list.js"></script>
21858<script src="../assets/js/api-search.js"></script>
21859<script src="../assets/js/apidocs.js"></script>
21860</body>
21861</html>