all repos — simplyrpg @ b7dad4e64551b9afaadd503db6389daa3362ccd3

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

libraries/EaselJS_docs/classes/Stage.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 : Stage</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>Stage Class</h1>
  199<div class="box meta">
  200    
  201
  202    
  203        <div class="extends">
  204            Extends <a href="../classes/Container.html" class="crosslink">Container</a>
  205        </div>
  206    
  207
  208    
  209        <div class="foundat">
  210            Defined in: <a href="../files/easeljs_display_Stage.js.html#l41"><code>Stage:41</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 stage is the root level <a href="../classes/Container.html" class="crosslink">Container</a> for a display list. Each time its <a href="../classes/Stage.html#method_tick" class="crosslink">tick</a>
  227method is called, it will render its display list to its target canvas.</p>
  228<p><h4>Example</h4>
  229This example creates a stage, adds a child to it, then uses <a href="../classes/Ticker.html" class="crosslink">Ticker</a> to update the child
  230and redraw the stage using <a href="../classes/Stage.html#method_update" class="crosslink">update</a>.</p>
  231<pre class="code prettyprint"><code> var stage = new createjs.Stage("canvasElementId");
  232 var image = new createjs.Bitmap("imagePath.png");
  233 stage.addChild(image);
  234 createjs.Ticker.addEventListener("tick", handleTick);
  235 function handleTick(event) {
  236     image.x += 10;
  237     stage.update();
  238 }</code></pre>
  239
  240</div>
  241
  242
  243    <div class="constructor">
  244        <h2>Constructor</h2>
  245        <div id="method_Stage" class="method item">
  246    <h3 class="name"><code>Stage</code></h3>
  247
  248    
  249        <div class="args">
  250            <span class="paren">(</span><ul class="args-list inline commas">
  251            
  252                <li class="arg">
  253                    
  254                        <code>canvas</code>
  255                    
  256                </li>
  257            
  258            </ul><span class="paren">)</span>
  259        </div>
  260    
  261
  262    
  263
  264    
  265
  266    
  267
  268    
  269
  270    
  271
  272    
  273
  274    
  275
  276    <div class="meta">
  277        
  278            
  279                
  280                <p>
  281                
  282                Defined in
  283                
  284            
  285        
  286        
  287        <a href="../files/easeljs_display_Stage.js.html#l41"><code>Stage:41</code></a>
  288        
  289        </p>
  290
  291
  292        
  293
  294        
  295    </div>
  296
  297    <div class="description">
  298        
  299    </div>
  300
  301    
  302        <div class="params">
  303            <h4>Parameters:</h4>
  304
  305            <ul class="params-list">
  306            
  307                <li class="param">
  308                    
  309                        <code class="param-name">canvas</code>
  310                        <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>
  311                    
  312
  313                    
  314
  315                    <div class="param-description">
  316                        <p>A canvas object that the Stage will render to, or the string id
  317of a canvas object in the current document.</p>
  318
  319                    </div>
  320
  321                    
  322                </li>
  323            
  324            </ul>
  325        </div>
  326    
  327
  328    
  329
  330    
  331</div>
  332
  333    </div>
  334
  335
  336<div id="classdocs" class="tabview">
  337    <ul class="api-class-tabs">
  338        <li class="api-class-tab index"><a href="#index">Index</a></li>
  339
  340        
  341            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
  342        
  343        
  344            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
  345        
  346        
  347        
  348            <li class="api-class-tab events"><a href="#events">Events</a></li>
  349        
  350    </ul>
  351
  352    <div>
  353        <div id="index" class="api-class-tabpanel index">
  354            <h2 class="off-left">Item Index</h2>
  355
  356            
  357                <div class="index-section methods">
  358                    <h3>Methods</h3>
  359
  360                    <ul class="index-list methods extends">
  361                        
  362                            <li class="index-item method protected inherited">
  363                                <a href="#method__applyShadow">_applyShadow</a>
  364
  365                                
  366                                
  367                            </li>
  368                        
  369                            <li class="index-item method protected inherited">
  370                                <a href="#method__cloneProps">_cloneProps</a>
  371
  372                                
  373                                
  374                            </li>
  375                        
  376                            <li class="index-item method protected inherited">
  377                                <a href="#method__dispatchEvent">_dispatchEvent</a>
  378
  379                                
  380                                
  381                            </li>
  382                        
  383                            <li class="index-item method protected">
  384                                <a href="#method__dispatchMouseEvent">_dispatchMouseEvent</a>
  385
  386                                
  387                                
  388                            </li>
  389                        
  390                            <li class="index-item method protected inherited inherited">
  391                                <a href="#method__getBounds">_getBounds</a>
  392
  393                                
  394                                
  395                            </li>
  396                        
  397                            <li class="index-item method protected">
  398                                <a href="#method__getElementRect">_getElementRect</a>
  399
  400                                
  401                                
  402                            </li>
  403                        
  404                            <li class="index-item method protected inherited">
  405                                <a href="#method__getNumChildren">_getNumChildren</a>
  406
  407                                
  408                                
  409                            </li>
  410                        
  411                            <li class="index-item method protected inherited">
  412                                <a href="#method__getObjectsUnderPoint">_getObjectsUnderPoint</a>
  413
  414                                
  415                                
  416                            </li>
  417                        
  418                            <li class="index-item method protected">
  419                                <a href="#method__getPointerData">_getPointerData</a>
  420
  421                                
  422                                
  423                            </li>
  424                        
  425                            <li class="index-item method protected inherited">
  426                                <a href="#method__getStage">_getStage</a>
  427
  428                                
  429                                
  430                            </li>
  431                        
  432                            <li class="index-item method protected">
  433                                <a href="#method__handleDoubleClick">_handleDoubleClick</a>
  434
  435                                
  436                                
  437                            </li>
  438                        
  439                            <li class="index-item method protected">
  440                                <a href="#method__handleMouseDown">_handleMouseDown</a>
  441
  442                                
  443                                
  444                            </li>
  445                        
  446                            <li class="index-item method protected">
  447                                <a href="#method__handleMouseMove">_handleMouseMove</a>
  448
  449                                
  450                                
  451                            </li>
  452                        
  453                            <li class="index-item method protected">
  454                                <a href="#method__handleMouseUp">_handleMouseUp</a>
  455
  456                                
  457                                
  458                            </li>
  459                        
  460                            <li class="index-item method protected">
  461                                <a href="#method__handlePointerDown">_handlePointerDown</a>
  462
  463                                
  464                                
  465                            </li>
  466                        
  467                            <li class="index-item method protected">
  468                                <a href="#method__handlePointerMove">_handlePointerMove</a>
  469
  470                                
  471                                
  472                            </li>
  473                        
  474                            <li class="index-item method protected">
  475                                <a href="#method__handlePointerUp">_handlePointerUp</a>
  476
  477                                
  478                                
  479                            </li>
  480                        
  481                            <li class="index-item method protected inherited">
  482                                <a href="#method__isMouseOpaque">_isMouseOpaque</a>
  483
  484                                
  485                                
  486                            </li>
  487                        
  488                            <li class="index-item method protected inherited">
  489                                <a href="#method__testHit">_testHit</a>
  490
  491                                
  492                                
  493                            </li>
  494                        
  495                            <li class="index-item method protected inherited">
  496                                <a href="#method__testMask">_testMask</a>
  497
  498                                
  499                                
  500                            </li>
  501                        
  502                            <li class="index-item method protected">
  503                                <a href="#method__testMouseOver">_testMouseOver</a>
  504
  505                                
  506                                
  507                            </li>
  508                        
  509                            <li class="index-item method protected inherited inherited">
  510                                <a href="#method__tick">_tick</a>
  511
  512                                
  513                                
  514                            </li>
  515                        
  516                            <li class="index-item method protected inherited">
  517                                <a href="#method__transformBounds">_transformBounds</a>
  518
  519                                
  520                                
  521                            </li>
  522                        
  523                            <li class="index-item method protected">
  524                                <a href="#method__updatePointerPosition">_updatePointerPosition</a>
  525
  526                                
  527                                
  528                            </li>
  529                        
  530                            <li class="index-item method inherited">
  531                                <a href="#method__updateState">_updateState</a>
  532
  533                                
  534                                
  535                            </li>
  536                        
  537                            <li class="index-item method inherited">
  538                                <a href="#method_addChild">addChild</a>
  539
  540                                
  541                                
  542                            </li>
  543                        
  544                            <li class="index-item method inherited">
  545                                <a href="#method_addChildAt">addChildAt</a>
  546
  547                                
  548                                
  549                            </li>
  550                        
  551                            <li class="index-item method inherited">
  552                                <a href="#method_addEventListener">addEventListener</a>
  553
  554                                
  555                                
  556                            </li>
  557                        
  558                            <li class="index-item method inherited">
  559                                <a href="#method_cache">cache</a>
  560
  561                                
  562                                
  563                            </li>
  564                        
  565                            <li class="index-item method">
  566                                <a href="#method_clear">clear</a>
  567
  568                                
  569                                
  570                            </li>
  571                        
  572                            <li class="index-item method inherited">
  573                                <a href="#method_clone">clone</a>
  574
  575                                
  576                                
  577                            </li>
  578                        
  579                            <li class="index-item method protected inherited">
  580                                <a href="#method_cloneChildren">cloneChildren</a>
  581
  582                                
  583                                
  584                            </li>
  585                        
  586                            <li class="index-item method inherited">
  587                                <a href="#method_contains">contains</a>
  588
  589                                
  590                                
  591                            </li>
  592                        
  593                            <li class="index-item method inherited">
  594                                <a href="#method_dispatchEvent">dispatchEvent</a>
  595
  596                                
  597                                
  598                            </li>
  599                        
  600                            <li class="index-item method inherited inherited">
  601                                <a href="#method_draw">draw</a>
  602
  603                                
  604                                
  605                            </li>
  606                        
  607                            <li class="index-item method">
  608                                <a href="#method_enableDOMEvents">enableDOMEvents</a>
  609
  610                                
  611                                
  612                            </li>
  613                        
  614                            <li class="index-item method">
  615                                <a href="#method_enableMouseOver">enableMouseOver</a>
  616
  617                                
  618                                
  619                            </li>
  620                        
  621                            <li class="index-item method inherited">
  622                                <a href="#method_getBounds">getBounds</a>
  623
  624                                
  625                                
  626                            </li>
  627                        
  628                            <li class="index-item method inherited">
  629                                <a href="#method_getCacheDataURL">getCacheDataURL</a>
  630
  631                                
  632                                
  633                            </li>
  634                        
  635                            <li class="index-item method inherited">
  636                                <a href="#method_getChildAt">getChildAt</a>
  637
  638                                
  639                                
  640                            </li>
  641                        
  642                            <li class="index-item method inherited">
  643                                <a href="#method_getChildByName">getChildByName</a>
  644
  645                                
  646                                
  647                            </li>
  648                        
  649                            <li class="index-item method inherited">
  650                                <a href="#method_getChildIndex">getChildIndex</a>
  651
  652                                
  653                                
  654                            </li>
  655                        
  656                            <li class="index-item method inherited">
  657                                <a href="#method_getConcatenatedDisplayProps">getConcatenatedDisplayProps</a>
  658
  659                                
  660                                
  661                            </li>
  662                        
  663                            <li class="index-item method inherited">
  664                                <a href="#method_getConcatenatedMatrix">getConcatenatedMatrix</a>
  665
  666                                
  667                                
  668                            </li>
  669                        
  670                            <li class="index-item method inherited">
  671                                <a href="#method_getMatrix">getMatrix</a>
  672
  673                                
  674                                
  675                            </li>
  676                        
  677                            <li class="index-item method inherited">
  678                                <a href="#method_getObjectsUnderPoint">getObjectsUnderPoint</a>
  679
  680                                
  681                                
  682                            </li>
  683                        
  684                            <li class="index-item method inherited">
  685                                <a href="#method_getObjectUnderPoint">getObjectUnderPoint</a>
  686
  687                                
  688                                
  689                            </li>
  690                        
  691                            <li class="index-item method inherited">
  692                                <a href="#method_getTransformedBounds">getTransformedBounds</a>
  693
  694                                
  695                                
  696                            </li>
  697                        
  698                            <li class="index-item method inherited">
  699                                <a href="#method_globalToLocal">globalToLocal</a>
  700
  701                                
  702                                
  703                            </li>
  704                        
  705                            <li class="index-item method inherited">
  706                                <a href="#method_hasEventListener">hasEventListener</a>
  707
  708                                
  709                                
  710                            </li>
  711                        
  712                            <li class="index-item method inherited inherited">
  713                                <a href="#method_hitTest">hitTest</a>
  714
  715                                
  716                                
  717                            </li>
  718                        
  719                            <li class="index-item method deprecated inherited">
  720                                <a href="#method_initialize">initialize</a>
  721
  722                                
  723                                
  724                                    <span class="flag deprecated">deprecated</span>
  725                                
  726                            </li>
  727                        
  728                            <li class="index-item method inherited inherited">
  729                                <a href="#method_isVisible">isVisible</a>
  730
  731                                
  732                                
  733                            </li>
  734                        
  735                            <li class="index-item method inherited">
  736                                <a href="#method_localToGlobal">localToGlobal</a>
  737
  738                                
  739                                
  740                            </li>
  741                        
  742                            <li class="index-item method inherited">
  743                                <a href="#method_localToLocal">localToLocal</a>
  744
  745                                
  746                                
  747                            </li>
  748                        
  749                            <li class="index-item method inherited">
  750                                <a href="#method_off">off</a>
  751
  752                                
  753                                
  754                            </li>
  755                        
  756                            <li class="index-item method inherited">
  757                                <a href="#method_on">on</a>
  758
  759                                
  760                                
  761                            </li>
  762                        
  763                            <li class="index-item method inherited">
  764                                <a href="#method_removeAllChildren">removeAllChildren</a>
  765
  766                                
  767                                
  768                            </li>
  769                        
  770                            <li class="index-item method inherited">
  771                                <a href="#method_removeAllEventListeners">removeAllEventListeners</a>
  772
  773                                
  774                                
  775                            </li>
  776                        
  777                            <li class="index-item method inherited">
  778                                <a href="#method_removeChild">removeChild</a>
  779
  780                                
  781                                
  782                            </li>
  783                        
  784                            <li class="index-item method inherited inherited">
  785                                <a href="#method_removeChildAt">removeChildAt</a>
  786
  787                                
  788                                
  789                            </li>
  790                        
  791                            <li class="index-item method inherited">
  792                                <a href="#method_removeEventListener">removeEventListener</a>
  793
  794                                
  795                                
  796                            </li>
  797                        
  798                            <li class="index-item method inherited">
  799                                <a href="#method_set">set</a>
  800
  801                                
  802                                
  803                            </li>
  804                        
  805                            <li class="index-item method inherited">
  806                                <a href="#method_setBounds">setBounds</a>
  807
  808                                
  809                                
  810                            </li>
  811                        
  812                            <li class="index-item method inherited">
  813                                <a href="#method_setChildIndex">setChildIndex</a>
  814
  815                                
  816                                
  817                            </li>
  818                        
  819                            <li class="index-item method inherited">
  820                                <a href="#method_setTransform">setTransform</a>
  821
  822                                
  823                                
  824                            </li>
  825                        
  826                            <li class="index-item method inherited">
  827                                <a href="#method_sortChildren">sortChildren</a>
  828
  829                                
  830                                
  831                            </li>
  832                        
  833                            <li class="index-item method inherited">
  834                                <a href="#method_swapChildren">swapChildren</a>
  835
  836                                
  837                                
  838                            </li>
  839                        
  840                            <li class="index-item method inherited">
  841                                <a href="#method_swapChildrenAt">swapChildrenAt</a>
  842
  843                                
  844                                
  845                            </li>
  846                        
  847                            <li class="index-item method">
  848                                <a href="#method_tick">tick</a>
  849
  850                                
  851                                
  852                            </li>
  853                        
  854                            <li class="index-item method">
  855                                <a href="#method_toDataURL">toDataURL</a>
  856
  857                                
  858                                
  859                            </li>
  860                        
  861                            <li class="index-item method inherited">
  862                                <a href="#method_toString">toString</a>
  863
  864                                
  865                                
  866                            </li>
  867                        
  868                            <li class="index-item method inherited">
  869                                <a href="#method_uncache">uncache</a>
  870
  871                                
  872                                
  873                            </li>
  874                        
  875                            <li class="index-item method">
  876                                <a href="#method_update">update</a>
  877
  878                                
  879                                
  880                            </li>
  881                        
  882                            <li class="index-item method inherited">
  883                                <a href="#method_updateCache">updateCache</a>
  884
  885                                
  886                                
  887                            </li>
  888                        
  889                            <li class="index-item method inherited">
  890                                <a href="#method_updateContext">updateContext</a>
  891
  892                                
  893                                
  894                            </li>
  895                        
  896                            <li class="index-item method inherited">
  897                                <a href="#method_willTrigger">willTrigger</a>
  898
  899                                
  900                                
  901                            </li>
  902                        
  903                    </ul>
  904                </div>
  905            
  906
  907            
  908                <div class="index-section properties">
  909                    <h3>Properties</h3>
  910
  911                    <ul class="index-list properties extends">
  912                        
  913                            <li class="index-item property protected inherited">
  914                                <a href="#property__bounds">_bounds</a>
  915
  916                                
  917                                
  918                            </li>
  919                        
  920                            <li class="index-item property protected deprecated inherited">
  921                                <a href="#property__cacheDataURL">_cacheDataURL</a>
  922
  923                                
  924                                
  925                                    <span class="flag deprecated">deprecated</span>
  926                                
  927                            </li>
  928                        
  929                            <li class="index-item property protected deprecated inherited">
  930                                <a href="#property__cacheDataURLID">_cacheDataURLID</a>
  931
  932                                
  933                                
  934                                    <span class="flag deprecated">deprecated</span>
  935                                
  936                            </li>
  937                        
  938                            <li class="index-item property protected deprecated inherited">
  939                                <a href="#property__cacheScale">_cacheScale</a>
  940
  941                                
  942                                
  943                                    <span class="flag deprecated">deprecated</span>
  944                                
  945                            </li>
  946                        
  947                            <li class="index-item property protected inherited">
  948                                <a href="#property__captureListeners">_captureListeners</a>
  949
  950                                
  951                                
  952                            </li>
  953                        
  954                            <li class="index-item property protected inherited">
  955                                <a href="#property__listeners">_listeners</a>
  956
  957                                
  958                                
  959                            </li>
  960                        
  961                            <li class="index-item property protected">
  962                                <a href="#property__mouseOverIntervalID">_mouseOverIntervalID</a>
  963
  964                                
  965                                
  966                            </li>
  967                        
  968                            <li class="index-item property protected">
  969                                <a href="#property__nextStage">_nextStage</a>
  970
  971                                
  972                                
  973                            </li>
  974                        
  975                            <li class="index-item property private">
  976                                <a href="#property__pointerCount">_pointerCount</a>
  977
  978                                
  979                                
  980                            </li>
  981                        
  982                            <li class="index-item property private">
  983                                <a href="#property__pointerData">_pointerData</a>
  984
  985                                
  986                                
  987                            </li>
  988                        
  989                            <li class="index-item property protected">
  990                                <a href="#property__prevStage">_prevStage</a>
  991
  992                                
  993                                
  994                            </li>
  995                        
  996                            <li class="index-item property private">
  997                                <a href="#property__primaryPointerID">_primaryPointerID</a>
  998
  999                                
 1000                                
 1001                            </li>
 1002                        
 1003                            <li class="index-item property protected inherited">
 1004                                <a href="#property__props">_props</a>
 1005
 1006                                
 1007                                
 1008                            </li>
 1009                        
 1010                            <li class="index-item property protected inherited">
 1011                                <a href="#property__rectangle">_rectangle</a>
 1012
 1013                                
 1014                                
 1015                            </li>
 1016                        
 1017                            <li class="index-item property protected inherited">
 1018                                <a href="#property__webGLRenderStyle">_webGLRenderStyle</a>
 1019
 1020                                
 1021                                
 1022                            </li>
 1023                        
 1024                            <li class="index-item property inherited">
 1025                                <a href="#property_alpha">alpha</a>
 1026
 1027                                
 1028                                
 1029                            </li>
 1030                        
 1031                            <li class="index-item property">
 1032                                <a href="#property_autoClear">autoClear</a>
 1033
 1034                                
 1035                                
 1036                            </li>
 1037                        
 1038                            <li class="index-item property inherited">
 1039                                <a href="#property_bitmapCache">bitmapCache</a>
 1040
 1041                                
 1042                                
 1043                            </li>
 1044                        
 1045                            <li class="index-item property inherited">
 1046                                <a href="#property_cacheCanvas">cacheCanvas</a>
 1047
 1048                                
 1049                                
 1050                            </li>
 1051                        
 1052                            <li class="index-item property deprecated inherited">
 1053                                <a href="#property_cacheID">cacheID</a>
 1054
 1055                                
 1056                                
 1057                                    <span class="flag deprecated">deprecated</span>
 1058                                
 1059                            </li>
 1060                        
 1061                            <li class="index-item property">
 1062                                <a href="#property_canvas">canvas</a>
 1063
 1064                                
 1065                                
 1066                            </li>
 1067                        
 1068                            <li class="index-item property inherited">
 1069                                <a href="#property_children">children</a>
 1070
 1071                                
 1072                                
 1073                            </li>
 1074                        
 1075                            <li class="index-item property inherited">
 1076                                <a href="#property_compositeOperation">compositeOperation</a>
 1077
 1078                                
 1079                                
 1080                            </li>
 1081                        
 1082                            <li class="index-item property inherited">
 1083                                <a href="#property_cursor">cursor</a>
 1084
 1085                                
 1086                                
 1087                            </li>
 1088                        
 1089                            <li class="index-item property">
 1090                                <a href="#property_drawRect">drawRect</a>
 1091
 1092                                
 1093                                
 1094                            </li>
 1095                        
 1096                            <li class="index-item property inherited">
 1097                                <a href="#property_filters">filters</a>
 1098
 1099                                
 1100                                
 1101                            </li>
 1102                        
 1103                            <li class="index-item property">
 1104                                <a href="#property_handleEvent">handleEvent</a>
 1105
 1106                                
 1107                                
 1108                            </li>
 1109                        
 1110                            <li class="index-item property inherited">
 1111                                <a href="#property_hitArea">hitArea</a>
 1112
 1113                                
 1114                                
 1115                            </li>
 1116                        
 1117                            <li class="index-item property inherited">
 1118                                <a href="#property_id">id</a>
 1119
 1120                                
 1121                                
 1122                            </li>
 1123                        
 1124                            <li class="index-item property inherited">
 1125                                <a href="#property_mask">mask</a>
 1126
 1127                                
 1128                                
 1129                            </li>
 1130                        
 1131                            <li class="index-item property inherited">
 1132                                <a href="#property_mouseChildren">mouseChildren</a>
 1133
 1134                                
 1135                                
 1136                            </li>
 1137                        
 1138                            <li class="index-item property inherited">
 1139                                <a href="#property_mouseEnabled">mouseEnabled</a>
 1140
 1141                                
 1142                                
 1143                            </li>
 1144                        
 1145                            <li class="index-item property">
 1146                                <a href="#property_mouseInBounds">mouseInBounds</a>
 1147
 1148                                
 1149                                
 1150                            </li>
 1151                        
 1152                            <li class="index-item property">
 1153                                <a href="#property_mouseMoveOutside">mouseMoveOutside</a>
 1154
 1155                                
 1156                                
 1157                            </li>
 1158                        
 1159                            <li class="index-item property">
 1160                                <a href="#property_mouseX">mouseX</a>
 1161
 1162                                
 1163                                
 1164                            </li>
 1165                        
 1166                            <li class="index-item property">
 1167                                <a href="#property_mouseY">mouseY</a>
 1168
 1169                                
 1170                                
 1171                            </li>
 1172                        
 1173                            <li class="index-item property inherited">
 1174                                <a href="#property_name">name</a>
 1175
 1176                                
 1177                                
 1178                            </li>
 1179                        
 1180                            <li class="index-item property">
 1181                                <a href="#property_nextStage">nextStage</a>
 1182
 1183                                
 1184                                
 1185                            </li>
 1186                        
 1187                            <li class="index-item property inherited">
 1188                                <a href="#property_numChildren">numChildren</a>
 1189
 1190                                
 1191                                
 1192                            </li>
 1193                        
 1194                            <li class="index-item property inherited">
 1195                                <a href="#property_parent">parent</a>
 1196
 1197                                
 1198                                
 1199                            </li>
 1200                        
 1201                            <li class="index-item property">
 1202                                <a href="#property_preventSelection">preventSelection</a>
 1203
 1204                                
 1205                                
 1206                            </li>
 1207                        
 1208                            <li class="index-item property inherited">
 1209                                <a href="#property_regX">regX</a>
 1210
 1211                                
 1212                                
 1213                            </li>
 1214                        
 1215                            <li class="index-item property inherited">
 1216                                <a href="#property_regY">regY</a>
 1217
 1218                                
 1219                                
 1220                            </li>
 1221                        
 1222                            <li class="index-item property inherited">
 1223                                <a href="#property_rotation">rotation</a>
 1224
 1225                                
 1226                                
 1227                            </li>
 1228                        
 1229                            <li class="index-item property inherited inherited">
 1230                                <a href="#property_scaleX">scaleX</a>
 1231
 1232                                
 1233                                
 1234                            </li>
 1235                        
 1236                            <li class="index-item property inherited">
 1237                                <a href="#property_scaleY">scaleY</a>
 1238
 1239                                
 1240                                
 1241                            </li>
 1242                        
 1243                            <li class="index-item property inherited">
 1244                                <a href="#property_shadow">shadow</a>
 1245
 1246                                
 1247                                
 1248                            </li>
 1249                        
 1250                            <li class="index-item property inherited">
 1251                                <a href="#property_skewX">skewX</a>
 1252
 1253                                
 1254                                
 1255                            </li>
 1256                        
 1257                            <li class="index-item property inherited">
 1258                                <a href="#property_skewY">skewY</a>
 1259
 1260                                
 1261                                
 1262                            </li>
 1263                        
 1264                            <li class="index-item property inherited">
 1265                                <a href="#property_snapToPixel">snapToPixel</a>
 1266
 1267                                
 1268                                
 1269                            </li>
 1270                        
 1271                            <li class="index-item property">
 1272                                <a href="#property_snapToPixelEnabled">snapToPixelEnabled</a>
 1273
 1274                                
 1275                                
 1276                            </li>
 1277                        
 1278                            <li class="index-item property inherited">
 1279                                <a href="#property_stage">stage</a>
 1280
 1281                                
 1282                                
 1283                            </li>
 1284                        
 1285                            <li class="index-item property inherited">
 1286                                <a href="#property_tickChildren">tickChildren</a>
 1287
 1288                                
 1289                                
 1290                            </li>
 1291                        
 1292                            <li class="index-item property inherited">
 1293                                <a href="#property_tickEnabled">tickEnabled</a>
 1294
 1295                                
 1296                                
 1297                            </li>
 1298                        
 1299                            <li class="index-item property">
 1300                                <a href="#property_tickOnUpdate">tickOnUpdate</a>
 1301
 1302                                
 1303                                
 1304                            </li>
 1305                        
 1306                            <li class="index-item property inherited">
 1307                                <a href="#property_transformMatrix">transformMatrix</a>
 1308
 1309                                
 1310                                
 1311                            </li>
 1312                        
 1313                            <li class="index-item property inherited">
 1314                                <a href="#property_visible">visible</a>
 1315
 1316                                
 1317                                
 1318                            </li>
 1319                        
 1320                            <li class="index-item property inherited">
 1321                                <a href="#property_x">x</a>
 1322
 1323                                
 1324                                
 1325                            </li>
 1326                        
 1327                            <li class="index-item property inherited">
 1328                                <a href="#property_y">y</a>
 1329
 1330                                
 1331                                
 1332                            </li>
 1333                        
 1334                    </ul>
 1335                </div>
 1336            
 1337
 1338            
 1339
 1340            
 1341                <div class="index-section events">
 1342                    <h3>Events</h3>
 1343
 1344                    <ul class="index-list events extends">
 1345                        
 1346                            <li class="index-item event inherited">
 1347                                <a href="#event_added">added</a>
 1348
 1349                                
 1350                                
 1351                            </li>
 1352                        
 1353                            <li class="index-item event inherited">
 1354                                <a href="#event_click">click</a>
 1355
 1356                                
 1357                                
 1358                            </li>
 1359                        
 1360                            <li class="index-item event inherited">
 1361                                <a href="#event_dblclick">dblclick</a>
 1362
 1363                                
 1364                                
 1365                            </li>
 1366                        
 1367                            <li class="index-item event">
 1368                                <a href="#event_drawend">drawend</a>
 1369
 1370                                
 1371                                
 1372                            </li>
 1373                        
 1374                            <li class="index-item event">
 1375                                <a href="#event_drawstart">drawstart</a>
 1376
 1377                                
 1378                                
 1379                            </li>
 1380                        
 1381                            <li class="index-item event inherited">
 1382                                <a href="#event_mousedown">mousedown</a>
 1383
 1384                                
 1385                                
 1386                            </li>
 1387                        
 1388                            <li class="index-item event">
 1389                                <a href="#event_mouseenter">mouseenter</a>
 1390
 1391                                
 1392                                
 1393                            </li>
 1394                        
 1395                            <li class="index-item event">
 1396                                <a href="#event_mouseleave">mouseleave</a>
 1397
 1398                                
 1399                                
 1400                            </li>
 1401                        
 1402                            <li class="index-item event inherited">
 1403                                <a href="#event_mouseout">mouseout</a>
 1404
 1405                                
 1406                                
 1407                            </li>
 1408                        
 1409                            <li class="index-item event inherited">
 1410                                <a href="#event_mouseover">mouseover</a>
 1411
 1412                                
 1413                                
 1414                            </li>
 1415                        
 1416                            <li class="index-item event inherited">
 1417                                <a href="#event_pressmove">pressmove</a>
 1418
 1419                                
 1420                                
 1421                            </li>
 1422                        
 1423                            <li class="index-item event inherited">
 1424                                <a href="#event_pressup">pressup</a>
 1425
 1426                                
 1427                                
 1428                            </li>
 1429                        
 1430                            <li class="index-item event inherited">
 1431                                <a href="#event_removed">removed</a>
 1432
 1433                                
 1434                                
 1435                            </li>
 1436                        
 1437                            <li class="index-item event inherited">
 1438                                <a href="#event_rollout">rollout</a>
 1439
 1440                                
 1441                                
 1442                            </li>
 1443                        
 1444                            <li class="index-item event inherited">
 1445                                <a href="#event_rollover">rollover</a>
 1446
 1447                                
 1448                                
 1449                            </li>
 1450                        
 1451                            <li class="index-item event">
 1452                                <a href="#event_stagemousedown">stagemousedown</a>
 1453
 1454                                
 1455                                
 1456                            </li>
 1457                        
 1458                            <li class="index-item event">
 1459                                <a href="#event_stagemousemove">stagemousemove</a>
 1460
 1461                                
 1462                                
 1463                            </li>
 1464                        
 1465                            <li class="index-item event">
 1466                                <a href="#event_stagemouseup">stagemouseup</a>
 1467
 1468                                
 1469                                
 1470                            </li>
 1471                        
 1472                            <li class="index-item event inherited">
 1473                                <a href="#event_tick">tick</a>
 1474
 1475                                
 1476                                
 1477                            </li>
 1478                        
 1479                            <li class="index-item event">
 1480                                <a href="#event_tickend">tickend</a>
 1481
 1482                                
 1483                                
 1484                            </li>
 1485                        
 1486                            <li class="index-item event">
 1487                                <a href="#event_tickstart">tickstart</a>
 1488
 1489                                
 1490                                
 1491                            </li>
 1492                        
 1493                    </ul>
 1494                </div>
 1495            
 1496        </div>
 1497
 1498        
 1499            <div id="methods" class="api-class-tabpanel">
 1500                <h2 class="off-left">Methods</h2>
 1501
 1502                
 1503                    <div id="method__applyShadow" class="method item protected inherited">
 1504    <h3 class="name"><code>_applyShadow</code></h3>
 1505
 1506    
 1507        <div class="args">
 1508            <span class="paren">(</span><ul class="args-list inline commas">
 1509            
 1510                <li class="arg">
 1511                    
 1512                        <code>ctx</code>
 1513                    
 1514                </li>
 1515            
 1516                <li class="arg">
 1517                    
 1518                        <code>shadow</code>
 1519                    
 1520                </li>
 1521            
 1522            </ul><span class="paren">)</span>
 1523        </div>
 1524    
 1525
 1526    
 1527
 1528    
 1529
 1530    
 1531        <span class="flag protected">protected</span>
 1532    
 1533
 1534    
 1535
 1536    
 1537
 1538    
 1539
 1540    
 1541
 1542    <div class="meta">
 1543        
 1544            
 1545                <p>Inherited from
 1546                <a href="../classes/DisplayObject.html#method__applyShadow">DisplayObject</a>:
 1547            
 1548        
 1549        
 1550        <a href="../files/easeljs_display_DisplayObject.js.html#l1261"><code>_applyShadow:1261</code></a>
 1551        
 1552        </p>
 1553
 1554
 1555        
 1556
 1557        
 1558    </div>
 1559
 1560    <div class="description">
 1561        
 1562    </div>
 1563
 1564    
 1565        <div class="params">
 1566            <h4>Parameters:</h4>
 1567
 1568            <ul class="params-list">
 1569            
 1570                <li class="param">
 1571                    
 1572                        <code class="param-name">ctx</code>
 1573                        <span class="type">CanvasRenderingContext2D</span>
 1574                    
 1575
 1576                    
 1577
 1578                    <div class="param-description">
 1579                         
 1580                    </div>
 1581
 1582                    
 1583                </li>
 1584            
 1585                <li class="param">
 1586                    
 1587                        <code class="param-name">shadow</code>
 1588                        <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
 1589                    
 1590
 1591                    
 1592
 1593                    <div class="param-description">
 1594                         
 1595                    </div>
 1596
 1597                    
 1598                </li>
 1599            
 1600            </ul>
 1601        </div>
 1602    
 1603
 1604    
 1605
 1606    
 1607</div>
 1608
 1609                
 1610                    <div id="method__cloneProps" class="method item protected inherited">
 1611    <h3 class="name"><code>_cloneProps</code></h3>
 1612
 1613    
 1614        <div class="args">
 1615            <span class="paren">(</span><ul class="args-list inline commas">
 1616            
 1617                <li class="arg">
 1618                    
 1619                        <code>o</code>
 1620                    
 1621                </li>
 1622            
 1623            </ul><span class="paren">)</span>
 1624        </div>
 1625    
 1626
 1627    
 1628        <span class="returns-inline">
 1629            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 1630        </span>
 1631    
 1632
 1633    
 1634
 1635    
 1636        <span class="flag protected">protected</span>
 1637    
 1638
 1639    
 1640
 1641    
 1642
 1643    
 1644
 1645    
 1646
 1647    <div class="meta">
 1648        
 1649            
 1650                <p>Inherited from
 1651                <a href="../classes/DisplayObject.html#method__cloneProps">DisplayObject</a>:
 1652            
 1653        
 1654        
 1655        <a href="../files/easeljs_display_DisplayObject.js.html#l1228"><code>_cloneProps:1228</code></a>
 1656        
 1657        </p>
 1658
 1659
 1660        
 1661
 1662        
 1663    </div>
 1664
 1665    <div class="description">
 1666        
 1667    </div>
 1668
 1669    
 1670        <div class="params">
 1671            <h4>Parameters:</h4>
 1672
 1673            <ul class="params-list">
 1674            
 1675                <li class="param">
 1676                    
 1677                        <code class="param-name">o</code>
 1678                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 1679                    
 1680
 1681                    
 1682
 1683                    <div class="param-description">
 1684                        <p>The DisplayObject instance which will have properties from the current DisplayObject
 1685instance copied into.</p>
 1686
 1687                    </div>
 1688
 1689                    
 1690                </li>
 1691            
 1692            </ul>
 1693        </div>
 1694    
 1695
 1696    
 1697        <div class="returns">
 1698            <h4>Returns:</h4>
 1699
 1700            <div class="returns-description">
 1701                
 1702                    
 1703                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 1704                    
 1705                    <p>o</p>
 1706
 1707                
 1708            </div>
 1709        </div>
 1710    
 1711
 1712    
 1713</div>
 1714
 1715                
 1716                    <div id="method__dispatchEvent" class="method item protected inherited">
 1717    <h3 class="name"><code>_dispatchEvent</code></h3>
 1718
 1719    
 1720        <div class="args">
 1721            <span class="paren">(</span><ul class="args-list inline commas">
 1722            
 1723                <li class="arg">
 1724                    
 1725                        <code>eventObj</code>
 1726                    
 1727                </li>
 1728            
 1729                <li class="arg">
 1730                    
 1731                        <code>eventPhase</code>
 1732                    
 1733                </li>
 1734            
 1735            </ul><span class="paren">)</span>
 1736        </div>
 1737    
 1738
 1739    
 1740
 1741    
 1742
 1743    
 1744        <span class="flag protected">protected</span>
 1745    
 1746
 1747    
 1748
 1749    
 1750
 1751    
 1752
 1753    
 1754
 1755    <div class="meta">
 1756        
 1757            
 1758                <p>Inherited from
 1759                <a href="../classes/EventDispatcher.html#method__dispatchEvent">EventDispatcher</a>:
 1760            
 1761        
 1762        
 1763        <a href="../files/createjs_events_EventDispatcher.js.html#l380"><code>_dispatchEvent:380</code></a>
 1764        
 1765        </p>
 1766
 1767
 1768        
 1769
 1770        
 1771    </div>
 1772
 1773    <div class="description">
 1774        
 1775    </div>
 1776
 1777    
 1778        <div class="params">
 1779            <h4>Parameters:</h4>
 1780
 1781            <ul class="params-list">
 1782            
 1783                <li class="param">
 1784                    
 1785                        <code class="param-name">eventObj</code>
 1786                        <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>
 1787                    
 1788
 1789                    
 1790
 1791                    <div class="param-description">
 1792                        
 1793                    </div>
 1794
 1795                    
 1796                </li>
 1797            
 1798                <li class="param">
 1799                    
 1800                        <code class="param-name">eventPhase</code>
 1801                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 1802                    
 1803
 1804                    
 1805
 1806                    <div class="param-description">
 1807                        
 1808                    </div>
 1809
 1810                    
 1811                </li>
 1812            
 1813            </ul>
 1814        </div>
 1815    
 1816
 1817    
 1818
 1819    
 1820</div>
 1821
 1822                
 1823                    <div id="method__dispatchMouseEvent" class="method item protected">
 1824    <h3 class="name"><code>_dispatchMouseEvent</code></h3>
 1825
 1826    
 1827        <div class="args">
 1828            <span class="paren">(</span><ul class="args-list inline commas">
 1829            
 1830                <li class="arg">
 1831                    
 1832                        <code>target</code>
 1833                    
 1834                </li>
 1835            
 1836                <li class="arg">
 1837                    
 1838                        <code>type</code>
 1839                    
 1840                </li>
 1841            
 1842                <li class="arg">
 1843                    
 1844                        <code>bubbles</code>
 1845                    
 1846                </li>
 1847            
 1848                <li class="arg">
 1849                    
 1850                        <code>pointerId</code>
 1851                    
 1852                </li>
 1853            
 1854                <li class="arg">
 1855                    
 1856                        <code>o</code>
 1857                    
 1858                </li>
 1859            
 1860                <li class="arg">
 1861                    
 1862                        <code class="optional">[nativeEvent]</code>
 1863                    
 1864                </li>
 1865            
 1866                <li class="arg">
 1867                    
 1868                        <code class="optional">[relatedTarget]</code>
 1869                    
 1870                </li>
 1871            
 1872            </ul><span class="paren">)</span>
 1873        </div>
 1874    
 1875
 1876    
 1877
 1878    
 1879
 1880    
 1881        <span class="flag protected">protected</span>
 1882    
 1883
 1884    
 1885
 1886    
 1887
 1888    
 1889
 1890    
 1891
 1892    <div class="meta">
 1893        
 1894            
 1895                
 1896                <p>
 1897                
 1898                Defined in
 1899                
 1900            
 1901        
 1902        
 1903        <a href="../files/easeljs_display_Stage.js.html#l838"><code>_dispatchMouseEvent:838</code></a>
 1904        
 1905        </p>
 1906
 1907
 1908        
 1909
 1910        
 1911    </div>
 1912
 1913    <div class="description">
 1914        
 1915    </div>
 1916
 1917    
 1918        <div class="params">
 1919            <h4>Parameters:</h4>
 1920
 1921            <ul class="params-list">
 1922            
 1923                <li class="param">
 1924                    
 1925                        <code class="param-name">target</code>
 1926                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 1927                    
 1928
 1929                    
 1930
 1931                    <div class="param-description">
 1932                         
 1933                    </div>
 1934
 1935                    
 1936                </li>
 1937            
 1938                <li class="param">
 1939                    
 1940                        <code class="param-name">type</code>
 1941                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 1942                    
 1943
 1944                    
 1945
 1946                    <div class="param-description">
 1947                         
 1948                    </div>
 1949
 1950                    
 1951                </li>
 1952            
 1953                <li class="param">
 1954                    
 1955                        <code class="param-name">bubbles</code>
 1956                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 1957                    
 1958
 1959                    
 1960
 1961                    <div class="param-description">
 1962                         
 1963                    </div>
 1964
 1965                    
 1966                </li>
 1967            
 1968                <li class="param">
 1969                    
 1970                        <code class="param-name">pointerId</code>
 1971                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1972                    
 1973
 1974                    
 1975
 1976                    <div class="param-description">
 1977                         
 1978                    </div>
 1979
 1980                    
 1981                </li>
 1982            
 1983                <li class="param">
 1984                    
 1985                        <code class="param-name">o</code>
 1986                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 1987                    
 1988
 1989                    
 1990
 1991                    <div class="param-description">
 1992                         
 1993                    </div>
 1994
 1995                    
 1996                </li>
 1997            
 1998                <li class="param">
 1999                    
 2000                        <code class="param-name optional">[nativeEvent]</code>
 2001                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 2002                        <span class="flag optional" title="This parameter is optional.">optional</span>
 2003                    
 2004
 2005                    
 2006
 2007                    <div class="param-description">
 2008                         
 2009                    </div>
 2010
 2011                    
 2012                </li>
 2013            
 2014                <li class="param">
 2015                    
 2016                        <code class="param-name optional">[relatedTarget]</code>
 2017                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 2018                        <span class="flag optional" title="This parameter is optional.">optional</span>
 2019                    
 2020
 2021                    
 2022
 2023                    <div class="param-description">
 2024                         
 2025                    </div>
 2026
 2027                    
 2028                </li>
 2029            
 2030            </ul>
 2031        </div>
 2032    
 2033
 2034    
 2035
 2036    
 2037</div>
 2038
 2039                
 2040                    <div id="method__getBounds" class="method item protected inherited">
 2041    <h3 class="name"><code>_getBounds</code></h3>
 2042
 2043    
 2044        <div class="args">
 2045            <span class="paren">(</span><ul class="args-list inline commas">
 2046            
 2047                <li class="arg">
 2048                    
 2049                        <code>matrix</code>
 2050                    
 2051                </li>
 2052            
 2053                <li class="arg">
 2054                    
 2055                        <code>ignoreTransform</code>
 2056                    
 2057                </li>
 2058            
 2059            </ul><span class="paren">)</span>
 2060        </div>
 2061    
 2062
 2063    
 2064        <span class="returns-inline">
 2065            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 2066        </span>
 2067    
 2068
 2069    
 2070
 2071    
 2072        <span class="flag protected">protected</span>
 2073    
 2074
 2075    
 2076
 2077    
 2078
 2079    
 2080
 2081    
 2082
 2083    <div class="meta">
 2084        
 2085            <p>Inherited from
 2086            <a href="../classes/DisplayObject.html#method__getBounds">
 2087                DisplayObject
 2088            </a>
 2089            
 2090            but overwritten in
 2091            
 2092        
 2093        
 2094        <a href="../files/easeljs_display_Container.js.html#l681"><code>_getBounds:681</code></a>
 2095        
 2096        </p>
 2097
 2098
 2099        
 2100
 2101        
 2102    </div>
 2103
 2104    <div class="description">
 2105        
 2106    </div>
 2107
 2108    
 2109        <div class="params">
 2110            <h4>Parameters:</h4>
 2111
 2112            <ul class="params-list">
 2113            
 2114                <li class="param">
 2115                    
 2116                        <code class="param-name">matrix</code>
 2117                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 2118                    
 2119
 2120                    
 2121
 2122                    <div class="param-description">
 2123                         
 2124                    </div>
 2125
 2126                    
 2127                </li>
 2128            
 2129                <li class="param">
 2130                    
 2131                        <code class="param-name">ignoreTransform</code>
 2132                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2133                    
 2134
 2135                    
 2136
 2137                    <div class="param-description">
 2138                        <p>If true, does not apply this object&#39;s transform.</p>
 2139
 2140                    </div>
 2141
 2142                    
 2143                </li>
 2144            
 2145            </ul>
 2146        </div>
 2147    
 2148
 2149    
 2150        <div class="returns">
 2151            <h4>Returns:</h4>
 2152
 2153            <div class="returns-description">
 2154                
 2155                    
 2156                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 2157                    
 2158                
 2159            </div>
 2160        </div>
 2161    
 2162
 2163    
 2164</div>
 2165
 2166                
 2167                    <div id="method__getElementRect" class="method item protected">
 2168    <h3 class="name"><code>_getElementRect</code></h3>
 2169
 2170    
 2171        <div class="args">
 2172            <span class="paren">(</span><ul class="args-list inline commas">
 2173            
 2174                <li class="arg">
 2175                    
 2176                        <code>e</code>
 2177                    
 2178                </li>
 2179            
 2180            </ul><span class="paren">)</span>
 2181        </div>
 2182    
 2183
 2184    
 2185
 2186    
 2187
 2188    
 2189        <span class="flag protected">protected</span>
 2190    
 2191
 2192    
 2193
 2194    
 2195
 2196    
 2197
 2198    
 2199
 2200    <div class="meta">
 2201        
 2202            
 2203                
 2204                <p>
 2205                
 2206                Defined in
 2207                
 2208            
 2209        
 2210        
 2211        <a href="../files/easeljs_display_Stage.js.html#l571"><code>_getElementRect:571</code></a>
 2212        
 2213        </p>
 2214
 2215
 2216        
 2217
 2218        
 2219    </div>
 2220
 2221    <div class="description">
 2222        
 2223    </div>
 2224
 2225    
 2226        <div class="params">
 2227            <h4>Parameters:</h4>
 2228
 2229            <ul class="params-list">
 2230            
 2231                <li class="param">
 2232                    
 2233                        <code class="param-name">e</code>
 2234                        <span class="type"><a href="https://developer.mozilla.org/en/Document_Object_Model_(DOM)/HTMLElement" class="crosslink external" target="_blank">HTMLElement</a></span>
 2235                    
 2236
 2237                    
 2238
 2239                    <div class="param-description">
 2240                         
 2241                    </div>
 2242
 2243                    
 2244                </li>
 2245            
 2246            </ul>
 2247        </div>
 2248    
 2249
 2250    
 2251
 2252    
 2253</div>
 2254
 2255                
 2256                    <div id="method__getNumChildren" class="method item protected inherited">
 2257    <h3 class="name"><code>_getNumChildren</code></h3>
 2258
 2259    
 2260        <span class="paren">()</span>
 2261    
 2262
 2263    
 2264        <span class="returns-inline">
 2265            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2266        </span>
 2267    
 2268
 2269    
 2270
 2271    
 2272        <span class="flag protected">protected</span>
 2273    
 2274
 2275    
 2276
 2277    
 2278
 2279    
 2280
 2281    
 2282
 2283    <div class="meta">
 2284        
 2285            
 2286                <p>Inherited from
 2287                <a href="../classes/Container.html#method__getNumChildren">Container</a>:
 2288            
 2289        
 2290        
 2291        <a href="../files/easeljs_display_Container.js.html#l97"><code>_getNumChildren:97</code></a>
 2292        
 2293        </p>
 2294
 2295
 2296        
 2297
 2298        
 2299    </div>
 2300
 2301    <div class="description">
 2302        <p>Use the <a href="../classes/Container.html#property_numChildren" class="crosslink">numChildren</a> property instead.</p>
 2303
 2304    </div>
 2305
 2306    
 2307
 2308    
 2309        <div class="returns">
 2310            <h4>Returns:</h4>
 2311
 2312            <div class="returns-description">
 2313                
 2314                    
 2315                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
 2316                    
 2317                
 2318            </div>
 2319        </div>
 2320    
 2321
 2322    
 2323</div>
 2324
 2325                
 2326                    <div id="method__getObjectsUnderPoint" class="method item protected inherited">
 2327    <h3 class="name"><code>_getObjectsUnderPoint</code></h3>
 2328
 2329    
 2330        <div class="args">
 2331            <span class="paren">(</span><ul class="args-list inline commas">
 2332            
 2333                <li class="arg">
 2334                    
 2335                        <code>x</code>
 2336                    
 2337                </li>
 2338            
 2339                <li class="arg">
 2340                    
 2341                        <code>y</code>
 2342                    
 2343                </li>
 2344            
 2345                <li class="arg">
 2346                    
 2347                        <code>arr</code>
 2348                    
 2349                </li>
 2350            
 2351                <li class="arg">
 2352                    
 2353                        <code>mouse</code>
 2354                    
 2355                </li>
 2356            
 2357                <li class="arg">
 2358                    
 2359                        <code>activeListener</code>
 2360                    
 2361                </li>
 2362            
 2363                <li class="arg">
 2364                    
 2365                        <code>currentDepth</code>
 2366                    
 2367                </li>
 2368            
 2369            </ul><span class="paren">)</span>
 2370        </div>
 2371    
 2372
 2373    
 2374        <span class="returns-inline">
 2375            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 2376        </span>
 2377    
 2378
 2379    
 2380
 2381    
 2382        <span class="flag protected">protected</span>
 2383    
 2384
 2385    
 2386
 2387    
 2388
 2389    
 2390
 2391    
 2392
 2393    <div class="meta">
 2394        
 2395            
 2396                <p>Inherited from
 2397                <a href="../classes/Container.html#method__getObjectsUnderPoint">Container</a>:
 2398            
 2399        
 2400        
 2401        <a href="../files/easeljs_display_Container.js.html#l596"><code>_getObjectsUnderPoint:596</code></a>
 2402        
 2403        </p>
 2404
 2405
 2406        
 2407
 2408        
 2409    </div>
 2410
 2411    <div class="description">
 2412        
 2413    </div>
 2414
 2415    
 2416        <div class="params">
 2417            <h4>Parameters:</h4>
 2418
 2419            <ul class="params-list">
 2420            
 2421                <li class="param">
 2422                    
 2423                        <code class="param-name">x</code>
 2424                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2425                    
 2426
 2427                    
 2428
 2429                    <div class="param-description">
 2430                         
 2431                    </div>
 2432
 2433                    
 2434                </li>
 2435            
 2436                <li class="param">
 2437                    
 2438                        <code class="param-name">y</code>
 2439                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2440                    
 2441
 2442                    
 2443
 2444                    <div class="param-description">
 2445                         
 2446                    </div>
 2447
 2448                    
 2449                </li>
 2450            
 2451                <li class="param">
 2452                    
 2453                        <code class="param-name">arr</code>
 2454                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 2455                    
 2456
 2457                    
 2458
 2459                    <div class="param-description">
 2460                         
 2461                    </div>
 2462
 2463                    
 2464                </li>
 2465            
 2466                <li class="param">
 2467                    
 2468                        <code class="param-name">mouse</code>
 2469                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2470                    
 2471
 2472                    
 2473
 2474                    <div class="param-description">
 2475                        <p>If true, it will respect mouse interaction properties like mouseEnabled, mouseChildren, and active listeners.</p>
 2476
 2477                    </div>
 2478
 2479                    
 2480                </li>
 2481            
 2482                <li class="param">
 2483                    
 2484                        <code class="param-name">activeListener</code>
 2485                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2486                    
 2487
 2488                    
 2489
 2490                    <div class="param-description">
 2491                        <p>If true, there is an active mouse event listener on a parent object.</p>
 2492
 2493                    </div>
 2494
 2495                    
 2496                </li>
 2497            
 2498                <li class="param">
 2499                    
 2500                        <code class="param-name">currentDepth</code>
 2501                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2502                    
 2503
 2504                    
 2505
 2506                    <div class="param-description">
 2507                        <p>Indicates the current depth of the search.</p>
 2508
 2509                    </div>
 2510
 2511                    
 2512                </li>
 2513            
 2514            </ul>
 2515        </div>
 2516    
 2517
 2518    
 2519        <div class="returns">
 2520            <h4>Returns:</h4>
 2521
 2522            <div class="returns-description">
 2523                
 2524                    
 2525                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 2526                    
 2527                
 2528            </div>
 2529        </div>
 2530    
 2531
 2532    
 2533</div>
 2534
 2535                
 2536                    <div id="method__getPointerData" class="method item protected">
 2537    <h3 class="name"><code>_getPointerData</code></h3>
 2538
 2539    
 2540        <div class="args">
 2541            <span class="paren">(</span><ul class="args-list inline commas">
 2542            
 2543                <li class="arg">
 2544                    
 2545                        <code>id</code>
 2546                    
 2547                </li>
 2548            
 2549            </ul><span class="paren">)</span>
 2550        </div>
 2551    
 2552
 2553    
 2554
 2555    
 2556
 2557    
 2558        <span class="flag protected">protected</span>
 2559    
 2560
 2561    
 2562
 2563    
 2564
 2565    
 2566
 2567    
 2568
 2569    <div class="meta">
 2570        
 2571            
 2572                
 2573                <p>
 2574                
 2575                Defined in
 2576                
 2577            
 2578        
 2579        
 2580        <a href="../files/easeljs_display_Stage.js.html#l599"><code>_getPointerData:599</code></a>
 2581        
 2582        </p>
 2583
 2584
 2585        
 2586
 2587        
 2588    </div>
 2589
 2590    <div class="description">
 2591        
 2592    </div>
 2593
 2594    
 2595        <div class="params">
 2596            <h4>Parameters:</h4>
 2597
 2598            <ul class="params-list">
 2599            
 2600                <li class="param">
 2601                    
 2602                        <code class="param-name">id</code>
 2603                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2604                    
 2605
 2606                    
 2607
 2608                    <div class="param-description">
 2609                         
 2610                    </div>
 2611
 2612                    
 2613                </li>
 2614            
 2615            </ul>
 2616        </div>
 2617    
 2618
 2619    
 2620
 2621    
 2622</div>
 2623
 2624                
 2625                    <div id="method__getStage" class="method item protected inherited">
 2626    <h3 class="name"><code>_getStage</code></h3>
 2627
 2628    
 2629        <span class="paren">()</span>
 2630    
 2631
 2632    
 2633        <span class="returns-inline">
 2634            <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 2635        </span>
 2636    
 2637
 2638    
 2639
 2640    
 2641        <span class="flag protected">protected</span>
 2642    
 2643
 2644    
 2645
 2646    
 2647
 2648    
 2649
 2650    
 2651
 2652    <div class="meta">
 2653        
 2654            
 2655                <p>Inherited from
 2656                <a href="../classes/DisplayObject.html#method__getStage">DisplayObject</a>:
 2657            
 2658        
 2659        
 2660        <a href="../files/easeljs_display_DisplayObject.js.html#l672"><code>_getStage:672</code></a>
 2661        
 2662        </p>
 2663
 2664
 2665        
 2666
 2667        
 2668    </div>
 2669
 2670    <div class="description">
 2671        <p>Use the <a href="../classes/DisplayObject.html#property_stage" class="crosslink">stage</a> property instead.</p>
 2672
 2673    </div>
 2674
 2675    
 2676
 2677    
 2678        <div class="returns">
 2679            <h4>Returns:</h4>
 2680
 2681            <div class="returns-description">
 2682                
 2683                    
 2684                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>:
 2685                    
 2686                
 2687            </div>
 2688        </div>
 2689    
 2690
 2691    
 2692</div>
 2693
 2694                
 2695                    <div id="method__handleDoubleClick" class="method item protected">
 2696    <h3 class="name"><code>_handleDoubleClick</code></h3>
 2697
 2698    
 2699        <div class="args">
 2700            <span class="paren">(</span><ul class="args-list inline commas">
 2701            
 2702                <li class="arg">
 2703                    
 2704                        <code>e</code>
 2705                    
 2706                </li>
 2707            
 2708                <li class="arg">
 2709                    
 2710                        <code>owner</code>
 2711                    
 2712                </li>
 2713            
 2714            </ul><span class="paren">)</span>
 2715        </div>
 2716    
 2717
 2718    
 2719
 2720    
 2721
 2722    
 2723        <span class="flag protected">protected</span>
 2724    
 2725
 2726    
 2727
 2728    
 2729
 2730    
 2731
 2732    
 2733
 2734    <div class="meta">
 2735        
 2736            
 2737                
 2738                <p>
 2739                
 2740                Defined in
 2741                
 2742            
 2743        
 2744        
 2745        <a href="../files/easeljs_display_Stage.js.html#l823"><code>_handleDoubleClick:823</code></a>
 2746        
 2747        </p>
 2748
 2749
 2750        
 2751
 2752        
 2753    </div>
 2754
 2755    <div class="description">
 2756        
 2757    </div>
 2758
 2759    
 2760        <div class="params">
 2761            <h4>Parameters:</h4>
 2762
 2763            <ul class="params-list">
 2764            
 2765                <li class="param">
 2766                    
 2767                        <code class="param-name">e</code>
 2768                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 2769                    
 2770
 2771                    
 2772
 2773                    <div class="param-description">
 2774                         
 2775                    </div>
 2776
 2777                    
 2778                </li>
 2779            
 2780                <li class="param">
 2781                    
 2782                        <code class="param-name">owner</code>
 2783                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 2784                    
 2785
 2786                    
 2787
 2788                    <div class="param-description">
 2789                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 2790
 2791                    </div>
 2792
 2793                    
 2794                </li>
 2795            
 2796            </ul>
 2797        </div>
 2798    
 2799
 2800    
 2801
 2802    
 2803</div>
 2804
 2805                
 2806                    <div id="method__handleMouseDown" class="method item protected">
 2807    <h3 class="name"><code>_handleMouseDown</code></h3>
 2808
 2809    
 2810        <div class="args">
 2811            <span class="paren">(</span><ul class="args-list inline commas">
 2812            
 2813                <li class="arg">
 2814                    
 2815                        <code>e</code>
 2816                    
 2817                </li>
 2818            
 2819            </ul><span class="paren">)</span>
 2820        </div>
 2821    
 2822
 2823    
 2824
 2825    
 2826
 2827    
 2828        <span class="flag protected">protected</span>
 2829    
 2830
 2831    
 2832
 2833    
 2834
 2835    
 2836
 2837    
 2838
 2839    <div class="meta">
 2840        
 2841            
 2842                
 2843                <p>
 2844                
 2845                Defined in
 2846                
 2847            
 2848        
 2849        
 2850        <a href="../files/easeljs_display_Stage.js.html#l722"><code>_handleMouseDown:722</code></a>
 2851        
 2852        </p>
 2853
 2854
 2855        
 2856
 2857        
 2858    </div>
 2859
 2860    <div class="description">
 2861        
 2862    </div>
 2863
 2864    
 2865        <div class="params">
 2866            <h4>Parameters:</h4>
 2867
 2868            <ul class="params-list">
 2869            
 2870                <li class="param">
 2871                    
 2872                        <code class="param-name">e</code>
 2873                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 2874                    
 2875
 2876                    
 2877
 2878                    <div class="param-description">
 2879                         
 2880                    </div>
 2881
 2882                    
 2883                </li>
 2884            
 2885            </ul>
 2886        </div>
 2887    
 2888
 2889    
 2890
 2891    
 2892</div>
 2893
 2894                
 2895                    <div id="method__handleMouseMove" class="method item protected">
 2896    <h3 class="name"><code>_handleMouseMove</code></h3>
 2897
 2898    
 2899        <div class="args">
 2900            <span class="paren">(</span><ul class="args-list inline commas">
 2901            
 2902                <li class="arg">
 2903                    
 2904                        <code>e</code>
 2905                    
 2906                </li>
 2907            
 2908            </ul><span class="paren">)</span>
 2909        </div>
 2910    
 2911
 2912    
 2913
 2914    
 2915
 2916    
 2917        <span class="flag protected">protected</span>
 2918    
 2919
 2920    
 2921
 2922    
 2923
 2924    
 2925
 2926    
 2927
 2928    <div class="meta">
 2929        
 2930            
 2931                
 2932                <p>
 2933                
 2934                Defined in
 2935                
 2936            
 2937        
 2938        
 2939        <a href="../files/easeljs_display_Stage.js.html#l610"><code>_handleMouseMove:610</code></a>
 2940        
 2941        </p>
 2942
 2943
 2944        
 2945
 2946        
 2947    </div>
 2948
 2949    <div class="description">
 2950        
 2951    </div>
 2952
 2953    
 2954        <div class="params">
 2955            <h4>Parameters:</h4>
 2956
 2957            <ul class="params-list">
 2958            
 2959                <li class="param">
 2960                    
 2961                        <code class="param-name">e</code>
 2962                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 2963                    
 2964
 2965                    
 2966
 2967                    <div class="param-description">
 2968                         
 2969                    </div>
 2970
 2971                    
 2972                </li>
 2973            
 2974            </ul>
 2975        </div>
 2976    
 2977
 2978    
 2979
 2980    
 2981</div>
 2982
 2983                
 2984                    <div id="method__handleMouseUp" class="method item protected">
 2985    <h3 class="name"><code>_handleMouseUp</code></h3>
 2986
 2987    
 2988        <div class="args">
 2989            <span class="paren">(</span><ul class="args-list inline commas">
 2990            
 2991                <li class="arg">
 2992                    
 2993                        <code>e</code>
 2994                    
 2995                </li>
 2996            
 2997            </ul><span class="paren">)</span>
 2998        </div>
 2999    
 3000
 3001    
 3002
 3003    
 3004
 3005    
 3006        <span class="flag protected">protected</span>
 3007    
 3008
 3009    
 3010
 3011    
 3012
 3013    
 3014
 3015    
 3016
 3017    <div class="meta">
 3018        
 3019            
 3020                
 3021                <p>
 3022                
 3023                Defined in
 3024                
 3025            
 3026        
 3027        
 3028        <a href="../files/easeljs_display_Stage.js.html#l685"><code>_handleMouseUp:685</code></a>
 3029        
 3030        </p>
 3031
 3032
 3033        
 3034
 3035        
 3036    </div>
 3037
 3038    <div class="description">
 3039        
 3040    </div>
 3041
 3042    
 3043        <div class="params">
 3044            <h4>Parameters:</h4>
 3045
 3046            <ul class="params-list">
 3047            
 3048                <li class="param">
 3049                    
 3050                        <code class="param-name">e</code>
 3051                        <span class="type"><a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a></span>
 3052                    
 3053
 3054                    
 3055
 3056                    <div class="param-description">
 3057                         
 3058                    </div>
 3059
 3060                    
 3061                </li>
 3062            
 3063            </ul>
 3064        </div>
 3065    
 3066
 3067    
 3068
 3069    
 3070</div>
 3071
 3072                
 3073                    <div id="method__handlePointerDown" class="method item protected">
 3074    <h3 class="name"><code>_handlePointerDown</code></h3>
 3075
 3076    
 3077        <div class="args">
 3078            <span class="paren">(</span><ul class="args-list inline commas">
 3079            
 3080                <li class="arg">
 3081                    
 3082                        <code>id</code>
 3083                    
 3084                </li>
 3085            
 3086                <li class="arg">
 3087                    
 3088                        <code>e</code>
 3089                    
 3090                </li>
 3091            
 3092                <li class="arg">
 3093                    
 3094                        <code>pageX</code>
 3095                    
 3096                </li>
 3097            
 3098                <li class="arg">
 3099                    
 3100                        <code>pageY</code>
 3101                    
 3102                </li>
 3103            
 3104                <li class="arg">
 3105                    
 3106                        <code>owner</code>
 3107                    
 3108                </li>
 3109            
 3110            </ul><span class="paren">)</span>
 3111        </div>
 3112    
 3113
 3114    
 3115
 3116    
 3117
 3118    
 3119        <span class="flag protected">protected</span>
 3120    
 3121
 3122    
 3123
 3124    
 3125
 3126    
 3127
 3128    
 3129
 3130    <div class="meta">
 3131        
 3132            
 3133                
 3134                <p>
 3135                
 3136                Defined in
 3137                
 3138            
 3139        
 3140        
 3141        <a href="../files/easeljs_display_Stage.js.html#l731"><code>_handlePointerDown:731</code></a>
 3142        
 3143        </p>
 3144
 3145
 3146        
 3147
 3148        
 3149    </div>
 3150
 3151    <div class="description">
 3152        
 3153    </div>
 3154
 3155    
 3156        <div class="params">
 3157            <h4>Parameters:</h4>
 3158
 3159            <ul class="params-list">
 3160            
 3161                <li class="param">
 3162                    
 3163                        <code class="param-name">id</code>
 3164                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3165                    
 3166
 3167                    
 3168
 3169                    <div class="param-description">
 3170                         
 3171                    </div>
 3172
 3173                    
 3174                </li>
 3175            
 3176                <li class="param">
 3177                    
 3178                        <code class="param-name">e</code>
 3179                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
 3180                    
 3181
 3182                    
 3183
 3184                    <div class="param-description">
 3185                         
 3186                    </div>
 3187
 3188                    
 3189                </li>
 3190            
 3191                <li class="param">
 3192                    
 3193                        <code class="param-name">pageX</code>
 3194                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3195                    
 3196
 3197                    
 3198
 3199                    <div class="param-description">
 3200                         
 3201                    </div>
 3202
 3203                    
 3204                </li>
 3205            
 3206                <li class="param">
 3207                    
 3208                        <code class="param-name">pageY</code>
 3209                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3210                    
 3211
 3212                    
 3213
 3214                    <div class="param-description">
 3215                         
 3216                    </div>
 3217
 3218                    
 3219                </li>
 3220            
 3221                <li class="param">
 3222                    
 3223                        <code class="param-name">owner</code>
 3224                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 3225                    
 3226
 3227                    
 3228
 3229                    <div class="param-description">
 3230                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 3231
 3232                    </div>
 3233
 3234                    
 3235                </li>
 3236            
 3237            </ul>
 3238        </div>
 3239    
 3240
 3241    
 3242
 3243    
 3244</div>
 3245
 3246                
 3247                    <div id="method__handlePointerMove" class="method item protected">
 3248    <h3 class="name"><code>_handlePointerMove</code></h3>
 3249
 3250    
 3251        <div class="args">
 3252            <span class="paren">(</span><ul class="args-list inline commas">
 3253            
 3254                <li class="arg">
 3255                    
 3256                        <code>id</code>
 3257                    
 3258                </li>
 3259            
 3260                <li class="arg">
 3261                    
 3262                        <code>e</code>
 3263                    
 3264                </li>
 3265            
 3266                <li class="arg">
 3267                    
 3268                        <code>pageX</code>
 3269                    
 3270                </li>
 3271            
 3272                <li class="arg">
 3273                    
 3274                        <code>pageY</code>
 3275                    
 3276                </li>
 3277            
 3278                <li class="arg">
 3279                    
 3280                        <code>owner</code>
 3281                    
 3282                </li>
 3283            
 3284            </ul><span class="paren">)</span>
 3285        </div>
 3286    
 3287
 3288    
 3289
 3290    
 3291
 3292    
 3293        <span class="flag protected">protected</span>
 3294    
 3295
 3296    
 3297
 3298    
 3299
 3300    
 3301
 3302    
 3303
 3304    <div class="meta">
 3305        
 3306            
 3307                
 3308                <p>
 3309                
 3310                Defined in
 3311                
 3312            
 3313        
 3314        
 3315        <a href="../files/easeljs_display_Stage.js.html#l620"><code>_handlePointerMove:620</code></a>
 3316        
 3317        </p>
 3318
 3319
 3320        
 3321
 3322        
 3323    </div>
 3324
 3325    <div class="description">
 3326        
 3327    </div>
 3328
 3329    
 3330        <div class="params">
 3331            <h4>Parameters:</h4>
 3332
 3333            <ul class="params-list">
 3334            
 3335                <li class="param">
 3336                    
 3337                        <code class="param-name">id</code>
 3338                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3339                    
 3340
 3341                    
 3342
 3343                    <div class="param-description">
 3344                         
 3345                    </div>
 3346
 3347                    
 3348                </li>
 3349            
 3350                <li class="param">
 3351                    
 3352                        <code class="param-name">e</code>
 3353                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
 3354                    
 3355
 3356                    
 3357
 3358                    <div class="param-description">
 3359                         
 3360                    </div>
 3361
 3362                    
 3363                </li>
 3364            
 3365                <li class="param">
 3366                    
 3367                        <code class="param-name">pageX</code>
 3368                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3369                    
 3370
 3371                    
 3372
 3373                    <div class="param-description">
 3374                         
 3375                    </div>
 3376
 3377                    
 3378                </li>
 3379            
 3380                <li class="param">
 3381                    
 3382                        <code class="param-name">pageY</code>
 3383                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</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">owner</code>
 3398                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 3399                    
 3400
 3401                    
 3402
 3403                    <div class="param-description">
 3404                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 3405
 3406                    </div>
 3407
 3408                    
 3409                </li>
 3410            
 3411            </ul>
 3412        </div>
 3413    
 3414
 3415    
 3416
 3417    
 3418</div>
 3419
 3420                
 3421                    <div id="method__handlePointerUp" class="method item protected">
 3422    <h3 class="name"><code>_handlePointerUp</code></h3>
 3423
 3424    
 3425        <div class="args">
 3426            <span class="paren">(</span><ul class="args-list inline commas">
 3427            
 3428                <li class="arg">
 3429                    
 3430                        <code>id</code>
 3431                    
 3432                </li>
 3433            
 3434                <li class="arg">
 3435                    
 3436                        <code>e</code>
 3437                    
 3438                </li>
 3439            
 3440                <li class="arg">
 3441                    
 3442                        <code>clear</code>
 3443                    
 3444                </li>
 3445            
 3446                <li class="arg">
 3447                    
 3448                        <code>owner</code>
 3449                    
 3450                </li>
 3451            
 3452            </ul><span class="paren">)</span>
 3453        </div>
 3454    
 3455
 3456    
 3457
 3458    
 3459
 3460    
 3461        <span class="flag protected">protected</span>
 3462    
 3463
 3464    
 3465
 3466    
 3467
 3468    
 3469
 3470    
 3471
 3472    <div class="meta">
 3473        
 3474            
 3475                
 3476                <p>
 3477                
 3478                Defined in
 3479                
 3480            
 3481        
 3482        
 3483        <a href="../files/easeljs_display_Stage.js.html#l694"><code>_handlePointerUp:694</code></a>
 3484        
 3485        </p>
 3486
 3487
 3488        
 3489
 3490        
 3491    </div>
 3492
 3493    <div class="description">
 3494        
 3495    </div>
 3496
 3497    
 3498        <div class="params">
 3499            <h4>Parameters:</h4>
 3500
 3501            <ul class="params-list">
 3502            
 3503                <li class="param">
 3504                    
 3505                        <code class="param-name">id</code>
 3506                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3507                    
 3508
 3509                    
 3510
 3511                    <div class="param-description">
 3512                         
 3513                    </div>
 3514
 3515                    
 3516                </li>
 3517            
 3518                <li class="param">
 3519                    
 3520                        <code class="param-name">e</code>
 3521                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
 3522                    
 3523
 3524                    
 3525
 3526                    <div class="param-description">
 3527                         
 3528                    </div>
 3529
 3530                    
 3531                </li>
 3532            
 3533                <li class="param">
 3534                    
 3535                        <code class="param-name">clear</code>
 3536                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3537                    
 3538
 3539                    
 3540
 3541                    <div class="param-description">
 3542                         
 3543                    </div>
 3544
 3545                    
 3546                </li>
 3547            
 3548                <li class="param">
 3549                    
 3550                        <code class="param-name">owner</code>
 3551                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 3552                    
 3553
 3554                    
 3555
 3556                    <div class="param-description">
 3557                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 3558
 3559                    </div>
 3560
 3561                    
 3562                </li>
 3563            
 3564            </ul>
 3565        </div>
 3566    
 3567
 3568    
 3569
 3570    
 3571</div>
 3572
 3573                
 3574                    <div id="method__isMouseOpaque" class="method item protected inherited">
 3575    <h3 class="name"><code>_isMouseOpaque</code></h3>
 3576
 3577    
 3578        <span class="paren">()</span>
 3579    
 3580
 3581    
 3582        <span class="returns-inline">
 3583            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3584        </span>
 3585    
 3586
 3587    
 3588
 3589    
 3590        <span class="flag protected">protected</span>
 3591    
 3592
 3593    
 3594
 3595    
 3596
 3597    
 3598
 3599    
 3600
 3601    <div class="meta">
 3602        
 3603            
 3604                <p>Inherited from
 3605                <a href="../classes/DisplayObject.html#method__isMouseOpaque">DisplayObject</a>:
 3606            
 3607        
 3608        
 3609        <a href="../files/easeljs_display_DisplayObject.js.html#l1352"><code>_isMouseOpaque:1352</code></a>
 3610        
 3611        </p>
 3612
 3613
 3614        
 3615
 3616        
 3617    </div>
 3618
 3619    <div class="description">
 3620        <p>Indicates whether the display object has any mouse event listeners or a cursor.</p>
 3621
 3622    </div>
 3623
 3624    
 3625
 3626    
 3627        <div class="returns">
 3628            <h4>Returns:</h4>
 3629
 3630            <div class="returns-description">
 3631                
 3632                    
 3633                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 3634                    
 3635                
 3636            </div>
 3637        </div>
 3638    
 3639
 3640    
 3641</div>
 3642
 3643                
 3644                    <div id="method__testHit" class="method item protected inherited">
 3645    <h3 class="name"><code>_testHit</code></h3>
 3646
 3647    
 3648        <div class="args">
 3649            <span class="paren">(</span><ul class="args-list inline commas">
 3650            
 3651                <li class="arg">
 3652                    
 3653                        <code>ctx</code>
 3654                    
 3655                </li>
 3656            
 3657            </ul><span class="paren">)</span>
 3658        </div>
 3659    
 3660
 3661    
 3662        <span class="returns-inline">
 3663            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3664        </span>
 3665    
 3666
 3667    
 3668
 3669    
 3670        <span class="flag protected">protected</span>
 3671    
 3672
 3673    
 3674
 3675    
 3676
 3677    
 3678
 3679    
 3680
 3681    <div class="meta">
 3682        
 3683            
 3684                <p>Inherited from
 3685                <a href="../classes/DisplayObject.html#method__testHit">DisplayObject</a>:
 3686            
 3687        
 3688        
 3689        <a href="../files/easeljs_display_DisplayObject.js.html#l1291"><code>_testHit:1291</code></a>
 3690        
 3691        </p>
 3692
 3693
 3694        
 3695
 3696        
 3697    </div>
 3698
 3699    <div class="description">
 3700        
 3701    </div>
 3702
 3703    
 3704        <div class="params">
 3705            <h4>Parameters:</h4>
 3706
 3707            <ul class="params-list">
 3708            
 3709                <li class="param">
 3710                    
 3711                        <code class="param-name">ctx</code>
 3712                        <span class="type">CanvasRenderingContext2D</span>
 3713                    
 3714
 3715                    
 3716
 3717                    <div class="param-description">
 3718                         
 3719                    </div>
 3720
 3721                    
 3722                </li>
 3723            
 3724            </ul>
 3725        </div>
 3726    
 3727
 3728    
 3729        <div class="returns">
 3730            <h4>Returns:</h4>
 3731
 3732            <div class="returns-description">
 3733                
 3734                    
 3735                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 3736                    
 3737                
 3738            </div>
 3739        </div>
 3740    
 3741
 3742    
 3743</div>
 3744
 3745                
 3746                    <div id="method__testMask" class="method item protected inherited">
 3747    <h3 class="name"><code>_testMask</code></h3>
 3748
 3749    
 3750        <div class="args">
 3751            <span class="paren">(</span><ul class="args-list inline commas">
 3752            
 3753                <li class="arg">
 3754                    
 3755                        <code>target</code>
 3756                    
 3757                </li>
 3758            
 3759                <li class="arg">
 3760                    
 3761                        <code>x</code>
 3762                    
 3763                </li>
 3764            
 3765                <li class="arg">
 3766                    
 3767                        <code>y</code>
 3768                    
 3769                </li>
 3770            
 3771            </ul><span class="paren">)</span>
 3772        </div>
 3773    
 3774
 3775    
 3776        <span class="returns-inline">
 3777            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3778        </span>
 3779    
 3780
 3781    
 3782
 3783    
 3784        <span class="flag protected">protected</span>
 3785    
 3786
 3787    
 3788
 3789    
 3790
 3791    
 3792
 3793    
 3794
 3795    <div class="meta">
 3796        
 3797            
 3798                <p>Inherited from
 3799                <a href="../classes/Container.html#method__testMask">Container</a>:
 3800            
 3801        
 3802        
 3803        <a href="../files/easeljs_display_Container.js.html#l650"><code>_testMask:650</code></a>
 3804        
 3805        </p>
 3806
 3807
 3808        
 3809
 3810        
 3811    </div>
 3812
 3813    <div class="description">
 3814        
 3815    </div>
 3816
 3817    
 3818        <div class="params">
 3819            <h4>Parameters:</h4>
 3820
 3821            <ul class="params-list">
 3822            
 3823                <li class="param">
 3824                    
 3825                        <code class="param-name">target</code>
 3826                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 3827                    
 3828
 3829                    
 3830
 3831                    <div class="param-description">
 3832                         
 3833                    </div>
 3834
 3835                    
 3836                </li>
 3837            
 3838                <li class="param">
 3839                    
 3840                        <code class="param-name">x</code>
 3841                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3842                    
 3843
 3844                    
 3845
 3846                    <div class="param-description">
 3847                         
 3848                    </div>
 3849
 3850                    
 3851                </li>
 3852            
 3853                <li class="param">
 3854                    
 3855                        <code class="param-name">y</code>
 3856                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3857                    
 3858
 3859                    
 3860
 3861                    <div class="param-description">
 3862                         
 3863                    </div>
 3864
 3865                    
 3866                </li>
 3867            
 3868            </ul>
 3869        </div>
 3870    
 3871
 3872    
 3873        <div class="returns">
 3874            <h4>Returns:</h4>
 3875
 3876            <div class="returns-description">
 3877                
 3878                    
 3879                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 3880                    
 3881                    <p>Indicates whether the x/y is within the masked region.</p>
 3882
 3883                
 3884            </div>
 3885        </div>
 3886    
 3887
 3888    
 3889</div>
 3890
 3891                
 3892                    <div id="method__testMouseOver" class="method item protected">
 3893    <h3 class="name"><code>_testMouseOver</code></h3>
 3894
 3895    
 3896        <div class="args">
 3897            <span class="paren">(</span><ul class="args-list inline commas">
 3898            
 3899                <li class="arg">
 3900                    
 3901                        <code>clear</code>
 3902                    
 3903                </li>
 3904            
 3905                <li class="arg">
 3906                    
 3907                        <code>owner</code>
 3908                    
 3909                </li>
 3910            
 3911                <li class="arg">
 3912                    
 3913                        <code>eventTarget</code>
 3914                    
 3915                </li>
 3916            
 3917            </ul><span class="paren">)</span>
 3918        </div>
 3919    
 3920
 3921    
 3922
 3923    
 3924
 3925    
 3926        <span class="flag protected">protected</span>
 3927    
 3928
 3929    
 3930
 3931    
 3932
 3933    
 3934
 3935    
 3936
 3937    <div class="meta">
 3938        
 3939            
 3940                
 3941                <p>
 3942                
 3943                Defined in
 3944                
 3945            
 3946        
 3947        
 3948        <a href="../files/easeljs_display_Stage.js.html#l754"><code>_testMouseOver:754</code></a>
 3949        
 3950        </p>
 3951
 3952
 3953        
 3954
 3955        
 3956    </div>
 3957
 3958    <div class="description">
 3959        
 3960    </div>
 3961
 3962    
 3963        <div class="params">
 3964            <h4>Parameters:</h4>
 3965
 3966            <ul class="params-list">
 3967            
 3968                <li class="param">
 3969                    
 3970                        <code class="param-name">clear</code>
 3971                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3972                    
 3973
 3974                    
 3975
 3976                    <div class="param-description">
 3977                        <p>If true, clears the mouseover / rollover (ie. no target)</p>
 3978
 3979                    </div>
 3980
 3981                    
 3982                </li>
 3983            
 3984                <li class="param">
 3985                    
 3986                        <code class="param-name">owner</code>
 3987                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 3988                    
 3989
 3990                    
 3991
 3992                    <div class="param-description">
 3993                        <p>Indicates that the event has already been captured &amp; handled by the indicated stage.</p>
 3994
 3995                    </div>
 3996
 3997                    
 3998                </li>
 3999            
 4000                <li class="param">
 4001                    
 4002                        <code class="param-name">eventTarget</code>
 4003                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 4004                    
 4005
 4006                    
 4007
 4008                    <div class="param-description">
 4009                        <p>The stage that the cursor is actively over.</p>
 4010
 4011                    </div>
 4012
 4013                    
 4014                </li>
 4015            
 4016            </ul>
 4017        </div>
 4018    
 4019
 4020    
 4021
 4022    
 4023</div>
 4024
 4025                
 4026                    <div id="method__tick" class="method item protected inherited">
 4027    <h3 class="name"><code>_tick</code></h3>
 4028
 4029    
 4030        <div class="args">
 4031            <span class="paren">(</span><ul class="args-list inline commas">
 4032            
 4033                <li class="arg">
 4034                    
 4035                        <code>evtObj</code>
 4036                    
 4037                </li>
 4038            
 4039            </ul><span class="paren">)</span>
 4040        </div>
 4041    
 4042
 4043    
 4044
 4045    
 4046
 4047    
 4048        <span class="flag protected">protected</span>
 4049    
 4050
 4051    
 4052
 4053    
 4054
 4055    
 4056
 4057    
 4058
 4059    <div class="meta">
 4060        
 4061            <p>Inherited from
 4062            <a href="../classes/DisplayObject.html#method__tick">
 4063                DisplayObject
 4064            </a>
 4065            
 4066            but overwritten in
 4067            
 4068        
 4069        
 4070        <a href="../files/easeljs_display_Container.js.html#l547"><code>_tick:547</code></a>
 4071        
 4072        </p>
 4073
 4074
 4075        
 4076
 4077        
 4078    </div>
 4079
 4080    <div class="description">
 4081        
 4082    </div>
 4083
 4084    
 4085        <div class="params">
 4086            <h4>Parameters:</h4>
 4087
 4088            <ul class="params-list">
 4089            
 4090                <li class="param">
 4091                    
 4092                        <code class="param-name">evtObj</code>
 4093                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 4094                    
 4095
 4096                    
 4097
 4098                    <div class="param-description">
 4099                        <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>
 4100
 4101                    </div>
 4102
 4103                    
 4104                </li>
 4105            
 4106            </ul>
 4107        </div>
 4108    
 4109
 4110    
 4111
 4112    
 4113</div>
 4114
 4115                
 4116                    <div id="method__transformBounds" class="method item protected inherited">
 4117    <h3 class="name"><code>_transformBounds</code></h3>
 4118
 4119    
 4120        <div class="args">
 4121            <span class="paren">(</span><ul class="args-list inline commas">
 4122            
 4123                <li class="arg">
 4124                    
 4125                        <code>bounds</code>
 4126                    
 4127                </li>
 4128            
 4129                <li class="arg">
 4130                    
 4131                        <code>matrix</code>
 4132                    
 4133                </li>
 4134            
 4135                <li class="arg">
 4136                    
 4137                        <code>ignoreTransform</code>
 4138                    
 4139                </li>
 4140            
 4141            </ul><span class="paren">)</span>
 4142        </div>
 4143    
 4144
 4145    
 4146        <span class="returns-inline">
 4147            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 4148        </span>
 4149    
 4150
 4151    
 4152
 4153    
 4154        <span class="flag protected">protected</span>
 4155    
 4156
 4157    
 4158
 4159    
 4160
 4161    
 4162
 4163    
 4164
 4165    <div class="meta">
 4166        
 4167            
 4168                <p>Inherited from
 4169                <a href="../classes/DisplayObject.html#method__transformBounds">DisplayObject</a>:
 4170            
 4171        
 4172        
 4173        <a href="../files/easeljs_display_DisplayObject.js.html#l1319"><code>_transformBounds:1319</code></a>
 4174        
 4175        </p>
 4176
 4177
 4178        
 4179
 4180        
 4181    </div>
 4182
 4183    <div class="description">
 4184        
 4185    </div>
 4186
 4187    
 4188        <div class="params">
 4189            <h4>Parameters:</h4>
 4190
 4191            <ul class="params-list">
 4192            
 4193                <li class="param">
 4194                    
 4195                        <code class="param-name">bounds</code>
 4196                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 4197                    
 4198
 4199                    
 4200
 4201                    <div class="param-description">
 4202                         
 4203                    </div>
 4204
 4205                    
 4206                </li>
 4207            
 4208                <li class="param">
 4209                    
 4210                        <code class="param-name">matrix</code>
 4211                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 4212                    
 4213
 4214                    
 4215
 4216                    <div class="param-description">
 4217                         
 4218                    </div>
 4219
 4220                    
 4221                </li>
 4222            
 4223                <li class="param">
 4224                    
 4225                        <code class="param-name">ignoreTransform</code>
 4226                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 4227                    
 4228
 4229                    
 4230
 4231                    <div class="param-description">
 4232                         
 4233                    </div>
 4234
 4235                    
 4236                </li>
 4237            
 4238            </ul>
 4239        </div>
 4240    
 4241
 4242    
 4243        <div class="returns">
 4244            <h4>Returns:</h4>
 4245
 4246            <div class="returns-description">
 4247                
 4248                    
 4249                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 4250                    
 4251                
 4252            </div>
 4253        </div>
 4254    
 4255
 4256    
 4257</div>
 4258
 4259                
 4260                    <div id="method__updatePointerPosition" class="method item protected">
 4261    <h3 class="name"><code>_updatePointerPosition</code></h3>
 4262
 4263    
 4264        <div class="args">
 4265            <span class="paren">(</span><ul class="args-list inline commas">
 4266            
 4267                <li class="arg">
 4268                    
 4269                        <code>id</code>
 4270                    
 4271                </li>
 4272            
 4273                <li class="arg">
 4274                    
 4275                        <code>e</code>
 4276                    
 4277                </li>
 4278            
 4279                <li class="arg">
 4280                    
 4281                        <code>pageX</code>
 4282                    
 4283                </li>
 4284            
 4285                <li class="arg">
 4286                    
 4287                        <code>pageY</code>
 4288                    
 4289                </li>
 4290            
 4291            </ul><span class="paren">)</span>
 4292        </div>
 4293    
 4294
 4295    
 4296
 4297    
 4298
 4299    
 4300        <span class="flag protected">protected</span>
 4301    
 4302
 4303    
 4304
 4305    
 4306
 4307    
 4308
 4309    
 4310
 4311    <div class="meta">
 4312        
 4313            
 4314                
 4315                <p>
 4316                
 4317                Defined in
 4318                
 4319            
 4320        
 4321        
 4322        <a href="../files/easeljs_display_Stage.js.html#l648"><code>_updatePointerPosition:648</code></a>
 4323        
 4324        </p>
 4325
 4326
 4327        
 4328
 4329        
 4330    </div>
 4331
 4332    <div class="description">
 4333        
 4334    </div>
 4335
 4336    
 4337        <div class="params">
 4338            <h4>Parameters:</h4>
 4339
 4340            <ul class="params-list">
 4341            
 4342                <li class="param">
 4343                    
 4344                        <code class="param-name">id</code>
 4345                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4346                    
 4347
 4348                    
 4349
 4350                    <div class="param-description">
 4351                         
 4352                    </div>
 4353
 4354                    
 4355                </li>
 4356            
 4357                <li class="param">
 4358                    
 4359                        <code class="param-name">e</code>
 4360                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
 4361                    
 4362
 4363                    
 4364
 4365                    <div class="param-description">
 4366                         
 4367                    </div>
 4368
 4369                    
 4370                </li>
 4371            
 4372                <li class="param">
 4373                    
 4374                        <code class="param-name">pageX</code>
 4375                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4376                    
 4377
 4378                    
 4379
 4380                    <div class="param-description">
 4381                         
 4382                    </div>
 4383
 4384                    
 4385                </li>
 4386            
 4387                <li class="param">
 4388                    
 4389                        <code class="param-name">pageY</code>
 4390                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4391                    
 4392
 4393                    
 4394
 4395                    <div class="param-description">
 4396                         
 4397                    </div>
 4398
 4399                    
 4400                </li>
 4401            
 4402            </ul>
 4403        </div>
 4404    
 4405
 4406    
 4407
 4408    
 4409</div>
 4410
 4411                
 4412                    <div id="method__updateState" class="method item inherited">
 4413    <h3 class="name"><code>_updateState</code></h3>
 4414
 4415    
 4416        <span class="paren">()</span>
 4417    
 4418
 4419    
 4420
 4421    
 4422
 4423    
 4424
 4425    
 4426
 4427    
 4428
 4429    
 4430
 4431    
 4432
 4433    <div class="meta">
 4434        
 4435            
 4436                <p>Inherited from
 4437                <a href="../classes/DisplayObject.html#method__updateState">DisplayObject</a>:
 4438            
 4439        
 4440        
 4441        <a href="../files/easeljs_display_DisplayObject.js.html#l1214"><code>_updateState:1214</code></a>
 4442        
 4443        </p>
 4444
 4445
 4446        
 4447
 4448        
 4449    </div>
 4450
 4451    <div class="description">
 4452        <p>Called before the object gets drawn and is a chance to ensure the display state of the object is correct.
 4453Mostly used by <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> and <a href="../classes/BitmapText.html" class="crosslink">BitmapText</a> to
 4454correct their internal state and children prior to being drawn.</p>
 4455<p>Is manually called via draw in a <a href="../classes/Stage.html" class="crosslink">Stage</a> but is automatically called when
 4456present in a <a href="../classes/StageGL.html" class="crosslink">StageGL</a> instance.</p>
 4457
 4458    </div>
 4459
 4460    
 4461
 4462    
 4463
 4464    
 4465</div>
 4466
 4467                
 4468                    <div id="method_addChild" class="method item inherited">
 4469    <h3 class="name"><code>addChild</code></h3>
 4470
 4471    
 4472        <div class="args">
 4473            <span class="paren">(</span><ul class="args-list inline commas">
 4474            
 4475                <li class="arg">
 4476                    
 4477                        <code>child</code>
 4478                    
 4479                </li>
 4480            
 4481            </ul><span class="paren">)</span>
 4482        </div>
 4483    
 4484
 4485    
 4486        <span class="returns-inline">
 4487            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 4488        </span>
 4489    
 4490
 4491    
 4492
 4493    
 4494
 4495    
 4496
 4497    
 4498
 4499    
 4500
 4501    
 4502
 4503    <div class="meta">
 4504        
 4505            
 4506                <p>Inherited from
 4507                <a href="../classes/Container.html#method_addChild">Container</a>:
 4508            
 4509        
 4510        
 4511        <a href="../files/easeljs_display_Container.js.html#l173"><code>addChild:173</code></a>
 4512        
 4513        </p>
 4514
 4515
 4516        
 4517
 4518        
 4519    </div>
 4520
 4521    <div class="description">
 4522        <p><p>Adds a child to the top of the display list.</p></p>
 4523<h4>Example</h4>
 4524
 4525<pre class="code prettyprint"><code>    container.addChild(bitmapInstance);</code></pre>
 4526<p>You can also add multiple children at once:</p>
 4527<pre class="code prettyprint"><code>    container.addChild(bitmapInstance, shapeInstance, textInstance);</code></pre>
 4528
 4529    </div>
 4530
 4531    
 4532        <div class="params">
 4533            <h4>Parameters:</h4>
 4534
 4535            <ul class="params-list">
 4536            
 4537                <li class="param">
 4538                    
 4539                        <code class="param-name">child</code>
 4540                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 4541                    
 4542
 4543                    
 4544
 4545                    <div class="param-description">
 4546                        <p>The display object to add.</p>
 4547
 4548                    </div>
 4549
 4550                    
 4551                </li>
 4552            
 4553            </ul>
 4554        </div>
 4555    
 4556
 4557    
 4558        <div class="returns">
 4559            <h4>Returns:</h4>
 4560
 4561            <div class="returns-description">
 4562                
 4563                    
 4564                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 4565                    
 4566                    <p>The child that was added, or the last child if multiple children were added.</p>
 4567
 4568                
 4569            </div>
 4570        </div>
 4571    
 4572
 4573    
 4574</div>
 4575
 4576                
 4577                    <div id="method_addChildAt" class="method item inherited">
 4578    <h3 class="name"><code>addChildAt</code></h3>
 4579
 4580    
 4581        <div class="args">
 4582            <span class="paren">(</span><ul class="args-list inline commas">
 4583            
 4584                <li class="arg">
 4585                    
 4586                        <code>child</code>
 4587                    
 4588                </li>
 4589            
 4590                <li class="arg">
 4591                    
 4592                        <code>index</code>
 4593                    
 4594                </li>
 4595            
 4596            </ul><span class="paren">)</span>
 4597        </div>
 4598    
 4599
 4600    
 4601        <span class="returns-inline">
 4602            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 4603        </span>
 4604    
 4605
 4606    
 4607
 4608    
 4609
 4610    
 4611
 4612    
 4613
 4614    
 4615
 4616    
 4617
 4618    <div class="meta">
 4619        
 4620            
 4621                <p>Inherited from
 4622                <a href="../classes/Container.html#method_addChildAt">Container</a>:
 4623            
 4624        
 4625        
 4626        <a href="../files/easeljs_display_Container.js.html#l204"><code>addChildAt:204</code></a>
 4627        
 4628        </p>
 4629
 4630
 4631        
 4632
 4633        
 4634    </div>
 4635
 4636    <div class="description">
 4637        <p>Adds a child to the display list at the specified index, bumping children at equal or greater indexes up one, and
 4638setting its parent to this Container.</p>
 4639<h4>Example</h4>
 4640
 4641<pre class="code prettyprint"><code> addChildAt(child1, index);</code></pre>
 4642<p>You can also add multiple children, such as:</p>
 4643<pre class="code prettyprint"><code> addChildAt(child1, child2, ..., index);</code></pre>
 4644<p>The index must be between 0 and numChildren. For example, to add myShape under otherShape in the display list,
 4645you could use:</p>
 4646<pre class="code prettyprint"><code> container.addChildAt(myShape, container.getChildIndex(otherShape));</code></pre>
 4647<p>This would also bump otherShape&#39;s index up by one. Fails silently if the index is out of range.</p>
 4648
 4649    </div>
 4650
 4651    
 4652        <div class="params">
 4653            <h4>Parameters:</h4>
 4654
 4655            <ul class="params-list">
 4656            
 4657                <li class="param">
 4658                    
 4659                        <code class="param-name">child</code>
 4660                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 4661                    
 4662
 4663                    
 4664
 4665                    <div class="param-description">
 4666                        <p>The display object to add.</p>
 4667
 4668                    </div>
 4669
 4670                    
 4671                </li>
 4672            
 4673                <li class="param">
 4674                    
 4675                        <code class="param-name">index</code>
 4676                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4677                    
 4678
 4679                    
 4680
 4681                    <div class="param-description">
 4682                        <p>The index to add the child at.</p>
 4683
 4684                    </div>
 4685
 4686                    
 4687                </li>
 4688            
 4689            </ul>
 4690        </div>
 4691    
 4692
 4693    
 4694        <div class="returns">
 4695            <h4>Returns:</h4>
 4696
 4697            <div class="returns-description">
 4698                
 4699                    
 4700                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 4701                    
 4702                    <p>Returns the last child that was added, or the last child if multiple children were added.</p>
 4703
 4704                
 4705            </div>
 4706        </div>
 4707    
 4708
 4709    
 4710</div>
 4711
 4712                
 4713                    <div id="method_addEventListener" class="method item inherited">
 4714    <h3 class="name"><code>addEventListener</code></h3>
 4715
 4716    
 4717        <div class="args">
 4718            <span class="paren">(</span><ul class="args-list inline commas">
 4719            
 4720                <li class="arg">
 4721                    
 4722                        <code>type</code>
 4723                    
 4724                </li>
 4725            
 4726                <li class="arg">
 4727                    
 4728                        <code>listener</code>
 4729                    
 4730                </li>
 4731            
 4732                <li class="arg">
 4733                    
 4734                        <code class="optional">[useCapture]</code>
 4735                    
 4736                </li>
 4737            
 4738            </ul><span class="paren">)</span>
 4739        </div>
 4740    
 4741
 4742    
 4743        <span class="returns-inline">
 4744            <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>
 4745        </span>
 4746    
 4747
 4748    
 4749
 4750    
 4751
 4752    
 4753
 4754    
 4755
 4756    
 4757
 4758    
 4759
 4760    <div class="meta">
 4761        
 4762            
 4763                <p>Inherited from
 4764                <a href="../classes/EventDispatcher.html#method_addEventListener">EventDispatcher</a>:
 4765            
 4766        
 4767        
 4768        <a href="../files/createjs_events_EventDispatcher.js.html#l140"><code>addEventListener:140</code></a>
 4769        
 4770        </p>
 4771
 4772
 4773        
 4774
 4775        
 4776    </div>
 4777
 4778    <div class="description">
 4779        <p><p>Adds the specified event listener. Note that adding multiple listeners to the same function will result in
 4780multiple callbacks getting fired.</p></p>
 4781<h4>Example</h4>
 4782
 4783<pre class="code prettyprint"><code> displayObject.addEventListener("click", handleClick);
 4784 function handleClick(event) {
 4785    // Click happened.
 4786 }</code></pre>
 4787
 4788    </div>
 4789
 4790    
 4791        <div class="params">
 4792            <h4>Parameters:</h4>
 4793
 4794            <ul class="params-list">
 4795            
 4796                <li class="param">
 4797                    
 4798                        <code class="param-name">type</code>
 4799                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 4800                    
 4801
 4802                    
 4803
 4804                    <div class="param-description">
 4805                        <p>The string type of the event.</p>
 4806
 4807                    </div>
 4808
 4809                    
 4810                </li>
 4811            
 4812                <li class="param">
 4813                    
 4814                        <code class="param-name">listener</code>
 4815                        <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>
 4816                    
 4817
 4818                    
 4819
 4820                    <div class="param-description">
 4821                        <p>An object with a handleEvent method, or a function that will be called when
 4822the event is dispatched.</p>
 4823
 4824                    </div>
 4825
 4826                    
 4827                </li>
 4828            
 4829                <li class="param">
 4830                    
 4831                        <code class="param-name optional">[useCapture]</code>
 4832                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 4833                        <span class="flag optional" title="This parameter is optional.">optional</span>
 4834                    
 4835
 4836                    
 4837
 4838                    <div class="param-description">
 4839                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
 4840
 4841                    </div>
 4842
 4843                    
 4844                </li>
 4845            
 4846            </ul>
 4847        </div>
 4848    
 4849
 4850    
 4851        <div class="returns">
 4852            <h4>Returns:</h4>
 4853
 4854            <div class="returns-description">
 4855                
 4856                    
 4857                        <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>:
 4858                    
 4859                    <p>Returns the listener for chaining or assignment.</p>
 4860
 4861                
 4862            </div>
 4863        </div>
 4864    
 4865
 4866    
 4867</div>
 4868
 4869                
 4870                    <div id="method_cache" class="method item inherited">
 4871    <h3 class="name"><code>cache</code></h3>
 4872
 4873    
 4874        <div class="args">
 4875            <span class="paren">(</span><ul class="args-list inline commas">
 4876            
 4877                <li class="arg">
 4878                    
 4879                        <code>x</code>
 4880                    
 4881                </li>
 4882            
 4883                <li class="arg">
 4884                    
 4885                        <code>y</code>
 4886                    
 4887                </li>
 4888            
 4889                <li class="arg">
 4890                    
 4891                        <code>width</code>
 4892                    
 4893                </li>
 4894            
 4895                <li class="arg">
 4896                    
 4897                        <code>height</code>
 4898                    
 4899                </li>
 4900            
 4901                <li class="arg">
 4902                    
 4903                        <code class="optional">[scale=1]</code>
 4904                    
 4905                </li>
 4906            
 4907                <li class="arg">
 4908                    
 4909                        <code class="optional">[options=undefined]</code>
 4910                    
 4911                </li>
 4912            
 4913            </ul><span class="paren">)</span>
 4914        </div>
 4915    
 4916
 4917    
 4918
 4919    
 4920
 4921    
 4922
 4923    
 4924
 4925    
 4926
 4927    
 4928
 4929    
 4930
 4931    <div class="meta">
 4932        
 4933            
 4934                <p>Inherited from
 4935                <a href="../classes/DisplayObject.html#method_cache">DisplayObject</a>:
 4936            
 4937        
 4938        
 4939        <a href="../files/easeljs_display_DisplayObject.js.html#l792"><code>cache:792</code></a>
 4940        
 4941        </p>
 4942
 4943
 4944        
 4945
 4946        
 4947    </div>
 4948
 4949    <div class="description">
 4950        <p>Draws the display object into a new element, which is then used for subsequent draws. Intended for complex content
 4951that does not change frequently (ex. a Container with many children that do not move, or a complex vector Shape),
 4952this can provide for much faster rendering because the content does not need to be re-rendered each tick. The
 4953cached display object can be moved, rotated, faded, etc freely, however if its content changes, you must manually
 4954update the cache by calling <code>updateCache()</code> again. You must specify the cached area via the x, y, w,
 4955and h parameters. This defines the rectangle that will be rendered and cached using this display object&#39;s coordinates.</p>
 4956<p><h4>Example</h4>
 4957For example if you defined a Shape that drew a circle at 0, 0 with a radius of 25:</p>
 4958<pre class="code prettyprint"><code> var shape = new createjs.Shape();
 4959 shape.graphics.beginFill("#ff0000").drawCircle(0, 0, 25);
 4960 shape.cache(-25, -25, 50, 50);</code></pre>
 4961<p>Note that filters need to be defined <em>before</em> the cache is applied or you will have to call updateCache after
 4962application. Check out the <a href="../classes/Filter.html" class="crosslink">Filter</a> class for more information. Some filters
 4963(ex. BlurFilter) may not work as expected in conjunction with the scale param.</p>
 4964<p>Usually, the resulting cacheCanvas will have the dimensions width <em> scale, height </em> scale, however some filters (ex. BlurFilter)
 4965will add padding to the canvas dimensions.</p>
 4966<p>In previous versions caching was handled on DisplayObject but has since been moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>.
 4967This allows for easier interaction and alternate cache methods like WebGL with <a href="../classes/StageGL.html" class="crosslink">StageGL</a>.
 4968For more information on the options object, see the BitmapCache BitmapCache/define.</p>
 4969
 4970    </div>
 4971
 4972    
 4973        <div class="params">
 4974            <h4>Parameters:</h4>
 4975
 4976            <ul class="params-list">
 4977            
 4978                <li class="param">
 4979                    
 4980                        <code class="param-name">x</code>
 4981                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4982                    
 4983
 4984                    
 4985
 4986                    <div class="param-description">
 4987                        <p>The x coordinate origin for the cache region.</p>
 4988
 4989                    </div>
 4990
 4991                    
 4992                </li>
 4993            
 4994                <li class="param">
 4995                    
 4996                        <code class="param-name">y</code>
 4997                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4998                    
 4999
 5000                    
 5001
 5002                    <div class="param-description">
 5003                        <p>The y coordinate origin for the cache region.</p>
 5004
 5005                    </div>
 5006
 5007                    
 5008                </li>
 5009            
 5010                <li class="param">
 5011                    
 5012                        <code class="param-name">width</code>
 5013                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5014                    
 5015
 5016                    
 5017
 5018                    <div class="param-description">
 5019                        <p>The width of the cache region.</p>
 5020
 5021                    </div>
 5022
 5023                    
 5024                </li>
 5025            
 5026                <li class="param">
 5027                    
 5028                        <code class="param-name">height</code>
 5029                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5030                    
 5031
 5032                    
 5033
 5034                    <div class="param-description">
 5035                        <p>The height of the cache region.</p>
 5036
 5037                    </div>
 5038
 5039                    
 5040                </li>
 5041            
 5042                <li class="param">
 5043                    
 5044                        <code class="param-name optional">[scale=1]</code>
 5045                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5046                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5047                    
 5048
 5049                    
 5050
 5051                    <div class="param-description">
 5052                        <p>The scale at which the cache will be created. For example, if you cache a vector shape using
 5053    myShape.cache(0,0,100,100,2) then the resulting cacheCanvas will be 200x200 px. This lets you scale and rotate
 5054    cached elements with greater fidelity. Default is 1.</p>
 5055
 5056                    </div>
 5057
 5058                    
 5059                </li>
 5060            
 5061                <li class="param">
 5062                    
 5063                        <code class="param-name optional">[options=undefined]</code>
 5064                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 5065                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5066                    
 5067
 5068                    
 5069
 5070                    <div class="param-description">
 5071                        <p>Specify additional parameters for the cache logic</p>
 5072
 5073                    </div>
 5074
 5075                    
 5076                </li>
 5077            
 5078            </ul>
 5079        </div>
 5080    
 5081
 5082    
 5083
 5084    
 5085</div>
 5086
 5087                
 5088                    <div id="method_clear" class="method item">
 5089    <h3 class="name"><code>clear</code></h3>
 5090
 5091    
 5092        <span class="paren">()</span>
 5093    
 5094
 5095    
 5096
 5097    
 5098
 5099    
 5100
 5101    
 5102
 5103    
 5104
 5105    
 5106
 5107    
 5108
 5109    <div class="meta">
 5110        
 5111            
 5112                
 5113                <p>
 5114                
 5115                Defined in
 5116                
 5117            
 5118        
 5119        
 5120        <a href="../files/easeljs_display_Stage.js.html#l438"><code>clear:438</code></a>
 5121        
 5122        </p>
 5123
 5124
 5125        
 5126
 5127        
 5128    </div>
 5129
 5130    <div class="description">
 5131        <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>
 5132
 5133    </div>
 5134
 5135    
 5136
 5137    
 5138
 5139    
 5140</div>
 5141
 5142                
 5143                    <div id="method_clone" class="method item">
 5144    <h3 class="name"><code>clone</code></h3>
 5145
 5146    
 5147        <span class="paren">()</span>
 5148    
 5149
 5150    
 5151
 5152    
 5153
 5154    
 5155
 5156    
 5157
 5158    
 5159
 5160    
 5161
 5162    
 5163
 5164    <div class="meta">
 5165        
 5166            <p>Inherited from
 5167            <a href="../classes/DisplayObject.html#method_clone">
 5168                DisplayObject
 5169            </a>
 5170            
 5171            but overwritten in
 5172            
 5173        
 5174        
 5175        <a href="../files/easeljs_display_Stage.js.html#l552"><code>clone:552</code></a>
 5176        
 5177        </p>
 5178
 5179
 5180        
 5181
 5182        
 5183    </div>
 5184
 5185    <div class="description">
 5186        <p>Stage instances cannot be cloned.</p>
 5187
 5188    </div>
 5189
 5190    
 5191
 5192    
 5193
 5194    
 5195</div>
 5196
 5197                
 5198                    <div id="method_cloneChildren" class="method item protected inherited">
 5199    <h3 class="name"><code>cloneChildren</code></h3>
 5200
 5201    
 5202        <div class="args">
 5203            <span class="paren">(</span><ul class="args-list inline commas">
 5204            
 5205                <li class="arg">
 5206                    
 5207                        <code>o</code>
 5208                    
 5209                </li>
 5210            
 5211            </ul><span class="paren">)</span>
 5212        </div>
 5213    
 5214
 5215    
 5216
 5217    
 5218
 5219    
 5220        <span class="flag protected">protected</span>
 5221    
 5222
 5223    
 5224
 5225    
 5226
 5227    
 5228
 5229    
 5230
 5231    <div class="meta">
 5232        
 5233            
 5234                <p>Inherited from
 5235                <a href="../classes/Container.html#method_cloneChildren">Container</a>:
 5236            
 5237        
 5238        
 5239        <a href="../files/easeljs_display_Container.js.html#l562"><code>cloneChildren:562</code></a>
 5240        
 5241        </p>
 5242
 5243
 5244        
 5245
 5246        
 5247    </div>
 5248
 5249    <div class="description">
 5250        <p>Recursively clones all children of this container, and adds them to the target container.</p>
 5251
 5252    </div>
 5253
 5254    
 5255        <div class="params">
 5256            <h4>Parameters:</h4>
 5257
 5258            <ul class="params-list">
 5259            
 5260                <li class="param">
 5261                    
 5262                        <code class="param-name">o</code>
 5263                        <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
 5264                    
 5265
 5266                    
 5267
 5268                    <div class="param-description">
 5269                        <p>The target container.</p>
 5270
 5271                    </div>
 5272
 5273                    
 5274                </li>
 5275            
 5276            </ul>
 5277        </div>
 5278    
 5279
 5280    
 5281
 5282    
 5283</div>
 5284
 5285                
 5286                    <div id="method_contains" class="method item inherited">
 5287    <h3 class="name"><code>contains</code></h3>
 5288
 5289    
 5290        <div class="args">
 5291            <span class="paren">(</span><ul class="args-list inline commas">
 5292            
 5293                <li class="arg">
 5294                    
 5295                        <code>child</code>
 5296                    
 5297                </li>
 5298            
 5299            </ul><span class="paren">)</span>
 5300        </div>
 5301    
 5302
 5303    
 5304        <span class="returns-inline">
 5305            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5306        </span>
 5307    
 5308
 5309    
 5310
 5311    
 5312
 5313    
 5314
 5315    
 5316
 5317    
 5318
 5319    
 5320
 5321    <div class="meta">
 5322        
 5323            
 5324                <p>Inherited from
 5325                <a href="../classes/Container.html#method_contains">Container</a>:
 5326            
 5327        
 5328        
 5329        <a href="../files/easeljs_display_Container.js.html#l430"><code>contains:430</code></a>
 5330        
 5331        </p>
 5332
 5333
 5334        
 5335
 5336        
 5337    </div>
 5338
 5339    <div class="description">
 5340        <p>Returns true if the specified display object either is this container or is a descendent (child, grandchild, etc)
 5341of this container.</p>
 5342
 5343    </div>
 5344
 5345    
 5346        <div class="params">
 5347            <h4>Parameters:</h4>
 5348
 5349            <ul class="params-list">
 5350            
 5351                <li class="param">
 5352                    
 5353                        <code class="param-name">child</code>
 5354                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 5355                    
 5356
 5357                    
 5358
 5359                    <div class="param-description">
 5360                        <p>The DisplayObject to be checked.</p>
 5361
 5362                    </div>
 5363
 5364                    
 5365                </li>
 5366            
 5367            </ul>
 5368        </div>
 5369    
 5370
 5371    
 5372        <div class="returns">
 5373            <h4>Returns:</h4>
 5374
 5375            <div class="returns-description">
 5376                
 5377                    
 5378                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 5379                    
 5380                    <p>true if the specified display object either is this container or is a descendent.</p>
 5381
 5382                
 5383            </div>
 5384        </div>
 5385    
 5386
 5387    
 5388</div>
 5389
 5390                
 5391                    <div id="method_dispatchEvent" class="method item inherited">
 5392    <h3 class="name"><code>dispatchEvent</code></h3>
 5393
 5394    
 5395        <div class="args">
 5396            <span class="paren">(</span><ul class="args-list inline commas">
 5397            
 5398                <li class="arg">
 5399                    
 5400                        <code>eventObj</code>
 5401                    
 5402                </li>
 5403            
 5404                <li class="arg">
 5405                    
 5406                        <code class="optional">[bubbles]</code>
 5407                    
 5408                </li>
 5409            
 5410                <li class="arg">
 5411                    
 5412                        <code class="optional">[cancelable]</code>
 5413                    
 5414                </li>
 5415            
 5416            </ul><span class="paren">)</span>
 5417        </div>
 5418    
 5419
 5420    
 5421        <span class="returns-inline">
 5422            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5423        </span>
 5424    
 5425
 5426    
 5427
 5428    
 5429
 5430    
 5431
 5432    
 5433
 5434    
 5435
 5436    
 5437
 5438    <div class="meta">
 5439        
 5440            
 5441                <p>Inherited from
 5442                <a href="../classes/EventDispatcher.html#method_dispatchEvent">EventDispatcher</a>:
 5443            
 5444        
 5445        
 5446        <a href="../files/createjs_events_EventDispatcher.js.html#l285"><code>dispatchEvent:285</code></a>
 5447        
 5448        </p>
 5449
 5450
 5451        
 5452
 5453        
 5454    </div>
 5455
 5456    <div class="description">
 5457        <p><p>Dispatches the specified event to all listeners.</p></p>
 5458<h4>Example</h4>
 5459
 5460<pre class="code prettyprint"><code> // Use a string event
 5461 this.dispatchEvent("complete");
 5462
 5463 // Use an Event instance
 5464 var event = new createjs.Event("progress");
 5465 this.dispatchEvent(event);</code></pre>
 5466
 5467    </div>
 5468
 5469    
 5470        <div class="params">
 5471            <h4>Parameters:</h4>
 5472
 5473            <ul class="params-list">
 5474            
 5475                <li class="param">
 5476                    
 5477                        <code class="param-name">eventObj</code>
 5478                        <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>
 5479                    
 5480
 5481                    
 5482
 5483                    <div class="param-description">
 5484                        <p>An object with a "type" property, or a string type.
 5485While a generic object will work, it is recommended to use a CreateJS Event instance. If a string is used,
 5486dispatchEvent will construct an Event instance if necessary with the specified type. This latter approach can
 5487be used to avoid event object instantiation for non-bubbling events that may not have any listeners.</p>
 5488
 5489                    </div>
 5490
 5491                    
 5492                </li>
 5493            
 5494                <li class="param">
 5495                    
 5496                        <code class="param-name optional">[bubbles]</code>
 5497                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5498                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5499                    
 5500
 5501                    
 5502
 5503                    <div class="param-description">
 5504                        <p>Specifies the <code>bubbles</code> value when a string was passed to eventObj.</p>
 5505
 5506                    </div>
 5507
 5508                    
 5509                </li>
 5510            
 5511                <li class="param">
 5512                    
 5513                        <code class="param-name optional">[cancelable]</code>
 5514                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5515                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5516                    
 5517
 5518                    
 5519
 5520                    <div class="param-description">
 5521                        <p>Specifies the <code>cancelable</code> value when a string was passed to eventObj.</p>
 5522
 5523                    </div>
 5524
 5525                    
 5526                </li>
 5527            
 5528            </ul>
 5529        </div>
 5530    
 5531
 5532    
 5533        <div class="returns">
 5534            <h4>Returns:</h4>
 5535
 5536            <div class="returns-description">
 5537                
 5538                    
 5539                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 5540                    
 5541                    <p>Returns false if <code>preventDefault()</code> was called on a cancelable event, true otherwise.</p>
 5542
 5543                
 5544            </div>
 5545        </div>
 5546    
 5547
 5548    
 5549</div>
 5550
 5551                
 5552                    <div id="method_draw" class="method item inherited">
 5553    <h3 class="name"><code>draw</code></h3>
 5554
 5555    
 5556        <div class="args">
 5557            <span class="paren">(</span><ul class="args-list inline commas">
 5558            
 5559                <li class="arg">
 5560                    
 5561                        <code>ctx</code>
 5562                    
 5563                </li>
 5564            
 5565                <li class="arg">
 5566                    
 5567                        <code class="optional">[ignoreCache=false]</code>
 5568                    
 5569                </li>
 5570            
 5571            </ul><span class="paren">)</span>
 5572        </div>
 5573    
 5574
 5575    
 5576
 5577    
 5578
 5579    
 5580
 5581    
 5582
 5583    
 5584
 5585    
 5586
 5587    
 5588
 5589    <div class="meta">
 5590        
 5591            <p>Inherited from
 5592            <a href="../classes/DisplayObject.html#method_draw">
 5593                DisplayObject
 5594            </a>
 5595            
 5596            but overwritten in
 5597            
 5598        
 5599        
 5600        <a href="../files/easeljs_display_Container.js.html#l144"><code>draw:144</code></a>
 5601        
 5602        </p>
 5603
 5604
 5605        
 5606
 5607        
 5608    </div>
 5609
 5610    <div class="description">
 5611        <p>Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform.
 5612Returns true if the draw was handled (useful for overriding functionality).</p>
 5613<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
 5614
 5615    </div>
 5616
 5617    
 5618        <div class="params">
 5619            <h4>Parameters:</h4>
 5620
 5621            <ul class="params-list">
 5622            
 5623                <li class="param">
 5624                    
 5625                        <code class="param-name">ctx</code>
 5626                        <span class="type">CanvasRenderingContext2D</span>
 5627                    
 5628
 5629                    
 5630
 5631                    <div class="param-description">
 5632                        <p>The canvas 2D context object to draw into.</p>
 5633
 5634                    </div>
 5635
 5636                    
 5637                </li>
 5638            
 5639                <li class="param">
 5640                    
 5641                        <code class="param-name optional">[ignoreCache=false]</code>
 5642                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5643                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5644                    
 5645
 5646                    
 5647
 5648                    <div class="param-description">
 5649                        <p>Indicates whether the draw operation should ignore any current cache.
 5650For example, used for drawing the cache (to prevent it from simply drawing an existing cache back
 5651into itself).</p>
 5652
 5653                    </div>
 5654
 5655                    
 5656                </li>
 5657            
 5658            </ul>
 5659        </div>
 5660    
 5661
 5662    
 5663
 5664    
 5665</div>
 5666
 5667                
 5668                    <div id="method_enableDOMEvents" class="method item">
 5669    <h3 class="name"><code>enableDOMEvents</code></h3>
 5670
 5671    
 5672        <div class="args">
 5673            <span class="paren">(</span><ul class="args-list inline commas">
 5674            
 5675                <li class="arg">
 5676                    
 5677                        <code class="optional">[enable=true]</code>
 5678                    
 5679                </li>
 5680            
 5681            </ul><span class="paren">)</span>
 5682        </div>
 5683    
 5684
 5685    
 5686
 5687    
 5688
 5689    
 5690
 5691    
 5692
 5693    
 5694
 5695    
 5696
 5697    
 5698
 5699    <div class="meta">
 5700        
 5701            
 5702                
 5703                <p>
 5704                
 5705                Defined in
 5706                
 5707            
 5708        
 5709        
 5710        <a href="../files/easeljs_display_Stage.js.html#l512"><code>enableDOMEvents:512</code></a>
 5711        
 5712        </p>
 5713
 5714
 5715        
 5716
 5717        
 5718    </div>
 5719
 5720    <div class="description">
 5721        <p>Enables or disables the event listeners that stage adds to DOM elements (window, document and canvas). It is good
 5722practice to disable events when disposing of a Stage instance, otherwise the stage will continue to receive
 5723events from the page.</p>
 5724<p>When changing the canvas property you must disable the events on the old canvas, and enable events on the
 5725new canvas or mouse events will not work as expected. For example:</p>
 5726<pre class="code prettyprint"><code> myStage.enableDOMEvents(false);
 5727 myStage.canvas = anotherCanvas;
 5728 myStage.enableDOMEvents(true);</code></pre>
 5729
 5730    </div>
 5731
 5732    
 5733        <div class="params">
 5734            <h4>Parameters:</h4>
 5735
 5736            <ul class="params-list">
 5737            
 5738                <li class="param">
 5739                    
 5740                        <code class="param-name optional">[enable=true]</code>
 5741                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5742                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5743                    
 5744
 5745                    
 5746
 5747                    <div class="param-description">
 5748                        <p>Indicates whether to enable or disable the events. Default is true.</p>
 5749
 5750                    </div>
 5751
 5752                    
 5753                </li>
 5754            
 5755            </ul>
 5756        </div>
 5757    
 5758
 5759    
 5760
 5761    
 5762</div>
 5763
 5764                
 5765                    <div id="method_enableMouseOver" class="method item">
 5766    <h3 class="name"><code>enableMouseOver</code></h3>
 5767
 5768    
 5769        <div class="args">
 5770            <span class="paren">(</span><ul class="args-list inline commas">
 5771            
 5772                <li class="arg">
 5773                    
 5774                        <code class="optional">[frequency=20]</code>
 5775                    
 5776                </li>
 5777            
 5778            </ul><span class="paren">)</span>
 5779        </div>
 5780    
 5781
 5782    
 5783
 5784    
 5785
 5786    
 5787
 5788    
 5789
 5790    
 5791
 5792    
 5793
 5794    
 5795
 5796    <div class="meta">
 5797        
 5798            
 5799                
 5800                <p>
 5801                
 5802                Defined in
 5803                
 5804            
 5805        
 5806        
 5807        <a href="../files/easeljs_display_Stage.js.html#l481"><code>enableMouseOver:481</code></a>
 5808        
 5809        </p>
 5810
 5811
 5812        
 5813
 5814        
 5815    </div>
 5816
 5817    <div class="description">
 5818        <p>Enables or disables (by passing a frequency of 0) mouse over (<a href="../classes/DisplayObject.html#event_mouseover" class="crosslink">mouseover</a>
 5819and <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>
 5820and <a href="../classes/DisplayObject.html#event_rollout" class="crosslink">rollout</a>) for this stage&#39;s display list. These events can
 5821be expensive to generate, so they are disabled by default. The frequency of the events can be controlled
 5822independently of mouse move events via the optional <code>frequency</code> parameter.</p>
 5823<h4>Example</h4>
 5824
 5825<pre class="code prettyprint"><code> var stage = new createjs.Stage("canvasId");
 5826 stage.enableMouseOver(10); // 10 updates per second</code></pre>
 5827
 5828    </div>
 5829
 5830    
 5831        <div class="params">
 5832            <h4>Parameters:</h4>
 5833
 5834            <ul class="params-list">
 5835            
 5836                <li class="param">
 5837                    
 5838                        <code class="param-name optional">[frequency=20]</code>
 5839                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5840                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5841                    
 5842
 5843                    
 5844
 5845                    <div class="param-description">
 5846                        <p>Optional param specifying the maximum number of times per second to broadcast
 5847mouse over/out events. Set to 0 to disable mouse over events completely. Maximum is 50. A lower frequency is less
 5848responsive, but uses less CPU.</p>
 5849
 5850                    </div>
 5851
 5852                    
 5853                </li>
 5854            
 5855            </ul>
 5856        </div>
 5857    
 5858
 5859    
 5860
 5861    
 5862</div>
 5863
 5864                
 5865                    <div id="method_getBounds" class="method item inherited">
 5866    <h3 class="name"><code>getBounds</code></h3>
 5867
 5868    
 5869        <span class="paren">()</span>
 5870    
 5871
 5872    
 5873        <span class="returns-inline">
 5874            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 5875        </span>
 5876    
 5877
 5878    
 5879
 5880    
 5881
 5882    
 5883
 5884    
 5885
 5886    
 5887
 5888    
 5889
 5890    <div class="meta">
 5891        
 5892            
 5893                <p>Inherited from
 5894                <a href="../classes/DisplayObject.html#method_getBounds">DisplayObject</a>:
 5895            
 5896        
 5897        
 5898        <a href="../files/easeljs_display_DisplayObject.js.html#l1089"><code>getBounds:1089</code></a>
 5899        
 5900        </p>
 5901
 5902
 5903        
 5904
 5905        
 5906    </div>
 5907
 5908    <div class="description">
 5909        <p><p>Returns a rectangle representing this object&#39;s bounds in its local coordinate system (ie. with no transformation).
 5910Objects that have been cached will return the bounds of the cache.</p></p>
 5911<p><p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use 
 5912<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
 5913bounds.</p></p>
 5914<table>
 5915    <tr><td><b>All</b></td><td>
 5916        All display objects support setting bounds manually using setBounds(). Likewise, display objects that
 5917        have been cached using cache() will return the bounds of their cache. Manual and cache bounds will override
 5918        the automatic calculations listed below.
 5919    </td></tr>
 5920    <tr><td><b>Bitmap</b></td><td>
 5921        Returns the width and height of the sourceRect (if specified) or image, extending from (x=0,y=0).
 5922    </td></tr>
 5923    <tr><td><b>Sprite</b></td><td>
 5924        Returns the bounds of the current frame. May have non-zero x/y if a frame registration point was specified
 5925        in the spritesheet data. See also <a href="../classes/SpriteSheet.html#method_getFrameBounds" class="crosslink">getFrameBounds</a>
 5926    </td></tr>
 5927    <tr><td><b>Container</b></td><td>
 5928        Returns the aggregate (combined) bounds of all children that return a non-null value from getBounds().
 5929    </td></tr>
 5930    <tr><td><b>Shape</b></td><td>
 5931        Does not currently support automatic bounds calculations. Use setBounds() to manually define bounds.
 5932    </td></tr>
 5933    <tr><td><b>Text</b></td><td>
 5934        Returns approximate bounds. Horizontal values (x/width) are quite accurate, but vertical values (y/height) are
 5935        not, especially when using textBaseline values other than "top".
 5936    </td></tr>
 5937    <tr><td><b>BitmapText</b></td><td>
 5938        Returns approximate bounds. Values will be more accurate if spritesheet frame registration points are close
 5939        to (x=0,y=0).
 5940    </td></tr>
 5941</table>
 5942
 5943<p><p>Bounds can be expensive to calculate for some objects (ex. text, or containers with many children), and
 5944are recalculated each time you call getBounds(). You can prevent recalculation on static objects by setting the
 5945bounds explicitly:</p></p>
 5946<pre class="code prettyprint"><code>var bounds = obj.getBounds();
 5947obj.setBounds(bounds.x, bounds.y, bounds.width, bounds.height);
 5948// getBounds will now use the set values, instead of recalculating</code></pre>
 5949<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
 5950values if you need to retain it.</p>
 5951<pre class="code prettyprint"><code>var myBounds = obj.getBounds().clone();
 5952// OR:
 5953myRect.copy(obj.getBounds());</code></pre>
 5954
 5955    </div>
 5956
 5957    
 5958
 5959    
 5960        <div class="returns">
 5961            <h4>Returns:</h4>
 5962
 5963            <div class="returns-description">
 5964                
 5965                    
 5966                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 5967                    
 5968                    <p>A Rectangle instance representing the bounds, or null if bounds are not available for this
 5969object.</p>
 5970
 5971                
 5972            </div>
 5973        </div>
 5974    
 5975
 5976    
 5977</div>
 5978
 5979                
 5980                    <div id="method_getCacheDataURL" class="method item inherited">
 5981    <h3 class="name"><code>getCacheDataURL</code></h3>
 5982
 5983    
 5984        <span class="paren">()</span>
 5985    
 5986
 5987    
 5988        <span class="returns-inline">
 5989            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 5990        </span>
 5991    
 5992
 5993    
 5994
 5995    
 5996
 5997    
 5998
 5999    
 6000
 6001    
 6002
 6003    
 6004
 6005    <div class="meta">
 6006        
 6007            
 6008                <p>Inherited from
 6009                <a href="../classes/DisplayObject.html#method_getCacheDataURL">DisplayObject</a>:
 6010            
 6011        
 6012        
 6013        <a href="../files/easeljs_display_DisplayObject.js.html#l875"><code>getCacheDataURL:875</code></a>
 6014        
 6015        </p>
 6016
 6017
 6018        
 6019
 6020        
 6021    </div>
 6022
 6023    <div class="description">
 6024        <p>Returns a data URL for the cache, or null if this display object is not cached.
 6025Only generated if the cache has changed, otherwise returns last result.</p>
 6026
 6027    </div>
 6028
 6029    
 6030
 6031    
 6032        <div class="returns">
 6033            <h4>Returns:</h4>
 6034
 6035            <div class="returns-description">
 6036                
 6037                    
 6038                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
 6039                    
 6040                    <p>The image data url for the cache.</p>
 6041
 6042                
 6043            </div>
 6044        </div>
 6045    
 6046
 6047    
 6048</div>
 6049
 6050                
 6051                    <div id="method_getChildAt" class="method item inherited">
 6052    <h3 class="name"><code>getChildAt</code></h3>
 6053
 6054    
 6055        <div class="args">
 6056            <span class="paren">(</span><ul class="args-list inline commas">
 6057            
 6058                <li class="arg">
 6059                    
 6060                        <code>index</code>
 6061                    
 6062                </li>
 6063            
 6064            </ul><span class="paren">)</span>
 6065        </div>
 6066    
 6067
 6068    
 6069        <span class="returns-inline">
 6070            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 6071        </span>
 6072    
 6073
 6074    
 6075
 6076    
 6077
 6078    
 6079
 6080    
 6081
 6082    
 6083
 6084    
 6085
 6086    <div class="meta">
 6087        
 6088            
 6089                <p>Inherited from
 6090                <a href="../classes/Container.html#method_getChildAt">Container</a>:
 6091            
 6092        
 6093        
 6094        <a href="../files/easeljs_display_Container.js.html#l314"><code>getChildAt:314</code></a>
 6095        
 6096        </p>
 6097
 6098
 6099        
 6100
 6101        
 6102    </div>
 6103
 6104    <div class="description">
 6105        <p><p>Returns the child at the specified index.</p></p>
 6106<h4>Example</h4>
 6107
 6108<pre class="code prettyprint"><code> container.getChildAt(2);</code></pre>
 6109
 6110    </div>
 6111
 6112    
 6113        <div class="params">
 6114            <h4>Parameters:</h4>
 6115
 6116            <ul class="params-list">
 6117            
 6118                <li class="param">
 6119                    
 6120                        <code class="param-name">index</code>
 6121                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6122                    
 6123
 6124                    
 6125
 6126                    <div class="param-description">
 6127                        <p>The index of the child to return.</p>
 6128
 6129                    </div>
 6130
 6131                    
 6132                </li>
 6133            
 6134            </ul>
 6135        </div>
 6136    
 6137
 6138    
 6139        <div class="returns">
 6140            <h4>Returns:</h4>
 6141
 6142            <div class="returns-description">
 6143                
 6144                    
 6145                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 6146                    
 6147                    <p>The child at the specified index. Returns null if there is no child at the index.</p>
 6148
 6149                
 6150            </div>
 6151        </div>
 6152    
 6153
 6154    
 6155</div>
 6156
 6157                
 6158                    <div id="method_getChildByName" class="method item inherited">
 6159    <h3 class="name"><code>getChildByName</code></h3>
 6160
 6161    
 6162        <div class="args">
 6163            <span class="paren">(</span><ul class="args-list inline commas">
 6164            
 6165                <li class="arg">
 6166                    
 6167                        <code>name</code>
 6168                    
 6169                </li>
 6170            
 6171            </ul><span class="paren">)</span>
 6172        </div>
 6173    
 6174
 6175    
 6176        <span class="returns-inline">
 6177            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 6178        </span>
 6179    
 6180
 6181    
 6182
 6183    
 6184
 6185    
 6186
 6187    
 6188
 6189    
 6190
 6191    
 6192
 6193    <div class="meta">
 6194        
 6195            
 6196                <p>Inherited from
 6197                <a href="../classes/Container.html#method_getChildByName">Container</a>:
 6198            
 6199        
 6200        
 6201        <a href="../files/easeljs_display_Container.js.html#l329"><code>getChildByName:329</code></a>
 6202        
 6203        </p>
 6204
 6205
 6206        
 6207
 6208        
 6209    </div>
 6210
 6211    <div class="description">
 6212        <p>Returns the child with the specified name.</p>
 6213
 6214    </div>
 6215
 6216    
 6217        <div class="params">
 6218            <h4>Parameters:</h4>
 6219
 6220            <ul class="params-list">
 6221            
 6222                <li class="param">
 6223                    
 6224                        <code class="param-name">name</code>
 6225                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 6226                    
 6227
 6228                    
 6229
 6230                    <div class="param-description">
 6231                        <p>The name of the child to return.</p>
 6232
 6233                    </div>
 6234
 6235                    
 6236                </li>
 6237            
 6238            </ul>
 6239        </div>
 6240    
 6241
 6242    
 6243        <div class="returns">
 6244            <h4>Returns:</h4>
 6245
 6246            <div class="returns-description">
 6247                
 6248                    
 6249                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 6250                    
 6251                    <p>The child with the specified name.</p>
 6252
 6253                
 6254            </div>
 6255        </div>
 6256    
 6257
 6258    
 6259</div>
 6260
 6261                
 6262                    <div id="method_getChildIndex" class="method item inherited">
 6263    <h3 class="name"><code>getChildIndex</code></h3>
 6264
 6265    
 6266        <div class="args">
 6267            <span class="paren">(</span><ul class="args-list inline commas">
 6268            
 6269                <li class="arg">
 6270                    
 6271                        <code>child</code>
 6272                    
 6273                </li>
 6274            
 6275            </ul><span class="paren">)</span>
 6276        </div>
 6277    
 6278
 6279    
 6280        <span class="returns-inline">
 6281            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6282        </span>
 6283    
 6284
 6285    
 6286
 6287    
 6288
 6289    
 6290
 6291    
 6292
 6293    
 6294
 6295    
 6296
 6297    <div class="meta">
 6298        
 6299            
 6300                <p>Inherited from
 6301                <a href="../classes/Container.html#method_getChildIndex">Container</a>:
 6302            
 6303        
 6304        
 6305        <a href="../files/easeljs_display_Container.js.html#l363"><code>getChildIndex:363</code></a>
 6306        
 6307        </p>
 6308
 6309
 6310        
 6311
 6312        
 6313    </div>
 6314
 6315    <div class="description">
 6316        <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>
 6317<h4>Example</h4>
 6318
 6319<pre class="code prettyprint"><code> var index = container.getChildIndex(child);</code></pre>
 6320
 6321    </div>
 6322
 6323    
 6324        <div class="params">
 6325            <h4>Parameters:</h4>
 6326
 6327            <ul class="params-list">
 6328            
 6329                <li class="param">
 6330                    
 6331                        <code class="param-name">child</code>
 6332                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 6333                    
 6334
 6335                    
 6336
 6337                    <div class="param-description">
 6338                        <p>The child to return the index of.</p>
 6339
 6340                    </div>
 6341
 6342                    
 6343                </li>
 6344            
 6345            </ul>
 6346        </div>
 6347    
 6348
 6349    
 6350        <div class="returns">
 6351            <h4>Returns:</h4>
 6352
 6353            <div class="returns-description">
 6354                
 6355                    
 6356                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
 6357                    
 6358                    <p>The index of the specified child. -1 if the child is not found.</p>
 6359
 6360                
 6361            </div>
 6362        </div>
 6363    
 6364
 6365    
 6366</div>
 6367
 6368                
 6369                    <div id="method_getConcatenatedDisplayProps" class="method item inherited">
 6370    <h3 class="name"><code>getConcatenatedDisplayProps</code></h3>
 6371
 6372    
 6373        <div class="args">
 6374            <span class="paren">(</span><ul class="args-list inline commas">
 6375            
 6376                <li class="arg">
 6377                    
 6378                        <code class="optional">[props]</code>
 6379                    
 6380                </li>
 6381            
 6382            </ul><span class="paren">)</span>
 6383        </div>
 6384    
 6385
 6386    
 6387        <span class="returns-inline">
 6388            <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 6389        </span>
 6390    
 6391
 6392    
 6393
 6394    
 6395
 6396    
 6397
 6398    
 6399
 6400    
 6401
 6402    
 6403
 6404    <div class="meta">
 6405        
 6406            
 6407                <p>Inherited from
 6408                <a href="../classes/DisplayObject.html#method_getConcatenatedDisplayProps">DisplayObject</a>:
 6409            
 6410        
 6411        
 6412        <a href="../files/easeljs_display_DisplayObject.js.html#l1021"><code>getConcatenatedDisplayProps:1021</code></a>
 6413        
 6414        </p>
 6415
 6416
 6417        
 6418
 6419        
 6420    </div>
 6421
 6422    <div class="description">
 6423        <p>Generates a DisplayProps object representing the combined display properties of the  object and all of its
 6424parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>).</p>
 6425
 6426    </div>
 6427
 6428    
 6429        <div class="params">
 6430            <h4>Parameters:</h4>
 6431
 6432            <ul class="params-list">
 6433            
 6434                <li class="param">
 6435                    
 6436                        <code class="param-name optional">[props]</code>
 6437                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 6438                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6439                    
 6440
 6441                    
 6442
 6443                    <div class="param-description">
 6444                        <p>A <a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a> object to populate with the calculated values.
 6445If null, a new DisplayProps object is returned.</p>
 6446
 6447                    </div>
 6448
 6449                    
 6450                </li>
 6451            
 6452            </ul>
 6453        </div>
 6454    
 6455
 6456    
 6457        <div class="returns">
 6458            <h4>Returns:</h4>
 6459
 6460            <div class="returns-description">
 6461                
 6462                    
 6463                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
 6464                    
 6465                    <p>The combined display properties.</p>
 6466
 6467                
 6468            </div>
 6469        </div>
 6470    
 6471
 6472    
 6473</div>
 6474
 6475                
 6476                    <div id="method_getConcatenatedMatrix" class="method item inherited">
 6477    <h3 class="name"><code>getConcatenatedMatrix</code></h3>
 6478
 6479    
 6480        <div class="args">
 6481            <span class="paren">(</span><ul class="args-list inline commas">
 6482            
 6483                <li class="arg">
 6484                    
 6485                        <code class="optional">[matrix]</code>
 6486                    
 6487                </li>
 6488            
 6489            </ul><span class="paren">)</span>
 6490        </div>
 6491    
 6492
 6493    
 6494        <span class="returns-inline">
 6495            <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 6496        </span>
 6497    
 6498
 6499    
 6500
 6501    
 6502
 6503    
 6504
 6505    
 6506
 6507    
 6508
 6509    
 6510
 6511    <div class="meta">
 6512        
 6513            
 6514                <p>Inherited from
 6515                <a href="../classes/DisplayObject.html#method_getConcatenatedMatrix">DisplayObject</a>:
 6516            
 6517        
 6518        
 6519        <a href="../files/easeljs_display_DisplayObject.js.html#l1003"><code>getConcatenatedMatrix:1003</code></a>
 6520        
 6521        </p>
 6522
 6523
 6524        
 6525
 6526        
 6527    </div>
 6528
 6529    <div class="description">
 6530        <p>Generates a Matrix2D object representing the combined transform of the display object and all of its
 6531parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>). This can
 6532be used to transform positions between coordinate spaces, such as with <a href="../classes/DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a>
 6533and <a href="../classes/DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>.</p>
 6534
 6535    </div>
 6536
 6537    
 6538        <div class="params">
 6539            <h4>Parameters:</h4>
 6540
 6541            <ul class="params-list">
 6542            
 6543                <li class="param">
 6544                    
 6545                        <code class="param-name optional">[matrix]</code>
 6546                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 6547                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6548                    
 6549
 6550                    
 6551
 6552                    <div class="param-description">
 6553                        <p>A <a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a> object to populate with the calculated values.
 6554If null, a new Matrix2D object is returned.</p>
 6555
 6556                    </div>
 6557
 6558                    
 6559                </li>
 6560            
 6561            </ul>
 6562        </div>
 6563    
 6564
 6565    
 6566        <div class="returns">
 6567            <h4>Returns:</h4>
 6568
 6569            <div class="returns-description">
 6570                
 6571                    
 6572                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
 6573                    
 6574                    <p>The combined matrix.</p>
 6575
 6576                
 6577            </div>
 6578        </div>
 6579    
 6580
 6581    
 6582</div>
 6583
 6584                
 6585                    <div id="method_getMatrix" class="method item inherited">
 6586    <h3 class="name"><code>getMatrix</code></h3>
 6587
 6588    
 6589        <div class="args">
 6590            <span class="paren">(</span><ul class="args-list inline commas">
 6591            
 6592                <li class="arg">
 6593                    
 6594                        <code>matrix</code>
 6595                    
 6596                </li>
 6597            
 6598            </ul><span class="paren">)</span>
 6599        </div>
 6600    
 6601
 6602    
 6603        <span class="returns-inline">
 6604            <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 6605        </span>
 6606    
 6607
 6608    
 6609
 6610    
 6611
 6612    
 6613
 6614    
 6615
 6616    
 6617
 6618    
 6619
 6620    <div class="meta">
 6621        
 6622            
 6623                <p>Inherited from
 6624                <a href="../classes/DisplayObject.html#method_getMatrix">DisplayObject</a>:
 6625            
 6626        
 6627        
 6628        <a href="../files/easeljs_display_DisplayObject.js.html#l991"><code>getMatrix:991</code></a>
 6629        
 6630        </p>
 6631
 6632
 6633        
 6634
 6635        
 6636    </div>
 6637
 6638    <div class="description">
 6639        <p>Returns a matrix based on this object&#39;s current transform.</p>
 6640
 6641    </div>
 6642
 6643    
 6644        <div class="params">
 6645            <h4>Parameters:</h4>
 6646
 6647            <ul class="params-list">
 6648            
 6649                <li class="param">
 6650                    
 6651                        <code class="param-name">matrix</code>
 6652                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 6653                    
 6654
 6655                    
 6656
 6657                    <div class="param-description">
 6658                        <p>Optional. A Matrix2D object to populate with the calculated values. If null, a new
 6659Matrix object is returned.</p>
 6660
 6661                    </div>
 6662
 6663                    
 6664                </li>
 6665            
 6666            </ul>
 6667        </div>
 6668    
 6669
 6670    
 6671        <div class="returns">
 6672            <h4>Returns:</h4>
 6673
 6674            <div class="returns-description">
 6675                
 6676                    
 6677                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
 6678                    
 6679                    <p>A matrix representing this display object&#39;s transform.</p>
 6680
 6681                
 6682            </div>
 6683        </div>
 6684    
 6685
 6686    
 6687</div>
 6688
 6689                
 6690                    <div id="method_getObjectsUnderPoint" class="method item inherited">
 6691    <h3 class="name"><code>getObjectsUnderPoint</code></h3>
 6692
 6693    
 6694        <div class="args">
 6695            <span class="paren">(</span><ul class="args-list inline commas">
 6696            
 6697                <li class="arg">
 6698                    
 6699                        <code>x</code>
 6700                    
 6701                </li>
 6702            
 6703                <li class="arg">
 6704                    
 6705                        <code>y</code>
 6706                    
 6707                </li>
 6708            
 6709                <li class="arg">
 6710                    
 6711                        <code class="optional">[mode=0]</code>
 6712                    
 6713                </li>
 6714            
 6715            </ul><span class="paren">)</span>
 6716        </div>
 6717    
 6718
 6719    
 6720        <span class="returns-inline">
 6721            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 6722        </span>
 6723    
 6724
 6725    
 6726
 6727    
 6728
 6729    
 6730
 6731    
 6732
 6733    
 6734
 6735    
 6736
 6737    <div class="meta">
 6738        
 6739            
 6740                <p>Inherited from
 6741                <a href="../classes/Container.html#method_getObjectsUnderPoint">Container</a>:
 6742            
 6743        
 6744        
 6745        <a href="../files/easeljs_display_Container.js.html#l460"><code>getObjectsUnderPoint:460</code></a>
 6746        
 6747        </p>
 6748
 6749
 6750        
 6751
 6752        
 6753    </div>
 6754
 6755    <div class="description">
 6756        <p>Returns an array of all display objects under the specified coordinates that are in this container&#39;s display
 6757list. This routine ignores any display objects with <a href="../classes/DisplayObject.html#property_mouseEnabled" class="crosslink">mouseEnabled</a>
 6758set to <code>false</code>. The array will be sorted in order of visual depth, with the top-most display object at index 0.
 6759This uses shape based hit detection, and can be an expensive operation to run, so it is best to use it carefully.
 6760For example, if testing for objects under the mouse, test on tick (instead of on DisplayObject/mousemove:event),
 6761and only if the mouse&#39;s position has changed.</p>
 6762<p><ul>
 6763    <li>By default (mode=0) this method evaluates all display objects.</li>
 6764    <li>By setting the <code>mode</code> parameter to <code>1</code>, the <a href="../classes/DisplayObject.html#property_mouseEnabled" class="crosslink">mouseEnabled</a>
 6765        and MouseChildren:property properties will be respected.</li>
 6766       <li>Setting the <code>mode</code> to <code>2</code> additionally excludes display objects that do not have active mouse event
 6767           listeners or a DisplayObject:cursor:property property. That is, only objects
 6768           that would normally intercept mouse interaction will be included. This can significantly improve performance
 6769           in some cases by reducing the number of display objects that need to be tested.</li>
 6770</li></p>
 6771<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>
 6772
 6773    </div>
 6774
 6775    
 6776        <div class="params">
 6777            <h4>Parameters:</h4>
 6778
 6779            <ul class="params-list">
 6780            
 6781                <li class="param">
 6782                    
 6783                        <code class="param-name">x</code>
 6784                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6785                    
 6786
 6787                    
 6788
 6789                    <div class="param-description">
 6790                        <p>The x position in the container to test.</p>
 6791
 6792                    </div>
 6793
 6794                    
 6795                </li>
 6796            
 6797                <li class="param">
 6798                    
 6799                        <code class="param-name">y</code>
 6800                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6801                    
 6802
 6803                    
 6804
 6805                    <div class="param-description">
 6806                        <p>The y position in the container to test.</p>
 6807
 6808                    </div>
 6809
 6810                    
 6811                </li>
 6812            
 6813                <li class="param">
 6814                    
 6815                        <code class="param-name optional">[mode=0]</code>
 6816                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6817                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6818                    
 6819
 6820                    
 6821
 6822                    <div class="param-description">
 6823                        <p>The mode to use to determine which display objects to include. 0-all, 1-respect mouseEnabled/mouseChildren, 2-only mouse opaque objects.</p>
 6824
 6825                    </div>
 6826
 6827                    
 6828                </li>
 6829            
 6830            </ul>
 6831        </div>
 6832    
 6833
 6834    
 6835        <div class="returns">
 6836            <h4>Returns:</h4>
 6837
 6838            <div class="returns-description">
 6839                
 6840                    
 6841                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>:
 6842                    
 6843                    <p>An Array of DisplayObjects under the specified coordinates.</p>
 6844
 6845                
 6846            </div>
 6847        </div>
 6848    
 6849
 6850    
 6851</div>
 6852
 6853                
 6854                    <div id="method_getObjectUnderPoint" class="method item inherited">
 6855    <h3 class="name"><code>getObjectUnderPoint</code></h3>
 6856
 6857    
 6858        <div class="args">
 6859            <span class="paren">(</span><ul class="args-list inline commas">
 6860            
 6861                <li class="arg">
 6862                    
 6863                        <code>x</code>
 6864                    
 6865                </li>
 6866            
 6867                <li class="arg">
 6868                    
 6869                        <code>y</code>
 6870                    
 6871                </li>
 6872            
 6873                <li class="arg">
 6874                    
 6875                        <code>mode</code>
 6876                    
 6877                </li>
 6878            
 6879            </ul><span class="paren">)</span>
 6880        </div>
 6881    
 6882
 6883    
 6884        <span class="returns-inline">
 6885            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 6886        </span>
 6887    
 6888
 6889    
 6890
 6891    
 6892
 6893    
 6894
 6895    
 6896
 6897    
 6898
 6899    
 6900
 6901    <div class="meta">
 6902        
 6903            
 6904                <p>Inherited from
 6905                <a href="../classes/Container.html#method_getObjectUnderPoint">Container</a>:
 6906            
 6907        
 6908        
 6909        <a href="../files/easeljs_display_Container.js.html#l492"><code>getObjectUnderPoint:492</code></a>
 6910        
 6911        </p>
 6912
 6913
 6914        
 6915
 6916        
 6917    </div>
 6918
 6919    <div class="description">
 6920        <p>Similar to <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>, but returns only the top-most display
 6921object. This runs significantly faster than <code>getObjectsUnderPoint()</code>, but is still potentially an expensive
 6922operation. See <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a> for more information.</p>
 6923
 6924    </div>
 6925
 6926    
 6927        <div class="params">
 6928            <h4>Parameters:</h4>
 6929
 6930            <ul class="params-list">
 6931            
 6932                <li class="param">
 6933                    
 6934                        <code class="param-name">x</code>
 6935                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6936                    
 6937
 6938                    
 6939
 6940                    <div class="param-description">
 6941                        <p>The x position in the container to test.</p>
 6942
 6943                    </div>
 6944
 6945                    
 6946                </li>
 6947            
 6948                <li class="param">
 6949                    
 6950                        <code class="param-name">y</code>
 6951                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6952                    
 6953
 6954                    
 6955
 6956                    <div class="param-description">
 6957                        <p>The y position in the container to test.</p>
 6958
 6959                    </div>
 6960
 6961                    
 6962                </li>
 6963            
 6964                <li class="param">
 6965                    
 6966                        <code class="param-name">mode</code>
 6967                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6968                    
 6969
 6970                    
 6971
 6972                    <div class="param-description">
 6973                        <p>The mode to use to determine which display objects to include.  0-all, 1-respect mouseEnabled/mouseChildren, 2-only mouse opaque objects.</p>
 6974
 6975                    </div>
 6976
 6977                    
 6978                </li>
 6979            
 6980            </ul>
 6981        </div>
 6982    
 6983
 6984    
 6985        <div class="returns">
 6986            <h4>Returns:</h4>
 6987
 6988            <div class="returns-description">
 6989                
 6990                    
 6991                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 6992                    
 6993                    <p>The top-most display object under the specified coordinates.</p>
 6994
 6995                
 6996            </div>
 6997        </div>
 6998    
 6999
 7000    
 7001</div>
 7002
 7003                
 7004                    <div id="method_getTransformedBounds" class="method item inherited">
 7005    <h3 class="name"><code>getTransformedBounds</code></h3>
 7006
 7007    
 7008        <span class="paren">()</span>
 7009    
 7010
 7011    
 7012        <span class="returns-inline">
 7013            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 7014        </span>
 7015    
 7016
 7017    
 7018
 7019    
 7020
 7021    
 7022
 7023    
 7024
 7025    
 7026
 7027    
 7028
 7029    <div class="meta">
 7030        
 7031            
 7032                <p>Inherited from
 7033                <a href="../classes/DisplayObject.html#method_getTransformedBounds">DisplayObject</a>:
 7034            
 7035        
 7036        
 7037        <a href="../files/easeljs_display_DisplayObject.js.html#l1155"><code>getTransformedBounds:1155</code></a>
 7038        
 7039        </p>
 7040
 7041
 7042        
 7043
 7044        
 7045    </div>
 7046
 7047    <div class="description">
 7048        <p>Returns a rectangle representing this object&#39;s bounds in its parent&#39;s coordinate system (ie. with transformations applied).
 7049Objects that have been cached will return the transformed bounds of the cache.</p>
 7050<p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use 
 7051<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
 7052bounds.</p>
 7053<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
 7054values if you need to retain it.</p>
 7055<p>Container instances calculate aggregate bounds for all children that return bounds via getBounds.</p>
 7056
 7057    </div>
 7058
 7059    
 7060
 7061    
 7062        <div class="returns">
 7063            <h4>Returns:</h4>
 7064
 7065            <div class="returns-description">
 7066                
 7067                    
 7068                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 7069                    
 7070                    <p>A Rectangle instance representing the bounds, or null if bounds are not available for this object.</p>
 7071
 7072                
 7073            </div>
 7074        </div>
 7075    
 7076
 7077    
 7078</div>
 7079
 7080                
 7081                    <div id="method_globalToLocal" class="method item inherited">
 7082    <h3 class="name"><code>globalToLocal</code></h3>
 7083
 7084    
 7085        <div class="args">
 7086            <span class="paren">(</span><ul class="args-list inline commas">
 7087            
 7088                <li class="arg">
 7089                    
 7090                        <code>x</code>
 7091                    
 7092                </li>
 7093            
 7094                <li class="arg">
 7095                    
 7096                        <code>y</code>
 7097                    
 7098                </li>
 7099            
 7100                <li class="arg">
 7101                    
 7102                        <code class="optional">[pt]</code>
 7103                    
 7104                </li>
 7105            
 7106            </ul><span class="paren">)</span>
 7107        </div>
 7108    
 7109
 7110    
 7111        <span class="returns-inline">
 7112            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
 7113        </span>
 7114    
 7115
 7116    
 7117
 7118    
 7119
 7120    
 7121
 7122    
 7123
 7124    
 7125
 7126    
 7127
 7128    <div class="meta">
 7129        
 7130            
 7131                <p>Inherited from
 7132                <a href="../classes/DisplayObject.html#method_globalToLocal">DisplayObject</a>:
 7133            
 7134        
 7135        
 7136        <a href="../files/easeljs_display_DisplayObject.js.html#l910"><code>globalToLocal:910</code></a>
 7137        
 7138        </p>
 7139
 7140
 7141        
 7142
 7143        
 7144    </div>
 7145
 7146    <div class="description">
 7147        <p><p>Transforms the specified x and y position from the global (stage) coordinate space to the
 7148coordinate space of the display object. For example, this could be used to determine
 7149the current mouse position within the display object. Returns a Point instance with x and y properties
 7150correlating to the transformed position in the display object&#39;s coordinate space.</p></p>
 7151<h4>Example</h4>
 7152
 7153<pre class="code prettyprint"><code> displayObject.x = 300;
 7154 displayObject.y = 200;
 7155 stage.addChild(displayObject);
 7156 var point = displayObject.globalToLocal(100, 100);
 7157 // Results in x=-200, y=-100</code></pre>
 7158
 7159    </div>
 7160
 7161    
 7162        <div class="params">
 7163            <h4>Parameters:</h4>
 7164
 7165            <ul class="params-list">
 7166            
 7167                <li class="param">
 7168                    
 7169                        <code class="param-name">x</code>
 7170                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7171                    
 7172
 7173                    
 7174
 7175                    <div class="param-description">
 7176                        <p>The x position on the stage to transform.</p>
 7177
 7178                    </div>
 7179
 7180                    
 7181                </li>
 7182            
 7183                <li class="param">
 7184                    
 7185                        <code class="param-name">y</code>
 7186                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7187                    
 7188
 7189                    
 7190
 7191                    <div class="param-description">
 7192                        <p>The y position on the stage to transform.</p>
 7193
 7194                    </div>
 7195
 7196                    
 7197                </li>
 7198            
 7199                <li class="param">
 7200                    
 7201                        <code class="param-name optional">[pt]</code>
 7202                        <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>
 7203                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7204                    
 7205
 7206                    
 7207
 7208                    <div class="param-description">
 7209                        <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
 7210
 7211                    </div>
 7212
 7213                    
 7214                </li>
 7215            
 7216            </ul>
 7217        </div>
 7218    
 7219
 7220    
 7221        <div class="returns">
 7222            <h4>Returns:</h4>
 7223
 7224            <div class="returns-description">
 7225                
 7226                    
 7227                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
 7228                    
 7229                    <p>A Point instance with x and y properties correlating to the transformed position in the
 7230display object&#39;s coordinate space.</p>
 7231
 7232                
 7233            </div>
 7234        </div>
 7235    
 7236
 7237    
 7238</div>
 7239
 7240                
 7241                    <div id="method_hasEventListener" class="method item inherited">
 7242    <h3 class="name"><code>hasEventListener</code></h3>
 7243
 7244    
 7245        <div class="args">
 7246            <span class="paren">(</span><ul class="args-list inline commas">
 7247            
 7248                <li class="arg">
 7249                    
 7250                        <code>type</code>
 7251                    
 7252                </li>
 7253            
 7254            </ul><span class="paren">)</span>
 7255        </div>
 7256    
 7257
 7258    
 7259        <span class="returns-inline">
 7260            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 7261        </span>
 7262    
 7263
 7264    
 7265
 7266    
 7267
 7268    
 7269
 7270    
 7271
 7272    
 7273
 7274    
 7275
 7276    <div class="meta">
 7277        
 7278            
 7279                <p>Inherited from
 7280                <a href="../classes/EventDispatcher.html#method_hasEventListener">EventDispatcher</a>:
 7281            
 7282        
 7283        
 7284        <a href="../files/createjs_events_EventDispatcher.js.html#l339"><code>hasEventListener:339</code></a>
 7285        
 7286        </p>
 7287
 7288
 7289        
 7290
 7291        
 7292    </div>
 7293
 7294    <div class="description">
 7295        <p>Indicates whether there is at least one listener for the specified event type.</p>
 7296
 7297    </div>
 7298
 7299    
 7300        <div class="params">
 7301            <h4>Parameters:</h4>
 7302
 7303            <ul class="params-list">
 7304            
 7305                <li class="param">
 7306                    
 7307                        <code class="param-name">type</code>
 7308                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 7309                    
 7310
 7311                    
 7312
 7313                    <div class="param-description">
 7314                        <p>The string type of the event.</p>
 7315
 7316                    </div>
 7317
 7318                    
 7319                </li>
 7320            
 7321            </ul>
 7322        </div>
 7323    
 7324
 7325    
 7326        <div class="returns">
 7327            <h4>Returns:</h4>
 7328
 7329            <div class="returns-description">
 7330                
 7331                    
 7332                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 7333                    
 7334                    <p>Returns true if there is at least one listener for the specified event.</p>
 7335
 7336                
 7337            </div>
 7338        </div>
 7339    
 7340
 7341    
 7342</div>
 7343
 7344                
 7345                    <div id="method_hitTest" class="method item inherited">
 7346    <h3 class="name"><code>hitTest</code></h3>
 7347
 7348    
 7349        <div class="args">
 7350            <span class="paren">(</span><ul class="args-list inline commas">
 7351            
 7352                <li class="arg">
 7353                    
 7354                        <code>x</code>
 7355                    
 7356                </li>
 7357            
 7358                <li class="arg">
 7359                    
 7360                        <code>y</code>
 7361                    
 7362                </li>
 7363            
 7364            </ul><span class="paren">)</span>
 7365        </div>
 7366    
 7367
 7368    
 7369        <span class="returns-inline">
 7370            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 7371        </span>
 7372    
 7373
 7374    
 7375
 7376    
 7377
 7378    
 7379
 7380    
 7381
 7382    
 7383
 7384    
 7385
 7386    <div class="meta">
 7387        
 7388            <p>Inherited from
 7389            <a href="../classes/DisplayObject.html#method_hitTest">
 7390                DisplayObject
 7391            </a>
 7392            
 7393            but overwritten in
 7394            
 7395        
 7396        
 7397        <a href="../files/easeljs_display_Container.js.html#l445"><code>hitTest:445</code></a>
 7398        
 7399        </p>
 7400
 7401
 7402        
 7403
 7404        
 7405    </div>
 7406
 7407    <div class="description">
 7408        <p>Tests whether the display object intersects the specified local point (ie. draws a pixel with alpha &gt; 0 at the
 7409specified position). This ignores the alpha, shadow and compositeOperation of the display object, and all
 7410transform properties including regX/Y.</p>
 7411
 7412    </div>
 7413
 7414    
 7415        <div class="params">
 7416            <h4>Parameters:</h4>
 7417
 7418            <ul class="params-list">
 7419            
 7420                <li class="param">
 7421                    
 7422                        <code class="param-name">x</code>
 7423                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7424                    
 7425
 7426                    
 7427
 7428                    <div class="param-description">
 7429                        <p>The x position to check in the display object&#39;s local coordinates.</p>
 7430
 7431                    </div>
 7432
 7433                    
 7434                </li>
 7435            
 7436                <li class="param">
 7437                    
 7438                        <code class="param-name">y</code>
 7439                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7440                    
 7441
 7442                    
 7443
 7444                    <div class="param-description">
 7445                        <p>The y position to check in the display object&#39;s local coordinates.</p>
 7446
 7447                    </div>
 7448
 7449                    
 7450                </li>
 7451            
 7452            </ul>
 7453        </div>
 7454    
 7455
 7456    
 7457        <div class="returns">
 7458            <h4>Returns:</h4>
 7459
 7460            <div class="returns-description">
 7461                
 7462                    
 7463                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 7464                    
 7465                    <p>A Boolean indicating whether there is a visible section of a DisplayObject that overlaps the specified
 7466coordinates.</p>
 7467
 7468                
 7469            </div>
 7470        </div>
 7471    
 7472
 7473    
 7474</div>
 7475
 7476                
 7477                    <div id="method_initialize" class="method item deprecated inherited">
 7478    <h3 class="name"><code>initialize</code></h3>
 7479
 7480    
 7481        <span class="paren">()</span>
 7482    
 7483
 7484    
 7485
 7486    
 7487        <span class="flag deprecated" title="in favour of &#x60;createjs.promote()&#x60;">deprecated</span>
 7488    
 7489
 7490    
 7491
 7492    
 7493
 7494    
 7495
 7496    
 7497
 7498    
 7499
 7500    <div class="meta">
 7501        
 7502            
 7503                <p>Inherited from
 7504                <a href="../classes/Container.html#method_initialize">Container</a>:
 7505            
 7506        
 7507        
 7508        <a href="../files/easeljs_display_Container.js.html#l123"><code>initialize:123</code></a>
 7509        
 7510        </p>
 7511
 7512
 7513        
 7514            <p>Deprecated: in favour of &#x60;createjs.promote()&#x60;</p>
 7515        
 7516
 7517        
 7518    </div>
 7519
 7520    <div class="description">
 7521        <p>Constructor alias for backwards compatibility. This method will be removed in future versions.
 7522Subclasses should be updated to use Utility Methods/extends.</p>
 7523
 7524    </div>
 7525
 7526    
 7527
 7528    
 7529
 7530    
 7531</div>
 7532
 7533                
 7534                    <div id="method_isVisible" class="method item inherited">
 7535    <h3 class="name"><code>isVisible</code></h3>
 7536
 7537    
 7538        <span class="paren">()</span>
 7539    
 7540
 7541    
 7542        <span class="returns-inline">
 7543            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 7544        </span>
 7545    
 7546
 7547    
 7548
 7549    
 7550
 7551    
 7552
 7553    
 7554
 7555    
 7556
 7557    
 7558
 7559    <div class="meta">
 7560        
 7561            <p>Inherited from
 7562            <a href="../classes/DisplayObject.html#method_isVisible">
 7563                DisplayObject
 7564            </a>
 7565            
 7566            but overwritten in
 7567            
 7568        
 7569        
 7570        <a href="../files/easeljs_display_Container.js.html#l131"><code>isVisible:131</code></a>
 7571        
 7572        </p>
 7573
 7574
 7575        
 7576
 7577        
 7578    </div>
 7579
 7580    <div class="description">
 7581        <p>Returns true or false indicating whether the display object would be visible if drawn to a canvas.
 7582This does not account for whether it would be visible within the boundaries of the stage.</p>
 7583<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
 7584
 7585    </div>
 7586
 7587    
 7588
 7589    
 7590        <div class="returns">
 7591            <h4>Returns:</h4>
 7592
 7593            <div class="returns-description">
 7594                
 7595                    
 7596                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 7597                    
 7598                    <p>Boolean indicating whether the display object would be visible if drawn to a canvas</p>
 7599
 7600                
 7601            </div>
 7602        </div>
 7603    
 7604
 7605    
 7606</div>
 7607
 7608                
 7609                    <div id="method_localToGlobal" class="method item inherited">
 7610    <h3 class="name"><code>localToGlobal</code></h3>
 7611
 7612    
 7613        <div class="args">
 7614            <span class="paren">(</span><ul class="args-list inline commas">
 7615            
 7616                <li class="arg">
 7617                    
 7618                        <code>x</code>
 7619                    
 7620                </li>
 7621            
 7622                <li class="arg">
 7623                    
 7624                        <code>y</code>
 7625                    
 7626                </li>
 7627            
 7628                <li class="arg">
 7629                    
 7630                        <code class="optional">[pt]</code>
 7631                    
 7632                </li>
 7633            
 7634            </ul><span class="paren">)</span>
 7635        </div>
 7636    
 7637
 7638    
 7639        <span class="returns-inline">
 7640            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
 7641        </span>
 7642    
 7643
 7644    
 7645
 7646    
 7647
 7648    
 7649
 7650    
 7651
 7652    
 7653
 7654    
 7655
 7656    <div class="meta">
 7657        
 7658            
 7659                <p>Inherited from
 7660                <a href="../classes/DisplayObject.html#method_localToGlobal">DisplayObject</a>:
 7661            
 7662        
 7663        
 7664        <a href="../files/easeljs_display_DisplayObject.js.html#l885"><code>localToGlobal:885</code></a>
 7665        
 7666        </p>
 7667
 7668
 7669        
 7670
 7671        
 7672    </div>
 7673
 7674    <div class="description">
 7675        <p><p>Transforms the specified x and y position from the coordinate space of the display object
 7676to the global (stage) coordinate space. For example, this could be used to position an HTML label
 7677over a specific point on a nested display object. Returns a Point instance with x and y properties
 7678correlating to the transformed coordinates on the stage.</p></p>
 7679<h4>Example</h4>
 7680
 7681<pre class="code prettyprint"><code> displayObject.x = 300;
 7682 displayObject.y = 200;
 7683 stage.addChild(displayObject);
 7684 var point = displayObject.localToGlobal(100, 100);
 7685 // Results in x=400, y=300</code></pre>
 7686
 7687    </div>
 7688
 7689    
 7690        <div class="params">
 7691            <h4>Parameters:</h4>
 7692
 7693            <ul class="params-list">
 7694            
 7695                <li class="param">
 7696                    
 7697                        <code class="param-name">x</code>
 7698                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7699                    
 7700
 7701                    
 7702
 7703                    <div class="param-description">
 7704                        <p>The x position in the source display object to transform.</p>
 7705
 7706                    </div>
 7707
 7708                    
 7709                </li>
 7710            
 7711                <li class="param">
 7712                    
 7713                        <code class="param-name">y</code>
 7714                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7715                    
 7716
 7717                    
 7718
 7719                    <div class="param-description">
 7720                        <p>The y position in the source display object to transform.</p>
 7721
 7722                    </div>
 7723
 7724                    
 7725                </li>
 7726            
 7727                <li class="param">
 7728                    
 7729                        <code class="param-name optional">[pt]</code>
 7730                        <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>
 7731                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7732                    
 7733
 7734                    
 7735
 7736                    <div class="param-description">
 7737                        <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
 7738
 7739                    </div>
 7740
 7741                    
 7742                </li>
 7743            
 7744            </ul>
 7745        </div>
 7746    
 7747
 7748    
 7749        <div class="returns">
 7750            <h4>Returns:</h4>
 7751
 7752            <div class="returns-description">
 7753                
 7754                    
 7755                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
 7756                    
 7757                    <p>A Point instance with x and y properties correlating to the transformed coordinates
 7758on the stage.</p>
 7759
 7760                
 7761            </div>
 7762        </div>
 7763    
 7764
 7765    
 7766</div>
 7767
 7768                
 7769                    <div id="method_localToLocal" class="method item inherited">
 7770    <h3 class="name"><code>localToLocal</code></h3>
 7771
 7772    
 7773        <div class="args">
 7774            <span class="paren">(</span><ul class="args-list inline commas">
 7775            
 7776                <li class="arg">
 7777                    
 7778                        <code>x</code>
 7779                    
 7780                </li>
 7781            
 7782                <li class="arg">
 7783                    
 7784                        <code>y</code>
 7785                    
 7786                </li>
 7787            
 7788                <li class="arg">
 7789                    
 7790                        <code>target</code>
 7791                    
 7792                </li>
 7793            
 7794                <li class="arg">
 7795                    
 7796                        <code class="optional">[pt]</code>
 7797                    
 7798                </li>
 7799            
 7800            </ul><span class="paren">)</span>
 7801        </div>
 7802    
 7803
 7804    
 7805        <span class="returns-inline">
 7806            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
 7807        </span>
 7808    
 7809
 7810    
 7811
 7812    
 7813
 7814    
 7815
 7816    
 7817
 7818    
 7819
 7820    
 7821
 7822    <div class="meta">
 7823        
 7824            
 7825                <p>Inherited from
 7826                <a href="../classes/DisplayObject.html#method_localToLocal">DisplayObject</a>:
 7827            
 7828        
 7829        
 7830        <a href="../files/easeljs_display_DisplayObject.js.html#l935"><code>localToLocal:935</code></a>
 7831        
 7832        </p>
 7833
 7834
 7835        
 7836
 7837        
 7838    </div>
 7839
 7840    <div class="description">
 7841        <p><p>Transforms the specified x and y position from the coordinate space of this display object to the coordinate
 7842space of the target display object. Returns a Point instance with x and y properties correlating to the
 7843transformed position in the target&#39;s coordinate space. Effectively the same as using the following code with
 7844<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>
 7845<pre class="code prettyprint"><code> var pt = this.localToGlobal(x, y);
 7846 pt = target.globalToLocal(pt.x, pt.y);</code></pre>
 7847
 7848    </div>
 7849
 7850    
 7851        <div class="params">
 7852            <h4>Parameters:</h4>
 7853
 7854            <ul class="params-list">
 7855            
 7856                <li class="param">
 7857                    
 7858                        <code class="param-name">x</code>
 7859                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7860                    
 7861
 7862                    
 7863
 7864                    <div class="param-description">
 7865                        <p>The x position in the source display object to transform.</p>
 7866
 7867                    </div>
 7868
 7869                    
 7870                </li>
 7871            
 7872                <li class="param">
 7873                    
 7874                        <code class="param-name">y</code>
 7875                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7876                    
 7877
 7878                    
 7879
 7880                    <div class="param-description">
 7881                        <p>The y position on the source display object to transform.</p>
 7882
 7883                    </div>
 7884
 7885                    
 7886                </li>
 7887            
 7888                <li class="param">
 7889                    
 7890                        <code class="param-name">target</code>
 7891                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 7892                    
 7893
 7894                    
 7895
 7896                    <div class="param-description">
 7897                        <p>The target display object to which the coordinates will be transformed.</p>
 7898
 7899                    </div>
 7900
 7901                    
 7902                </li>
 7903            
 7904                <li class="param">
 7905                    
 7906                        <code class="param-name optional">[pt]</code>
 7907                        <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>
 7908                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7909                    
 7910
 7911                    
 7912
 7913                    <div class="param-description">
 7914                        <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
 7915
 7916                    </div>
 7917
 7918                    
 7919                </li>
 7920            
 7921            </ul>
 7922        </div>
 7923    
 7924
 7925    
 7926        <div class="returns">
 7927            <h4>Returns:</h4>
 7928
 7929            <div class="returns-description">
 7930                
 7931                    
 7932                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
 7933                    
 7934                    <p>Returns a Point instance with x and y properties correlating to the transformed position
 7935in the target&#39;s coordinate space.</p>
 7936
 7937                
 7938            </div>
 7939        </div>
 7940    
 7941
 7942    
 7943</div>
 7944
 7945                
 7946                    <div id="method_off" class="method item inherited">
 7947    <h3 class="name"><code>off</code></h3>
 7948
 7949    
 7950        <div class="args">
 7951            <span class="paren">(</span><ul class="args-list inline commas">
 7952            
 7953                <li class="arg">
 7954                    
 7955                        <code>type</code>
 7956                    
 7957                </li>
 7958            
 7959                <li class="arg">
 7960                    
 7961                        <code>listener</code>
 7962                    
 7963                </li>
 7964            
 7965                <li class="arg">
 7966                    
 7967                        <code class="optional">[useCapture]</code>
 7968                    
 7969                </li>
 7970            
 7971            </ul><span class="paren">)</span>
 7972        </div>
 7973    
 7974
 7975    
 7976
 7977    
 7978
 7979    
 7980
 7981    
 7982
 7983    
 7984
 7985    
 7986
 7987    
 7988
 7989    <div class="meta">
 7990        
 7991            
 7992                <p>Inherited from
 7993                <a href="../classes/EventDispatcher.html#method_off">EventDispatcher</a>:
 7994            
 7995        
 7996        
 7997        <a href="../files/createjs_events_EventDispatcher.js.html#l249"><code>off:249</code></a>
 7998        
 7999        </p>
 8000
 8001
 8002        
 8003
 8004        
 8005    </div>
 8006
 8007    <div class="description">
 8008        <p>A shortcut to the removeEventListener method, with the same parameters and return value. This is a companion to the
 8009.on method.</p>
 8010<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 
 8011<a href="../classes/EventDispatcher.html#method_on" class="crosslink">on</a> for an example.</p>
 8012
 8013    </div>
 8014
 8015    
 8016        <div class="params">
 8017            <h4>Parameters:</h4>
 8018
 8019            <ul class="params-list">
 8020            
 8021                <li class="param">
 8022                    
 8023                        <code class="param-name">type</code>
 8024                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 8025                    
 8026
 8027                    
 8028
 8029                    <div class="param-description">
 8030                        <p>The string type of the event.</p>
 8031
 8032                    </div>
 8033
 8034                    
 8035                </li>
 8036            
 8037                <li class="param">
 8038                    
 8039                        <code class="param-name">listener</code>
 8040                        <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>
 8041                    
 8042
 8043                    
 8044
 8045                    <div class="param-description">
 8046                        <p>The listener function or object.</p>
 8047
 8048                    </div>
 8049
 8050                    
 8051                </li>
 8052            
 8053                <li class="param">
 8054                    
 8055                        <code class="param-name optional">[useCapture]</code>
 8056                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8057                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8058                    
 8059
 8060                    
 8061
 8062                    <div class="param-description">
 8063                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
 8064
 8065                    </div>
 8066
 8067                    
 8068                </li>
 8069            
 8070            </ul>
 8071        </div>
 8072    
 8073
 8074    
 8075
 8076    
 8077</div>
 8078
 8079                
 8080                    <div id="method_on" class="method item inherited">
 8081    <h3 class="name"><code>on</code></h3>
 8082
 8083    
 8084        <div class="args">
 8085            <span class="paren">(</span><ul class="args-list inline commas">
 8086            
 8087                <li class="arg">
 8088                    
 8089                        <code>type</code>
 8090                    
 8091                </li>
 8092            
 8093                <li class="arg">
 8094                    
 8095                        <code>listener</code>
 8096                    
 8097                </li>
 8098            
 8099                <li class="arg">
 8100                    
 8101                        <code class="optional">[scope]</code>
 8102                    
 8103                </li>
 8104            
 8105                <li class="arg">
 8106                    
 8107                        <code class="optional">[once=false]</code>
 8108                    
 8109                </li>
 8110            
 8111                <li class="arg">
 8112                    
 8113                        <code class="optional">[data]</code>
 8114                    
 8115                </li>
 8116            
 8117                <li class="arg">
 8118                    
 8119                        <code class="optional">[useCapture=false]</code>
 8120                    
 8121                </li>
 8122            
 8123            </ul><span class="paren">)</span>
 8124        </div>
 8125    
 8126
 8127    
 8128        <span class="returns-inline">
 8129            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
 8130        </span>
 8131    
 8132
 8133    
 8134
 8135    
 8136
 8137    
 8138
 8139    
 8140
 8141    
 8142
 8143    
 8144
 8145    <div class="meta">
 8146        
 8147            
 8148                <p>Inherited from
 8149                <a href="../classes/EventDispatcher.html#method_on">EventDispatcher</a>:
 8150            
 8151        
 8152        
 8153        <a href="../files/createjs_events_EventDispatcher.js.html#l173"><code>on:173</code></a>
 8154        
 8155        </p>
 8156
 8157
 8158        
 8159
 8160        
 8161    </div>
 8162
 8163    <div class="description">
 8164        <p><p>A shortcut method for using addEventListener that makes it easier to specify an execution scope, have a listener
 8165only run once, associate arbitrary data with the listener, and remove the listener.</p></p>
 8166<p><p>This method works by creating an anonymous wrapper function and subscribing it with addEventListener.
 8167The wrapper function is returned for use with <code>removeEventListener</code> (or <code>off</code>).</p></p>
 8168<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
 8169<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
 8170to <code>on</code> with the same params will create multiple listeners.</p></p>
 8171<h4>Example</h4>
 8172
 8173<pre class="code prettyprint"><code>    var listener = myBtn.on("click", handleClick, null, false, {count:3});
 8174    function handleClick(evt, data) {
 8175        data.count -= 1;
 8176        console.log(this == myBtn); // true - scope defaults to the dispatcher
 8177        if (data.count == 0) {
 8178            alert("clicked 3 times!");
 8179            myBtn.off("click", listener);
 8180            // alternately: evt.remove();
 8181        }
 8182    }</code></pre>
 8183
 8184    </div>
 8185
 8186    
 8187        <div class="params">
 8188            <h4>Parameters:</h4>
 8189
 8190            <ul class="params-list">
 8191            
 8192                <li class="param">
 8193                    
 8194                        <code class="param-name">type</code>
 8195                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 8196                    
 8197
 8198                    
 8199
 8200                    <div class="param-description">
 8201                        <p>The string type of the event.</p>
 8202
 8203                    </div>
 8204
 8205                    
 8206                </li>
 8207            
 8208                <li class="param">
 8209                    
 8210                        <code class="param-name">listener</code>
 8211                        <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>
 8212                    
 8213
 8214                    
 8215
 8216                    <div class="param-description">
 8217                        <p>An object with a handleEvent method, or a function that will be called when
 8218the event is dispatched.</p>
 8219
 8220                    </div>
 8221
 8222                    
 8223                </li>
 8224            
 8225                <li class="param">
 8226                    
 8227                        <code class="param-name optional">[scope]</code>
 8228                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 8229                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8230                    
 8231
 8232                    
 8233
 8234                    <div class="param-description">
 8235                        <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>
 8236
 8237                    </div>
 8238
 8239                    
 8240                </li>
 8241            
 8242                <li class="param">
 8243                    
 8244                        <code class="param-name optional">[once=false]</code>
 8245                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8246                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8247                    
 8248
 8249                    
 8250
 8251                    <div class="param-description">
 8252                        <p>If true, the listener will remove itself after the first time it is triggered.</p>
 8253
 8254                    </div>
 8255
 8256                    
 8257                </li>
 8258            
 8259                <li class="param">
 8260                    
 8261                        <code class="param-name optional">[data]</code>
 8262                        <span class="type"></span>
 8263                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8264                    
 8265
 8266                    
 8267
 8268                    <div class="param-description">
 8269                        <p>Arbitrary data that will be included as the second parameter when the listener is called.</p>
 8270
 8271                    </div>
 8272
 8273                    
 8274                </li>
 8275            
 8276                <li class="param">
 8277                    
 8278                        <code class="param-name optional">[useCapture=false]</code>
 8279                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8280                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8281                    
 8282
 8283                    
 8284
 8285                    <div class="param-description">
 8286                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
 8287
 8288                    </div>
 8289
 8290                    
 8291                </li>
 8292            
 8293            </ul>
 8294        </div>
 8295    
 8296
 8297    
 8298        <div class="returns">
 8299            <h4>Returns:</h4>
 8300
 8301            <div class="returns-description">
 8302                
 8303                    
 8304                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>:
 8305                    
 8306                    <p>Returns the anonymous function that was created and assigned as the listener. This is needed to remove the listener later using .removeEventListener.</p>
 8307
 8308                
 8309            </div>
 8310        </div>
 8311    
 8312
 8313    
 8314</div>
 8315
 8316                
 8317                    <div id="method_removeAllChildren" class="method item inherited">
 8318    <h3 class="name"><code>removeAllChildren</code></h3>
 8319
 8320    
 8321        <span class="paren">()</span>
 8322    
 8323
 8324    
 8325
 8326    
 8327
 8328    
 8329
 8330    
 8331
 8332    
 8333
 8334    
 8335
 8336    
 8337
 8338    <div class="meta">
 8339        
 8340            
 8341                <p>Inherited from
 8342                <a href="../classes/Container.html#method_removeAllChildren">Container</a>:
 8343            
 8344        
 8345        
 8346        <a href="../files/easeljs_display_Container.js.html#l300"><code>removeAllChildren:300</code></a>
 8347        
 8348        </p>
 8349
 8350
 8351        
 8352
 8353        
 8354    </div>
 8355
 8356    <div class="description">
 8357        <p><p>Removes all children from the display list.</p></p>
 8358<h4>Example</h4>
 8359
 8360<pre class="code prettyprint"><code>container.removeAllChildren();</code></pre>
 8361
 8362    </div>
 8363
 8364    
 8365
 8366    
 8367
 8368    
 8369</div>
 8370
 8371                
 8372                    <div id="method_removeAllEventListeners" class="method item inherited">
 8373    <h3 class="name"><code>removeAllEventListeners</code></h3>
 8374
 8375    
 8376        <div class="args">
 8377            <span class="paren">(</span><ul class="args-list inline commas">
 8378            
 8379                <li class="arg">
 8380                    
 8381                        <code class="optional">[type]</code>
 8382                    
 8383                </li>
 8384            
 8385            </ul><span class="paren">)</span>
 8386        </div>
 8387    
 8388
 8389    
 8390
 8391    
 8392
 8393    
 8394
 8395    
 8396
 8397    
 8398
 8399    
 8400
 8401    
 8402
 8403    <div class="meta">
 8404        
 8405            
 8406                <p>Inherited from
 8407                <a href="../classes/EventDispatcher.html#method_removeAllEventListeners">EventDispatcher</a>:
 8408            
 8409        
 8410        
 8411        <a href="../files/createjs_events_EventDispatcher.js.html#l263"><code>removeAllEventListeners:263</code></a>
 8412        
 8413        </p>
 8414
 8415
 8416        
 8417
 8418        
 8419    </div>
 8420
 8421    <div class="description">
 8422        <p><p>Removes all listeners for the specified type, or all listeners of all types.</p></p>
 8423<h4>Example</h4>
 8424
 8425<pre class="code prettyprint"><code> // Remove all listeners
 8426 displayObject.removeAllEventListeners();
 8427
 8428 // Remove all click listeners
 8429 displayObject.removeAllEventListeners("click");</code></pre>
 8430
 8431    </div>
 8432
 8433    
 8434        <div class="params">
 8435            <h4>Parameters:</h4>
 8436
 8437            <ul class="params-list">
 8438            
 8439                <li class="param">
 8440                    
 8441                        <code class="param-name optional">[type]</code>
 8442                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 8443                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8444                    
 8445
 8446                    
 8447
 8448                    <div class="param-description">
 8449                        <p>The string type of the event. If omitted, all listeners for all types will be removed.</p>
 8450
 8451                    </div>
 8452
 8453                    
 8454                </li>
 8455            
 8456            </ul>
 8457        </div>
 8458    
 8459
 8460    
 8461
 8462    
 8463</div>
 8464
 8465                
 8466                    <div id="method_removeChild" class="method item inherited">
 8467    <h3 class="name"><code>removeChild</code></h3>
 8468
 8469    
 8470        <div class="args">
 8471            <span class="paren">(</span><ul class="args-list inline commas">
 8472            
 8473                <li class="arg">
 8474                    
 8475                        <code>child</code>
 8476                    
 8477                </li>
 8478            
 8479            </ul><span class="paren">)</span>
 8480        </div>
 8481    
 8482
 8483    
 8484        <span class="returns-inline">
 8485            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8486        </span>
 8487    
 8488
 8489    
 8490
 8491    
 8492
 8493    
 8494
 8495    
 8496
 8497    
 8498
 8499    
 8500
 8501    <div class="meta">
 8502        
 8503            
 8504                <p>Inherited from
 8505                <a href="../classes/Container.html#method_removeChild">Container</a>:
 8506            
 8507        
 8508        
 8509        <a href="../files/easeljs_display_Container.js.html#l244"><code>removeChild:244</code></a>
 8510        
 8511        </p>
 8512
 8513
 8514        
 8515
 8516        
 8517    </div>
 8518
 8519    <div class="description">
 8520        <p>Removes the specified child from the display list. Note that it is faster to use removeChildAt() if the index is
 8521already known.</p>
 8522<h4>Example</h4>
 8523
 8524<pre class="code prettyprint"><code> container.removeChild(child);</code></pre>
 8525<p>You can also remove multiple children:</p>
 8526<pre class="code prettyprint"><code> removeChild(child1, child2, ...);</code></pre>
 8527<p>Returns true if the child (or children) was removed, or false if it was not in the display list.</p>
 8528
 8529    </div>
 8530
 8531    
 8532        <div class="params">
 8533            <h4>Parameters:</h4>
 8534
 8535            <ul class="params-list">
 8536            
 8537                <li class="param">
 8538                    
 8539                        <code class="param-name">child</code>
 8540                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 8541                    
 8542
 8543                    
 8544
 8545                    <div class="param-description">
 8546                        <p>The child to remove.</p>
 8547
 8548                    </div>
 8549
 8550                    
 8551                </li>
 8552            
 8553            </ul>
 8554        </div>
 8555    
 8556
 8557    
 8558        <div class="returns">
 8559            <h4>Returns:</h4>
 8560
 8561            <div class="returns-description">
 8562                
 8563                    
 8564                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 8565                    
 8566                    <p>true if the child (or children) was removed, or false if it was not in the display list.</p>
 8567
 8568                
 8569            </div>
 8570        </div>
 8571    
 8572
 8573    
 8574</div>
 8575
 8576                
 8577                    <div id="method_removeChildAt" class="method item inherited">
 8578    <h3 class="name"><code>removeChildAt</code></h3>
 8579
 8580    
 8581        <div class="args">
 8582            <span class="paren">(</span><ul class="args-list inline commas">
 8583            
 8584                <li class="arg">
 8585                    
 8586                        <code>index</code>
 8587                    
 8588                </li>
 8589            
 8590            </ul><span class="paren">)</span>
 8591        </div>
 8592    
 8593
 8594    
 8595        <span class="returns-inline">
 8596            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8597        </span>
 8598    
 8599
 8600    
 8601
 8602    
 8603
 8604    
 8605
 8606    
 8607
 8608    
 8609
 8610    
 8611
 8612    <div class="meta">
 8613        
 8614            <p>Inherited from
 8615            <a href="../classes/Container.html#method_removeChildAt">
 8616                Container
 8617            </a>
 8618            
 8619            but overwritten in
 8620            
 8621        
 8622        
 8623        <a href="../files/easeljs_display_Container.js.html#l271"><code>removeChildAt:271</code></a>
 8624        
 8625        </p>
 8626
 8627
 8628        
 8629
 8630        
 8631    </div>
 8632
 8633    <div class="description">
 8634        <p>Removes the child at the specified index from the display list, and sets its parent to null.</p>
 8635<h4>Example</h4>
 8636
 8637<pre class="code prettyprint"><code> container.removeChildAt(2);</code></pre>
 8638<p>You can also remove multiple children:</p>
 8639<pre class="code prettyprint"><code> container.removeChild(2, 7, ...)</code></pre>
 8640<p>Returns true if the child (or children) was removed, or false if any index was out of range.</p>
 8641
 8642    </div>
 8643
 8644    
 8645        <div class="params">
 8646            <h4>Parameters:</h4>
 8647
 8648            <ul class="params-list">
 8649            
 8650                <li class="param">
 8651                    
 8652                        <code class="param-name">index</code>
 8653                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8654                    
 8655
 8656                    
 8657
 8658                    <div class="param-description">
 8659                        <p>The index of the child to remove.</p>
 8660
 8661                    </div>
 8662
 8663                    
 8664                </li>
 8665            
 8666            </ul>
 8667        </div>
 8668    
 8669
 8670    
 8671        <div class="returns">
 8672            <h4>Returns:</h4>
 8673
 8674            <div class="returns-description">
 8675                
 8676                    
 8677                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 8678                    
 8679                    <p>true if the child (or children) was removed, or false if any index was out of range.</p>
 8680
 8681                
 8682            </div>
 8683        </div>
 8684    
 8685
 8686    
 8687</div>
 8688
 8689                
 8690                    <div id="method_removeEventListener" class="method item inherited">
 8691    <h3 class="name"><code>removeEventListener</code></h3>
 8692
 8693    
 8694        <div class="args">
 8695            <span class="paren">(</span><ul class="args-list inline commas">
 8696            
 8697                <li class="arg">
 8698                    
 8699                        <code>type</code>
 8700                    
 8701                </li>
 8702            
 8703                <li class="arg">
 8704                    
 8705                        <code>listener</code>
 8706                    
 8707                </li>
 8708            
 8709                <li class="arg">
 8710                    
 8711                        <code class="optional">[useCapture]</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/EventDispatcher.html#method_removeEventListener">EventDispatcher</a>:
 8738            
 8739        
 8740        
 8741        <a href="../files/createjs_events_EventDispatcher.js.html#l219"><code>removeEventListener:219</code></a>
 8742        
 8743        </p>
 8744
 8745
 8746        
 8747
 8748        
 8749    </div>
 8750
 8751    <div class="description">
 8752        <p><p>Removes the specified event listener.</p></p>
 8753<p><p><b>Important Note:</b> that you must pass the exact function reference used when the event was added. If a proxy
 8754function, or function closure is used as the callback, the proxy/closure reference must be used - a new proxy or
 8755closure will not work.</p></p>
 8756<h4>Example</h4>
 8757
 8758<pre class="code prettyprint"><code> displayObject.removeEventListener("click", handleClick);</code></pre>
 8759
 8760    </div>
 8761
 8762    
 8763        <div class="params">
 8764            <h4>Parameters:</h4>
 8765
 8766            <ul class="params-list">
 8767            
 8768                <li class="param">
 8769                    
 8770                        <code class="param-name">type</code>
 8771                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 8772                    
 8773
 8774                    
 8775
 8776                    <div class="param-description">
 8777                        <p>The string type of the event.</p>
 8778
 8779                    </div>
 8780
 8781                    
 8782                </li>
 8783            
 8784                <li class="param">
 8785                    
 8786                        <code class="param-name">listener</code>
 8787                        <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>
 8788                    
 8789
 8790                    
 8791
 8792                    <div class="param-description">
 8793                        <p>The listener function or object.</p>
 8794
 8795                    </div>
 8796
 8797                    
 8798                </li>
 8799            
 8800                <li class="param">
 8801                    
 8802                        <code class="param-name optional">[useCapture]</code>
 8803                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8804                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8805                    
 8806
 8807                    
 8808
 8809                    <div class="param-description">
 8810                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
 8811
 8812                    </div>
 8813
 8814                    
 8815                </li>
 8816            
 8817            </ul>
 8818        </div>
 8819    
 8820
 8821    
 8822
 8823    
 8824</div>
 8825
 8826                
 8827                    <div id="method_set" class="method item inherited">
 8828    <h3 class="name"><code>set</code></h3>
 8829
 8830    
 8831        <div class="args">
 8832            <span class="paren">(</span><ul class="args-list inline commas">
 8833            
 8834                <li class="arg">
 8835                    
 8836                        <code>props</code>
 8837                    
 8838                </li>
 8839            
 8840            </ul><span class="paren">)</span>
 8841        </div>
 8842    
 8843
 8844    
 8845        <span class="returns-inline">
 8846            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 8847        </span>
 8848    
 8849
 8850    
 8851
 8852    
 8853
 8854    
 8855
 8856    
 8857
 8858    
 8859        <span class="flag chainable">chainable</span>
 8860    
 8861
 8862    
 8863
 8864    <div class="meta">
 8865        
 8866            
 8867                <p>Inherited from
 8868                <a href="../classes/DisplayObject.html#method_set">DisplayObject</a>:
 8869            
 8870        
 8871        
 8872        <a href="../files/easeljs_display_DisplayObject.js.html#l1071"><code>set:1071</code></a>
 8873        
 8874        </p>
 8875
 8876
 8877        
 8878
 8879        
 8880    </div>
 8881
 8882    <div class="description">
 8883        <p><p>Provides a chainable shortcut method for setting a number of properties on the instance.</p></p>
 8884<h4>Example</h4>
 8885
 8886<pre class="code prettyprint"><code> var myGraphics = new createjs.Graphics().beginFill("#ff0000").drawCircle(0, 0, 25);
 8887 var shape = stage.addChild(new Shape()).set({graphics:myGraphics, x:100, y:100, alpha:0.5});</code></pre>
 8888
 8889    </div>
 8890
 8891    
 8892        <div class="params">
 8893            <h4>Parameters:</h4>
 8894
 8895            <ul class="params-list">
 8896            
 8897                <li class="param">
 8898                    
 8899                        <code class="param-name">props</code>
 8900                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 8901                    
 8902
 8903                    
 8904
 8905                    <div class="param-description">
 8906                        <p>A generic object containing properties to copy to the DisplayObject instance.</p>
 8907
 8908                    </div>
 8909
 8910                    
 8911                </li>
 8912            
 8913            </ul>
 8914        </div>
 8915    
 8916
 8917    
 8918        <div class="returns">
 8919            <h4>Returns:</h4>
 8920
 8921            <div class="returns-description">
 8922                
 8923                    
 8924                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 8925                    
 8926                    <p>Returns the instance the method is called on (useful for chaining calls.)</p>
 8927
 8928                
 8929            </div>
 8930        </div>
 8931    
 8932
 8933    
 8934</div>
 8935
 8936                
 8937                    <div id="method_setBounds" class="method item inherited">
 8938    <h3 class="name"><code>setBounds</code></h3>
 8939
 8940    
 8941        <div class="args">
 8942            <span class="paren">(</span><ul class="args-list inline commas">
 8943            
 8944                <li class="arg">
 8945                    
 8946                        <code>x</code>
 8947                    
 8948                </li>
 8949            
 8950                <li class="arg">
 8951                    
 8952                        <code>y</code>
 8953                    
 8954                </li>
 8955            
 8956                <li class="arg">
 8957                    
 8958                        <code>width</code>
 8959                    
 8960                </li>
 8961            
 8962                <li class="arg">
 8963                    
 8964                        <code>height</code>
 8965                    
 8966                </li>
 8967            
 8968            </ul><span class="paren">)</span>
 8969        </div>
 8970    
 8971
 8972    
 8973
 8974    
 8975
 8976    
 8977
 8978    
 8979
 8980    
 8981
 8982    
 8983
 8984    
 8985
 8986    <div class="meta">
 8987        
 8988            
 8989                <p>Inherited from
 8990                <a href="../classes/DisplayObject.html#method_setBounds">DisplayObject</a>:
 8991            
 8992        
 8993        
 8994        <a href="../files/easeljs_display_DisplayObject.js.html#l1174"><code>setBounds:1174</code></a>
 8995        
 8996        </p>
 8997
 8998
 8999        
 9000
 9001        
 9002    </div>
 9003
 9004    <div class="description">
 9005        <p>Allows you to manually specify the bounds of an object that either cannot calculate their own bounds (ex. Shape &amp;
 9006Text) for future reference, or so the object can be included in Container bounds. Manually set bounds will always
 9007override calculated bounds.</p>
 9008<p>The bounds should be specified in the object&#39;s local (untransformed) coordinates. For example, a Shape instance
 9009with a 25px radius circle centered at 0,0 would have bounds of (-25, -25, 50, 50).</p>
 9010
 9011    </div>
 9012
 9013    
 9014        <div class="params">
 9015            <h4>Parameters:</h4>
 9016
 9017            <ul class="params-list">
 9018            
 9019                <li class="param">
 9020                    
 9021                        <code class="param-name">x</code>
 9022                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9023                    
 9024
 9025                    
 9026
 9027                    <div class="param-description">
 9028                        <p>The x origin of the bounds. Pass null to remove the manual bounds.</p>
 9029
 9030                    </div>
 9031
 9032                    
 9033                </li>
 9034            
 9035                <li class="param">
 9036                    
 9037                        <code class="param-name">y</code>
 9038                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9039                    
 9040
 9041                    
 9042
 9043                    <div class="param-description">
 9044                        <p>The y origin of the bounds.</p>
 9045
 9046                    </div>
 9047
 9048                    
 9049                </li>
 9050            
 9051                <li class="param">
 9052                    
 9053                        <code class="param-name">width</code>
 9054                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9055                    
 9056
 9057                    
 9058
 9059                    <div class="param-description">
 9060                        <p>The width of the bounds.</p>
 9061
 9062                    </div>
 9063
 9064                    
 9065                </li>
 9066            
 9067                <li class="param">
 9068                    
 9069                        <code class="param-name">height</code>
 9070                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9071                    
 9072
 9073                    
 9074
 9075                    <div class="param-description">
 9076                        <p>The height of the bounds.</p>
 9077
 9078                    </div>
 9079
 9080                    
 9081                </li>
 9082            
 9083            </ul>
 9084        </div>
 9085    
 9086
 9087    
 9088
 9089    
 9090</div>
 9091
 9092                
 9093                    <div id="method_setChildIndex" class="method item inherited">
 9094    <h3 class="name"><code>setChildIndex</code></h3>
 9095
 9096    
 9097        <div class="args">
 9098            <span class="paren">(</span><ul class="args-list inline commas">
 9099            
 9100                <li class="arg">
 9101                    
 9102                        <code>child</code>
 9103                    
 9104                </li>
 9105            
 9106                <li class="arg">
 9107                    
 9108                        <code>index</code>
 9109                    
 9110                </li>
 9111            
 9112            </ul><span class="paren">)</span>
 9113        </div>
 9114    
 9115
 9116    
 9117
 9118    
 9119
 9120    
 9121
 9122    
 9123
 9124    
 9125
 9126    
 9127
 9128    
 9129
 9130    <div class="meta">
 9131        
 9132            
 9133                <p>Inherited from
 9134                <a href="../classes/Container.html#method_setChildIndex">Container</a>:
 9135            
 9136        
 9137        
 9138        <a href="../files/easeljs_display_Container.js.html#l413"><code>setChildIndex:413</code></a>
 9139        
 9140        </p>
 9141
 9142
 9143        
 9144
 9145        
 9146    </div>
 9147
 9148    <div class="description">
 9149        <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>
 9150
 9151    </div>
 9152
 9153    
 9154        <div class="params">
 9155            <h4>Parameters:</h4>
 9156
 9157            <ul class="params-list">
 9158            
 9159                <li class="param">
 9160                    
 9161                        <code class="param-name">child</code>
 9162                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 9163                    
 9164
 9165                    
 9166
 9167                    <div class="param-description">
 9168                         
 9169                    </div>
 9170
 9171                    
 9172                </li>
 9173            
 9174                <li class="param">
 9175                    
 9176                        <code class="param-name">index</code>
 9177                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9178                    
 9179
 9180                    
 9181
 9182                    <div class="param-description">
 9183                         
 9184                    </div>
 9185
 9186                    
 9187                </li>
 9188            
 9189            </ul>
 9190        </div>
 9191    
 9192
 9193    
 9194
 9195    
 9196</div>
 9197
 9198                
 9199                    <div id="method_setTransform" class="method item inherited">
 9200    <h3 class="name"><code>setTransform</code></h3>
 9201
 9202    
 9203        <div class="args">
 9204            <span class="paren">(</span><ul class="args-list inline commas">
 9205            
 9206                <li class="arg">
 9207                    
 9208                        <code class="optional">[x=0]</code>
 9209                    
 9210                </li>
 9211            
 9212                <li class="arg">
 9213                    
 9214                        <code class="optional">[y=0]</code>
 9215                    
 9216                </li>
 9217            
 9218                <li class="arg">
 9219                    
 9220                        <code class="optional">[scaleX=1]</code>
 9221                    
 9222                </li>
 9223            
 9224                <li class="arg">
 9225                    
 9226                        <code class="optional">[scaleY=1]</code>
 9227                    
 9228                </li>
 9229            
 9230                <li class="arg">
 9231                    
 9232                        <code class="optional">[rotation=0]</code>
 9233                    
 9234                </li>
 9235            
 9236                <li class="arg">
 9237                    
 9238                        <code class="optional">[skewX=0]</code>
 9239                    
 9240                </li>
 9241            
 9242                <li class="arg">
 9243                    
 9244                        <code class="optional">[skewY=0]</code>
 9245                    
 9246                </li>
 9247            
 9248                <li class="arg">
 9249                    
 9250                        <code class="optional">[regX=0]</code>
 9251                    
 9252                </li>
 9253            
 9254                <li class="arg">
 9255                    
 9256                        <code class="optional">[regY=0]</code>
 9257                    
 9258                </li>
 9259            
 9260            </ul><span class="paren">)</span>
 9261        </div>
 9262    
 9263
 9264    
 9265        <span class="returns-inline">
 9266            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 9267        </span>
 9268    
 9269
 9270    
 9271
 9272    
 9273
 9274    
 9275
 9276    
 9277
 9278    
 9279        <span class="flag chainable">chainable</span>
 9280    
 9281
 9282    
 9283
 9284    <div class="meta">
 9285        
 9286            
 9287                <p>Inherited from
 9288                <a href="../classes/DisplayObject.html#method_setTransform">DisplayObject</a>:
 9289            
 9290        
 9291        
 9292        <a href="../files/easeljs_display_DisplayObject.js.html#l957"><code>setTransform:957</code></a>
 9293        
 9294        </p>
 9295
 9296
 9297        
 9298
 9299        
 9300    </div>
 9301
 9302    <div class="description">
 9303        <p><p>Shortcut method to quickly set the transform properties on the display object. All parameters are optional.
 9304Omitted parameters will have the default value set.</p></p>
 9305<h4>Example</h4>
 9306
 9307<pre class="code prettyprint"><code> displayObject.setTransform(100, 100, 2, 2);</code></pre>
 9308
 9309    </div>
 9310
 9311    
 9312        <div class="params">
 9313            <h4>Parameters:</h4>
 9314
 9315            <ul class="params-list">
 9316            
 9317                <li class="param">
 9318                    
 9319                        <code class="param-name optional">[x=0]</code>
 9320                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9321                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9322                    
 9323
 9324                    
 9325
 9326                    <div class="param-description">
 9327                        <p>The horizontal translation (x position) in pixels</p>
 9328
 9329                    </div>
 9330
 9331                    
 9332                </li>
 9333            
 9334                <li class="param">
 9335                    
 9336                        <code class="param-name optional">[y=0]</code>
 9337                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9338                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9339                    
 9340
 9341                    
 9342
 9343                    <div class="param-description">
 9344                        <p>The vertical translation (y position) in pixels</p>
 9345
 9346                    </div>
 9347
 9348                    
 9349                </li>
 9350            
 9351                <li class="param">
 9352                    
 9353                        <code class="param-name optional">[scaleX=1]</code>
 9354                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9355                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9356                    
 9357
 9358                    
 9359
 9360                    <div class="param-description">
 9361                        <p>The horizontal scale, as a percentage of 1</p>
 9362
 9363                    </div>
 9364
 9365                    
 9366                </li>
 9367            
 9368                <li class="param">
 9369                    
 9370                        <code class="param-name optional">[scaleY=1]</code>
 9371                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9372                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9373                    
 9374
 9375                    
 9376
 9377                    <div class="param-description">
 9378                        <p>the vertical scale, as a percentage of 1</p>
 9379
 9380                    </div>
 9381
 9382                    
 9383                </li>
 9384            
 9385                <li class="param">
 9386                    
 9387                        <code class="param-name optional">[rotation=0]</code>
 9388                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9389                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9390                    
 9391
 9392                    
 9393
 9394                    <div class="param-description">
 9395                        <p>The rotation, in degrees</p>
 9396
 9397                    </div>
 9398
 9399                    
 9400                </li>
 9401            
 9402                <li class="param">
 9403                    
 9404                        <code class="param-name optional">[skewX=0]</code>
 9405                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9406                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9407                    
 9408
 9409                    
 9410
 9411                    <div class="param-description">
 9412                        <p>The horizontal skew factor</p>
 9413
 9414                    </div>
 9415
 9416                    
 9417                </li>
 9418            
 9419                <li class="param">
 9420                    
 9421                        <code class="param-name optional">[skewY=0]</code>
 9422                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9423                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9424                    
 9425
 9426                    
 9427
 9428                    <div class="param-description">
 9429                        <p>The vertical skew factor</p>
 9430
 9431                    </div>
 9432
 9433                    
 9434                </li>
 9435            
 9436                <li class="param">
 9437                    
 9438                        <code class="param-name optional">[regX=0]</code>
 9439                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9440                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9441                    
 9442
 9443                    
 9444
 9445                    <div class="param-description">
 9446                        <p>The horizontal registration point in pixels</p>
 9447
 9448                    </div>
 9449
 9450                    
 9451                </li>
 9452            
 9453                <li class="param">
 9454                    
 9455                        <code class="param-name optional">[regY=0]</code>
 9456                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9457                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9458                    
 9459
 9460                    
 9461
 9462                    <div class="param-description">
 9463                        <p>The vertical registration point in pixels</p>
 9464
 9465                    </div>
 9466
 9467                    
 9468                </li>
 9469            
 9470            </ul>
 9471        </div>
 9472    
 9473
 9474    
 9475        <div class="returns">
 9476            <h4>Returns:</h4>
 9477
 9478            <div class="returns-description">
 9479                
 9480                    
 9481                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 9482                    
 9483                    <p>Returns this instance. Useful for chaining commands.</p>
 9484
 9485                
 9486            </div>
 9487        </div>
 9488    
 9489
 9490    
 9491</div>
 9492
 9493                
 9494                    <div id="method_sortChildren" class="method item inherited">
 9495    <h3 class="name"><code>sortChildren</code></h3>
 9496
 9497    
 9498        <div class="args">
 9499            <span class="paren">(</span><ul class="args-list inline commas">
 9500            
 9501                <li class="arg">
 9502                    
 9503                        <code>sortFunction</code>
 9504                    
 9505                </li>
 9506            
 9507            </ul><span class="paren">)</span>
 9508        </div>
 9509    
 9510
 9511    
 9512
 9513    
 9514
 9515    
 9516
 9517    
 9518
 9519    
 9520
 9521    
 9522
 9523    
 9524
 9525    <div class="meta">
 9526        
 9527            
 9528                <p>Inherited from
 9529                <a href="../classes/Container.html#method_sortChildren">Container</a>:
 9530            
 9531        
 9532        
 9533        <a href="../files/easeljs_display_Container.js.html#l343"><code>sortChildren:343</code></a>
 9534        
 9535        </p>
 9536
 9537
 9538        
 9539
 9540        
 9541    </div>
 9542
 9543    <div class="description">
 9544        <p><p>Performs an array sort operation on the child list.</p></p>
 9545<h4>Example: Display children with a higher y in front.</h4>
 9546
 9547<pre class="code prettyprint"><code> var sortFunction = function(obj1, obj2, options) {
 9548     if (obj1.y &gt; obj2.y) { return 1; }
 9549     if (obj1.y &lt; obj2.y) { return -1; }
 9550     return 0;
 9551 }
 9552 container.sortChildren(sortFunction);</code></pre>
 9553
 9554    </div>
 9555
 9556    
 9557        <div class="params">
 9558            <h4>Parameters:</h4>
 9559
 9560            <ul class="params-list">
 9561            
 9562                <li class="param">
 9563                    
 9564                        <code class="param-name">sortFunction</code>
 9565                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
 9566                    
 9567
 9568                    
 9569
 9570                    <div class="param-description">
 9571                        <p>the function to use to sort the child list. See JavaScript&#39;s <code>Array.sort</code>
 9572documentation for details.</p>
 9573
 9574                    </div>
 9575
 9576                    
 9577                </li>
 9578            
 9579            </ul>
 9580        </div>
 9581    
 9582
 9583    
 9584
 9585    
 9586</div>
 9587
 9588                
 9589                    <div id="method_swapChildren" class="method item inherited">
 9590    <h3 class="name"><code>swapChildren</code></h3>
 9591
 9592    
 9593        <div class="args">
 9594            <span class="paren">(</span><ul class="args-list inline commas">
 9595            
 9596                <li class="arg">
 9597                    
 9598                        <code>child1</code>
 9599                    
 9600                </li>
 9601            
 9602                <li class="arg">
 9603                    
 9604                        <code>child2</code>
 9605                    
 9606                </li>
 9607            
 9608            </ul><span class="paren">)</span>
 9609        </div>
 9610    
 9611
 9612    
 9613
 9614    
 9615
 9616    
 9617
 9618    
 9619
 9620    
 9621
 9622    
 9623
 9624    
 9625
 9626    <div class="meta">
 9627        
 9628            
 9629                <p>Inherited from
 9630                <a href="../classes/Container.html#method_swapChildren">Container</a>:
 9631            
 9632        
 9633        
 9634        <a href="../files/easeljs_display_Container.js.html#l393"><code>swapChildren:393</code></a>
 9635        
 9636        </p>
 9637
 9638
 9639        
 9640
 9641        
 9642    </div>
 9643
 9644    <div class="description">
 9645        <p>Swaps the specified children&#39;s depth in the display list. Fails silently if either child is not a child of this
 9646Container.</p>
 9647
 9648    </div>
 9649
 9650    
 9651        <div class="params">
 9652            <h4>Parameters:</h4>
 9653
 9654            <ul class="params-list">
 9655            
 9656                <li class="param">
 9657                    
 9658                        <code class="param-name">child1</code>
 9659                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 9660                    
 9661
 9662                    
 9663
 9664                    <div class="param-description">
 9665                         
 9666                    </div>
 9667
 9668                    
 9669                </li>
 9670            
 9671                <li class="param">
 9672                    
 9673                        <code class="param-name">child2</code>
 9674                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 9675                    
 9676
 9677                    
 9678
 9679                    <div class="param-description">
 9680                         
 9681                    </div>
 9682
 9683                    
 9684                </li>
 9685            
 9686            </ul>
 9687        </div>
 9688    
 9689
 9690    
 9691
 9692    
 9693</div>
 9694
 9695                
 9696                    <div id="method_swapChildrenAt" class="method item inherited">
 9697    <h3 class="name"><code>swapChildrenAt</code></h3>
 9698
 9699    
 9700        <div class="args">
 9701            <span class="paren">(</span><ul class="args-list inline commas">
 9702            
 9703                <li class="arg">
 9704                    
 9705                        <code>index1</code>
 9706                    
 9707                </li>
 9708            
 9709                <li class="arg">
 9710                    
 9711                        <code>index2</code>
 9712                    
 9713                </li>
 9714            
 9715            </ul><span class="paren">)</span>
 9716        </div>
 9717    
 9718
 9719    
 9720
 9721    
 9722
 9723    
 9724
 9725    
 9726
 9727    
 9728
 9729    
 9730
 9731    
 9732
 9733    <div class="meta">
 9734        
 9735            
 9736                <p>Inherited from
 9737                <a href="../classes/Container.html#method_swapChildrenAt">Container</a>:
 9738            
 9739        
 9740        
 9741        <a href="../files/easeljs_display_Container.js.html#l378"><code>swapChildrenAt:378</code></a>
 9742        
 9743        </p>
 9744
 9745
 9746        
 9747
 9748        
 9749    </div>
 9750
 9751    <div class="description">
 9752        <p>Swaps the children at the specified indexes. Fails silently if either index is out of range.</p>
 9753
 9754    </div>
 9755
 9756    
 9757        <div class="params">
 9758            <h4>Parameters:</h4>
 9759
 9760            <ul class="params-list">
 9761            
 9762                <li class="param">
 9763                    
 9764                        <code class="param-name">index1</code>
 9765                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9766                    
 9767
 9768                    
 9769
 9770                    <div class="param-description">
 9771                         
 9772                    </div>
 9773
 9774                    
 9775                </li>
 9776            
 9777                <li class="param">
 9778                    
 9779                        <code class="param-name">index2</code>
 9780                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9781                    
 9782
 9783                    
 9784
 9785                    <div class="param-description">
 9786                         
 9787                    </div>
 9788
 9789                    
 9790                </li>
 9791            
 9792            </ul>
 9793        </div>
 9794    
 9795
 9796    
 9797
 9798    
 9799</div>
 9800
 9801                
 9802                    <div id="method_tick" class="method item">
 9803    <h3 class="name"><code>tick</code></h3>
 9804
 9805    
 9806        <div class="args">
 9807            <span class="paren">(</span><ul class="args-list inline commas">
 9808            
 9809                <li class="arg">
 9810                    
 9811                        <code class="optional">[props]</code>
 9812                    
 9813                </li>
 9814            
 9815            </ul><span class="paren">)</span>
 9816        </div>
 9817    
 9818
 9819    
 9820
 9821    
 9822
 9823    
 9824
 9825    
 9826
 9827    
 9828
 9829    
 9830
 9831    
 9832
 9833    <div class="meta">
 9834        
 9835            
 9836                
 9837                <p>
 9838                
 9839                Defined in
 9840                
 9841            
 9842        
 9843        
 9844        <a href="../files/easeljs_display_Stage.js.html#l380"><code>tick:380</code></a>
 9845        
 9846        </p>
 9847
 9848
 9849        
 9850
 9851        
 9852    </div>
 9853
 9854    <div class="description">
 9855        <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>
 9856unless <a href="../classes/Stage.html#property_tickOnUpdate" class="crosslink">tickOnUpdate</a> is set to false.</p>
 9857<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
 9858propagated to listeners.</p>
 9859<p>Some time-based features in EaselJS (for example Sprite/framerate require that
 9860a <a href="../classes/Ticker.html#event_tick" class="crosslink">tick</a> event object (or equivalent object with a delta property) be
 9861passed as the <code>props</code> parameter to <code>tick()</code>. For example:</p>
 9862<pre class="code prettyprint"><code>Ticker.on("tick", handleTick);
 9863function handleTick(evtObj) {
 9864    // clone the event object from Ticker, and add some custom data to it:
 9865    var evt = evtObj.clone().set({greeting:"hello", name:"world"});
 9866
 9867    // pass it to stage.update():
 9868    myStage.update(evt); // subsequently calls tick() with the same param
 9869}
 9870
 9871// ...
 9872myDisplayObject.on("tick", handleDisplayObjectTick);
 9873function handleDisplayObjectTick(evt) {
 9874    console.log(evt.delta); // the delta property from the Ticker tick event object
 9875    console.log(evt.greeting, evt.name); // custom data: "hello world"
 9876}</code></pre>
 9877
 9878    </div>
 9879
 9880    
 9881        <div class="params">
 9882            <h4>Parameters:</h4>
 9883
 9884            <ul class="params-list">
 9885            
 9886                <li class="param">
 9887                    
 9888                        <code class="param-name optional">[props]</code>
 9889                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 9890                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9891                    
 9892
 9893                    
 9894
 9895                    <div class="param-description">
 9896                        <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>
 9897
 9898                    </div>
 9899
 9900                    
 9901                </li>
 9902            
 9903            </ul>
 9904        </div>
 9905    
 9906
 9907    
 9908
 9909    
 9910</div>
 9911
 9912                
 9913                    <div id="method_toDataURL" class="method item">
 9914    <h3 class="name"><code>toDataURL</code></h3>
 9915
 9916    
 9917        <div class="args">
 9918            <span class="paren">(</span><ul class="args-list inline commas">
 9919            
 9920                <li class="arg">
 9921                    
 9922                        <code class="optional">[backgroundColor]</code>
 9923                    
 9924                </li>
 9925            
 9926                <li class="arg">
 9927                    
 9928                        <code class="optional">[mimeType=&quot;image/png&quot;]</code>
 9929                    
 9930                </li>
 9931            
 9932            </ul><span class="paren">)</span>
 9933        </div>
 9934    
 9935
 9936    
 9937        <span class="returns-inline">
 9938            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 9939        </span>
 9940    
 9941
 9942    
 9943
 9944    
 9945
 9946    
 9947
 9948    
 9949
 9950    
 9951
 9952    
 9953
 9954    <div class="meta">
 9955        
 9956            
 9957                
 9958                <p>
 9959                
 9960                Defined in
 9961                
 9962            
 9963        
 9964        
 9965        <a href="../files/easeljs_display_Stage.js.html#l449"><code>toDataURL:449</code></a>
 9966        
 9967        </p>
 9968
 9969
 9970        
 9971
 9972        
 9973    </div>
 9974
 9975    <div class="description">
 9976        <p>Returns a data url that contains a Base64-encoded image of the contents of the stage. The returned data url can
 9977be specified as the src value of an image element.</p>
 9978
 9979    </div>
 9980
 9981    
 9982        <div class="params">
 9983            <h4>Parameters:</h4>
 9984
 9985            <ul class="params-list">
 9986            
 9987                <li class="param">
 9988                    
 9989                        <code class="param-name optional">[backgroundColor]</code>
 9990                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 9991                        <span class="flag optional" title="This parameter is optional.">optional</span>
 9992                    
 9993
 9994                    
 9995
 9996                    <div class="param-description">
 9997                        <p>The background color to be used for the generated image. Any valid CSS color
 9998value is allowed. The default value is a transparent background.</p>
 9999
10000                    </div>
10001
10002                    
10003                </li>
10004            
10005                <li class="param">
10006                    
10007                        <code class="param-name optional">[mimeType=&quot;image/png&quot;]</code>
10008                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
10009                        <span class="flag optional" title="This parameter is optional.">optional</span>
10010                    
10011
10012                    
10013
10014                    <div class="param-description">
10015                        <p>The MIME type of the image format to be create. The default is "image/png". If an unknown MIME type
10016is passed in, or if the browser does not support the specified MIME type, the default value will be used.</p>
10017
10018                    </div>
10019
10020                    
10021                </li>
10022            
10023            </ul>
10024        </div>
10025    
10026
10027    
10028        <div class="returns">
10029            <h4>Returns:</h4>
10030
10031            <div class="returns-description">
10032                
10033                    
10034                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
10035                    
10036                    <p>a Base64 encoded image.</p>
10037
10038                
10039            </div>
10040        </div>
10041    
10042
10043    
10044</div>
10045
10046                
10047                    <div id="method_toString" class="method item">
10048    <h3 class="name"><code>toString</code></h3>
10049
10050    
10051        <span class="paren">()</span>
10052    
10053
10054    
10055        <span class="returns-inline">
10056            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
10057        </span>
10058    
10059
10060    
10061
10062    
10063
10064    
10065
10066    
10067
10068    
10069
10070    
10071
10072    <div class="meta">
10073        
10074            <p>Inherited from
10075            <a href="../classes/EventDispatcher.html#method_toString">
10076                EventDispatcher
10077            </a>
10078            
10079            but overwritten in
10080            
10081        
10082        
10083        <a href="../files/easeljs_display_Stage.js.html#l560"><code>toString:560</code></a>
10084        
10085        </p>
10086
10087
10088        
10089
10090        
10091    </div>
10092
10093    <div class="description">
10094        <p>Returns a string representation of this object.</p>
10095
10096    </div>
10097
10098    
10099
10100    
10101        <div class="returns">
10102            <h4>Returns:</h4>
10103
10104            <div class="returns-description">
10105                
10106                    
10107                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
10108                    
10109                    <p>a string representation of the instance.</p>
10110
10111                
10112            </div>
10113        </div>
10114    
10115
10116    
10117</div>
10118
10119                
10120                    <div id="method_uncache" class="method item inherited">
10121    <h3 class="name"><code>uncache</code></h3>
10122
10123    
10124        <span class="paren">()</span>
10125    
10126
10127    
10128
10129    
10130
10131    
10132
10133    
10134
10135    
10136
10137    
10138
10139    
10140
10141    <div class="meta">
10142        
10143            
10144                <p>Inherited from
10145                <a href="../classes/DisplayObject.html#method_uncache">DisplayObject</a>:
10146            
10147        
10148        
10149        <a href="../files/easeljs_display_DisplayObject.js.html#l864"><code>uncache:864</code></a>
10150        
10151        </p>
10152
10153
10154        
10155
10156        
10157    </div>
10158
10159    <div class="description">
10160        <p>Clears the current cache. See <a href="../classes/DisplayObject.html#method_cache" class="crosslink">cache</a> for more information.</p>
10161
10162    </div>
10163
10164    
10165
10166    
10167
10168    
10169</div>
10170
10171                
10172                    <div id="method_update" class="method item">
10173    <h3 class="name"><code>update</code></h3>
10174
10175    
10176        <div class="args">
10177            <span class="paren">(</span><ul class="args-list inline commas">
10178            
10179                <li class="arg">
10180                    
10181                        <code class="optional">[props]</code>
10182                    
10183                </li>
10184            
10185            </ul><span class="paren">)</span>
10186        </div>
10187    
10188
10189    
10190
10191    
10192
10193    
10194
10195    
10196
10197    
10198
10199    
10200
10201    
10202
10203    <div class="meta">
10204        
10205            
10206                
10207                <p>
10208                
10209                Defined in
10210                
10211            
10212        
10213        
10214        <a href="../files/easeljs_display_Stage.js.html#l349"><code>update:349</code></a>
10215        
10216        </p>
10217
10218
10219        
10220
10221        
10222    </div>
10223
10224    <div class="description">
10225        <p>Each time the update method is called, the stage will call <a href="../classes/Stage.html#method_tick" class="crosslink">tick</a>
10226unless <a href="../classes/Stage.html#property_tickOnUpdate" class="crosslink">tickOnUpdate</a> is set to false,
10227and then render the display list to the canvas.</p>
10228
10229    </div>
10230
10231    
10232        <div class="params">
10233            <h4>Parameters:</h4>
10234
10235            <ul class="params-list">
10236            
10237                <li class="param">
10238                    
10239                        <code class="param-name optional">[props]</code>
10240                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
10241                        <span class="flag optional" title="This parameter is optional.">optional</span>
10242                    
10243
10244                    
10245
10246                    <div class="param-description">
10247                        <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>
10248
10249                    </div>
10250
10251                    
10252                </li>
10253            
10254            </ul>
10255        </div>
10256    
10257
10258    
10259
10260    
10261</div>
10262
10263                
10264                    <div id="method_updateCache" class="method item inherited">
10265    <h3 class="name"><code>updateCache</code></h3>
10266
10267    
10268        <div class="args">
10269            <span class="paren">(</span><ul class="args-list inline commas">
10270            
10271                <li class="arg">
10272                    
10273                        <code>compositeOperation</code>
10274                    
10275                </li>
10276            
10277            </ul><span class="paren">)</span>
10278        </div>
10279    
10280
10281    
10282
10283    
10284
10285    
10286
10287    
10288
10289    
10290
10291    
10292
10293    
10294
10295    <div class="meta">
10296        
10297            
10298                <p>Inherited from
10299                <a href="../classes/DisplayObject.html#method_updateCache">DisplayObject</a>:
10300            
10301        
10302        
10303        <a href="../files/easeljs_display_DisplayObject.js.html#l835"><code>updateCache:835</code></a>
10304        
10305        </p>
10306
10307
10308        
10309
10310        
10311    </div>
10312
10313    <div class="description">
10314        <p>Redraws the display object to its cache. Calling updateCache without an active cache will throw an error.
10315If compositeOperation is null the current cache will be cleared prior to drawing. Otherwise the display object
10316will be drawn over the existing cache using the specified compositeOperation.</p>
10317<p><h4>Example</h4>
10318Clear the current graphics of a cached shape, draw some new instructions, and then update the cache. The new line
10319will be drawn on top of the old one.</p>
10320<pre class="code prettyprint"><code> // Not shown: Creating the shape, and caching it.
10321 shapeInstance.clear();
10322 shapeInstance.setStrokeStyle(3).beginStroke("#ff0000").moveTo(100, 100).lineTo(200,200);
10323 shapeInstance.updateCache();</code></pre>
10324<p>In previous versions caching was handled on DisplayObject but has since been moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>.
10325This allows for easier interaction and alternate cache methods like WebGL and <a href="../classes/StageGL.html" class="crosslink">StageGL</a>.</p>
10326
10327    </div>
10328
10329    
10330        <div class="params">
10331            <h4>Parameters:</h4>
10332
10333            <ul class="params-list">
10334            
10335                <li class="param">
10336                    
10337                        <code class="param-name">compositeOperation</code>
10338                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
10339                    
10340
10341                    
10342
10343                    <div class="param-description">
10344                        <p>The compositeOperation to use, or null to clear the cache and redraw it.
10345<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
10346whatwg spec on compositing</a>.</p>
10347
10348                    </div>
10349
10350                    
10351                </li>
10352            
10353            </ul>
10354        </div>
10355    
10356
10357    
10358
10359    
10360</div>
10361
10362                
10363                    <div id="method_updateContext" class="method item inherited">
10364    <h3 class="name"><code>updateContext</code></h3>
10365
10366    
10367        <div class="args">
10368            <span class="paren">(</span><ul class="args-list inline commas">
10369            
10370                <li class="arg">
10371                    
10372                        <code>ctx</code>
10373                    
10374                </li>
10375            
10376            </ul><span class="paren">)</span>
10377        </div>
10378    
10379
10380    
10381
10382    
10383
10384    
10385
10386    
10387
10388    
10389
10390    
10391
10392    
10393
10394    <div class="meta">
10395        
10396            
10397                <p>Inherited from
10398                <a href="../classes/DisplayObject.html#method_updateContext">DisplayObject</a>:
10399            
10400        
10401        
10402        <a href="../files/easeljs_display_DisplayObject.js.html#l760"><code>updateContext:760</code></a>
10403        
10404        </p>
10405
10406
10407        
10408
10409        
10410    </div>
10411
10412    <div class="description">
10413        <p>Applies this display object&#39;s transformation, alpha, globalCompositeOperation, clipping path (mask), and shadow
10414to the specified context. This is typically called prior to <a href="../classes/DisplayObject.html#method_draw" class="crosslink">draw</a>.</p>
10415
10416    </div>
10417
10418    
10419        <div class="params">
10420            <h4>Parameters:</h4>
10421
10422            <ul class="params-list">
10423            
10424                <li class="param">
10425                    
10426                        <code class="param-name">ctx</code>
10427                        <span class="type">CanvasRenderingContext2D</span>
10428                    
10429
10430                    
10431
10432                    <div class="param-description">
10433                        <p>The canvas 2D to update.</p>
10434
10435                    </div>
10436
10437                    
10438                </li>
10439            
10440            </ul>
10441        </div>
10442    
10443
10444    
10445
10446    
10447</div>
10448
10449                
10450                    <div id="method_willTrigger" class="method item inherited">
10451    <h3 class="name"><code>willTrigger</code></h3>
10452
10453    
10454        <div class="args">
10455            <span class="paren">(</span><ul class="args-list inline commas">
10456            
10457                <li class="arg">
10458                    
10459                        <code>type</code>
10460                    
10461                </li>
10462            
10463            </ul><span class="paren">)</span>
10464        </div>
10465    
10466
10467    
10468        <span class="returns-inline">
10469            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
10470        </span>
10471    
10472
10473    
10474
10475    
10476
10477    
10478
10479    
10480
10481    
10482
10483    
10484
10485    <div class="meta">
10486        
10487            
10488                <p>Inherited from
10489                <a href="../classes/EventDispatcher.html#method_willTrigger">EventDispatcher</a>:
10490            
10491        
10492        
10493        <a href="../files/createjs_events_EventDispatcher.js.html#l350"><code>willTrigger:350</code></a>
10494        
10495        </p>
10496
10497
10498        
10499
10500        
10501    </div>
10502
10503    <div class="description">
10504        <p>Indicates whether there is at least one listener for the specified event type on this object or any of its
10505ancestors (parent, parent&#39;s parent, etc). A return value of true indicates that if a bubbling event of the
10506specified type is dispatched from this object, it will trigger at least one listener.</p>
10507<p>This is similar to <a href="../classes/EventDispatcher.html#method_hasEventListener" class="crosslink">hasEventListener</a>, but it searches the entire
10508event flow for a listener, not just this object.</p>
10509
10510    </div>
10511
10512    
10513        <div class="params">
10514            <h4>Parameters:</h4>
10515
10516            <ul class="params-list">
10517            
10518                <li class="param">
10519                    
10520                        <code class="param-name">type</code>
10521                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
10522                    
10523
10524                    
10525
10526                    <div class="param-description">
10527                        <p>The string type of the event.</p>
10528
10529                    </div>
10530
10531                    
10532                </li>
10533            
10534            </ul>
10535        </div>
10536    
10537
10538    
10539        <div class="returns">
10540            <h4>Returns:</h4>
10541
10542            <div class="returns-description">
10543                
10544                    
10545                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
10546                    
10547                    <p>Returns <code>true</code> if there is at least one listener for the specified event.</p>
10548
10549                
10550            </div>
10551        </div>
10552    
10553
10554    
10555</div>
10556
10557                
10558            </div>
10559        
10560
10561        
10562            <div id="properties" class="api-class-tabpanel">
10563                <h2 class="off-left">Properties</h2>
10564
10565                
10566                    <div id="property__bounds" class="property item protected inherited">
10567    <h3 class="name"><code>_bounds</code></h3>
10568    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
10569
10570    
10571
10572    
10573        <span class="flag protected">protected</span>
10574    
10575
10576    
10577
10578    
10579
10580    
10581
10582    <div class="meta">
10583        
10584            
10585                <p>Inherited from
10586                <a href="../classes/DisplayObject.html#property__bounds">DisplayObject</a>:
10587            
10588        
10589        
10590        <a href="../files/easeljs_display_DisplayObject.js.html#l443"><code>_bounds:443</code></a>
10591        
10592        </p>
10593
10594        
10595
10596        
10597    </div>
10598
10599    <div class="description">
10600        
10601    </div>
10602
10603    
10604        <p><strong>Default:</strong> null</p>
10605    
10606
10607    
10608
10609    
10610</div>
10611
10612                
10613                    <div id="property__cacheDataURL" class="property item protected deprecated inherited">
10614    <h3 class="name"><code>_cacheDataURL</code></h3>
10615    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
10616
10617    
10618        <span class="flag deprecated">deprecated</span>
10619    
10620
10621    
10622        <span class="flag protected">protected</span>
10623    
10624
10625    
10626
10627    
10628
10629    
10630
10631    <div class="meta">
10632        
10633            
10634                <p>Inherited from
10635                <a href="../classes/DisplayObject.html#property__cacheDataURL">DisplayObject</a>:
10636            
10637        
10638        
10639        <a href="../files/easeljs_display_DisplayObject.js.html#l418"><code>_cacheDataURL:418</code></a>
10640        
10641        </p>
10642
10643        
10644
10645        
10646    </div>
10647
10648    <div class="description">
10649        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
10650
10651    </div>
10652
10653    
10654        <p><strong>Default:</strong> null</p>
10655    
10656
10657    
10658
10659    
10660</div>
10661
10662                
10663                    <div id="property__cacheDataURLID" class="property item protected deprecated inherited">
10664    <h3 class="name"><code>_cacheDataURLID</code></h3>
10665    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10666
10667    
10668        <span class="flag deprecated">deprecated</span>
10669    
10670
10671    
10672        <span class="flag protected">protected</span>
10673    
10674
10675    
10676
10677    
10678
10679    
10680
10681    <div class="meta">
10682        
10683            
10684                <p>Inherited from
10685                <a href="../classes/DisplayObject.html#property__cacheDataURLID">DisplayObject</a>:
10686            
10687        
10688        
10689        <a href="../files/easeljs_display_DisplayObject.js.html#l409"><code>_cacheDataURLID:409</code></a>
10690        
10691        </p>
10692
10693        
10694
10695        
10696    </div>
10697
10698    <div class="description">
10699        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
10700
10701    </div>
10702
10703    
10704        <p><strong>Default:</strong> 0</p>
10705    
10706
10707    
10708
10709    
10710</div>
10711
10712                
10713                    <div id="property__cacheScale" class="property item protected deprecated inherited">
10714    <h3 class="name"><code>_cacheScale</code></h3>
10715    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10716
10717    
10718        <span class="flag deprecated">deprecated</span>
10719    
10720
10721    
10722        <span class="flag protected">protected</span>
10723    
10724
10725    
10726
10727    
10728
10729    
10730
10731    <div class="meta">
10732        
10733            
10734                <p>Inherited from
10735                <a href="../classes/DisplayObject.html#property__cacheScale">DisplayObject</a>:
10736            
10737        
10738        
10739        <a href="../files/easeljs_display_DisplayObject.js.html#l400"><code>_cacheScale:400</code></a>
10740        
10741        </p>
10742
10743        
10744
10745        
10746    </div>
10747
10748    <div class="description">
10749        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
10750
10751    </div>
10752
10753    
10754        <p><strong>Default:</strong> 1</p>
10755    
10756
10757    
10758
10759    
10760</div>
10761
10762                
10763                    <div id="property__captureListeners" class="property item protected inherited">
10764    <h3 class="name"><code>_captureListeners</code></h3>
10765    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
10766
10767    
10768
10769    
10770        <span class="flag protected">protected</span>
10771    
10772
10773    
10774
10775    
10776
10777    
10778
10779    <div class="meta">
10780        
10781            
10782                <p>Inherited from
10783                <a href="../classes/EventDispatcher.html#property__captureListeners">EventDispatcher</a>:
10784            
10785        
10786        
10787        <a href="../files/createjs_events_EventDispatcher.js.html#l106"><code>_captureListeners:106</code></a>
10788        
10789        </p>
10790
10791        
10792
10793        
10794    </div>
10795
10796    <div class="description">
10797        
10798    </div>
10799
10800    
10801
10802    
10803
10804    
10805</div>
10806
10807                
10808                    <div id="property__listeners" class="property item protected inherited">
10809    <h3 class="name"><code>_listeners</code></h3>
10810    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
10811
10812    
10813
10814    
10815        <span class="flag protected">protected</span>
10816    
10817
10818    
10819
10820    
10821
10822    
10823
10824    <div class="meta">
10825        
10826            
10827                <p>Inherited from
10828                <a href="../classes/EventDispatcher.html#property__listeners">EventDispatcher</a>:
10829            
10830        
10831        
10832        <a href="../files/createjs_events_EventDispatcher.js.html#l99"><code>_listeners:99</code></a>
10833        
10834        </p>
10835
10836        
10837
10838        
10839    </div>
10840
10841    <div class="description">
10842        
10843    </div>
10844
10845    
10846
10847    
10848
10849    
10850</div>
10851
10852                
10853                    <div id="property__mouseOverIntervalID" class="property item protected">
10854    <h3 class="name"><code>_mouseOverIntervalID</code></h3>
10855    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10856
10857    
10858
10859    
10860        <span class="flag protected">protected</span>
10861    
10862
10863    
10864
10865    
10866
10867    
10868
10869    <div class="meta">
10870        
10871            
10872                
10873                <p>
10874                
10875                Defined in
10876                
10877            
10878        
10879        
10880        <a href="../files/easeljs_display_Stage.js.html#l207"><code>_mouseOverIntervalID:207</code></a>
10881        
10882        </p>
10883
10884        
10885
10886        
10887    </div>
10888
10889    <div class="description">
10890        
10891    </div>
10892
10893    
10894
10895    
10896
10897    
10898</div>
10899
10900                
10901                    <div id="property__nextStage" class="property item protected">
10902    <h3 class="name"><code>_nextStage</code></h3>
10903    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
10904
10905    
10906
10907    
10908        <span class="flag protected">protected</span>
10909    
10910
10911    
10912
10913    
10914
10915    
10916
10917    <div class="meta">
10918        
10919            
10920                
10921                <p>
10922                
10923                Defined in
10924                
10925            
10926        
10927        
10928        <a href="../files/easeljs_display_Stage.js.html#l214"><code>_nextStage:214</code></a>
10929        
10930        </p>
10931
10932        
10933
10934        
10935    </div>
10936
10937    <div class="description">
10938        
10939    </div>
10940
10941    
10942
10943    
10944
10945    
10946</div>
10947
10948                
10949                    <div id="property__pointerCount" class="property item private">
10950    <h3 class="name"><code>_pointerCount</code></h3>
10951    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
10952
10953    
10954
10955    
10956        <span class="flag private">private</span>
10957    
10958
10959    
10960
10961    
10962
10963    
10964
10965    <div class="meta">
10966        
10967            
10968                
10969                <p>
10970                
10971                Defined in
10972                
10973            
10974        
10975        
10976        <a href="../files/easeljs_display_Stage.js.html#l191"><code>_pointerCount:191</code></a>
10977        
10978        </p>
10979
10980        
10981
10982        
10983    </div>
10984
10985    <div class="description">
10986        <p>Number of active pointers.</p>
10987
10988    </div>
10989
10990    
10991
10992    
10993
10994    
10995</div>
10996
10997                
10998                    <div id="property__pointerData" class="property item private">
10999    <h3 class="name"><code>_pointerData</code></h3>
11000    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
11001
11002    
11003
11004    
11005        <span class="flag private">private</span>
11006    
11007
11008    
11009
11010    
11011
11012    
11013
11014    <div class="meta">
11015        
11016            
11017                
11018                <p>
11019                
11020                Defined in
11021                
11022            
11023        
11024        
11025        <a href="../files/easeljs_display_Stage.js.html#l182"><code>_pointerData:182</code></a>
11026        
11027        </p>
11028
11029        
11030
11031        
11032    </div>
11033
11034    <div class="description">
11035        <p>Holds objects with data for each active pointer id. Each object has the following properties:
11036x, y, event, target, overTarget, overX, overY, inBounds, posEvtObj (native event that last updated position)</p>
11037
11038    </div>
11039
11040    
11041
11042    
11043
11044    
11045</div>
11046
11047                
11048                    <div id="property__prevStage" class="property item protected">
11049    <h3 class="name"><code>_prevStage</code></h3>
11050    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
11051
11052    
11053
11054    
11055        <span class="flag protected">protected</span>
11056    
11057
11058    
11059
11060    
11061
11062    
11063
11064    <div class="meta">
11065        
11066            
11067                
11068                <p>
11069                
11070                Defined in
11071                
11072            
11073        
11074        
11075        <a href="../files/easeljs_display_Stage.js.html#l221"><code>_prevStage:221</code></a>
11076        
11077        </p>
11078
11079        
11080
11081        
11082    </div>
11083
11084    <div class="description">
11085        
11086    </div>
11087
11088    
11089
11090    
11091
11092    
11093</div>
11094
11095                
11096                    <div id="property__primaryPointerID" class="property item private">
11097    <h3 class="name"><code>_primaryPointerID</code></h3>
11098    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
11099
11100    
11101
11102    
11103        <span class="flag private">private</span>
11104    
11105
11106    
11107
11108    
11109
11110    
11111
11112    <div class="meta">
11113        
11114            
11115                
11116                <p>
11117                
11118                Defined in
11119                
11120            
11121        
11122        
11123        <a href="../files/easeljs_display_Stage.js.html#l199"><code>_primaryPointerID:199</code></a>
11124        
11125        </p>
11126
11127        
11128
11129        
11130    </div>
11131
11132    <div class="description">
11133        <p>The ID of the primary pointer.</p>
11134
11135    </div>
11136
11137    
11138
11139    
11140
11141    
11142</div>
11143
11144                
11145                    <div id="property__props" class="property item protected inherited">
11146    <h3 class="name"><code>_props</code></h3>
11147    <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
11148
11149    
11150
11151    
11152        <span class="flag protected">protected</span>
11153    
11154
11155    
11156
11157    
11158
11159    
11160
11161    <div class="meta">
11162        
11163            
11164                <p>Inherited from
11165                <a href="../classes/DisplayObject.html#property__props">DisplayObject</a>:
11166            
11167        
11168        
11169        <a href="../files/easeljs_display_DisplayObject.js.html#l427"><code>_props:427</code></a>
11170        
11171        </p>
11172
11173        
11174
11175        
11176    </div>
11177
11178    <div class="description">
11179        
11180    </div>
11181
11182    
11183        <p><strong>Default:</strong> null</p>
11184    
11185
11186    
11187
11188    
11189</div>
11190
11191                
11192                    <div id="property__rectangle" class="property item protected inherited">
11193    <h3 class="name"><code>_rectangle</code></h3>
11194    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
11195
11196    
11197
11198    
11199        <span class="flag protected">protected</span>
11200    
11201
11202    
11203
11204    
11205
11206    
11207
11208    <div class="meta">
11209        
11210            
11211                <p>Inherited from
11212                <a href="../classes/DisplayObject.html#property__rectangle">DisplayObject</a>:
11213            
11214        
11215        
11216        <a href="../files/easeljs_display_DisplayObject.js.html#l435"><code>_rectangle:435</code></a>
11217        
11218        </p>
11219
11220        
11221
11222        
11223    </div>
11224
11225    <div class="description">
11226        
11227    </div>
11228
11229    
11230        <p><strong>Default:</strong> null</p>
11231    
11232
11233    
11234
11235    
11236</div>
11237
11238                
11239                    <div id="property__webGLRenderStyle" class="property item protected inherited">
11240    <h3 class="name"><code>_webGLRenderStyle</code></h3>
11241    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11242
11243    
11244
11245    
11246        <span class="flag protected">protected</span>
11247    
11248
11249    
11250
11251    
11252
11253    
11254
11255    <div class="meta">
11256        
11257            
11258                <p>Inherited from
11259                <a href="../classes/DisplayObject.html#property__webGLRenderStyle">DisplayObject</a>:
11260            
11261        
11262        
11263        <a href="../files/easeljs_display_DisplayObject.js.html#l451"><code>_webGLRenderStyle:451</code></a>
11264        
11265        </p>
11266
11267        
11268
11269        
11270    </div>
11271
11272    <div class="description">
11273        <p>Where StageGL should look for required display properties, matters only for leaf display objects. Containers
11274or cached objects won&#39;t use this property, it&#39;s for native display of terminal elements.</p>
11275
11276    </div>
11277
11278    
11279        <p><strong>Default:</strong> 0</p>
11280    
11281
11282    
11283
11284    
11285</div>
11286
11287                
11288                    <div id="property_alpha" class="property item inherited">
11289    <h3 class="name"><code>alpha</code></h3>
11290    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11291
11292    
11293
11294    
11295
11296    
11297
11298    
11299
11300    
11301
11302    <div class="meta">
11303        
11304            
11305                <p>Inherited from
11306                <a href="../classes/DisplayObject.html#property_alpha">DisplayObject</a>:
11307            
11308        
11309        
11310        <a href="../files/easeljs_display_DisplayObject.js.html#l144"><code>alpha:144</code></a>
11311        
11312        </p>
11313
11314        
11315
11316        
11317    </div>
11318
11319    <div class="description">
11320        <p>The alpha (transparency) for this display object. 0 is fully transparent, 1 is fully opaque.</p>
11321
11322    </div>
11323
11324    
11325        <p><strong>Default:</strong> 1</p>
11326    
11327
11328    
11329
11330    
11331</div>
11332
11333                
11334                    <div id="property_autoClear" class="property item">
11335    <h3 class="name"><code>autoClear</code></h3>
11336    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
11337
11338    
11339
11340    
11341
11342    
11343
11344    
11345
11346    
11347
11348    <div class="meta">
11349        
11350            
11351                
11352                <p>
11353                
11354                Defined in
11355                
11356            
11357        
11358        
11359        <a href="../files/easeljs_display_Stage.js.html#l69"><code>autoClear:69</code></a>
11360        
11361        </p>
11362
11363        
11364
11365        
11366    </div>
11367
11368    <div class="description">
11369        <p>Indicates whether the stage should automatically clear the canvas before each render. You can set this to <code>false</code>
11370to manually control clearing (for generative art, or when pointing multiple stages at the same canvas for
11371example).</p>
11372<h4>Example</h4>
11373
11374<pre class="code prettyprint"><code> var stage = new createjs.Stage("canvasId");
11375 stage.autoClear = false;</code></pre>
11376
11377    </div>
11378
11379    
11380        <p><strong>Default:</strong> true</p>
11381    
11382
11383    
11384
11385    
11386</div>
11387
11388                
11389                    <div id="property_bitmapCache" class="property item inherited">
11390    <h3 class="name"><code>bitmapCache</code></h3>
11391    <span class="type"><a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></span>
11392
11393    
11394
11395    
11396
11397    
11398
11399    
11400
11401    
11402        <span class="flag readonly">readonly</span>
11403    
11404
11405    <div class="meta">
11406        
11407            
11408                <p>Inherited from
11409                <a href="../classes/DisplayObject.html#property_bitmapCache">DisplayObject</a>:
11410            
11411        
11412        
11413        <a href="../files/easeljs_display_DisplayObject.js.html#l162"><code>bitmapCache:162</code></a>
11414        
11415        </p>
11416
11417        
11418
11419        
11420    </div>
11421
11422    <div class="description">
11423        <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>
11424for more information. Use this to control, inspect, and change the cache. In special circumstances this may be a modified or subclassed BitmapCache.</p>
11425
11426    </div>
11427
11428    
11429        <p><strong>Default:</strong> null</p>
11430    
11431
11432    
11433
11434    
11435</div>
11436
11437                
11438                    <div id="property_cacheCanvas" class="property item inherited">
11439    <h3 class="name"><code>cacheCanvas</code></h3>
11440    <span class="type">HTMLCanvasElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
11441
11442    
11443
11444    
11445
11446    
11447
11448    
11449
11450    
11451        <span class="flag readonly">readonly</span>
11452    
11453
11454    <div class="meta">
11455        
11456            
11457                <p>Inherited from
11458                <a href="../classes/DisplayObject.html#property_cacheCanvas">DisplayObject</a>:
11459            
11460        
11461        
11462        <a href="../files/easeljs_display_DisplayObject.js.html#l152"><code>cacheCanvas:152</code></a>
11463        
11464        </p>
11465
11466        
11467
11468        
11469    </div>
11470
11471    <div class="description">
11472        <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>
11473for 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>
11474
11475    </div>
11476
11477    
11478        <p><strong>Default:</strong> null</p>
11479    
11480
11481    
11482
11483    
11484</div>
11485
11486                
11487                    <div id="property_cacheID" class="property item deprecated inherited">
11488    <h3 class="name"><code>cacheID</code></h3>
11489    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11490
11491    
11492        <span class="flag deprecated">deprecated</span>
11493    
11494
11495    
11496
11497    
11498
11499    
11500
11501    
11502
11503    <div class="meta">
11504        
11505            
11506                <p>Inherited from
11507                <a href="../classes/DisplayObject.html#property_cacheID">DisplayObject</a>:
11508            
11509        
11510        
11511        <a href="../files/easeljs_display_DisplayObject.js.html#l695"><code>cacheID:695</code></a>
11512        
11513        </p>
11514
11515        
11516
11517        
11518    </div>
11519
11520    <div class="description">
11521        <p>Returns an ID number that uniquely identifies the current cache for this display object. This can be used to
11522determine if the cache has changed since a previous check.
11523Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
11524
11525    </div>
11526
11527    
11528        <p><strong>Default:</strong> 0</p>
11529    
11530
11531    
11532
11533    
11534</div>
11535
11536                
11537                    <div id="property_canvas" class="property item">
11538    <h3 class="name"><code>canvas</code></h3>
11539    <span class="type">HTMLCanvasElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
11540
11541    
11542
11543    
11544
11545    
11546
11547    
11548
11549    
11550
11551    <div class="meta">
11552        
11553            
11554                
11555                <p>
11556                
11557                Defined in
11558                
11559            
11560        
11561        
11562        <a href="../files/easeljs_display_Stage.js.html#l85"><code>canvas:85</code></a>
11563        
11564        </p>
11565
11566        
11567
11568        
11569    </div>
11570
11571    <div class="description">
11572        <p>The canvas the stage will render to. Multiple stages can share a single canvas, but you must disable autoClear for all but the
11573first stage that will be ticked (or they will clear each other&#39;s render).</p>
11574<p>When changing the canvas property you must disable the events on the old canvas, and enable events on the
11575new canvas or mouse events will not work as expected. For example:</p>
11576<pre class="code prettyprint"><code> myStage.enableDOMEvents(false);
11577 myStage.canvas = anotherCanvas;
11578 myStage.enableDOMEvents(true);</code></pre>
11579
11580    </div>
11581
11582    
11583
11584    
11585
11586    
11587</div>
11588
11589                
11590                    <div id="property_children" class="property item inherited">
11591    <h3 class="name"><code>children</code></h3>
11592    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
11593
11594    
11595
11596    
11597
11598    
11599
11600    
11601
11602    
11603
11604    <div class="meta">
11605        
11606            
11607                <p>Inherited from
11608                <a href="../classes/Container.html#property_children">Container</a>:
11609            
11610        
11611        
11612        <a href="../files/easeljs_display_Container.js.html#l62"><code>children:62</code></a>
11613        
11614        </p>
11615
11616        
11617
11618        
11619    </div>
11620
11621    <div class="description">
11622        <p>The array of children in the display list. You should usually use the child management methods such as
11623<a href="../classes/Container.html#method_addChild" class="crosslink">addChild</a>, <a href="../classes/Container.html#method_removeChild" class="crosslink">removeChild</a>,
11624<a href="../classes/Container.html#method_swapChildren" class="crosslink">swapChildren</a>, etc, rather than accessing this directly, but it is
11625included for advanced uses.</p>
11626
11627    </div>
11628
11629    
11630        <p><strong>Default:</strong> null</p>
11631    
11632
11633    
11634
11635    
11636</div>
11637
11638                
11639                    <div id="property_compositeOperation" class="property item inherited">
11640    <h3 class="name"><code>compositeOperation</code></h3>
11641    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
11642
11643    
11644
11645    
11646
11647    
11648
11649    
11650
11651    
11652
11653    <div class="meta">
11654        
11655            
11656                <p>Inherited from
11657                <a href="../classes/DisplayObject.html#property_compositeOperation">DisplayObject</a>:
11658            
11659        
11660        
11661        <a href="../files/easeljs_display_DisplayObject.js.html#l330"><code>compositeOperation:330</code></a>
11662        
11663        </p>
11664
11665        
11666
11667        
11668    </div>
11669
11670    <div class="description">
11671        <p>The composite operation indicates how the pixels of this display object will be composited with the elements
11672behind it. If <code>null</code>, this property is inherited from the parent container. For more information, read the
11673<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
11674whatwg spec on compositing</a>. For a list of supported compositeOperation value, visit
11675<a href="https://drafts.fxtf.org/compositing/">the W3C draft on Compositing and Blending</a>.</p>
11676
11677    </div>
11678
11679    
11680        <p><strong>Default:</strong> null</p>
11681    
11682
11683    
11684
11685    
11686</div>
11687
11688                
11689                    <div id="property_cursor" class="property item inherited">
11690    <h3 class="name"><code>cursor</code></h3>
11691    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
11692
11693    
11694
11695    
11696
11697    
11698
11699    
11700
11701    
11702
11703    <div class="meta">
11704        
11705            
11706                <p>Inherited from
11707                <a href="../classes/DisplayObject.html#property_cursor">DisplayObject</a>:
11708            
11709        
11710        
11711        <a href="../files/easeljs_display_DisplayObject.js.html#l388"><code>cursor:388</code></a>
11712        
11713        </p>
11714
11715        
11716
11717        
11718    </div>
11719
11720    <div class="description">
11721        <p>A CSS cursor (ex. "pointer", "help", "text", etc) that will be displayed when the user hovers over this display
11722object. You must enable mouseover events using the <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a> method to
11723use this property. Setting a non-null cursor on a Container will override the cursor set on its descendants.</p>
11724
11725    </div>
11726
11727    
11728        <p><strong>Default:</strong> null</p>
11729    
11730
11731    
11732
11733    
11734</div>
11735
11736                
11737                    <div id="property_drawRect" class="property item">
11738    <h3 class="name"><code>drawRect</code></h3>
11739    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
11740
11741    
11742
11743    
11744
11745    
11746
11747    
11748
11749    
11750
11751    <div class="meta">
11752        
11753            
11754                
11755                <p>
11756                
11757                Defined in
11758                
11759            
11760        
11761        
11762        <a href="../files/easeljs_display_Stage.js.html#l119"><code>drawRect:119</code></a>
11763        
11764        </p>
11765
11766        
11767
11768        
11769    </div>
11770
11771    <div class="description">
11772        <p>Specifies the area of the stage to affect when calling update. This can be use to selectively
11773re-draw specific regions of the canvas. If null, the whole canvas area is drawn.</p>
11774
11775    </div>
11776
11777    
11778
11779    
11780
11781    
11782</div>
11783
11784                
11785                    <div id="property_filters" class="property item inherited">
11786    <h3 class="name"><code>filters</code></h3>
11787    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
11788
11789    
11790
11791    
11792
11793    
11794
11795    
11796
11797    
11798
11799    <div class="meta">
11800        
11801            
11802                <p>Inherited from
11803                <a href="../classes/DisplayObject.html#property_filters">DisplayObject</a>:
11804            
11805        
11806        
11807        <a href="../files/easeljs_display_DisplayObject.js.html#l352"><code>filters:352</code></a>
11808        
11809        </p>
11810
11811        
11812
11813        
11814    </div>
11815
11816    <div class="description">
11817        <p>An array of Filter objects to apply to this display object. Filters are only applied / updated when Cache
11818or UpdateCache is called on the display object, and only apply to the area that is
11819cached.</p>
11820
11821    </div>
11822
11823    
11824        <p><strong>Default:</strong> null</p>
11825    
11826
11827    
11828
11829    
11830</div>
11831
11832                
11833                    <div id="property_handleEvent" class="property item">
11834    <h3 class="name"><code>handleEvent</code></h3>
11835    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
11836
11837    
11838
11839    
11840
11841    
11842
11843    
11844
11845    
11846
11847    <div class="meta">
11848        
11849            
11850                
11851                <p>
11852                
11853                Defined in
11854                
11855            
11856        
11857        
11858        <a href="../files/easeljs_display_Stage.js.html#l422"><code>handleEvent:422</code></a>
11859        
11860        </p>
11861
11862        
11863
11864        
11865    </div>
11866
11867    <div class="description">
11868        <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>
11869event is received. This allows you to register a Stage instance as a event listener on <a href="../classes/Ticker.html" class="crosslink">Ticker</a>
11870directly, using:</p>
11871<pre class="code prettyprint"><code> Ticker.addEventListener("tick", myStage);</code></pre>
11872<p>Note that if you subscribe to ticks using this pattern, then the tick event object will be passed through to
11873display object tick handlers, instead of <code>delta</code> and <code>paused</code> parameters.</p>
11874
11875    </div>
11876
11877    
11878
11879    
11880
11881    
11882</div>
11883
11884                
11885                    <div id="property_hitArea" class="property item">
11886    <h3 class="name"><code>hitArea</code></h3>
11887    <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
11888
11889    
11890
11891    
11892
11893    
11894
11895    
11896
11897    
11898
11899    <div class="meta">
11900        
11901            <p>Inherited from
11902            <a href="../classes/DisplayObject.html#property_hitArea">
11903                DisplayObject
11904            </a>
11905            
11906            but overwritten in
11907            
11908        
11909        
11910        <a href="../files/easeljs_display_Stage.js.html#l173"><code>hitArea:173</code></a>
11911        
11912        </p>
11913
11914        
11915
11916        
11917    </div>
11918
11919    <div class="description">
11920        <p>The hitArea property is not supported for Stage.</p>
11921
11922    </div>
11923
11924    
11925        <p><strong>Default:</strong> null</p>
11926    
11927
11928    
11929
11930    
11931</div>
11932
11933                
11934                    <div id="property_id" class="property item inherited">
11935    <h3 class="name"><code>id</code></h3>
11936    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11937
11938    
11939
11940    
11941
11942    
11943
11944    
11945
11946    
11947
11948    <div class="meta">
11949        
11950            
11951                <p>Inherited from
11952                <a href="../classes/DisplayObject.html#property_id">DisplayObject</a>:
11953            
11954        
11955        
11956        <a href="../files/easeljs_display_DisplayObject.js.html#l172"><code>id:172</code></a>
11957        
11958        </p>
11959
11960        
11961
11962        
11963    </div>
11964
11965    <div class="description">
11966        <p>Unique ID for this display object. Makes display objects easier for some uses.</p>
11967
11968    </div>
11969
11970    
11971        <p><strong>Default:</strong> -1</p>
11972    
11973
11974    
11975
11976    
11977</div>
11978
11979                
11980                    <div id="property_mask" class="property item inherited">
11981    <h3 class="name"><code>mask</code></h3>
11982    <span class="type"><a href="../classes/Shape.html" class="crosslink">Shape</a></span>
11983
11984    
11985
11986    
11987
11988    
11989
11990    
11991
11992    
11993
11994    <div class="meta">
11995        
11996            
11997                <p>Inherited from
11998                <a href="../classes/DisplayObject.html#property_mask">DisplayObject</a>:
11999            
12000        
12001        
12002        <a href="../files/easeljs_display_DisplayObject.js.html#l362"><code>mask:362</code></a>
12003        
12004        </p>
12005
12006        
12007
12008        
12009    </div>
12010
12011    <div class="description">
12012        <p>A Shape instance that defines a vector mask (clipping path) for this display object.  The shape&#39;s transformation
12013will be applied relative to the display object&#39;s parent coordinates (as if it were a child of the parent).</p>
12014
12015    </div>
12016
12017    
12018        <p><strong>Default:</strong> null</p>
12019    
12020
12021    
12022
12023    
12024</div>
12025
12026                
12027                    <div id="property_mouseChildren" class="property item inherited">
12028    <h3 class="name"><code>mouseChildren</code></h3>
12029    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12030
12031    
12032
12033    
12034
12035    
12036
12037    
12038
12039    
12040
12041    <div class="meta">
12042        
12043            
12044                <p>Inherited from
12045                <a href="../classes/Container.html#property_mouseChildren">Container</a>:
12046            
12047        
12048        
12049        <a href="../files/easeljs_display_Container.js.html#l73"><code>mouseChildren:73</code></a>
12050        
12051        </p>
12052
12053        
12054
12055        
12056    </div>
12057
12058    <div class="description">
12059        <p>Indicates whether the children of this container are independently enabled for mouse/pointer interaction.
12060If false, the children will be aggregated under the container - for example, a click on a child shape would
12061trigger a click event on the container.</p>
12062
12063    </div>
12064
12065    
12066        <p><strong>Default:</strong> true</p>
12067    
12068
12069    
12070
12071    
12072</div>
12073
12074                
12075                    <div id="property_mouseEnabled" class="property item inherited">
12076    <h3 class="name"><code>mouseEnabled</code></h3>
12077    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12078
12079    
12080
12081    
12082
12083    
12084
12085    
12086
12087    
12088
12089    <div class="meta">
12090        
12091            
12092                <p>Inherited from
12093                <a href="../classes/DisplayObject.html#property_mouseEnabled">DisplayObject</a>:
12094            
12095        
12096        
12097        <a href="../files/easeljs_display_DisplayObject.js.html#l180"><code>mouseEnabled:180</code></a>
12098        
12099        </p>
12100
12101        
12102
12103        
12104    </div>
12105
12106    <div class="description">
12107        <p>Indicates whether to include this object when running mouse interactions. Setting this to <code>false</code> for children
12108of a <a href="../classes/Container.html" class="crosslink">Container</a> will cause events on the Container to not fire when that child is
12109clicked. Setting this property to <code>false</code> does not prevent the <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>
12110method from returning the child.</p>
12111<p><strong>Note:</strong> In EaselJS 0.7.0, the mouseEnabled property will not work properly with nested Containers. Please
12112check 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
12113provided in the next release of EaselJS.</p>
12114
12115    </div>
12116
12117    
12118        <p><strong>Default:</strong> true</p>
12119    
12120
12121    
12122
12123    
12124</div>
12125
12126                
12127                    <div id="property_mouseInBounds" class="property item">
12128    <h3 class="name"><code>mouseInBounds</code></h3>
12129    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12130
12131    
12132
12133    
12134
12135    
12136
12137    
12138
12139    
12140
12141    <div class="meta">
12142        
12143            
12144                
12145                <p>
12146                
12147                Defined in
12148                
12149            
12150        
12151        
12152        <a href="../files/easeljs_display_Stage.js.html#l137"><code>mouseInBounds:137</code></a>
12153        
12154        </p>
12155
12156        
12157
12158        
12159    </div>
12160
12161    <div class="description">
12162        <p>Indicates whether the mouse is currently within the bounds of the canvas.</p>
12163
12164    </div>
12165
12166    
12167        <p><strong>Default:</strong> false</p>
12168    
12169
12170    
12171
12172    
12173</div>
12174
12175                
12176                    <div id="property_mouseMoveOutside" class="property item">
12177    <h3 class="name"><code>mouseMoveOutside</code></h3>
12178    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12179
12180    
12181
12182    
12183
12184    
12185
12186    
12187
12188    
12189
12190    <div class="meta">
12191        
12192            
12193                
12194                <p>
12195                
12196                Defined in
12197                
12198            
12199        
12200        
12201        <a href="../files/easeljs_display_Stage.js.html#l153"><code>mouseMoveOutside:153</code></a>
12202        
12203        </p>
12204
12205        
12206
12207        
12208    </div>
12209
12210    <div class="description">
12211        <p>If true, mouse move events will continue to be called when the mouse leaves the target canvas. See
12212<a href="../classes/Stage.html#property_mouseInBounds" class="crosslink">mouseInBounds</a>, and <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a>
12213x/y/rawX/rawY.</p>
12214
12215    </div>
12216
12217    
12218        <p><strong>Default:</strong> false</p>
12219    
12220
12221    
12222
12223    
12224</div>
12225
12226                
12227                    <div id="property_mouseX" class="property item">
12228    <h3 class="name"><code>mouseX</code></h3>
12229    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12230
12231    
12232
12233    
12234
12235    
12236
12237    
12238
12239    
12240        <span class="flag readonly">readonly</span>
12241    
12242
12243    <div class="meta">
12244        
12245            
12246                
12247                <p>
12248                
12249                Defined in
12250                
12251            
12252        
12253        
12254        <a href="../files/easeljs_display_Stage.js.html#l101"><code>mouseX:101</code></a>
12255        
12256        </p>
12257
12258        
12259
12260        
12261    </div>
12262
12263    <div class="description">
12264        <p>The current mouse X position on the canvas. If the mouse leaves the canvas, this will indicate the most recent
12265position over the canvas, and mouseInBounds will be set to false.</p>
12266
12267    </div>
12268
12269    
12270
12271    
12272
12273    
12274</div>
12275
12276                
12277                    <div id="property_mouseY" class="property item">
12278    <h3 class="name"><code>mouseY</code></h3>
12279    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12280
12281    
12282
12283    
12284
12285    
12286
12287    
12288
12289    
12290        <span class="flag readonly">readonly</span>
12291    
12292
12293    <div class="meta">
12294        
12295            
12296                
12297                <p>
12298                
12299                Defined in
12300                
12301            
12302        
12303        
12304        <a href="../files/easeljs_display_Stage.js.html#l110"><code>mouseY:110</code></a>
12305        
12306        </p>
12307
12308        
12309
12310        
12311    </div>
12312
12313    <div class="description">
12314        <p>The current mouse Y position on the canvas. If the mouse leaves the canvas, this will indicate the most recent
12315position over the canvas, and mouseInBounds will be set to false.</p>
12316
12317    </div>
12318
12319    
12320
12321    
12322
12323    
12324</div>
12325
12326                
12327                    <div id="property_name" class="property item inherited">
12328    <h3 class="name"><code>name</code></h3>
12329    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
12330
12331    
12332
12333    
12334
12335    
12336
12337    
12338
12339    
12340
12341    <div class="meta">
12342        
12343            
12344                <p>Inherited from
12345                <a href="../classes/DisplayObject.html#property_name">DisplayObject</a>:
12346            
12347        
12348        
12349        <a href="../files/easeljs_display_DisplayObject.js.html#l205"><code>name:205</code></a>
12350        
12351        </p>
12352
12353        
12354
12355        
12356    </div>
12357
12358    <div class="description">
12359        <p>An optional name for this display object. Included in <a href="../classes/DisplayObject.html#method_toString" class="crosslink">toString</a> . Useful for
12360debugging.</p>
12361
12362    </div>
12363
12364    
12365        <p><strong>Default:</strong> null</p>
12366    
12367
12368    
12369
12370    
12371</div>
12372
12373                
12374                    <div id="property_nextStage" class="property item">
12375    <h3 class="name"><code>nextStage</code></h3>
12376    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
12377
12378    
12379
12380    
12381
12382    
12383
12384    
12385
12386    
12387
12388    <div class="meta">
12389        
12390            
12391                
12392                <p>
12393                
12394                Defined in
12395                
12396            
12397        
12398        
12399        <a href="../files/easeljs_display_Stage.js.html#l302"><code>nextStage:302</code></a>
12400        
12401        </p>
12402
12403        
12404
12405        
12406    </div>
12407
12408    <div class="description">
12409        <p>Specifies a target stage that will have mouse / touch interactions relayed to it after this stage handles them.
12410This can be useful in cases where you have multiple layered canvases and want user interactions
12411events to pass through. For example, this would relay mouse events from topStage to bottomStage:</p>
12412<pre class="code prettyprint"><code> topStage.nextStage = bottomStage;</code></pre>
12413<p>To disable relaying, set nextStage to null.</p>
12414<p>MouseOver, MouseOut, RollOver, and RollOut interactions are also passed through using the mouse over settings
12415of the top-most stage, but are only processed if the target stage has mouse over interactions enabled.
12416Considerations when using roll over in relay targets:<OL></p>
12417<p><LI> The top-most (first) stage must have mouse over interactions enabled (via enableMouseOver)</LI></p>
12418<p><LI> All stages that wish to participate in mouse over interaction must enable them via enableMouseOver</LI></p>
12419<p><LI> All relay targets will share the frequency value of the top-most stage</LI>
12420</OL>
12421To illustrate, in this example the targetStage would process mouse over interactions at 10hz (despite passing
1242230 as it&#39;s desired frequency):
12423    topStage.nextStage = targetStage;
12424    topStage.enableMouseOver(10);
12425    targetStage.enableMouseOver(30);</p>
12426<p>If the target stage&#39;s canvas is completely covered by this stage&#39;s canvas, you may also want to disable its
12427DOM events using:</p>
12428<pre class="code prettyprint"><code>targetStage.enableDOMEvents(false);</code></pre>
12429
12430    </div>
12431
12432    
12433
12434    
12435
12436    
12437</div>
12438
12439                
12440                    <div id="property_numChildren" class="property item inherited">
12441    <h3 class="name"><code>numChildren</code></h3>
12442    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12443
12444    
12445
12446    
12447
12448    
12449
12450    
12451
12452    
12453        <span class="flag readonly">readonly</span>
12454    
12455
12456    <div class="meta">
12457        
12458            
12459                <p>Inherited from
12460                <a href="../classes/Container.html#property_numChildren">Container</a>:
12461            
12462        
12463        
12464        <a href="../files/easeljs_display_Container.js.html#l109"><code>numChildren:109</code></a>
12465        
12466        </p>
12467
12468        
12469
12470        
12471    </div>
12472
12473    <div class="description">
12474        <p>Returns the number of children in the container.</p>
12475
12476    </div>
12477
12478    
12479
12480    
12481
12482    
12483</div>
12484
12485                
12486                    <div id="property_parent" class="property item inherited">
12487    <h3 class="name"><code>parent</code></h3>
12488    <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
12489
12490    
12491
12492    
12493
12494    
12495        <span class="flag final">final</span>
12496    
12497
12498    
12499
12500    
12501        <span class="flag readonly">readonly</span>
12502    
12503
12504    <div class="meta">
12505        
12506            
12507                <p>Inherited from
12508                <a href="../classes/DisplayObject.html#property_parent">DisplayObject</a>:
12509            
12510        
12511        
12512        <a href="../files/easeljs_display_DisplayObject.js.html#l214"><code>parent:214</code></a>
12513        
12514        </p>
12515
12516        
12517
12518        
12519    </div>
12520
12521    <div class="description">
12522        <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
12523contains this display object, or null if it has not been added
12524to one.</p>
12525
12526    </div>
12527
12528    
12529        <p><strong>Default:</strong> null</p>
12530    
12531
12532    
12533
12534    
12535</div>
12536
12537                
12538                    <div id="property_preventSelection" class="property item">
12539    <h3 class="name"><code>preventSelection</code></h3>
12540    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12541
12542    
12543
12544    
12545
12546    
12547
12548    
12549
12550    
12551
12552    <div class="meta">
12553        
12554            
12555                
12556                <p>
12557                
12558                Defined in
12559                
12560            
12561        
12562        
12563        <a href="../files/easeljs_display_Stage.js.html#l164"><code>preventSelection:164</code></a>
12564        
12565        </p>
12566
12567        
12568
12569        
12570    </div>
12571
12572    <div class="description">
12573        <p>Prevents selection of other elements in the html page if the user clicks and drags, or double clicks on the canvas.
12574This works by calling <code>preventDefault()</code> on any mousedown events (or touch equivalent) originating on the canvas.</p>
12575
12576    </div>
12577
12578    
12579        <p><strong>Default:</strong> true</p>
12580    
12581
12582    
12583
12584    
12585</div>
12586
12587                
12588                    <div id="property_regX" class="property item inherited">
12589    <h3 class="name"><code>regX</code></h3>
12590    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12591
12592    
12593
12594    
12595
12596    
12597
12598    
12599
12600    
12601
12602    <div class="meta">
12603        
12604            
12605                <p>Inherited from
12606                <a href="../classes/DisplayObject.html#property_regX">DisplayObject</a>:
12607            
12608        
12609        
12610        <a href="../files/easeljs_display_DisplayObject.js.html#l226"><code>regX:226</code></a>
12611        
12612        </p>
12613
12614        
12615
12616        
12617    </div>
12618
12619    <div class="description">
12620        <p>The left offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate
12621around its center, you would set regX and <a href="../classes/DisplayObject.html#property_regY" class="crosslink">regY</a> to 50.
12622Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>
12623
12624    </div>
12625
12626    
12627        <p><strong>Default:</strong> 0</p>
12628    
12629
12630    
12631
12632    
12633</div>
12634
12635                
12636                    <div id="property_regY" class="property item inherited">
12637    <h3 class="name"><code>regY</code></h3>
12638    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12639
12640    
12641
12642    
12643
12644    
12645
12646    
12647
12648    
12649
12650    <div class="meta">
12651        
12652            
12653                <p>Inherited from
12654                <a href="../classes/DisplayObject.html#property_regY">DisplayObject</a>:
12655            
12656        
12657        
12658        <a href="../files/easeljs_display_DisplayObject.js.html#l236"><code>regY:236</code></a>
12659        
12660        </p>
12661
12662        
12663
12664        
12665    </div>
12666
12667    <div class="description">
12668        <p>The y offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate around
12669its center, you would set <a href="../classes/DisplayObject.html#property_regX" class="crosslink">regX</a> and regY to 50.
12670Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>
12671
12672    </div>
12673
12674    
12675        <p><strong>Default:</strong> 0</p>
12676    
12677
12678    
12679
12680    
12681</div>
12682
12683                
12684                    <div id="property_rotation" class="property item inherited">
12685    <h3 class="name"><code>rotation</code></h3>
12686    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12687
12688    
12689
12690    
12691
12692    
12693
12694    
12695
12696    
12697
12698    <div class="meta">
12699        
12700            
12701                <p>Inherited from
12702                <a href="../classes/DisplayObject.html#property_rotation">DisplayObject</a>:
12703            
12704        
12705        
12706        <a href="../files/easeljs_display_DisplayObject.js.html#l246"><code>rotation:246</code></a>
12707        
12708        </p>
12709
12710        
12711
12712        
12713    </div>
12714
12715    <div class="description">
12716        <p>The rotation in degrees for this display object.</p>
12717
12718    </div>
12719
12720    
12721        <p><strong>Default:</strong> 0</p>
12722    
12723
12724    
12725
12726    
12727</div>
12728
12729                
12730                    <div id="property_scaleX" class="property item inherited">
12731    <h3 class="name"><code>scaleX</code></h3>
12732    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12733
12734    
12735
12736    
12737
12738    
12739
12740    
12741
12742    
12743
12744    <div class="meta">
12745        
12746            <p>Inherited from
12747            <a href="../classes/DisplayObject.html#property_scaleX">
12748                DisplayObject
12749            </a>
12750            
12751            but overwritten in
12752            
12753        
12754        
12755        <a href="../files/easeljs_display_DisplayObject.js.html#l254"><code>scaleX:254</code></a>
12756        
12757        </p>
12758
12759        
12760
12761        
12762    </div>
12763
12764    <div class="description">
12765        <p>The factor to stretch this display object horizontally. For example, setting scaleX to 2 will stretch the display
12766object to twice its nominal width. To horizontally flip an object, set the scale to a negative number.</p>
12767
12768    </div>
12769
12770    
12771        <p><strong>Default:</strong> 1</p>
12772    
12773
12774    
12775
12776    
12777</div>
12778
12779                
12780                    <div id="property_scaleY" class="property item inherited">
12781    <h3 class="name"><code>scaleY</code></h3>
12782    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12783
12784    
12785
12786    
12787
12788    
12789
12790    
12791
12792    
12793
12794    <div class="meta">
12795        
12796            
12797                <p>Inherited from
12798                <a href="../classes/DisplayObject.html#property_scaleY">DisplayObject</a>:
12799            
12800        
12801        
12802        <a href="../files/easeljs_display_DisplayObject.js.html#l263"><code>scaleY:263</code></a>
12803        
12804        </p>
12805
12806        
12807
12808        
12809    </div>
12810
12811    <div class="description">
12812        <p>The factor to stretch this display object vertically. For example, setting scaleY to 0.5 will stretch the display
12813object to half its nominal height. To vertically flip an object, set the scale to a negative number.</p>
12814
12815    </div>
12816
12817    
12818        <p><strong>Default:</strong> 1</p>
12819    
12820
12821    
12822
12823    
12824</div>
12825
12826                
12827                    <div id="property_shadow" class="property item inherited">
12828    <h3 class="name"><code>shadow</code></h3>
12829    <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
12830
12831    
12832
12833    
12834
12835    
12836
12837    
12838
12839    
12840
12841    <div class="meta">
12842        
12843            
12844                <p>Inherited from
12845                <a href="../classes/DisplayObject.html#property_shadow">DisplayObject</a>:
12846            
12847        
12848        
12849        <a href="../files/easeljs_display_DisplayObject.js.html#l288"><code>shadow:288</code></a>
12850        
12851        </p>
12852
12853        
12854
12855        
12856    </div>
12857
12858    <div class="description">
12859        <p>A shadow object that defines the shadow to render on this display object. Set to <code>null</code> to remove a shadow. If
12860null, this property is inherited from the parent container.</p>
12861
12862    </div>
12863
12864    
12865        <p><strong>Default:</strong> null</p>
12866    
12867
12868    
12869
12870    
12871</div>
12872
12873                
12874                    <div id="property_skewX" class="property item inherited">
12875    <h3 class="name"><code>skewX</code></h3>
12876    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12877
12878    
12879
12880    
12881
12882    
12883
12884    
12885
12886    
12887
12888    <div class="meta">
12889        
12890            
12891                <p>Inherited from
12892                <a href="../classes/DisplayObject.html#property_skewX">DisplayObject</a>:
12893            
12894        
12895        
12896        <a href="../files/easeljs_display_DisplayObject.js.html#l272"><code>skewX:272</code></a>
12897        
12898        </p>
12899
12900        
12901
12902        
12903    </div>
12904
12905    <div class="description">
12906        <p>The factor to skew this display object horizontally.</p>
12907
12908    </div>
12909
12910    
12911        <p><strong>Default:</strong> 0</p>
12912    
12913
12914    
12915
12916    
12917</div>
12918
12919                
12920                    <div id="property_skewY" class="property item inherited">
12921    <h3 class="name"><code>skewY</code></h3>
12922    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12923
12924    
12925
12926    
12927
12928    
12929
12930    
12931
12932    
12933
12934    <div class="meta">
12935        
12936            
12937                <p>Inherited from
12938                <a href="../classes/DisplayObject.html#property_skewY">DisplayObject</a>:
12939            
12940        
12941        
12942        <a href="../files/easeljs_display_DisplayObject.js.html#l280"><code>skewY:280</code></a>
12943        
12944        </p>
12945
12946        
12947
12948        
12949    </div>
12950
12951    <div class="description">
12952        <p>The factor to skew this display object vertically.</p>
12953
12954    </div>
12955
12956    
12957        <p><strong>Default:</strong> 0</p>
12958    
12959
12960    
12961
12962    
12963</div>
12964
12965                
12966                    <div id="property_snapToPixel" class="property item inherited">
12967    <h3 class="name"><code>snapToPixel</code></h3>
12968    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12969
12970    
12971
12972    
12973
12974    
12975
12976    
12977
12978    
12979
12980    <div class="meta">
12981        
12982            
12983                <p>Inherited from
12984                <a href="../classes/DisplayObject.html#property_snapToPixel">DisplayObject</a>:
12985            
12986        
12987        
12988        <a href="../files/easeljs_display_DisplayObject.js.html#l342"><code>snapToPixel:342</code></a>
12989        
12990        </p>
12991
12992        
12993
12994        
12995    </div>
12996
12997    <div class="description">
12998        <p>Indicates whether the display object should be drawn to a whole pixel when
12999Stage/snapToPixelEnabled is true. To enable/disable snapping on whole
13000categories of display objects, set this value on the prototype (Ex. Text.prototype.snapToPixel = true).</p>
13001
13002    </div>
13003
13004    
13005        <p><strong>Default:</strong> true</p>
13006    
13007
13008    
13009
13010    
13011</div>
13012
13013                
13014                    <div id="property_snapToPixelEnabled" class="property item">
13015    <h3 class="name"><code>snapToPixelEnabled</code></h3>
13016    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
13017
13018    
13019
13020    
13021
13022    
13023
13024    
13025
13026    
13027
13028    <div class="meta">
13029        
13030            
13031                
13032                <p>
13033                
13034                Defined in
13035                
13036            
13037        
13038        
13039        <a href="../files/easeljs_display_Stage.js.html#l127"><code>snapToPixelEnabled:127</code></a>
13040        
13041        </p>
13042
13043        
13044
13045        
13046    </div>
13047
13048    <div class="description">
13049        <p>Indicates whether display objects should be rendered on whole pixels. You can set the
13050DisplayObject/snapToPixel property of
13051display objects to false to enable/disable this behaviour on a per instance basis.</p>
13052
13053    </div>
13054
13055    
13056        <p><strong>Default:</strong> false</p>
13057    
13058
13059    
13060
13061    
13062</div>
13063
13064                
13065                    <div id="property_stage" class="property item inherited">
13066    <h3 class="name"><code>stage</code></h3>
13067    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
13068
13069    
13070
13071    
13072
13073    
13074
13075    
13076
13077    
13078        <span class="flag readonly">readonly</span>
13079    
13080
13081    <div class="meta">
13082        
13083            
13084                <p>Inherited from
13085                <a href="../classes/DisplayObject.html#property_stage">DisplayObject</a>:
13086            
13087        
13088        
13089        <a href="../files/easeljs_display_DisplayObject.js.html#l688"><code>stage:688</code></a>
13090        
13091        </p>
13092
13093        
13094
13095        
13096    </div>
13097
13098    <div class="description">
13099        <p>Returns the Stage instance that this display object will be rendered on, or null if it has not been added to one.</p>
13100
13101    </div>
13102
13103    
13104
13105    
13106
13107    
13108</div>
13109
13110                
13111                    <div id="property_tickChildren" class="property item inherited">
13112    <h3 class="name"><code>tickChildren</code></h3>
13113    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
13114
13115    
13116
13117    
13118
13119    
13120
13121    
13122
13123    
13124
13125    <div class="meta">
13126        
13127            
13128                <p>Inherited from
13129                <a href="../classes/Container.html#property_tickChildren">Container</a>:
13130            
13131        
13132        
13133        <a href="../files/easeljs_display_Container.js.html#l83"><code>tickChildren:83</code></a>
13134        
13135        </p>
13136
13137        
13138
13139        
13140    </div>
13141
13142    <div class="description">
13143        <p>If false, the tick will not be propagated to children of this Container. This can provide some performance benefits.
13144In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates
13145on some display objects (ex. Sprite &amp; MovieClip frame advancing, DOMElement visibility handling).</p>
13146
13147    </div>
13148
13149    
13150        <p><strong>Default:</strong> true</p>
13151    
13152
13153    
13154
13155    
13156</div>
13157
13158                
13159                    <div id="property_tickEnabled" class="property item inherited">
13160    <h3 class="name"><code>tickEnabled</code></h3>
13161    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
13162
13163    
13164
13165    
13166
13167    
13168
13169    
13170
13171    
13172
13173    <div class="meta">
13174        
13175            
13176                <p>Inherited from
13177                <a href="../classes/DisplayObject.html#property_tickEnabled">DisplayObject</a>:
13178            
13179        
13180        
13181        <a href="../files/easeljs_display_DisplayObject.js.html#l195"><code>tickEnabled:195</code></a>
13182        
13183        </p>
13184
13185        
13186
13187        
13188    </div>
13189
13190    <div class="description">
13191        <p>If false, the tick will not run on this display object (or its children). This can provide some performance benefits.
13192In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates
13193on some display objects (ex. Sprite &amp; MovieClip frame advancing, and DOMElement display properties).</p>
13194
13195    </div>
13196
13197    
13198        <p><strong>Default:</strong> true</p>
13199    
13200
13201    
13202
13203    
13204</div>
13205
13206                
13207                    <div id="property_tickOnUpdate" class="property item">
13208    <h3 class="name"><code>tickOnUpdate</code></h3>
13209    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
13210
13211    
13212
13213    
13214
13215    
13216
13217    
13218
13219    
13220
13221    <div class="meta">
13222        
13223            
13224                
13225                <p>
13226                
13227                Defined in
13228                
13229            
13230        
13231        
13232        <a href="../files/easeljs_display_Stage.js.html#l145"><code>tickOnUpdate:145</code></a>
13233        
13234        </p>
13235
13236        
13237
13238        
13239    </div>
13240
13241    <div class="description">
13242        <p>If true, tick callbacks will be called on all display objects on the stage prior to rendering to the canvas.</p>
13243
13244    </div>
13245
13246    
13247        <p><strong>Default:</strong> true</p>
13248    
13249
13250    
13251
13252    
13253</div>
13254
13255                
13256                    <div id="property_transformMatrix" class="property item inherited">
13257    <h3 class="name"><code>transformMatrix</code></h3>
13258    <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
13259
13260    
13261
13262    
13263
13264    
13265
13266    
13267
13268    
13269
13270    <div class="meta">
13271        
13272            
13273                <p>Inherited from
13274                <a href="../classes/DisplayObject.html#property_transformMatrix">DisplayObject</a>:
13275            
13276        
13277        
13278        <a href="../files/easeljs_display_DisplayObject.js.html#l321"><code>transformMatrix:321</code></a>
13279        
13280        </p>
13281
13282        
13283
13284        
13285    </div>
13286
13287    <div class="description">
13288        <p>If set, defines the transformation for this display object, overriding all other transformation properties
13289(x, y, rotation, scale, skew).</p>
13290
13291    </div>
13292
13293    
13294        <p><strong>Default:</strong> null</p>
13295    
13296
13297    
13298
13299    
13300</div>
13301
13302                
13303                    <div id="property_visible" class="property item inherited">
13304    <h3 class="name"><code>visible</code></h3>
13305    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
13306
13307    
13308
13309    
13310
13311    
13312
13313    
13314
13315    
13316
13317    <div class="meta">
13318        
13319            
13320                <p>Inherited from
13321                <a href="../classes/DisplayObject.html#property_visible">DisplayObject</a>:
13322            
13323        
13324        
13325        <a href="../files/easeljs_display_DisplayObject.js.html#l297"><code>visible:297</code></a>
13326        
13327        </p>
13328
13329        
13330
13331        
13332    </div>
13333
13334    <div class="description">
13335        <p>Indicates whether this display object should be rendered to the canvas and included when running the Stage
13336Stage/getObjectsUnderPoint method.</p>
13337
13338    </div>
13339
13340    
13341        <p><strong>Default:</strong> true</p>
13342    
13343
13344    
13345
13346    
13347</div>
13348
13349                
13350                    <div id="property_x" class="property item inherited">
13351    <h3 class="name"><code>x</code></h3>
13352    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13353
13354    
13355
13356    
13357
13358    
13359
13360    
13361
13362    
13363
13364    <div class="meta">
13365        
13366            
13367                <p>Inherited from
13368                <a href="../classes/DisplayObject.html#property_x">DisplayObject</a>:
13369            
13370        
13371        
13372        <a href="../files/easeljs_display_DisplayObject.js.html#l306"><code>x:306</code></a>
13373        
13374        </p>
13375
13376        
13377
13378        
13379    </div>
13380
13381    <div class="description">
13382        <p>The x (horizontal) position of the display object, relative to its parent.</p>
13383
13384    </div>
13385
13386    
13387        <p><strong>Default:</strong> 0</p>
13388    
13389
13390    
13391
13392    
13393</div>
13394
13395                
13396                    <div id="property_y" class="property item inherited">
13397    <h3 class="name"><code>y</code></h3>
13398    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
13399
13400    
13401
13402    
13403
13404    
13405
13406    
13407
13408    
13409
13410    <div class="meta">
13411        
13412            
13413                <p>Inherited from
13414                <a href="../classes/DisplayObject.html#property_y">DisplayObject</a>:
13415            
13416        
13417        
13418        <a href="../files/easeljs_display_DisplayObject.js.html#l314"><code>y:314</code></a>
13419        
13420        </p>
13421
13422        
13423
13424        
13425    </div>
13426
13427    <div class="description">
13428        
13429    </div>
13430
13431    
13432        <p><strong>Default:</strong> 0</p>
13433    
13434
13435    
13436
13437    
13438</div>
13439
13440                
13441            </div>
13442        
13443
13444        
13445
13446        
13447            <div id="events" class="api-class-tabpanel">
13448                <h2 class="off-left">Events</h2>
13449
13450                
13451                    <div id="event_added" class="events item inherited">
13452    <h3 class="name"><code>added</code></h3>
13453    <span class="type"></span>
13454
13455    
13456
13457    
13458
13459    
13460
13461    
13462
13463    <div class="meta">
13464        
13465            
13466                <p>Inherited from
13467                <a href="../classes/DisplayObject.html#event_added">DisplayObject</a>:
13468            
13469        
13470        
13471        <a href="../files/easeljs_display_DisplayObject.js.html#l646"><code>added:646</code></a>
13472        
13473        </p>
13474
13475        
13476
13477        
13478    </div>
13479
13480    <div class="description">
13481        <p>Dispatched when the display object is added to a parent container.</p>
13482
13483    </div>
13484
13485    
13486
13487
13488    
13489</div>
13490
13491                
13492                    <div id="event_click" class="events item inherited">
13493    <h3 class="name"><code>click</code></h3>
13494    <span class="type"></span>
13495
13496    
13497
13498    
13499
13500    
13501
13502    
13503
13504    <div class="meta">
13505        
13506            
13507                <p>Inherited from
13508                <a href="../classes/DisplayObject.html#event_click">DisplayObject</a>:
13509            
13510        
13511        
13512        <a href="../files/easeljs_display_DisplayObject.js.html#l546"><code>click:546</code></a>
13513        
13514        </p>
13515
13516        
13517
13518        
13519            <p>Available since 0.6.0</p>
13520        
13521    </div>
13522
13523    <div class="description">
13524        <p>Dispatched when the user presses their left mouse button and then releases it while over the display object.
13525See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
13526
13527    </div>
13528
13529    
13530
13531
13532    
13533</div>
13534
13535                
13536                    <div id="event_dblclick" class="events item inherited">
13537    <h3 class="name"><code>dblclick</code></h3>
13538    <span class="type"></span>
13539
13540    
13541
13542    
13543
13544    
13545
13546    
13547
13548    <div class="meta">
13549        
13550            
13551                <p>Inherited from
13552                <a href="../classes/DisplayObject.html#event_dblclick">DisplayObject</a>:
13553            
13554        
13555        
13556        <a href="../files/easeljs_display_DisplayObject.js.html#l553"><code>dblclick:553</code></a>
13557        
13558        </p>
13559
13560        
13561
13562        
13563            <p>Available since 0.6.0</p>
13564        
13565    </div>
13566
13567    <div class="description">
13568        <p>Dispatched when the user double clicks their left mouse button over this display object.
13569See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
13570
13571    </div>
13572
13573    
13574
13575
13576    
13577</div>
13578
13579                
13580                    <div id="event_drawend" class="events item">
13581    <h3 class="name"><code>drawend</code></h3>
13582    <span class="type"></span>
13583
13584    
13585
13586    
13587
13588    
13589
13590    
13591
13592    <div class="meta">
13593        
13594            
13595                
13596                <p>
13597                
13598                Defined in
13599                
13600            
13601        
13602        
13603        <a href="../files/easeljs_display_Stage.js.html#l294"><code>drawend:294</code></a>
13604        
13605        </p>
13606
13607        
13608
13609        
13610            <p>Available since 0.7.0</p>
13611        
13612    </div>
13613
13614    <div class="description">
13615        <p>Dispatched each update immediately after the display list is drawn to the canvas and the canvas context is restored.</p>
13616
13617    </div>
13618
13619    
13620
13621
13622    
13623</div>
13624
13625                
13626                    <div id="event_drawstart" class="events item">
13627    <h3 class="name"><code>drawstart</code></h3>
13628    <span class="type"></span>
13629
13630    
13631
13632    
13633
13634    
13635
13636    
13637
13638    <div class="meta">
13639        
13640            
13641                
13642                <p>
13643                
13644                Defined in
13645                
13646            
13647        
13648        
13649        <a href="../files/easeljs_display_Stage.js.html#l287"><code>drawstart:287</code></a>
13650        
13651        </p>
13652
13653        
13654
13655        
13656            <p>Available since 0.7.0</p>
13657        
13658    </div>
13659
13660    <div class="description">
13661        <p>Dispatched each update immediately before the canvas is cleared and the display list is drawn to it.
13662You can call preventDefault on the event object to cancel the draw.</p>
13663
13664    </div>
13665
13666    
13667
13668
13669    
13670</div>
13671
13672                
13673                    <div id="event_mousedown" class="events item inherited">
13674    <h3 class="name"><code>mousedown</code></h3>
13675    <span class="type"></span>
13676
13677    
13678
13679    
13680
13681    
13682
13683    
13684
13685    <div class="meta">
13686        
13687            
13688                <p>Inherited from
13689                <a href="../classes/DisplayObject.html#event_mousedown">DisplayObject</a>:
13690            
13691        
13692        
13693        <a href="../files/easeljs_display_DisplayObject.js.html#l539"><code>mousedown:539</code></a>
13694        
13695        </p>
13696
13697        
13698
13699        
13700            <p>Available since 0.6.0</p>
13701        
13702    </div>
13703
13704    <div class="description">
13705        <p>Dispatched when the user presses their left mouse button over the display object. See the 
13706<a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
13707
13708    </div>
13709
13710    
13711
13712
13713    
13714</div>
13715
13716                
13717                    <div id="event_mouseenter" class="events item">
13718    <h3 class="name"><code>mouseenter</code></h3>
13719    <span class="type"></span>
13720
13721    
13722
13723    
13724
13725    
13726
13727    
13728
13729    <div class="meta">
13730        
13731            
13732                
13733                <p>
13734                
13735                Defined in
13736                
13737            
13738        
13739        
13740        <a href="../files/easeljs_display_Stage.js.html#l265"><code>mouseenter:265</code></a>
13741        
13742        </p>
13743
13744        
13745
13746        
13747            <p>Available since 0.7.0</p>
13748        
13749    </div>
13750
13751    <div class="description">
13752        <p>Dispatched when the mouse moves into the canvas area (mouseInBounds == false) from outside it (mouseInBounds == true).
13753This is currently only dispatched for mouse input (not touch). See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a>
13754class for a listing of event properties.</p>
13755
13756    </div>
13757
13758    
13759
13760
13761    
13762</div>
13763
13764                
13765                    <div id="event_mouseleave" class="events item">
13766    <h3 class="name"><code>mouseleave</code></h3>
13767    <span class="type"></span>
13768
13769    
13770
13771    
13772
13773    
13774
13775    
13776
13777    <div class="meta">
13778        
13779            
13780                
13781                <p>
13782                
13783                Defined in
13784                
13785            
13786        
13787        
13788        <a href="../files/easeljs_display_Stage.js.html#l257"><code>mouseleave:257</code></a>
13789        
13790        </p>
13791
13792        
13793
13794        
13795            <p>Available since 0.7.0</p>
13796        
13797    </div>
13798
13799    <div class="description">
13800        <p>Dispatched when the mouse moves from within the canvas area (mouseInBounds == true) to outside it (mouseInBounds == false).
13801This is currently only dispatched for mouse input (not touch). See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a>
13802class for a listing of event properties.</p>
13803
13804    </div>
13805
13806    
13807
13808
13809    
13810</div>
13811
13812                
13813                    <div id="event_mouseout" class="events item inherited">
13814    <h3 class="name"><code>mouseout</code></h3>
13815    <span class="type"></span>
13816
13817    
13818
13819    
13820
13821    
13822
13823    
13824
13825    <div class="meta">
13826        
13827            
13828                <p>Inherited from
13829                <a href="../classes/DisplayObject.html#event_mouseout">DisplayObject</a>:
13830            
13831        
13832        
13833        <a href="../files/easeljs_display_DisplayObject.js.html#l568"><code>mouseout:568</code></a>
13834        
13835        </p>
13836
13837        
13838
13839        
13840            <p>Available since 0.6.0</p>
13841        
13842    </div>
13843
13844    <div class="description">
13845        <p>Dispatched when the user&#39;s mouse leaves this display object. This event must be enabled using 
13846<a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="../classes/DisplayObject.html#event_rollout" class="crosslink">rollout</a>.
13847See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
13848
13849    </div>
13850
13851    
13852
13853
13854    
13855</div>
13856
13857                
13858                    <div id="event_mouseover" class="events item inherited">
13859    <h3 class="name"><code>mouseover</code></h3>
13860    <span class="type"></span>
13861
13862    
13863
13864    
13865
13866    
13867
13868    
13869
13870    <div class="meta">
13871        
13872            
13873                <p>Inherited from
13874                <a href="../classes/DisplayObject.html#event_mouseover">DisplayObject</a>:
13875            
13876        
13877        
13878        <a href="../files/easeljs_display_DisplayObject.js.html#l560"><code>mouseover:560</code></a>
13879        
13880        </p>
13881
13882        
13883
13884        
13885            <p>Available since 0.6.0</p>
13886        
13887    </div>
13888
13889    <div class="description">
13890        <p>Dispatched when the user&#39;s mouse enters this display object. This event must be enabled using 
13891<a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="../classes/DisplayObject.html#event_rollover" class="crosslink">rollover</a>.
13892See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
13893
13894    </div>
13895
13896    
13897
13898
13899    
13900</div>
13901
13902                
13903                    <div id="event_pressmove" class="events item inherited">
13904    <h3 class="name"><code>pressmove</code></h3>
13905    <span class="type"></span>
13906
13907    
13908
13909    
13910
13911    
13912
13913    
13914
13915    <div class="meta">
13916        
13917            
13918                <p>Inherited from
13919                <a href="../classes/DisplayObject.html#event_pressmove">DisplayObject</a>:
13920            
13921        
13922        
13923        <a href="../files/easeljs_display_DisplayObject.js.html#l616"><code>pressmove:616</code></a>
13924        
13925        </p>
13926
13927        
13928
13929        
13930            <p>Available since 0.7.0</p>
13931        
13932    </div>
13933
13934    <div class="description">
13935        <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressmove
13936event will be generated on that object whenever the mouse moves until the mouse press is released. This can be
13937useful for dragging and similar operations.</p>
13938<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
13939(e.g. during a <code>pressmove</code> event), a <code>pressmove</code> event is still generated. However since it is no longer in the
13940display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
13941the 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>
13942or <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>),
13943then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
13944
13945    </div>
13946
13947    
13948
13949
13950    
13951</div>
13952
13953                
13954                    <div id="event_pressup" class="events item inherited">
13955    <h3 class="name"><code>pressup</code></h3>
13956    <span class="type"></span>
13957
13958    
13959
13960    
13961
13962    
13963
13964    
13965
13966    <div class="meta">
13967        
13968            
13969                <p>Inherited from
13970                <a href="../classes/DisplayObject.html#event_pressup">DisplayObject</a>:
13971            
13972        
13973        
13974        <a href="../files/easeljs_display_DisplayObject.js.html#l631"><code>pressup:631</code></a>
13975        
13976        </p>
13977
13978        
13979
13980        
13981            <p>Available since 0.7.0</p>
13982        
13983    </div>
13984
13985    <div class="description">
13986        <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressup event
13987will be generated on that object when that mouse press is released. This can be useful for dragging and similar
13988operations.</p>
13989<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
13990(e.g. during a <code>pressmove</code> event), a <code>pressup</code> event is still generated. However since it is no longer in the
13991display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
13992the 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>
13993or <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>),
13994then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
13995
13996    </div>
13997
13998    
13999
14000
14001    
14002</div>
14003
14004                
14005                    <div id="event_removed" class="events item inherited">
14006    <h3 class="name"><code>removed</code></h3>
14007    <span class="type"></span>
14008
14009    
14010
14011    
14012
14013    
14014
14015    
14016
14017    <div class="meta">
14018        
14019            
14020                <p>Inherited from
14021                <a href="../classes/DisplayObject.html#event_removed">DisplayObject</a>:
14022            
14023        
14024        
14025        <a href="../files/easeljs_display_DisplayObject.js.html#l651"><code>removed:651</code></a>
14026        
14027        </p>
14028
14029        
14030
14031        
14032    </div>
14033
14034    <div class="description">
14035        <p>Dispatched when the display object is removed from its parent container.</p>
14036
14037    </div>
14038
14039    
14040
14041
14042    
14043</div>
14044
14045                
14046                    <div id="event_rollout" class="events item inherited">
14047    <h3 class="name"><code>rollout</code></h3>
14048    <span class="type"></span>
14049
14050    
14051
14052    
14053
14054    
14055
14056    
14057
14058    <div class="meta">
14059        
14060            
14061                <p>Inherited from
14062                <a href="../classes/DisplayObject.html#event_rollout">DisplayObject</a>:
14063            
14064        
14065        
14066        <a href="../files/easeljs_display_DisplayObject.js.html#l596"><code>rollout:596</code></a>
14067        
14068        </p>
14069
14070        
14071
14072        
14073            <p>Available since 0.7.0</p>
14074        
14075    </div>
14076
14077    <div class="description">
14078        <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseout" class="crosslink">mouseout</a>, with the following
14079differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
14080aggregate of their content.</p>
14081<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
14082shapeA, then directly on to shapeB, then off both. With a listener for Mouseout:event
14083on myContainer, two events would be received, each targeting a child element:<OL></p>
14084<p><LI>when the mouse leaves shapeA (target=shapeA)</LI></p>
14085<p><LI>when the mouse leaves shapeB (target=shapeB)</LI>
14086</OL>
14087However, with a listener for "rollout" instead, only a single event is received when the mouse leaves
14088the aggregate myContainer content (target=myContainer).</p>
14089<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
14090See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
14091
14092    </div>
14093
14094    
14095
14096
14097    
14098</div>
14099
14100                
14101                    <div id="event_rollover" class="events item inherited">
14102    <h3 class="name"><code>rollover</code></h3>
14103    <span class="type"></span>
14104
14105    
14106
14107    
14108
14109    
14110
14111    
14112
14113    <div class="meta">
14114        
14115            
14116                <p>Inherited from
14117                <a href="../classes/DisplayObject.html#event_rollover">DisplayObject</a>:
14118            
14119        
14120        
14121        <a href="../files/easeljs_display_DisplayObject.js.html#l576"><code>rollover:576</code></a>
14122        
14123        </p>
14124
14125        
14126
14127        
14128            <p>Available since 0.7.0</p>
14129        
14130    </div>
14131
14132    <div class="description">
14133        <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseover" class="crosslink">mouseover</a>, with the following
14134differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
14135aggregate of their content.</p>
14136<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
14137shapeA and then directly on to shapeB. With a listener for Mouseover:event on
14138myContainer, two events would be received, each targeting a child element:<OL></p>
14139<p><LI>when the mouse enters shapeA (target=shapeA)</LI></p>
14140<p><LI>when the mouse enters shapeB (target=shapeB)</LI>
14141</OL>
14142However, with a listener for "rollover" instead, only a single event is received when the mouse first enters
14143the aggregate myContainer content (target=myContainer).</p>
14144<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
14145See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
14146
14147    </div>
14148
14149    
14150
14151
14152    
14153</div>
14154
14155                
14156                    <div id="event_stagemousedown" class="events item">
14157    <h3 class="name"><code>stagemousedown</code></h3>
14158    <span class="type"></span>
14159
14160    
14161
14162    
14163
14164    
14165
14166    
14167
14168    <div class="meta">
14169        
14170            
14171                
14172                <p>
14173                
14174                Defined in
14175                
14176            
14177        
14178        
14179        <a href="../files/easeljs_display_Stage.js.html#l242"><code>stagemousedown:242</code></a>
14180        
14181        </p>
14182
14183        
14184
14185        
14186            <p>Available since 0.6.0</p>
14187        
14188    </div>
14189
14190    <div class="description">
14191        <p>Dispatched when the user presses their left mouse button on the canvas. See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a>
14192class for a listing of event properties.</p>
14193
14194    </div>
14195
14196    
14197
14198
14199    
14200</div>
14201
14202                
14203                    <div id="event_stagemousemove" class="events item">
14204    <h3 class="name"><code>stagemousemove</code></h3>
14205    <span class="type"></span>
14206
14207    
14208
14209    
14210
14211    
14212
14213    
14214
14215    <div class="meta">
14216        
14217            
14218                
14219                <p>
14220                
14221                Defined in
14222                
14223            
14224        
14225        
14226        <a href="../files/easeljs_display_Stage.js.html#l235"><code>stagemousemove:235</code></a>
14227        
14228        </p>
14229
14230        
14231
14232        
14233            <p>Available since 0.6.0</p>
14234        
14235    </div>
14236
14237    <div class="description">
14238        <p>Dispatched when the user moves the mouse over the canvas.
14239See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
14240
14241    </div>
14242
14243    
14244
14245
14246    
14247</div>
14248
14249                
14250                    <div id="event_stagemouseup" class="events item">
14251    <h3 class="name"><code>stagemouseup</code></h3>
14252    <span class="type"></span>
14253
14254    
14255
14256    
14257
14258    
14259
14260    
14261
14262    <div class="meta">
14263        
14264            
14265                
14266                <p>
14267                
14268                Defined in
14269                
14270            
14271        
14272        
14273        <a href="../files/easeljs_display_Stage.js.html#l249"><code>stagemouseup:249</code></a>
14274        
14275        </p>
14276
14277        
14278
14279        
14280            <p>Available since 0.6.0</p>
14281        
14282    </div>
14283
14284    <div class="description">
14285        <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).
14286You can use <a href="../classes/Stage.html#property_mouseInBounds" class="crosslink">mouseInBounds</a> to check whether the mouse is currently within the stage bounds.
14287See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
14288
14289    </div>
14290
14291    
14292
14293
14294    
14295</div>
14296
14297                
14298                    <div id="event_tick" class="events item inherited">
14299    <h3 class="name"><code>tick</code></h3>
14300    <span class="type"></span>
14301
14302    
14303
14304    
14305
14306    
14307
14308    
14309
14310    <div class="meta">
14311        
14312            
14313                <p>Inherited from
14314                <a href="../classes/DisplayObject.html#event_tick">DisplayObject</a>:
14315            
14316        
14317        
14318        <a href="../files/easeljs_display_DisplayObject.js.html#l656"><code>tick:656</code></a>
14319        
14320        </p>
14321
14322        
14323
14324        
14325            <p>Available since 0.6.0</p>
14326        
14327    </div>
14328
14329    <div class="description">
14330        <p>Dispatched on each display object on a stage whenever the stage updates. This occurs immediately before the
14331rendering (draw) pass. When <a href="../classes/Stage.html#method_update" class="crosslink">update</a> is called, first all display objects on
14332the stage dispatch the tick event, then all of the display objects are drawn to stage. Children will have their
14333Tick:event event dispatched in order of their depth prior to the event being
14334dispatched on their parent.</p>
14335
14336    </div>
14337
14338    
14339        <div class="params">
14340            <h4>Event Payload:</h4>
14341
14342            <ul class="params-list">
14343            
14344                <li class="param">
14345                    
14346                        <code class="param-name">target</code>
14347                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
14348                    
14349
14350                    
14351
14352                    <div class="param-description">
14353                        <p>The object that dispatched the event.</p>
14354
14355                    </div>
14356
14357                    
14358                </li>
14359            
14360                <li class="param">
14361                    
14362                        <code class="param-name">type</code>
14363                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
14364                    
14365
14366                    
14367
14368                    <div class="param-description">
14369                        <p>The event type.</p>
14370
14371                    </div>
14372
14373                    
14374                </li>
14375            
14376                <li class="param">
14377                    
14378                        <code class="param-name">params</code>
14379                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
14380                    
14381
14382                    
14383
14384                    <div class="param-description">
14385                        <p>An array containing any arguments that were passed to the Stage.update() method. For
14386     example if you called stage.update("hello"), then the params would be ["hello"].</p>
14387
14388                    </div>
14389
14390                    
14391                </li>
14392            
14393            </ul>
14394        </div>
14395    
14396
14397
14398    
14399</div>
14400
14401                
14402                    <div id="event_tickend" class="events item">
14403    <h3 class="name"><code>tickend</code></h3>
14404    <span class="type"></span>
14405
14406    
14407
14408    
14409
14410    
14411
14412    
14413
14414    <div class="meta">
14415        
14416            
14417                
14418                <p>
14419                
14420                Defined in
14421                
14422            
14423        
14424        
14425        <a href="../files/easeljs_display_Stage.js.html#l280"><code>tickend:280</code></a>
14426        
14427        </p>
14428
14429        
14430
14431        
14432            <p>Available since 0.7.0</p>
14433        
14434    </div>
14435
14436    <div class="description">
14437        <p>Dispatched each update immediately after the tick event is propagated through the display list. Does not fire if
14438tickOnUpdate is false. Precedes the "drawstart" event.</p>
14439
14440    </div>
14441
14442    
14443
14444
14445    
14446</div>
14447
14448                
14449                    <div id="event_tickstart" class="events item">
14450    <h3 class="name"><code>tickstart</code></h3>
14451    <span class="type"></span>
14452
14453    
14454
14455    
14456
14457    
14458
14459    
14460
14461    <div class="meta">
14462        
14463            
14464                
14465                <p>
14466                
14467                Defined in
14468                
14469            
14470        
14471        
14472        <a href="../files/easeljs_display_Stage.js.html#l273"><code>tickstart:273</code></a>
14473        
14474        </p>
14475
14476        
14477
14478        
14479            <p>Available since 0.7.0</p>
14480        
14481    </div>
14482
14483    <div class="description">
14484        <p>Dispatched each update immediately before the tick event is propagated through the display list.
14485You can call preventDefault on the event object to cancel propagating the tick event.</p>
14486
14487    </div>
14488
14489    
14490
14491
14492    
14493</div>
14494
14495                
14496            </div>
14497        
14498    </div>
14499</div>
14500
14501                    </div>
14502                </div>
14503            </div>
14504        </div>
14505    </div>
14506</div>
14507<script src="../assets/vendor/prettify/prettify-min.js"></script>
14508<script>prettyPrint();</script>
14509<script src="../assets/js/yui-prettify.js"></script>
14510<script src="../assets/../api.js"></script>
14511<script src="../assets/js/api-filter.js"></script>
14512<script src="../assets/js/api-list.js"></script>
14513<script src="../assets/js/api-search.js"></script>
14514<script src="../assets/js/apidocs.js"></script>
14515</body>
14516</html>