all repos — simplyrpg @ 22e7c7bea11f4bc81b76acd3c35138615dc759ee

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

libraries/EaselJS_docs/classes/Container.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 : Container</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>Container Class</h1>
  199<div class="box meta">
  200    
  201
  202    
  203        <div class="extends">
  204            Extends <a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a>
  205        </div>
  206    
  207
  208    
  209        <div class="foundat">
  210            Defined in: <a href="../files/easeljs_display_Container.js.html#l37"><code>Container:37</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 Container is a nestable display list that allows you to work with compound display elements. For  example you could
  227group arm, leg, torso and head <a href="../classes/Bitmap.html" class="crosslink">Bitmap</a> instances together into a Person Container, and
  228transform them as a group, while still being able to move the individual parts relative to each other. Children of
  229containers have their <code>transform</code> and <code>alpha</code> properties concatenated with their parent
  230Container.</p>
  231<p>For example, a <a href="../classes/Shape.html" class="crosslink">Shape</a> with x=100 and alpha=0.5, placed in a Container with <code>x=50</code>
  232and <code>alpha=0.7</code> will be rendered to the canvas at <code>x=150</code> and <code>alpha=0.35</code>.
  233Containers have some overhead, so you generally shouldn&#39;t create a Container to hold a single child.</p>
  234<h4>Example</h4>
  235
  236<pre class="code prettyprint"><code> var container = new createjs.Container();
  237 container.addChild(bitmapInstance, shapeInstance);
  238 container.x = 100;</code></pre>
  239
  240</div>
  241
  242
  243    <div class="constructor">
  244        <h2>Constructor</h2>
  245        <div id="method_Container" class="method item">
  246    <h3 class="name"><code>Container</code></h3>
  247
  248    
  249        <span class="paren">()</span>
  250    
  251
  252    
  253
  254    
  255
  256    
  257
  258    
  259
  260    
  261
  262    
  263
  264    
  265
  266    <div class="meta">
  267        
  268            
  269                
  270                <p>
  271                
  272                Defined in
  273                
  274            
  275        
  276        
  277        <a href="../files/easeljs_display_Container.js.html#l37"><code>Container:37</code></a>
  278        
  279        </p>
  280
  281
  282        
  283
  284        
  285    </div>
  286
  287    <div class="description">
  288        
  289    </div>
  290
  291    
  292
  293    
  294
  295    
  296</div>
  297
  298    </div>
  299
  300
  301<div id="classdocs" class="tabview">
  302    <ul class="api-class-tabs">
  303        <li class="api-class-tab index"><a href="#index">Index</a></li>
  304
  305        
  306            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
  307        
  308        
  309            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
  310        
  311        
  312        
  313            <li class="api-class-tab events"><a href="#events">Events</a></li>
  314        
  315    </ul>
  316
  317    <div>
  318        <div id="index" class="api-class-tabpanel index">
  319            <h2 class="off-left">Item Index</h2>
  320
  321            
  322                <div class="index-section methods">
  323                    <h3>Methods</h3>
  324
  325                    <ul class="index-list methods extends">
  326                        
  327                            <li class="index-item method protected inherited">
  328                                <a href="#method__applyShadow">_applyShadow</a>
  329
  330                                
  331                                
  332                            </li>
  333                        
  334                            <li class="index-item method protected inherited">
  335                                <a href="#method__cloneProps">_cloneProps</a>
  336
  337                                
  338                                
  339                            </li>
  340                        
  341                            <li class="index-item method protected inherited">
  342                                <a href="#method__dispatchEvent">_dispatchEvent</a>
  343
  344                                
  345                                
  346                            </li>
  347                        
  348                            <li class="index-item method protected inherited">
  349                                <a href="#method__getBounds">_getBounds</a>
  350
  351                                
  352                                
  353                            </li>
  354                        
  355                            <li class="index-item method protected">
  356                                <a href="#method__getNumChildren">_getNumChildren</a>
  357
  358                                
  359                                
  360                            </li>
  361                        
  362                            <li class="index-item method protected">
  363                                <a href="#method__getObjectsUnderPoint">_getObjectsUnderPoint</a>
  364
  365                                
  366                                
  367                            </li>
  368                        
  369                            <li class="index-item method protected inherited">
  370                                <a href="#method__getStage">_getStage</a>
  371
  372                                
  373                                
  374                            </li>
  375                        
  376                            <li class="index-item method protected inherited">
  377                                <a href="#method__isMouseOpaque">_isMouseOpaque</a>
  378
  379                                
  380                                
  381                            </li>
  382                        
  383                            <li class="index-item method protected inherited">
  384                                <a href="#method__testHit">_testHit</a>
  385
  386                                
  387                                
  388                            </li>
  389                        
  390                            <li class="index-item method protected">
  391                                <a href="#method__testMask">_testMask</a>
  392
  393                                
  394                                
  395                            </li>
  396                        
  397                            <li class="index-item method protected inherited">
  398                                <a href="#method__tick">_tick</a>
  399
  400                                
  401                                
  402                            </li>
  403                        
  404                            <li class="index-item method protected inherited">
  405                                <a href="#method__transformBounds">_transformBounds</a>
  406
  407                                
  408                                
  409                            </li>
  410                        
  411                            <li class="index-item method inherited">
  412                                <a href="#method__updateState">_updateState</a>
  413
  414                                
  415                                
  416                            </li>
  417                        
  418                            <li class="index-item method">
  419                                <a href="#method_addChild">addChild</a>
  420
  421                                
  422                                
  423                            </li>
  424                        
  425                            <li class="index-item method">
  426                                <a href="#method_addChildAt">addChildAt</a>
  427
  428                                
  429                                
  430                            </li>
  431                        
  432                            <li class="index-item method inherited">
  433                                <a href="#method_addEventListener">addEventListener</a>
  434
  435                                
  436                                
  437                            </li>
  438                        
  439                            <li class="index-item method inherited">
  440                                <a href="#method_cache">cache</a>
  441
  442                                
  443                                
  444                            </li>
  445                        
  446                            <li class="index-item method inherited">
  447                                <a href="#method_clone">clone</a>
  448
  449                                
  450                                
  451                            </li>
  452                        
  453                            <li class="index-item method protected">
  454                                <a href="#method_cloneChildren">cloneChildren</a>
  455
  456                                
  457                                
  458                            </li>
  459                        
  460                            <li class="index-item method">
  461                                <a href="#method_contains">contains</a>
  462
  463                                
  464                                
  465                            </li>
  466                        
  467                            <li class="index-item method inherited">
  468                                <a href="#method_dispatchEvent">dispatchEvent</a>
  469
  470                                
  471                                
  472                            </li>
  473                        
  474                            <li class="index-item method inherited">
  475                                <a href="#method_draw">draw</a>
  476
  477                                
  478                                
  479                            </li>
  480                        
  481                            <li class="index-item method inherited">
  482                                <a href="#method_getBounds">getBounds</a>
  483
  484                                
  485                                
  486                            </li>
  487                        
  488                            <li class="index-item method inherited">
  489                                <a href="#method_getCacheDataURL">getCacheDataURL</a>
  490
  491                                
  492                                
  493                            </li>
  494                        
  495                            <li class="index-item method">
  496                                <a href="#method_getChildAt">getChildAt</a>
  497
  498                                
  499                                
  500                            </li>
  501                        
  502                            <li class="index-item method">
  503                                <a href="#method_getChildByName">getChildByName</a>
  504
  505                                
  506                                
  507                            </li>
  508                        
  509                            <li class="index-item method">
  510                                <a href="#method_getChildIndex">getChildIndex</a>
  511
  512                                
  513                                
  514                            </li>
  515                        
  516                            <li class="index-item method inherited">
  517                                <a href="#method_getConcatenatedDisplayProps">getConcatenatedDisplayProps</a>
  518
  519                                
  520                                
  521                            </li>
  522                        
  523                            <li class="index-item method inherited">
  524                                <a href="#method_getConcatenatedMatrix">getConcatenatedMatrix</a>
  525
  526                                
  527                                
  528                            </li>
  529                        
  530                            <li class="index-item method inherited">
  531                                <a href="#method_getMatrix">getMatrix</a>
  532
  533                                
  534                                
  535                            </li>
  536                        
  537                            <li class="index-item method">
  538                                <a href="#method_getObjectsUnderPoint">getObjectsUnderPoint</a>
  539
  540                                
  541                                
  542                            </li>
  543                        
  544                            <li class="index-item method">
  545                                <a href="#method_getObjectUnderPoint">getObjectUnderPoint</a>
  546
  547                                
  548                                
  549                            </li>
  550                        
  551                            <li class="index-item method inherited">
  552                                <a href="#method_getTransformedBounds">getTransformedBounds</a>
  553
  554                                
  555                                
  556                            </li>
  557                        
  558                            <li class="index-item method inherited">
  559                                <a href="#method_globalToLocal">globalToLocal</a>
  560
  561                                
  562                                
  563                            </li>
  564                        
  565                            <li class="index-item method inherited">
  566                                <a href="#method_hasEventListener">hasEventListener</a>
  567
  568                                
  569                                
  570                            </li>
  571                        
  572                            <li class="index-item method inherited">
  573                                <a href="#method_hitTest">hitTest</a>
  574
  575                                
  576                                
  577                            </li>
  578                        
  579                            <li class="index-item method deprecated">
  580                                <a href="#method_initialize">initialize</a>
  581
  582                                
  583                                
  584                                    <span class="flag deprecated">deprecated</span>
  585                                
  586                            </li>
  587                        
  588                            <li class="index-item method inherited">
  589                                <a href="#method_isVisible">isVisible</a>
  590
  591                                
  592                                
  593                            </li>
  594                        
  595                            <li class="index-item method inherited">
  596                                <a href="#method_localToGlobal">localToGlobal</a>
  597
  598                                
  599                                
  600                            </li>
  601                        
  602                            <li class="index-item method inherited">
  603                                <a href="#method_localToLocal">localToLocal</a>
  604
  605                                
  606                                
  607                            </li>
  608                        
  609                            <li class="index-item method inherited">
  610                                <a href="#method_off">off</a>
  611
  612                                
  613                                
  614                            </li>
  615                        
  616                            <li class="index-item method inherited">
  617                                <a href="#method_on">on</a>
  618
  619                                
  620                                
  621                            </li>
  622                        
  623                            <li class="index-item method">
  624                                <a href="#method_removeAllChildren">removeAllChildren</a>
  625
  626                                
  627                                
  628                            </li>
  629                        
  630                            <li class="index-item method inherited">
  631                                <a href="#method_removeAllEventListeners">removeAllEventListeners</a>
  632
  633                                
  634                                
  635                            </li>
  636                        
  637                            <li class="index-item method">
  638                                <a href="#method_removeChild">removeChild</a>
  639
  640                                
  641                                
  642                            </li>
  643                        
  644                            <li class="index-item method">
  645                                <a href="#method_removeChildAt">removeChildAt</a>
  646
  647                                
  648                                
  649                            </li>
  650                        
  651                            <li class="index-item method protected">
  652                                <a href="#method_removeChildAt">removeChildAt</a>
  653
  654                                
  655                                
  656                            </li>
  657                        
  658                            <li class="index-item method inherited">
  659                                <a href="#method_removeEventListener">removeEventListener</a>
  660
  661                                
  662                                
  663                            </li>
  664                        
  665                            <li class="index-item method inherited">
  666                                <a href="#method_set">set</a>
  667
  668                                
  669                                
  670                            </li>
  671                        
  672                            <li class="index-item method inherited">
  673                                <a href="#method_setBounds">setBounds</a>
  674
  675                                
  676                                
  677                            </li>
  678                        
  679                            <li class="index-item method">
  680                                <a href="#method_setChildIndex">setChildIndex</a>
  681
  682                                
  683                                
  684                            </li>
  685                        
  686                            <li class="index-item method inherited">
  687                                <a href="#method_setTransform">setTransform</a>
  688
  689                                
  690                                
  691                            </li>
  692                        
  693                            <li class="index-item method">
  694                                <a href="#method_sortChildren">sortChildren</a>
  695
  696                                
  697                                
  698                            </li>
  699                        
  700                            <li class="index-item method">
  701                                <a href="#method_swapChildren">swapChildren</a>
  702
  703                                
  704                                
  705                            </li>
  706                        
  707                            <li class="index-item method">
  708                                <a href="#method_swapChildrenAt">swapChildrenAt</a>
  709
  710                                
  711                                
  712                            </li>
  713                        
  714                            <li class="index-item method inherited">
  715                                <a href="#method_toString">toString</a>
  716
  717                                
  718                                
  719                            </li>
  720                        
  721                            <li class="index-item method inherited">
  722                                <a href="#method_uncache">uncache</a>
  723
  724                                
  725                                
  726                            </li>
  727                        
  728                            <li class="index-item method inherited">
  729                                <a href="#method_updateCache">updateCache</a>
  730
  731                                
  732                                
  733                            </li>
  734                        
  735                            <li class="index-item method inherited">
  736                                <a href="#method_updateContext">updateContext</a>
  737
  738                                
  739                                
  740                            </li>
  741                        
  742                            <li class="index-item method inherited">
  743                                <a href="#method_willTrigger">willTrigger</a>
  744
  745                                
  746                                
  747                            </li>
  748                        
  749                    </ul>
  750                </div>
  751            
  752
  753            
  754                <div class="index-section properties">
  755                    <h3>Properties</h3>
  756
  757                    <ul class="index-list properties extends">
  758                        
  759                            <li class="index-item property protected inherited">
  760                                <a href="#property__bounds">_bounds</a>
  761
  762                                
  763                                
  764                            </li>
  765                        
  766                            <li class="index-item property protected deprecated inherited">
  767                                <a href="#property__cacheDataURL">_cacheDataURL</a>
  768
  769                                
  770                                
  771                                    <span class="flag deprecated">deprecated</span>
  772                                
  773                            </li>
  774                        
  775                            <li class="index-item property protected deprecated inherited">
  776                                <a href="#property__cacheDataURLID">_cacheDataURLID</a>
  777
  778                                
  779                                
  780                                    <span class="flag deprecated">deprecated</span>
  781                                
  782                            </li>
  783                        
  784                            <li class="index-item property protected deprecated inherited">
  785                                <a href="#property__cacheScale">_cacheScale</a>
  786
  787                                
  788                                
  789                                    <span class="flag deprecated">deprecated</span>
  790                                
  791                            </li>
  792                        
  793                            <li class="index-item property protected inherited">
  794                                <a href="#property__captureListeners">_captureListeners</a>
  795
  796                                
  797                                
  798                            </li>
  799                        
  800                            <li class="index-item property protected inherited">
  801                                <a href="#property__listeners">_listeners</a>
  802
  803                                
  804                                
  805                            </li>
  806                        
  807                            <li class="index-item property protected inherited">
  808                                <a href="#property__props">_props</a>
  809
  810                                
  811                                
  812                            </li>
  813                        
  814                            <li class="index-item property protected inherited">
  815                                <a href="#property__rectangle">_rectangle</a>
  816
  817                                
  818                                
  819                            </li>
  820                        
  821                            <li class="index-item property protected inherited">
  822                                <a href="#property__webGLRenderStyle">_webGLRenderStyle</a>
  823
  824                                
  825                                
  826                            </li>
  827                        
  828                            <li class="index-item property inherited">
  829                                <a href="#property_alpha">alpha</a>
  830
  831                                
  832                                
  833                            </li>
  834                        
  835                            <li class="index-item property inherited">
  836                                <a href="#property_bitmapCache">bitmapCache</a>
  837
  838                                
  839                                
  840                            </li>
  841                        
  842                            <li class="index-item property inherited">
  843                                <a href="#property_cacheCanvas">cacheCanvas</a>
  844
  845                                
  846                                
  847                            </li>
  848                        
  849                            <li class="index-item property deprecated inherited">
  850                                <a href="#property_cacheID">cacheID</a>
  851
  852                                
  853                                
  854                                    <span class="flag deprecated">deprecated</span>
  855                                
  856                            </li>
  857                        
  858                            <li class="index-item property">
  859                                <a href="#property_children">children</a>
  860
  861                                
  862                                
  863                            </li>
  864                        
  865                            <li class="index-item property inherited">
  866                                <a href="#property_compositeOperation">compositeOperation</a>
  867
  868                                
  869                                
  870                            </li>
  871                        
  872                            <li class="index-item property inherited">
  873                                <a href="#property_cursor">cursor</a>
  874
  875                                
  876                                
  877                            </li>
  878                        
  879                            <li class="index-item property inherited">
  880                                <a href="#property_filters">filters</a>
  881
  882                                
  883                                
  884                            </li>
  885                        
  886                            <li class="index-item property inherited">
  887                                <a href="#property_hitArea">hitArea</a>
  888
  889                                
  890                                
  891                            </li>
  892                        
  893                            <li class="index-item property inherited">
  894                                <a href="#property_id">id</a>
  895
  896                                
  897                                
  898                            </li>
  899                        
  900                            <li class="index-item property inherited">
  901                                <a href="#property_mask">mask</a>
  902
  903                                
  904                                
  905                            </li>
  906                        
  907                            <li class="index-item property">
  908                                <a href="#property_mouseChildren">mouseChildren</a>
  909
  910                                
  911                                
  912                            </li>
  913                        
  914                            <li class="index-item property inherited">
  915                                <a href="#property_mouseEnabled">mouseEnabled</a>
  916
  917                                
  918                                
  919                            </li>
  920                        
  921                            <li class="index-item property inherited">
  922                                <a href="#property_name">name</a>
  923
  924                                
  925                                
  926                            </li>
  927                        
  928                            <li class="index-item property">
  929                                <a href="#property_numChildren">numChildren</a>
  930
  931                                
  932                                
  933                            </li>
  934                        
  935                            <li class="index-item property inherited">
  936                                <a href="#property_parent">parent</a>
  937
  938                                
  939                                
  940                            </li>
  941                        
  942                            <li class="index-item property inherited">
  943                                <a href="#property_regX">regX</a>
  944
  945                                
  946                                
  947                            </li>
  948                        
  949                            <li class="index-item property inherited">
  950                                <a href="#property_regY">regY</a>
  951
  952                                
  953                                
  954                            </li>
  955                        
  956                            <li class="index-item property inherited">
  957                                <a href="#property_rotation">rotation</a>
  958
  959                                
  960                                
  961                            </li>
  962                        
  963                            <li class="index-item property inherited inherited">
  964                                <a href="#property_scaleX">scaleX</a>
  965
  966                                
  967                                
  968                            </li>
  969                        
  970                            <li class="index-item property inherited">
  971                                <a href="#property_scaleY">scaleY</a>
  972
  973                                
  974                                
  975                            </li>
  976                        
  977                            <li class="index-item property inherited">
  978                                <a href="#property_shadow">shadow</a>
  979
  980                                
  981                                
  982                            </li>
  983                        
  984                            <li class="index-item property inherited">
  985                                <a href="#property_skewX">skewX</a>
  986
  987                                
  988                                
  989                            </li>
  990                        
  991                            <li class="index-item property inherited">
  992                                <a href="#property_skewY">skewY</a>
  993
  994                                
  995                                
  996                            </li>
  997                        
  998                            <li class="index-item property inherited">
  999                                <a href="#property_snapToPixel">snapToPixel</a>
 1000
 1001                                
 1002                                
 1003                            </li>
 1004                        
 1005                            <li class="index-item property inherited">
 1006                                <a href="#property_stage">stage</a>
 1007
 1008                                
 1009                                
 1010                            </li>
 1011                        
 1012                            <li class="index-item property">
 1013                                <a href="#property_tickChildren">tickChildren</a>
 1014
 1015                                
 1016                                
 1017                            </li>
 1018                        
 1019                            <li class="index-item property inherited">
 1020                                <a href="#property_tickEnabled">tickEnabled</a>
 1021
 1022                                
 1023                                
 1024                            </li>
 1025                        
 1026                            <li class="index-item property inherited">
 1027                                <a href="#property_transformMatrix">transformMatrix</a>
 1028
 1029                                
 1030                                
 1031                            </li>
 1032                        
 1033                            <li class="index-item property inherited">
 1034                                <a href="#property_visible">visible</a>
 1035
 1036                                
 1037                                
 1038                            </li>
 1039                        
 1040                            <li class="index-item property inherited">
 1041                                <a href="#property_x">x</a>
 1042
 1043                                
 1044                                
 1045                            </li>
 1046                        
 1047                            <li class="index-item property inherited">
 1048                                <a href="#property_y">y</a>
 1049
 1050                                
 1051                                
 1052                            </li>
 1053                        
 1054                    </ul>
 1055                </div>
 1056            
 1057
 1058            
 1059
 1060            
 1061                <div class="index-section events">
 1062                    <h3>Events</h3>
 1063
 1064                    <ul class="index-list events extends">
 1065                        
 1066                            <li class="index-item event inherited">
 1067                                <a href="#event_added">added</a>
 1068
 1069                                
 1070                                
 1071                            </li>
 1072                        
 1073                            <li class="index-item event inherited">
 1074                                <a href="#event_click">click</a>
 1075
 1076                                
 1077                                
 1078                            </li>
 1079                        
 1080                            <li class="index-item event inherited">
 1081                                <a href="#event_dblclick">dblclick</a>
 1082
 1083                                
 1084                                
 1085                            </li>
 1086                        
 1087                            <li class="index-item event inherited">
 1088                                <a href="#event_mousedown">mousedown</a>
 1089
 1090                                
 1091                                
 1092                            </li>
 1093                        
 1094                            <li class="index-item event inherited">
 1095                                <a href="#event_mouseout">mouseout</a>
 1096
 1097                                
 1098                                
 1099                            </li>
 1100                        
 1101                            <li class="index-item event inherited">
 1102                                <a href="#event_mouseover">mouseover</a>
 1103
 1104                                
 1105                                
 1106                            </li>
 1107                        
 1108                            <li class="index-item event inherited">
 1109                                <a href="#event_pressmove">pressmove</a>
 1110
 1111                                
 1112                                
 1113                            </li>
 1114                        
 1115                            <li class="index-item event inherited">
 1116                                <a href="#event_pressup">pressup</a>
 1117
 1118                                
 1119                                
 1120                            </li>
 1121                        
 1122                            <li class="index-item event inherited">
 1123                                <a href="#event_removed">removed</a>
 1124
 1125                                
 1126                                
 1127                            </li>
 1128                        
 1129                            <li class="index-item event inherited">
 1130                                <a href="#event_rollout">rollout</a>
 1131
 1132                                
 1133                                
 1134                            </li>
 1135                        
 1136                            <li class="index-item event inherited">
 1137                                <a href="#event_rollover">rollover</a>
 1138
 1139                                
 1140                                
 1141                            </li>
 1142                        
 1143                            <li class="index-item event inherited">
 1144                                <a href="#event_tick">tick</a>
 1145
 1146                                
 1147                                
 1148                            </li>
 1149                        
 1150                    </ul>
 1151                </div>
 1152            
 1153        </div>
 1154
 1155        
 1156            <div id="methods" class="api-class-tabpanel">
 1157                <h2 class="off-left">Methods</h2>
 1158
 1159                
 1160                    <div id="method__applyShadow" class="method item protected inherited">
 1161    <h3 class="name"><code>_applyShadow</code></h3>
 1162
 1163    
 1164        <div class="args">
 1165            <span class="paren">(</span><ul class="args-list inline commas">
 1166            
 1167                <li class="arg">
 1168                    
 1169                        <code>ctx</code>
 1170                    
 1171                </li>
 1172            
 1173                <li class="arg">
 1174                    
 1175                        <code>shadow</code>
 1176                    
 1177                </li>
 1178            
 1179            </ul><span class="paren">)</span>
 1180        </div>
 1181    
 1182
 1183    
 1184
 1185    
 1186
 1187    
 1188        <span class="flag protected">protected</span>
 1189    
 1190
 1191    
 1192
 1193    
 1194
 1195    
 1196
 1197    
 1198
 1199    <div class="meta">
 1200        
 1201            
 1202                <p>Inherited from
 1203                <a href="../classes/DisplayObject.html#method__applyShadow">DisplayObject</a>:
 1204            
 1205        
 1206        
 1207        <a href="../files/easeljs_display_DisplayObject.js.html#l1261"><code>_applyShadow:1261</code></a>
 1208        
 1209        </p>
 1210
 1211
 1212        
 1213
 1214        
 1215    </div>
 1216
 1217    <div class="description">
 1218        
 1219    </div>
 1220
 1221    
 1222        <div class="params">
 1223            <h4>Parameters:</h4>
 1224
 1225            <ul class="params-list">
 1226            
 1227                <li class="param">
 1228                    
 1229                        <code class="param-name">ctx</code>
 1230                        <span class="type">CanvasRenderingContext2D</span>
 1231                    
 1232
 1233                    
 1234
 1235                    <div class="param-description">
 1236                         
 1237                    </div>
 1238
 1239                    
 1240                </li>
 1241            
 1242                <li class="param">
 1243                    
 1244                        <code class="param-name">shadow</code>
 1245                        <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
 1246                    
 1247
 1248                    
 1249
 1250                    <div class="param-description">
 1251                         
 1252                    </div>
 1253
 1254                    
 1255                </li>
 1256            
 1257            </ul>
 1258        </div>
 1259    
 1260
 1261    
 1262
 1263    
 1264</div>
 1265
 1266                
 1267                    <div id="method__cloneProps" class="method item protected inherited">
 1268    <h3 class="name"><code>_cloneProps</code></h3>
 1269
 1270    
 1271        <div class="args">
 1272            <span class="paren">(</span><ul class="args-list inline commas">
 1273            
 1274                <li class="arg">
 1275                    
 1276                        <code>o</code>
 1277                    
 1278                </li>
 1279            
 1280            </ul><span class="paren">)</span>
 1281        </div>
 1282    
 1283
 1284    
 1285        <span class="returns-inline">
 1286            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 1287        </span>
 1288    
 1289
 1290    
 1291
 1292    
 1293        <span class="flag protected">protected</span>
 1294    
 1295
 1296    
 1297
 1298    
 1299
 1300    
 1301
 1302    
 1303
 1304    <div class="meta">
 1305        
 1306            
 1307                <p>Inherited from
 1308                <a href="../classes/DisplayObject.html#method__cloneProps">DisplayObject</a>:
 1309            
 1310        
 1311        
 1312        <a href="../files/easeljs_display_DisplayObject.js.html#l1228"><code>_cloneProps:1228</code></a>
 1313        
 1314        </p>
 1315
 1316
 1317        
 1318
 1319        
 1320    </div>
 1321
 1322    <div class="description">
 1323        
 1324    </div>
 1325
 1326    
 1327        <div class="params">
 1328            <h4>Parameters:</h4>
 1329
 1330            <ul class="params-list">
 1331            
 1332                <li class="param">
 1333                    
 1334                        <code class="param-name">o</code>
 1335                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 1336                    
 1337
 1338                    
 1339
 1340                    <div class="param-description">
 1341                        <p>The DisplayObject instance which will have properties from the current DisplayObject
 1342instance copied into.</p>
 1343
 1344                    </div>
 1345
 1346                    
 1347                </li>
 1348            
 1349            </ul>
 1350        </div>
 1351    
 1352
 1353    
 1354        <div class="returns">
 1355            <h4>Returns:</h4>
 1356
 1357            <div class="returns-description">
 1358                
 1359                    
 1360                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 1361                    
 1362                    <p>o</p>
 1363
 1364                
 1365            </div>
 1366        </div>
 1367    
 1368
 1369    
 1370</div>
 1371
 1372                
 1373                    <div id="method__dispatchEvent" class="method item protected inherited">
 1374    <h3 class="name"><code>_dispatchEvent</code></h3>
 1375
 1376    
 1377        <div class="args">
 1378            <span class="paren">(</span><ul class="args-list inline commas">
 1379            
 1380                <li class="arg">
 1381                    
 1382                        <code>eventObj</code>
 1383                    
 1384                </li>
 1385            
 1386                <li class="arg">
 1387                    
 1388                        <code>eventPhase</code>
 1389                    
 1390                </li>
 1391            
 1392            </ul><span class="paren">)</span>
 1393        </div>
 1394    
 1395
 1396    
 1397
 1398    
 1399
 1400    
 1401        <span class="flag protected">protected</span>
 1402    
 1403
 1404    
 1405
 1406    
 1407
 1408    
 1409
 1410    
 1411
 1412    <div class="meta">
 1413        
 1414            
 1415                <p>Inherited from
 1416                <a href="../classes/EventDispatcher.html#method__dispatchEvent">EventDispatcher</a>:
 1417            
 1418        
 1419        
 1420        <a href="../files/createjs_events_EventDispatcher.js.html#l380"><code>_dispatchEvent:380</code></a>
 1421        
 1422        </p>
 1423
 1424
 1425        
 1426
 1427        
 1428    </div>
 1429
 1430    <div class="description">
 1431        
 1432    </div>
 1433
 1434    
 1435        <div class="params">
 1436            <h4>Parameters:</h4>
 1437
 1438            <ul class="params-list">
 1439            
 1440                <li class="param">
 1441                    
 1442                        <code class="param-name">eventObj</code>
 1443                        <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>
 1444                    
 1445
 1446                    
 1447
 1448                    <div class="param-description">
 1449                         
 1450                    </div>
 1451
 1452                    
 1453                </li>
 1454            
 1455                <li class="param">
 1456                    
 1457                        <code class="param-name">eventPhase</code>
 1458                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 1459                    
 1460
 1461                    
 1462
 1463                    <div class="param-description">
 1464                         
 1465                    </div>
 1466
 1467                    
 1468                </li>
 1469            
 1470            </ul>
 1471        </div>
 1472    
 1473
 1474    
 1475
 1476    
 1477</div>
 1478
 1479                
 1480                    <div id="method__getBounds" class="method item protected">
 1481    <h3 class="name"><code>_getBounds</code></h3>
 1482
 1483    
 1484        <div class="args">
 1485            <span class="paren">(</span><ul class="args-list inline commas">
 1486            
 1487                <li class="arg">
 1488                    
 1489                        <code>matrix</code>
 1490                    
 1491                </li>
 1492            
 1493                <li class="arg">
 1494                    
 1495                        <code>ignoreTransform</code>
 1496                    
 1497                </li>
 1498            
 1499            </ul><span class="paren">)</span>
 1500        </div>
 1501    
 1502
 1503    
 1504        <span class="returns-inline">
 1505            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 1506        </span>
 1507    
 1508
 1509    
 1510
 1511    
 1512        <span class="flag protected">protected</span>
 1513    
 1514
 1515    
 1516
 1517    
 1518
 1519    
 1520
 1521    
 1522
 1523    <div class="meta">
 1524        
 1525            <p>Inherited from
 1526            <a href="../classes/DisplayObject.html#method__getBounds">
 1527                DisplayObject
 1528            </a>
 1529            
 1530            but overwritten in
 1531            
 1532        
 1533        
 1534        <a href="../files/easeljs_display_Container.js.html#l681"><code>_getBounds:681</code></a>
 1535        
 1536        </p>
 1537
 1538
 1539        
 1540
 1541        
 1542    </div>
 1543
 1544    <div class="description">
 1545        
 1546    </div>
 1547
 1548    
 1549        <div class="params">
 1550            <h4>Parameters:</h4>
 1551
 1552            <ul class="params-list">
 1553            
 1554                <li class="param">
 1555                    
 1556                        <code class="param-name">matrix</code>
 1557                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 1558                    
 1559
 1560                    
 1561
 1562                    <div class="param-description">
 1563                         
 1564                    </div>
 1565
 1566                    
 1567                </li>
 1568            
 1569                <li class="param">
 1570                    
 1571                        <code class="param-name">ignoreTransform</code>
 1572                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 1573                    
 1574
 1575                    
 1576
 1577                    <div class="param-description">
 1578                        <p>If true, does not apply this object&#39;s transform.</p>
 1579
 1580                    </div>
 1581
 1582                    
 1583                </li>
 1584            
 1585            </ul>
 1586        </div>
 1587    
 1588
 1589    
 1590        <div class="returns">
 1591            <h4>Returns:</h4>
 1592
 1593            <div class="returns-description">
 1594                
 1595                    
 1596                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 1597                    
 1598                
 1599            </div>
 1600        </div>
 1601    
 1602
 1603    
 1604</div>
 1605
 1606                
 1607                    <div id="method__getNumChildren" class="method item protected">
 1608    <h3 class="name"><code>_getNumChildren</code></h3>
 1609
 1610    
 1611        <span class="paren">()</span>
 1612    
 1613
 1614    
 1615        <span class="returns-inline">
 1616            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1617        </span>
 1618    
 1619
 1620    
 1621
 1622    
 1623        <span class="flag protected">protected</span>
 1624    
 1625
 1626    
 1627
 1628    
 1629
 1630    
 1631
 1632    
 1633
 1634    <div class="meta">
 1635        
 1636            
 1637                
 1638                <p>
 1639                
 1640                Defined in
 1641                
 1642            
 1643        
 1644        
 1645        <a href="../files/easeljs_display_Container.js.html#l97"><code>_getNumChildren:97</code></a>
 1646        
 1647        </p>
 1648
 1649
 1650        
 1651
 1652        
 1653    </div>
 1654
 1655    <div class="description">
 1656        <p>Use the <a href="../classes/Container.html#property_numChildren" class="crosslink">numChildren</a> property instead.</p>
 1657
 1658    </div>
 1659
 1660    
 1661
 1662    
 1663        <div class="returns">
 1664            <h4>Returns:</h4>
 1665
 1666            <div class="returns-description">
 1667                
 1668                    
 1669                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
 1670                    
 1671                
 1672            </div>
 1673        </div>
 1674    
 1675
 1676    
 1677</div>
 1678
 1679                
 1680                    <div id="method__getObjectsUnderPoint" class="method item protected">
 1681    <h3 class="name"><code>_getObjectsUnderPoint</code></h3>
 1682
 1683    
 1684        <div class="args">
 1685            <span class="paren">(</span><ul class="args-list inline commas">
 1686            
 1687                <li class="arg">
 1688                    
 1689                        <code>x</code>
 1690                    
 1691                </li>
 1692            
 1693                <li class="arg">
 1694                    
 1695                        <code>y</code>
 1696                    
 1697                </li>
 1698            
 1699                <li class="arg">
 1700                    
 1701                        <code>arr</code>
 1702                    
 1703                </li>
 1704            
 1705                <li class="arg">
 1706                    
 1707                        <code>mouse</code>
 1708                    
 1709                </li>
 1710            
 1711                <li class="arg">
 1712                    
 1713                        <code>activeListener</code>
 1714                    
 1715                </li>
 1716            
 1717                <li class="arg">
 1718                    
 1719                        <code>currentDepth</code>
 1720                    
 1721                </li>
 1722            
 1723            </ul><span class="paren">)</span>
 1724        </div>
 1725    
 1726
 1727    
 1728        <span class="returns-inline">
 1729            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 1730        </span>
 1731    
 1732
 1733    
 1734
 1735    
 1736        <span class="flag protected">protected</span>
 1737    
 1738
 1739    
 1740
 1741    
 1742
 1743    
 1744
 1745    
 1746
 1747    <div class="meta">
 1748        
 1749            
 1750                
 1751                <p>
 1752                
 1753                Defined in
 1754                
 1755            
 1756        
 1757        
 1758        <a href="../files/easeljs_display_Container.js.html#l596"><code>_getObjectsUnderPoint:596</code></a>
 1759        
 1760        </p>
 1761
 1762
 1763        
 1764
 1765        
 1766    </div>
 1767
 1768    <div class="description">
 1769        
 1770    </div>
 1771
 1772    
 1773        <div class="params">
 1774            <h4>Parameters:</h4>
 1775
 1776            <ul class="params-list">
 1777            
 1778                <li class="param">
 1779                    
 1780                        <code class="param-name">x</code>
 1781                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1782                    
 1783
 1784                    
 1785
 1786                    <div class="param-description">
 1787                         
 1788                    </div>
 1789
 1790                    
 1791                </li>
 1792            
 1793                <li class="param">
 1794                    
 1795                        <code class="param-name">y</code>
 1796                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1797                    
 1798
 1799                    
 1800
 1801                    <div class="param-description">
 1802                         
 1803                    </div>
 1804
 1805                    
 1806                </li>
 1807            
 1808                <li class="param">
 1809                    
 1810                        <code class="param-name">arr</code>
 1811                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 1812                    
 1813
 1814                    
 1815
 1816                    <div class="param-description">
 1817                         
 1818                    </div>
 1819
 1820                    
 1821                </li>
 1822            
 1823                <li class="param">
 1824                    
 1825                        <code class="param-name">mouse</code>
 1826                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 1827                    
 1828
 1829                    
 1830
 1831                    <div class="param-description">
 1832                        <p>If true, it will respect mouse interaction properties like mouseEnabled, mouseChildren, and active listeners.</p>
 1833
 1834                    </div>
 1835
 1836                    
 1837                </li>
 1838            
 1839                <li class="param">
 1840                    
 1841                        <code class="param-name">activeListener</code>
 1842                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 1843                    
 1844
 1845                    
 1846
 1847                    <div class="param-description">
 1848                        <p>If true, there is an active mouse event listener on a parent object.</p>
 1849
 1850                    </div>
 1851
 1852                    
 1853                </li>
 1854            
 1855                <li class="param">
 1856                    
 1857                        <code class="param-name">currentDepth</code>
 1858                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1859                    
 1860
 1861                    
 1862
 1863                    <div class="param-description">
 1864                        <p>Indicates the current depth of the search.</p>
 1865
 1866                    </div>
 1867
 1868                    
 1869                </li>
 1870            
 1871            </ul>
 1872        </div>
 1873    
 1874
 1875    
 1876        <div class="returns">
 1877            <h4>Returns:</h4>
 1878
 1879            <div class="returns-description">
 1880                
 1881                    
 1882                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 1883                    
 1884                
 1885            </div>
 1886        </div>
 1887    
 1888
 1889    
 1890</div>
 1891
 1892                
 1893                    <div id="method__getStage" class="method item protected inherited">
 1894    <h3 class="name"><code>_getStage</code></h3>
 1895
 1896    
 1897        <span class="paren">()</span>
 1898    
 1899
 1900    
 1901        <span class="returns-inline">
 1902            <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 1903        </span>
 1904    
 1905
 1906    
 1907
 1908    
 1909        <span class="flag protected">protected</span>
 1910    
 1911
 1912    
 1913
 1914    
 1915
 1916    
 1917
 1918    
 1919
 1920    <div class="meta">
 1921        
 1922            
 1923                <p>Inherited from
 1924                <a href="../classes/DisplayObject.html#method__getStage">DisplayObject</a>:
 1925            
 1926        
 1927        
 1928        <a href="../files/easeljs_display_DisplayObject.js.html#l672"><code>_getStage:672</code></a>
 1929        
 1930        </p>
 1931
 1932
 1933        
 1934
 1935        
 1936    </div>
 1937
 1938    <div class="description">
 1939        <p>Use the <a href="../classes/DisplayObject.html#property_stage" class="crosslink">stage</a> property instead.</p>
 1940
 1941    </div>
 1942
 1943    
 1944
 1945    
 1946        <div class="returns">
 1947            <h4>Returns:</h4>
 1948
 1949            <div class="returns-description">
 1950                
 1951                    
 1952                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>:
 1953                    
 1954                
 1955            </div>
 1956        </div>
 1957    
 1958
 1959    
 1960</div>
 1961
 1962                
 1963                    <div id="method__isMouseOpaque" class="method item protected inherited">
 1964    <h3 class="name"><code>_isMouseOpaque</code></h3>
 1965
 1966    
 1967        <span class="paren">()</span>
 1968    
 1969
 1970    
 1971        <span class="returns-inline">
 1972            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 1973        </span>
 1974    
 1975
 1976    
 1977
 1978    
 1979        <span class="flag protected">protected</span>
 1980    
 1981
 1982    
 1983
 1984    
 1985
 1986    
 1987
 1988    
 1989
 1990    <div class="meta">
 1991        
 1992            
 1993                <p>Inherited from
 1994                <a href="../classes/DisplayObject.html#method__isMouseOpaque">DisplayObject</a>:
 1995            
 1996        
 1997        
 1998        <a href="../files/easeljs_display_DisplayObject.js.html#l1352"><code>_isMouseOpaque:1352</code></a>
 1999        
 2000        </p>
 2001
 2002
 2003        
 2004
 2005        
 2006    </div>
 2007
 2008    <div class="description">
 2009        <p>Indicates whether the display object has any mouse event listeners or a cursor.</p>
 2010
 2011    </div>
 2012
 2013    
 2014
 2015    
 2016        <div class="returns">
 2017            <h4>Returns:</h4>
 2018
 2019            <div class="returns-description">
 2020                
 2021                    
 2022                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 2023                    
 2024                
 2025            </div>
 2026        </div>
 2027    
 2028
 2029    
 2030</div>
 2031
 2032                
 2033                    <div id="method__testHit" class="method item protected inherited">
 2034    <h3 class="name"><code>_testHit</code></h3>
 2035
 2036    
 2037        <div class="args">
 2038            <span class="paren">(</span><ul class="args-list inline commas">
 2039            
 2040                <li class="arg">
 2041                    
 2042                        <code>ctx</code>
 2043                    
 2044                </li>
 2045            
 2046            </ul><span class="paren">)</span>
 2047        </div>
 2048    
 2049
 2050    
 2051        <span class="returns-inline">
 2052            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2053        </span>
 2054    
 2055
 2056    
 2057
 2058    
 2059        <span class="flag protected">protected</span>
 2060    
 2061
 2062    
 2063
 2064    
 2065
 2066    
 2067
 2068    
 2069
 2070    <div class="meta">
 2071        
 2072            
 2073                <p>Inherited from
 2074                <a href="../classes/DisplayObject.html#method__testHit">DisplayObject</a>:
 2075            
 2076        
 2077        
 2078        <a href="../files/easeljs_display_DisplayObject.js.html#l1291"><code>_testHit:1291</code></a>
 2079        
 2080        </p>
 2081
 2082
 2083        
 2084
 2085        
 2086    </div>
 2087
 2088    <div class="description">
 2089        
 2090    </div>
 2091
 2092    
 2093        <div class="params">
 2094            <h4>Parameters:</h4>
 2095
 2096            <ul class="params-list">
 2097            
 2098                <li class="param">
 2099                    
 2100                        <code class="param-name">ctx</code>
 2101                        <span class="type">CanvasRenderingContext2D</span>
 2102                    
 2103
 2104                    
 2105
 2106                    <div class="param-description">
 2107                         
 2108                    </div>
 2109
 2110                    
 2111                </li>
 2112            
 2113            </ul>
 2114        </div>
 2115    
 2116
 2117    
 2118        <div class="returns">
 2119            <h4>Returns:</h4>
 2120
 2121            <div class="returns-description">
 2122                
 2123                    
 2124                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 2125                    
 2126                
 2127            </div>
 2128        </div>
 2129    
 2130
 2131    
 2132</div>
 2133
 2134                
 2135                    <div id="method__testMask" class="method item protected">
 2136    <h3 class="name"><code>_testMask</code></h3>
 2137
 2138    
 2139        <div class="args">
 2140            <span class="paren">(</span><ul class="args-list inline commas">
 2141            
 2142                <li class="arg">
 2143                    
 2144                        <code>target</code>
 2145                    
 2146                </li>
 2147            
 2148                <li class="arg">
 2149                    
 2150                        <code>x</code>
 2151                    
 2152                </li>
 2153            
 2154                <li class="arg">
 2155                    
 2156                        <code>y</code>
 2157                    
 2158                </li>
 2159            
 2160            </ul><span class="paren">)</span>
 2161        </div>
 2162    
 2163
 2164    
 2165        <span class="returns-inline">
 2166            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2167        </span>
 2168    
 2169
 2170    
 2171
 2172    
 2173        <span class="flag protected">protected</span>
 2174    
 2175
 2176    
 2177
 2178    
 2179
 2180    
 2181
 2182    
 2183
 2184    <div class="meta">
 2185        
 2186            
 2187                
 2188                <p>
 2189                
 2190                Defined in
 2191                
 2192            
 2193        
 2194        
 2195        <a href="../files/easeljs_display_Container.js.html#l650"><code>_testMask:650</code></a>
 2196        
 2197        </p>
 2198
 2199
 2200        
 2201
 2202        
 2203    </div>
 2204
 2205    <div class="description">
 2206        
 2207    </div>
 2208
 2209    
 2210        <div class="params">
 2211            <h4>Parameters:</h4>
 2212
 2213            <ul class="params-list">
 2214            
 2215                <li class="param">
 2216                    
 2217                        <code class="param-name">target</code>
 2218                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 2219                    
 2220
 2221                    
 2222
 2223                    <div class="param-description">
 2224                         
 2225                    </div>
 2226
 2227                    
 2228                </li>
 2229            
 2230                <li class="param">
 2231                    
 2232                        <code class="param-name">x</code>
 2233                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2234                    
 2235
 2236                    
 2237
 2238                    <div class="param-description">
 2239                         
 2240                    </div>
 2241
 2242                    
 2243                </li>
 2244            
 2245                <li class="param">
 2246                    
 2247                        <code class="param-name">y</code>
 2248                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2249                    
 2250
 2251                    
 2252
 2253                    <div class="param-description">
 2254                         
 2255                    </div>
 2256
 2257                    
 2258                </li>
 2259            
 2260            </ul>
 2261        </div>
 2262    
 2263
 2264    
 2265        <div class="returns">
 2266            <h4>Returns:</h4>
 2267
 2268            <div class="returns-description">
 2269                
 2270                    
 2271                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 2272                    
 2273                    <p>Indicates whether the x/y is within the masked region.</p>
 2274
 2275                
 2276            </div>
 2277        </div>
 2278    
 2279
 2280    
 2281</div>
 2282
 2283                
 2284                    <div id="method__tick" class="method item protected">
 2285    <h3 class="name"><code>_tick</code></h3>
 2286
 2287    
 2288        <div class="args">
 2289            <span class="paren">(</span><ul class="args-list inline commas">
 2290            
 2291                <li class="arg">
 2292                    
 2293                        <code>evtObj</code>
 2294                    
 2295                </li>
 2296            
 2297            </ul><span class="paren">)</span>
 2298        </div>
 2299    
 2300
 2301    
 2302
 2303    
 2304
 2305    
 2306        <span class="flag protected">protected</span>
 2307    
 2308
 2309    
 2310
 2311    
 2312
 2313    
 2314
 2315    
 2316
 2317    <div class="meta">
 2318        
 2319            <p>Inherited from
 2320            <a href="../classes/DisplayObject.html#method__tick">
 2321                DisplayObject
 2322            </a>
 2323            
 2324            but overwritten in
 2325            
 2326        
 2327        
 2328        <a href="../files/easeljs_display_Container.js.html#l547"><code>_tick:547</code></a>
 2329        
 2330        </p>
 2331
 2332
 2333        
 2334
 2335        
 2336    </div>
 2337
 2338    <div class="description">
 2339        
 2340    </div>
 2341
 2342    
 2343        <div class="params">
 2344            <h4>Parameters:</h4>
 2345
 2346            <ul class="params-list">
 2347            
 2348                <li class="param">
 2349                    
 2350                        <code class="param-name">evtObj</code>
 2351                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 2352                    
 2353
 2354                    
 2355
 2356                    <div class="param-description">
 2357                        <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>
 2358
 2359                    </div>
 2360
 2361                    
 2362                </li>
 2363            
 2364            </ul>
 2365        </div>
 2366    
 2367
 2368    
 2369
 2370    
 2371</div>
 2372
 2373                
 2374                    <div id="method__transformBounds" class="method item protected inherited">
 2375    <h3 class="name"><code>_transformBounds</code></h3>
 2376
 2377    
 2378        <div class="args">
 2379            <span class="paren">(</span><ul class="args-list inline commas">
 2380            
 2381                <li class="arg">
 2382                    
 2383                        <code>bounds</code>
 2384                    
 2385                </li>
 2386            
 2387                <li class="arg">
 2388                    
 2389                        <code>matrix</code>
 2390                    
 2391                </li>
 2392            
 2393                <li class="arg">
 2394                    
 2395                        <code>ignoreTransform</code>
 2396                    
 2397                </li>
 2398            
 2399            </ul><span class="paren">)</span>
 2400        </div>
 2401    
 2402
 2403    
 2404        <span class="returns-inline">
 2405            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 2406        </span>
 2407    
 2408
 2409    
 2410
 2411    
 2412        <span class="flag protected">protected</span>
 2413    
 2414
 2415    
 2416
 2417    
 2418
 2419    
 2420
 2421    
 2422
 2423    <div class="meta">
 2424        
 2425            
 2426                <p>Inherited from
 2427                <a href="../classes/DisplayObject.html#method__transformBounds">DisplayObject</a>:
 2428            
 2429        
 2430        
 2431        <a href="../files/easeljs_display_DisplayObject.js.html#l1319"><code>_transformBounds:1319</code></a>
 2432        
 2433        </p>
 2434
 2435
 2436        
 2437
 2438        
 2439    </div>
 2440
 2441    <div class="description">
 2442        
 2443    </div>
 2444
 2445    
 2446        <div class="params">
 2447            <h4>Parameters:</h4>
 2448
 2449            <ul class="params-list">
 2450            
 2451                <li class="param">
 2452                    
 2453                        <code class="param-name">bounds</code>
 2454                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</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">matrix</code>
 2469                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 2470                    
 2471
 2472                    
 2473
 2474                    <div class="param-description">
 2475                         
 2476                    </div>
 2477
 2478                    
 2479                </li>
 2480            
 2481                <li class="param">
 2482                    
 2483                        <code class="param-name">ignoreTransform</code>
 2484                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2485                    
 2486
 2487                    
 2488
 2489                    <div class="param-description">
 2490                         
 2491                    </div>
 2492
 2493                    
 2494                </li>
 2495            
 2496            </ul>
 2497        </div>
 2498    
 2499
 2500    
 2501        <div class="returns">
 2502            <h4>Returns:</h4>
 2503
 2504            <div class="returns-description">
 2505                
 2506                    
 2507                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 2508                    
 2509                
 2510            </div>
 2511        </div>
 2512    
 2513
 2514    
 2515</div>
 2516
 2517                
 2518                    <div id="method__updateState" class="method item inherited">
 2519    <h3 class="name"><code>_updateState</code></h3>
 2520
 2521    
 2522        <span class="paren">()</span>
 2523    
 2524
 2525    
 2526
 2527    
 2528
 2529    
 2530
 2531    
 2532
 2533    
 2534
 2535    
 2536
 2537    
 2538
 2539    <div class="meta">
 2540        
 2541            
 2542                <p>Inherited from
 2543                <a href="../classes/DisplayObject.html#method__updateState">DisplayObject</a>:
 2544            
 2545        
 2546        
 2547        <a href="../files/easeljs_display_DisplayObject.js.html#l1214"><code>_updateState:1214</code></a>
 2548        
 2549        </p>
 2550
 2551
 2552        
 2553
 2554        
 2555    </div>
 2556
 2557    <div class="description">
 2558        <p>Called before the object gets drawn and is a chance to ensure the display state of the object is correct.
 2559Mostly used by <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> and <a href="../classes/BitmapText.html" class="crosslink">BitmapText</a> to
 2560correct their internal state and children prior to being drawn.</p>
 2561<p>Is manually called via draw in a <a href="../classes/Stage.html" class="crosslink">Stage</a> but is automatically called when
 2562present in a <a href="../classes/StageGL.html" class="crosslink">StageGL</a> instance.</p>
 2563
 2564    </div>
 2565
 2566    
 2567
 2568    
 2569
 2570    
 2571</div>
 2572
 2573                
 2574                    <div id="method_addChild" class="method item">
 2575    <h3 class="name"><code>addChild</code></h3>
 2576
 2577    
 2578        <div class="args">
 2579            <span class="paren">(</span><ul class="args-list inline commas">
 2580            
 2581                <li class="arg">
 2582                    
 2583                        <code>child</code>
 2584                    
 2585                </li>
 2586            
 2587            </ul><span class="paren">)</span>
 2588        </div>
 2589    
 2590
 2591    
 2592        <span class="returns-inline">
 2593            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 2594        </span>
 2595    
 2596
 2597    
 2598
 2599    
 2600
 2601    
 2602
 2603    
 2604
 2605    
 2606
 2607    
 2608
 2609    <div class="meta">
 2610        
 2611            
 2612                
 2613                <p>
 2614                
 2615                Defined in
 2616                
 2617            
 2618        
 2619        
 2620        <a href="../files/easeljs_display_Container.js.html#l173"><code>addChild:173</code></a>
 2621        
 2622        </p>
 2623
 2624
 2625        
 2626
 2627        
 2628    </div>
 2629
 2630    <div class="description">
 2631        <p>Adds a child to the top of the display list.</p>
 2632<h4>Example</h4>
 2633
 2634<pre class="code prettyprint"><code>    container.addChild(bitmapInstance);</code></pre>
 2635<p>You can also add multiple children at once:</p>
 2636<pre class="code prettyprint"><code>    container.addChild(bitmapInstance, shapeInstance, textInstance);</code></pre>
 2637
 2638    </div>
 2639
 2640    
 2641        <div class="params">
 2642            <h4>Parameters:</h4>
 2643
 2644            <ul class="params-list">
 2645            
 2646                <li class="param">
 2647                    
 2648                        <code class="param-name">child</code>
 2649                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 2650                    
 2651
 2652                    
 2653
 2654                    <div class="param-description">
 2655                        <p>The display object to add.</p>
 2656
 2657                    </div>
 2658
 2659                    
 2660                </li>
 2661            
 2662            </ul>
 2663        </div>
 2664    
 2665
 2666    
 2667        <div class="returns">
 2668            <h4>Returns:</h4>
 2669
 2670            <div class="returns-description">
 2671                
 2672                    
 2673                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 2674                    
 2675                    <p>The child that was added, or the last child if multiple children were added.</p>
 2676
 2677                
 2678            </div>
 2679        </div>
 2680    
 2681
 2682    
 2683</div>
 2684
 2685                
 2686                    <div id="method_addChildAt" class="method item">
 2687    <h3 class="name"><code>addChildAt</code></h3>
 2688
 2689    
 2690        <div class="args">
 2691            <span class="paren">(</span><ul class="args-list inline commas">
 2692            
 2693                <li class="arg">
 2694                    
 2695                        <code>child</code>
 2696                    
 2697                </li>
 2698            
 2699                <li class="arg">
 2700                    
 2701                        <code>index</code>
 2702                    
 2703                </li>
 2704            
 2705            </ul><span class="paren">)</span>
 2706        </div>
 2707    
 2708
 2709    
 2710        <span class="returns-inline">
 2711            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 2712        </span>
 2713    
 2714
 2715    
 2716
 2717    
 2718
 2719    
 2720
 2721    
 2722
 2723    
 2724
 2725    
 2726
 2727    <div class="meta">
 2728        
 2729            
 2730                
 2731                <p>
 2732                
 2733                Defined in
 2734                
 2735            
 2736        
 2737        
 2738        <a href="../files/easeljs_display_Container.js.html#l204"><code>addChildAt:204</code></a>
 2739        
 2740        </p>
 2741
 2742
 2743        
 2744
 2745        
 2746    </div>
 2747
 2748    <div class="description">
 2749        <p>Adds a child to the display list at the specified index, bumping children at equal or greater indexes up one, and
 2750setting its parent to this Container.</p>
 2751<h4>Example</h4>
 2752
 2753<pre class="code prettyprint"><code> addChildAt(child1, index);</code></pre>
 2754<p>You can also add multiple children, such as:</p>
 2755<pre class="code prettyprint"><code> addChildAt(child1, child2, ..., index);</code></pre>
 2756<p>The index must be between 0 and numChildren. For example, to add myShape under otherShape in the display list,
 2757you could use:</p>
 2758<pre class="code prettyprint"><code> container.addChildAt(myShape, container.getChildIndex(otherShape));</code></pre>
 2759<p>This would also bump otherShape&#39;s index up by one. Fails silently if the index is out of range.</p>
 2760
 2761    </div>
 2762
 2763    
 2764        <div class="params">
 2765            <h4>Parameters:</h4>
 2766
 2767            <ul class="params-list">
 2768            
 2769                <li class="param">
 2770                    
 2771                        <code class="param-name">child</code>
 2772                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 2773                    
 2774
 2775                    
 2776
 2777                    <div class="param-description">
 2778                        <p>The display object to add.</p>
 2779
 2780                    </div>
 2781
 2782                    
 2783                </li>
 2784            
 2785                <li class="param">
 2786                    
 2787                        <code class="param-name">index</code>
 2788                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2789                    
 2790
 2791                    
 2792
 2793                    <div class="param-description">
 2794                        <p>The index to add the child at.</p>
 2795
 2796                    </div>
 2797
 2798                    
 2799                </li>
 2800            
 2801            </ul>
 2802        </div>
 2803    
 2804
 2805    
 2806        <div class="returns">
 2807            <h4>Returns:</h4>
 2808
 2809            <div class="returns-description">
 2810                
 2811                    
 2812                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 2813                    
 2814                    <p>Returns the last child that was added, or the last child if multiple children were added.</p>
 2815
 2816                
 2817            </div>
 2818        </div>
 2819    
 2820
 2821    
 2822</div>
 2823
 2824                
 2825                    <div id="method_addEventListener" class="method item inherited">
 2826    <h3 class="name"><code>addEventListener</code></h3>
 2827
 2828    
 2829        <div class="args">
 2830            <span class="paren">(</span><ul class="args-list inline commas">
 2831            
 2832                <li class="arg">
 2833                    
 2834                        <code>type</code>
 2835                    
 2836                </li>
 2837            
 2838                <li class="arg">
 2839                    
 2840                        <code>listener</code>
 2841                    
 2842                </li>
 2843            
 2844                <li class="arg">
 2845                    
 2846                        <code class="optional">[useCapture]</code>
 2847                    
 2848                </li>
 2849            
 2850            </ul><span class="paren">)</span>
 2851        </div>
 2852    
 2853
 2854    
 2855        <span class="returns-inline">
 2856            <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>
 2857        </span>
 2858    
 2859
 2860    
 2861
 2862    
 2863
 2864    
 2865
 2866    
 2867
 2868    
 2869
 2870    
 2871
 2872    <div class="meta">
 2873        
 2874            
 2875                <p>Inherited from
 2876                <a href="../classes/EventDispatcher.html#method_addEventListener">EventDispatcher</a>:
 2877            
 2878        
 2879        
 2880        <a href="../files/createjs_events_EventDispatcher.js.html#l140"><code>addEventListener:140</code></a>
 2881        
 2882        </p>
 2883
 2884
 2885        
 2886
 2887        
 2888    </div>
 2889
 2890    <div class="description">
 2891        <p><p>Adds the specified event listener. Note that adding multiple listeners to the same function will result in
 2892multiple callbacks getting fired.</p></p>
 2893<h4>Example</h4>
 2894
 2895<pre class="code prettyprint"><code> displayObject.addEventListener("click", handleClick);
 2896 function handleClick(event) {
 2897    // Click happened.
 2898 }</code></pre>
 2899
 2900    </div>
 2901
 2902    
 2903        <div class="params">
 2904            <h4>Parameters:</h4>
 2905
 2906            <ul class="params-list">
 2907            
 2908                <li class="param">
 2909                    
 2910                        <code class="param-name">type</code>
 2911                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 2912                    
 2913
 2914                    
 2915
 2916                    <div class="param-description">
 2917                        <p>The string type of the event.</p>
 2918
 2919                    </div>
 2920
 2921                    
 2922                </li>
 2923            
 2924                <li class="param">
 2925                    
 2926                        <code class="param-name">listener</code>
 2927                        <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>
 2928                    
 2929
 2930                    
 2931
 2932                    <div class="param-description">
 2933                        <p>An object with a handleEvent method, or a function that will be called when
 2934the event is dispatched.</p>
 2935
 2936                    </div>
 2937
 2938                    
 2939                </li>
 2940            
 2941                <li class="param">
 2942                    
 2943                        <code class="param-name optional">[useCapture]</code>
 2944                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 2945                        <span class="flag optional" title="This parameter is optional.">optional</span>
 2946                    
 2947
 2948                    
 2949
 2950                    <div class="param-description">
 2951                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
 2952
 2953                    </div>
 2954
 2955                    
 2956                </li>
 2957            
 2958            </ul>
 2959        </div>
 2960    
 2961
 2962    
 2963        <div class="returns">
 2964            <h4>Returns:</h4>
 2965
 2966            <div class="returns-description">
 2967                
 2968                    
 2969                        <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>:
 2970                    
 2971                    <p>Returns the listener for chaining or assignment.</p>
 2972
 2973                
 2974            </div>
 2975        </div>
 2976    
 2977
 2978    
 2979</div>
 2980
 2981                
 2982                    <div id="method_cache" class="method item inherited">
 2983    <h3 class="name"><code>cache</code></h3>
 2984
 2985    
 2986        <div class="args">
 2987            <span class="paren">(</span><ul class="args-list inline commas">
 2988            
 2989                <li class="arg">
 2990                    
 2991                        <code>x</code>
 2992                    
 2993                </li>
 2994            
 2995                <li class="arg">
 2996                    
 2997                        <code>y</code>
 2998                    
 2999                </li>
 3000            
 3001                <li class="arg">
 3002                    
 3003                        <code>width</code>
 3004                    
 3005                </li>
 3006            
 3007                <li class="arg">
 3008                    
 3009                        <code>height</code>
 3010                    
 3011                </li>
 3012            
 3013                <li class="arg">
 3014                    
 3015                        <code class="optional">[scale=1]</code>
 3016                    
 3017                </li>
 3018            
 3019                <li class="arg">
 3020                    
 3021                        <code class="optional">[options=undefined]</code>
 3022                    
 3023                </li>
 3024            
 3025            </ul><span class="paren">)</span>
 3026        </div>
 3027    
 3028
 3029    
 3030
 3031    
 3032
 3033    
 3034
 3035    
 3036
 3037    
 3038
 3039    
 3040
 3041    
 3042
 3043    <div class="meta">
 3044        
 3045            
 3046                <p>Inherited from
 3047                <a href="../classes/DisplayObject.html#method_cache">DisplayObject</a>:
 3048            
 3049        
 3050        
 3051        <a href="../files/easeljs_display_DisplayObject.js.html#l792"><code>cache:792</code></a>
 3052        
 3053        </p>
 3054
 3055
 3056        
 3057
 3058        
 3059    </div>
 3060
 3061    <div class="description">
 3062        <p>Draws the display object into a new element, which is then used for subsequent draws. Intended for complex content
 3063that does not change frequently (ex. a Container with many children that do not move, or a complex vector Shape),
 3064this can provide for much faster rendering because the content does not need to be re-rendered each tick. The
 3065cached display object can be moved, rotated, faded, etc freely, however if its content changes, you must manually
 3066update the cache by calling <code>updateCache()</code> again. You must specify the cached area via the x, y, w,
 3067and h parameters. This defines the rectangle that will be rendered and cached using this display object&#39;s coordinates.</p>
 3068<p><h4>Example</h4>
 3069For example if you defined a Shape that drew a circle at 0, 0 with a radius of 25:</p>
 3070<pre class="code prettyprint"><code> var shape = new createjs.Shape();
 3071 shape.graphics.beginFill("#ff0000").drawCircle(0, 0, 25);
 3072 shape.cache(-25, -25, 50, 50);</code></pre>
 3073<p>Note that filters need to be defined <em>before</em> the cache is applied or you will have to call updateCache after
 3074application. Check out the <a href="../classes/Filter.html" class="crosslink">Filter</a> class for more information. Some filters
 3075(ex. BlurFilter) may not work as expected in conjunction with the scale param.</p>
 3076<p>Usually, the resulting cacheCanvas will have the dimensions width <em> scale, height </em> scale, however some filters (ex. BlurFilter)
 3077will add padding to the canvas dimensions.</p>
 3078<p>In previous versions caching was handled on DisplayObject but has since been moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>.
 3079This allows for easier interaction and alternate cache methods like WebGL with <a href="../classes/StageGL.html" class="crosslink">StageGL</a>.
 3080For more information on the options object, see the BitmapCache BitmapCache/define.</p>
 3081
 3082    </div>
 3083
 3084    
 3085        <div class="params">
 3086            <h4>Parameters:</h4>
 3087
 3088            <ul class="params-list">
 3089            
 3090                <li class="param">
 3091                    
 3092                        <code class="param-name">x</code>
 3093                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3094                    
 3095
 3096                    
 3097
 3098                    <div class="param-description">
 3099                        <p>The x coordinate origin for the cache region.</p>
 3100
 3101                    </div>
 3102
 3103                    
 3104                </li>
 3105            
 3106                <li class="param">
 3107                    
 3108                        <code class="param-name">y</code>
 3109                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3110                    
 3111
 3112                    
 3113
 3114                    <div class="param-description">
 3115                        <p>The y coordinate origin for the cache region.</p>
 3116
 3117                    </div>
 3118
 3119                    
 3120                </li>
 3121            
 3122                <li class="param">
 3123                    
 3124                        <code class="param-name">width</code>
 3125                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3126                    
 3127
 3128                    
 3129
 3130                    <div class="param-description">
 3131                        <p>The width of the cache region.</p>
 3132
 3133                    </div>
 3134
 3135                    
 3136                </li>
 3137            
 3138                <li class="param">
 3139                    
 3140                        <code class="param-name">height</code>
 3141                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3142                    
 3143
 3144                    
 3145
 3146                    <div class="param-description">
 3147                        <p>The height of the cache region.</p>
 3148
 3149                    </div>
 3150
 3151                    
 3152                </li>
 3153            
 3154                <li class="param">
 3155                    
 3156                        <code class="param-name optional">[scale=1]</code>
 3157                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3158                        <span class="flag optional" title="This parameter is optional.">optional</span>
 3159                    
 3160
 3161                    
 3162
 3163                    <div class="param-description">
 3164                        <p>The scale at which the cache will be created. For example, if you cache a vector shape using
 3165    myShape.cache(0,0,100,100,2) then the resulting cacheCanvas will be 200x200 px. This lets you scale and rotate
 3166    cached elements with greater fidelity. Default is 1.</p>
 3167
 3168                    </div>
 3169
 3170                    
 3171                </li>
 3172            
 3173                <li class="param">
 3174                    
 3175                        <code class="param-name optional">[options=undefined]</code>
 3176                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 3177                        <span class="flag optional" title="This parameter is optional.">optional</span>
 3178                    
 3179
 3180                    
 3181
 3182                    <div class="param-description">
 3183                        <p>Specify additional parameters for the cache logic</p>
 3184
 3185                    </div>
 3186
 3187                    
 3188                </li>
 3189            
 3190            </ul>
 3191        </div>
 3192    
 3193
 3194    
 3195
 3196    
 3197</div>
 3198
 3199                
 3200                    <div id="method_clone" class="method item">
 3201    <h3 class="name"><code>clone</code></h3>
 3202
 3203    
 3204        <div class="args">
 3205            <span class="paren">(</span><ul class="args-list inline commas">
 3206            
 3207                <li class="arg">
 3208                    
 3209                        <code class="optional">[recursive=false]</code>
 3210                    
 3211                </li>
 3212            
 3213            </ul><span class="paren">)</span>
 3214        </div>
 3215    
 3216
 3217    
 3218        <span class="returns-inline">
 3219            <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
 3220        </span>
 3221    
 3222
 3223    
 3224
 3225    
 3226
 3227    
 3228
 3229    
 3230
 3231    
 3232
 3233    
 3234
 3235    <div class="meta">
 3236        
 3237            <p>Inherited from
 3238            <a href="../classes/DisplayObject.html#method_clone">
 3239                DisplayObject
 3240            </a>
 3241            
 3242            but overwritten in
 3243            
 3244        
 3245        
 3246        <a href="../files/easeljs_display_Container.js.html#l522"><code>clone:522</code></a>
 3247        
 3248        </p>
 3249
 3250
 3251        
 3252
 3253        
 3254    </div>
 3255
 3256    <div class="description">
 3257        <p>Returns a clone of this Container. Some properties that are specific to this instance&#39;s current context are
 3258reverted to their defaults (for example .parent).</p>
 3259
 3260    </div>
 3261
 3262    
 3263        <div class="params">
 3264            <h4>Parameters:</h4>
 3265
 3266            <ul class="params-list">
 3267            
 3268                <li class="param">
 3269                    
 3270                        <code class="param-name optional">[recursive=false]</code>
 3271                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3272                        <span class="flag optional" title="This parameter is optional.">optional</span>
 3273                    
 3274
 3275                    
 3276
 3277                    <div class="param-description">
 3278                        <p>If true, all of the descendants of this container will be cloned recursively. If false, the
 3279properties of the container will be cloned, but the new instance will not have any children.</p>
 3280
 3281                    </div>
 3282
 3283                    
 3284                </li>
 3285            
 3286            </ul>
 3287        </div>
 3288    
 3289
 3290    
 3291        <div class="returns">
 3292            <h4>Returns:</h4>
 3293
 3294            <div class="returns-description">
 3295                
 3296                    
 3297                        <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>:
 3298                    
 3299                    <p>A clone of the current Container instance.</p>
 3300
 3301                
 3302            </div>
 3303        </div>
 3304    
 3305
 3306    
 3307</div>
 3308
 3309                
 3310                    <div id="method_cloneChildren" class="method item protected">
 3311    <h3 class="name"><code>cloneChildren</code></h3>
 3312
 3313    
 3314        <div class="args">
 3315            <span class="paren">(</span><ul class="args-list inline commas">
 3316            
 3317                <li class="arg">
 3318                    
 3319                        <code>o</code>
 3320                    
 3321                </li>
 3322            
 3323            </ul><span class="paren">)</span>
 3324        </div>
 3325    
 3326
 3327    
 3328
 3329    
 3330
 3331    
 3332        <span class="flag protected">protected</span>
 3333    
 3334
 3335    
 3336
 3337    
 3338
 3339    
 3340
 3341    
 3342
 3343    <div class="meta">
 3344        
 3345            
 3346                
 3347                <p>
 3348                
 3349                Defined in
 3350                
 3351            
 3352        
 3353        
 3354        <a href="../files/easeljs_display_Container.js.html#l562"><code>cloneChildren:562</code></a>
 3355        
 3356        </p>
 3357
 3358
 3359        
 3360
 3361        
 3362    </div>
 3363
 3364    <div class="description">
 3365        <p>Recursively clones all children of this container, and adds them to the target container.</p>
 3366
 3367    </div>
 3368
 3369    
 3370        <div class="params">
 3371            <h4>Parameters:</h4>
 3372
 3373            <ul class="params-list">
 3374            
 3375                <li class="param">
 3376                    
 3377                        <code class="param-name">o</code>
 3378                        <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
 3379                    
 3380
 3381                    
 3382
 3383                    <div class="param-description">
 3384                        <p>The target container.</p>
 3385
 3386                    </div>
 3387
 3388                    
 3389                </li>
 3390            
 3391            </ul>
 3392        </div>
 3393    
 3394
 3395    
 3396
 3397    
 3398</div>
 3399
 3400                
 3401                    <div id="method_contains" class="method item">
 3402    <h3 class="name"><code>contains</code></h3>
 3403
 3404    
 3405        <div class="args">
 3406            <span class="paren">(</span><ul class="args-list inline commas">
 3407            
 3408                <li class="arg">
 3409                    
 3410                        <code>child</code>
 3411                    
 3412                </li>
 3413            
 3414            </ul><span class="paren">)</span>
 3415        </div>
 3416    
 3417
 3418    
 3419        <span class="returns-inline">
 3420            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3421        </span>
 3422    
 3423
 3424    
 3425
 3426    
 3427
 3428    
 3429
 3430    
 3431
 3432    
 3433
 3434    
 3435
 3436    <div class="meta">
 3437        
 3438            
 3439                
 3440                <p>
 3441                
 3442                Defined in
 3443                
 3444            
 3445        
 3446        
 3447        <a href="../files/easeljs_display_Container.js.html#l430"><code>contains:430</code></a>
 3448        
 3449        </p>
 3450
 3451
 3452        
 3453
 3454        
 3455    </div>
 3456
 3457    <div class="description">
 3458        <p>Returns true if the specified display object either is this container or is a descendent (child, grandchild, etc)
 3459of this container.</p>
 3460
 3461    </div>
 3462
 3463    
 3464        <div class="params">
 3465            <h4>Parameters:</h4>
 3466
 3467            <ul class="params-list">
 3468            
 3469                <li class="param">
 3470                    
 3471                        <code class="param-name">child</code>
 3472                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 3473                    
 3474
 3475                    
 3476
 3477                    <div class="param-description">
 3478                        <p>The DisplayObject to be checked.</p>
 3479
 3480                    </div>
 3481
 3482                    
 3483                </li>
 3484            
 3485            </ul>
 3486        </div>
 3487    
 3488
 3489    
 3490        <div class="returns">
 3491            <h4>Returns:</h4>
 3492
 3493            <div class="returns-description">
 3494                
 3495                    
 3496                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 3497                    
 3498                    <p>true if the specified display object either is this container or is a descendent.</p>
 3499
 3500                
 3501            </div>
 3502        </div>
 3503    
 3504
 3505    
 3506</div>
 3507
 3508                
 3509                    <div id="method_dispatchEvent" class="method item inherited">
 3510    <h3 class="name"><code>dispatchEvent</code></h3>
 3511
 3512    
 3513        <div class="args">
 3514            <span class="paren">(</span><ul class="args-list inline commas">
 3515            
 3516                <li class="arg">
 3517                    
 3518                        <code>eventObj</code>
 3519                    
 3520                </li>
 3521            
 3522                <li class="arg">
 3523                    
 3524                        <code class="optional">[bubbles]</code>
 3525                    
 3526                </li>
 3527            
 3528                <li class="arg">
 3529                    
 3530                        <code class="optional">[cancelable]</code>
 3531                    
 3532                </li>
 3533            
 3534            </ul><span class="paren">)</span>
 3535        </div>
 3536    
 3537
 3538    
 3539        <span class="returns-inline">
 3540            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3541        </span>
 3542    
 3543
 3544    
 3545
 3546    
 3547
 3548    
 3549
 3550    
 3551
 3552    
 3553
 3554    
 3555
 3556    <div class="meta">
 3557        
 3558            
 3559                <p>Inherited from
 3560                <a href="../classes/EventDispatcher.html#method_dispatchEvent">EventDispatcher</a>:
 3561            
 3562        
 3563        
 3564        <a href="../files/createjs_events_EventDispatcher.js.html#l285"><code>dispatchEvent:285</code></a>
 3565        
 3566        </p>
 3567
 3568
 3569        
 3570
 3571        
 3572    </div>
 3573
 3574    <div class="description">
 3575        <p><p>Dispatches the specified event to all listeners.</p></p>
 3576<h4>Example</h4>
 3577
 3578<pre class="code prettyprint"><code> // Use a string event
 3579 this.dispatchEvent("complete");
 3580
 3581 // Use an Event instance
 3582 var event = new createjs.Event("progress");
 3583 this.dispatchEvent(event);</code></pre>
 3584
 3585    </div>
 3586
 3587    
 3588        <div class="params">
 3589            <h4>Parameters:</h4>
 3590
 3591            <ul class="params-list">
 3592            
 3593                <li class="param">
 3594                    
 3595                        <code class="param-name">eventObj</code>
 3596                        <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>
 3597                    
 3598
 3599                    
 3600
 3601                    <div class="param-description">
 3602                        <p>An object with a "type" property, or a string type.
 3603While a generic object will work, it is recommended to use a CreateJS Event instance. If a string is used,
 3604dispatchEvent will construct an Event instance if necessary with the specified type. This latter approach can
 3605be used to avoid event object instantiation for non-bubbling events that may not have any listeners.</p>
 3606
 3607                    </div>
 3608
 3609                    
 3610                </li>
 3611            
 3612                <li class="param">
 3613                    
 3614                        <code class="param-name optional">[bubbles]</code>
 3615                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3616                        <span class="flag optional" title="This parameter is optional.">optional</span>
 3617                    
 3618
 3619                    
 3620
 3621                    <div class="param-description">
 3622                        <p>Specifies the <code>bubbles</code> value when a string was passed to eventObj.</p>
 3623
 3624                    </div>
 3625
 3626                    
 3627                </li>
 3628            
 3629                <li class="param">
 3630                    
 3631                        <code class="param-name optional">[cancelable]</code>
 3632                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3633                        <span class="flag optional" title="This parameter is optional.">optional</span>
 3634                    
 3635
 3636                    
 3637
 3638                    <div class="param-description">
 3639                        <p>Specifies the <code>cancelable</code> value when a string was passed to eventObj.</p>
 3640
 3641                    </div>
 3642
 3643                    
 3644                </li>
 3645            
 3646            </ul>
 3647        </div>
 3648    
 3649
 3650    
 3651        <div class="returns">
 3652            <h4>Returns:</h4>
 3653
 3654            <div class="returns-description">
 3655                
 3656                    
 3657                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 3658                    
 3659                    <p>Returns false if <code>preventDefault()</code> was called on a cancelable event, true otherwise.</p>
 3660
 3661                
 3662            </div>
 3663        </div>
 3664    
 3665
 3666    
 3667</div>
 3668
 3669                
 3670                    <div id="method_draw" class="method item">
 3671    <h3 class="name"><code>draw</code></h3>
 3672
 3673    
 3674        <div class="args">
 3675            <span class="paren">(</span><ul class="args-list inline commas">
 3676            
 3677                <li class="arg">
 3678                    
 3679                        <code>ctx</code>
 3680                    
 3681                </li>
 3682            
 3683                <li class="arg">
 3684                    
 3685                        <code class="optional">[ignoreCache=false]</code>
 3686                    
 3687                </li>
 3688            
 3689            </ul><span class="paren">)</span>
 3690        </div>
 3691    
 3692
 3693    
 3694
 3695    
 3696
 3697    
 3698
 3699    
 3700
 3701    
 3702
 3703    
 3704
 3705    
 3706
 3707    <div class="meta">
 3708        
 3709            <p>Inherited from
 3710            <a href="../classes/DisplayObject.html#method_draw">
 3711                DisplayObject
 3712            </a>
 3713            
 3714            but overwritten in
 3715            
 3716        
 3717        
 3718        <a href="../files/easeljs_display_Container.js.html#l144"><code>draw:144</code></a>
 3719        
 3720        </p>
 3721
 3722
 3723        
 3724
 3725        
 3726    </div>
 3727
 3728    <div class="description">
 3729        <p>Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform.
 3730Returns true if the draw was handled (useful for overriding functionality).</p>
 3731<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
 3732
 3733    </div>
 3734
 3735    
 3736        <div class="params">
 3737            <h4>Parameters:</h4>
 3738
 3739            <ul class="params-list">
 3740            
 3741                <li class="param">
 3742                    
 3743                        <code class="param-name">ctx</code>
 3744                        <span class="type">CanvasRenderingContext2D</span>
 3745                    
 3746
 3747                    
 3748
 3749                    <div class="param-description">
 3750                        <p>The canvas 2D context object to draw into.</p>
 3751
 3752                    </div>
 3753
 3754                    
 3755                </li>
 3756            
 3757                <li class="param">
 3758                    
 3759                        <code class="param-name optional">[ignoreCache=false]</code>
 3760                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 3761                        <span class="flag optional" title="This parameter is optional.">optional</span>
 3762                    
 3763
 3764                    
 3765
 3766                    <div class="param-description">
 3767                        <p>Indicates whether the draw operation should ignore any current cache.
 3768For example, used for drawing the cache (to prevent it from simply drawing an existing cache back
 3769into itself).</p>
 3770
 3771                    </div>
 3772
 3773                    
 3774                </li>
 3775            
 3776            </ul>
 3777        </div>
 3778    
 3779
 3780    
 3781
 3782    
 3783</div>
 3784
 3785                
 3786                    <div id="method_getBounds" class="method item inherited">
 3787    <h3 class="name"><code>getBounds</code></h3>
 3788
 3789    
 3790        <span class="paren">()</span>
 3791    
 3792
 3793    
 3794        <span class="returns-inline">
 3795            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 3796        </span>
 3797    
 3798
 3799    
 3800
 3801    
 3802
 3803    
 3804
 3805    
 3806
 3807    
 3808
 3809    
 3810
 3811    <div class="meta">
 3812        
 3813            
 3814                <p>Inherited from
 3815                <a href="../classes/DisplayObject.html#method_getBounds">DisplayObject</a>:
 3816            
 3817        
 3818        
 3819        <a href="../files/easeljs_display_DisplayObject.js.html#l1089"><code>getBounds:1089</code></a>
 3820        
 3821        </p>
 3822
 3823
 3824        
 3825
 3826        
 3827    </div>
 3828
 3829    <div class="description">
 3830        <p>Returns a rectangle representing this object&#39;s bounds in its local coordinate system (ie. with no transformation).
 3831Objects that have been cached will return the bounds of the cache.</p>
 3832<p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use 
 3833<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
 3834bounds.</p>
 3835<table>
 3836    <tr><td><b>All</b></td><td>
 3837        All display objects support setting bounds manually using setBounds(). Likewise, display objects that
 3838        have been cached using cache() will return the bounds of their cache. Manual and cache bounds will override
 3839        the automatic calculations listed below.
 3840    </td></tr>
 3841    <tr><td><b>Bitmap</b></td><td>
 3842        Returns the width and height of the sourceRect (if specified) or image, extending from (x=0,y=0).
 3843    </td></tr>
 3844    <tr><td><b>Sprite</b></td><td>
 3845        Returns the bounds of the current frame. May have non-zero x/y if a frame registration point was specified
 3846        in the spritesheet data. See also <a href="../classes/SpriteSheet.html#method_getFrameBounds" class="crosslink">getFrameBounds</a>
 3847    </td></tr>
 3848    <tr><td><b>Container</b></td><td>
 3849        Returns the aggregate (combined) bounds of all children that return a non-null value from getBounds().
 3850    </td></tr>
 3851    <tr><td><b>Shape</b></td><td>
 3852        Does not currently support automatic bounds calculations. Use setBounds() to manually define bounds.
 3853    </td></tr>
 3854    <tr><td><b>Text</b></td><td>
 3855        Returns approximate bounds. Horizontal values (x/width) are quite accurate, but vertical values (y/height) are
 3856        not, especially when using textBaseline values other than "top".
 3857    </td></tr>
 3858    <tr><td><b>BitmapText</b></td><td>
 3859        Returns approximate bounds. Values will be more accurate if spritesheet frame registration points are close
 3860        to (x=0,y=0).
 3861    </td></tr>
 3862</table>
 3863
 3864<p>Bounds can be expensive to calculate for some objects (ex. text, or containers with many children), and
 3865are recalculated each time you call getBounds(). You can prevent recalculation on static objects by setting the
 3866bounds explicitly:</p>
 3867<pre class="code prettyprint"><code>var bounds = obj.getBounds();
 3868obj.setBounds(bounds.x, bounds.y, bounds.width, bounds.height);
 3869// getBounds will now use the set values, instead of recalculating</code></pre>
 3870<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
 3871values if you need to retain it.</p>
 3872<pre class="code prettyprint"><code>var myBounds = obj.getBounds().clone();
 3873// OR:
 3874myRect.copy(obj.getBounds());</code></pre>
 3875
 3876    </div>
 3877
 3878    
 3879
 3880    
 3881        <div class="returns">
 3882            <h4>Returns:</h4>
 3883
 3884            <div class="returns-description">
 3885                
 3886                    
 3887                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 3888                    
 3889                    <p>A Rectangle instance representing the bounds, or null if bounds are not available for this
 3890object.</p>
 3891
 3892                
 3893            </div>
 3894        </div>
 3895    
 3896
 3897    
 3898</div>
 3899
 3900                
 3901                    <div id="method_getCacheDataURL" class="method item inherited">
 3902    <h3 class="name"><code>getCacheDataURL</code></h3>
 3903
 3904    
 3905        <span class="paren">()</span>
 3906    
 3907
 3908    
 3909        <span class="returns-inline">
 3910            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 3911        </span>
 3912    
 3913
 3914    
 3915
 3916    
 3917
 3918    
 3919
 3920    
 3921
 3922    
 3923
 3924    
 3925
 3926    <div class="meta">
 3927        
 3928            
 3929                <p>Inherited from
 3930                <a href="../classes/DisplayObject.html#method_getCacheDataURL">DisplayObject</a>:
 3931            
 3932        
 3933        
 3934        <a href="../files/easeljs_display_DisplayObject.js.html#l875"><code>getCacheDataURL:875</code></a>
 3935        
 3936        </p>
 3937
 3938
 3939        
 3940
 3941        
 3942    </div>
 3943
 3944    <div class="description">
 3945        <p>Returns a data URL for the cache, or null if this display object is not cached.
 3946Only generated if the cache has changed, otherwise returns last result.</p>
 3947
 3948    </div>
 3949
 3950    
 3951
 3952    
 3953        <div class="returns">
 3954            <h4>Returns:</h4>
 3955
 3956            <div class="returns-description">
 3957                
 3958                    
 3959                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
 3960                    
 3961                    <p>The image data url for the cache.</p>
 3962
 3963                
 3964            </div>
 3965        </div>
 3966    
 3967
 3968    
 3969</div>
 3970
 3971                
 3972                    <div id="method_getChildAt" class="method item">
 3973    <h3 class="name"><code>getChildAt</code></h3>
 3974
 3975    
 3976        <div class="args">
 3977            <span class="paren">(</span><ul class="args-list inline commas">
 3978            
 3979                <li class="arg">
 3980                    
 3981                        <code>index</code>
 3982                    
 3983                </li>
 3984            
 3985            </ul><span class="paren">)</span>
 3986        </div>
 3987    
 3988
 3989    
 3990        <span class="returns-inline">
 3991            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 3992        </span>
 3993    
 3994
 3995    
 3996
 3997    
 3998
 3999    
 4000
 4001    
 4002
 4003    
 4004
 4005    
 4006
 4007    <div class="meta">
 4008        
 4009            
 4010                
 4011                <p>
 4012                
 4013                Defined in
 4014                
 4015            
 4016        
 4017        
 4018        <a href="../files/easeljs_display_Container.js.html#l314"><code>getChildAt:314</code></a>
 4019        
 4020        </p>
 4021
 4022
 4023        
 4024
 4025        
 4026    </div>
 4027
 4028    <div class="description">
 4029        <p>Returns the child at the specified index.</p>
 4030<h4>Example</h4>
 4031
 4032<pre class="code prettyprint"><code> container.getChildAt(2);</code></pre>
 4033
 4034    </div>
 4035
 4036    
 4037        <div class="params">
 4038            <h4>Parameters:</h4>
 4039
 4040            <ul class="params-list">
 4041            
 4042                <li class="param">
 4043                    
 4044                        <code class="param-name">index</code>
 4045                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4046                    
 4047
 4048                    
 4049
 4050                    <div class="param-description">
 4051                        <p>The index of the child to return.</p>
 4052
 4053                    </div>
 4054
 4055                    
 4056                </li>
 4057            
 4058            </ul>
 4059        </div>
 4060    
 4061
 4062    
 4063        <div class="returns">
 4064            <h4>Returns:</h4>
 4065
 4066            <div class="returns-description">
 4067                
 4068                    
 4069                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 4070                    
 4071                    <p>The child at the specified index. Returns null if there is no child at the index.</p>
 4072
 4073                
 4074            </div>
 4075        </div>
 4076    
 4077
 4078    
 4079</div>
 4080
 4081                
 4082                    <div id="method_getChildByName" class="method item">
 4083    <h3 class="name"><code>getChildByName</code></h3>
 4084
 4085    
 4086        <div class="args">
 4087            <span class="paren">(</span><ul class="args-list inline commas">
 4088            
 4089                <li class="arg">
 4090                    
 4091                        <code>name</code>
 4092                    
 4093                </li>
 4094            
 4095            </ul><span class="paren">)</span>
 4096        </div>
 4097    
 4098
 4099    
 4100        <span class="returns-inline">
 4101            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 4102        </span>
 4103    
 4104
 4105    
 4106
 4107    
 4108
 4109    
 4110
 4111    
 4112
 4113    
 4114
 4115    
 4116
 4117    <div class="meta">
 4118        
 4119            
 4120                
 4121                <p>
 4122                
 4123                Defined in
 4124                
 4125            
 4126        
 4127        
 4128        <a href="../files/easeljs_display_Container.js.html#l329"><code>getChildByName:329</code></a>
 4129        
 4130        </p>
 4131
 4132
 4133        
 4134
 4135        
 4136    </div>
 4137
 4138    <div class="description">
 4139        <p>Returns the child with the specified name.</p>
 4140
 4141    </div>
 4142
 4143    
 4144        <div class="params">
 4145            <h4>Parameters:</h4>
 4146
 4147            <ul class="params-list">
 4148            
 4149                <li class="param">
 4150                    
 4151                        <code class="param-name">name</code>
 4152                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 4153                    
 4154
 4155                    
 4156
 4157                    <div class="param-description">
 4158                        <p>The name of the child to return.</p>
 4159
 4160                    </div>
 4161
 4162                    
 4163                </li>
 4164            
 4165            </ul>
 4166        </div>
 4167    
 4168
 4169    
 4170        <div class="returns">
 4171            <h4>Returns:</h4>
 4172
 4173            <div class="returns-description">
 4174                
 4175                    
 4176                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 4177                    
 4178                    <p>The child with the specified name.</p>
 4179
 4180                
 4181            </div>
 4182        </div>
 4183    
 4184
 4185    
 4186</div>
 4187
 4188                
 4189                    <div id="method_getChildIndex" class="method item">
 4190    <h3 class="name"><code>getChildIndex</code></h3>
 4191
 4192    
 4193        <div class="args">
 4194            <span class="paren">(</span><ul class="args-list inline commas">
 4195            
 4196                <li class="arg">
 4197                    
 4198                        <code>child</code>
 4199                    
 4200                </li>
 4201            
 4202            </ul><span class="paren">)</span>
 4203        </div>
 4204    
 4205
 4206    
 4207        <span class="returns-inline">
 4208            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4209        </span>
 4210    
 4211
 4212    
 4213
 4214    
 4215
 4216    
 4217
 4218    
 4219
 4220    
 4221
 4222    
 4223
 4224    <div class="meta">
 4225        
 4226            
 4227                
 4228                <p>
 4229                
 4230                Defined in
 4231                
 4232            
 4233        
 4234        
 4235        <a href="../files/easeljs_display_Container.js.html#l363"><code>getChildIndex:363</code></a>
 4236        
 4237        </p>
 4238
 4239
 4240        
 4241
 4242        
 4243    </div>
 4244
 4245    <div class="description">
 4246        <p>Returns the index of the specified child in the display list, or -1 if it is not in the display list.</p>
 4247<h4>Example</h4>
 4248
 4249<pre class="code prettyprint"><code> var index = container.getChildIndex(child);</code></pre>
 4250
 4251    </div>
 4252
 4253    
 4254        <div class="params">
 4255            <h4>Parameters:</h4>
 4256
 4257            <ul class="params-list">
 4258            
 4259                <li class="param">
 4260                    
 4261                        <code class="param-name">child</code>
 4262                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 4263                    
 4264
 4265                    
 4266
 4267                    <div class="param-description">
 4268                        <p>The child to return the index of.</p>
 4269
 4270                    </div>
 4271
 4272                    
 4273                </li>
 4274            
 4275            </ul>
 4276        </div>
 4277    
 4278
 4279    
 4280        <div class="returns">
 4281            <h4>Returns:</h4>
 4282
 4283            <div class="returns-description">
 4284                
 4285                    
 4286                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
 4287                    
 4288                    <p>The index of the specified child. -1 if the child is not found.</p>
 4289
 4290                
 4291            </div>
 4292        </div>
 4293    
 4294
 4295    
 4296</div>
 4297
 4298                
 4299                    <div id="method_getConcatenatedDisplayProps" class="method item inherited">
 4300    <h3 class="name"><code>getConcatenatedDisplayProps</code></h3>
 4301
 4302    
 4303        <div class="args">
 4304            <span class="paren">(</span><ul class="args-list inline commas">
 4305            
 4306                <li class="arg">
 4307                    
 4308                        <code class="optional">[props]</code>
 4309                    
 4310                </li>
 4311            
 4312            </ul><span class="paren">)</span>
 4313        </div>
 4314    
 4315
 4316    
 4317        <span class="returns-inline">
 4318            <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 4319        </span>
 4320    
 4321
 4322    
 4323
 4324    
 4325
 4326    
 4327
 4328    
 4329
 4330    
 4331
 4332    
 4333
 4334    <div class="meta">
 4335        
 4336            
 4337                <p>Inherited from
 4338                <a href="../classes/DisplayObject.html#method_getConcatenatedDisplayProps">DisplayObject</a>:
 4339            
 4340        
 4341        
 4342        <a href="../files/easeljs_display_DisplayObject.js.html#l1021"><code>getConcatenatedDisplayProps:1021</code></a>
 4343        
 4344        </p>
 4345
 4346
 4347        
 4348
 4349        
 4350    </div>
 4351
 4352    <div class="description">
 4353        <p>Generates a DisplayProps object representing the combined display properties of the  object and all of its
 4354parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>).</p>
 4355
 4356    </div>
 4357
 4358    
 4359        <div class="params">
 4360            <h4>Parameters:</h4>
 4361
 4362            <ul class="params-list">
 4363            
 4364                <li class="param">
 4365                    
 4366                        <code class="param-name optional">[props]</code>
 4367                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 4368                        <span class="flag optional" title="This parameter is optional.">optional</span>
 4369                    
 4370
 4371                    
 4372
 4373                    <div class="param-description">
 4374                        <p>A <a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a> object to populate with the calculated values.
 4375If null, a new DisplayProps object is returned.</p>
 4376
 4377                    </div>
 4378
 4379                    
 4380                </li>
 4381            
 4382            </ul>
 4383        </div>
 4384    
 4385
 4386    
 4387        <div class="returns">
 4388            <h4>Returns:</h4>
 4389
 4390            <div class="returns-description">
 4391                
 4392                    
 4393                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
 4394                    
 4395                    <p>The combined display properties.</p>
 4396
 4397                
 4398            </div>
 4399        </div>
 4400    
 4401
 4402    
 4403</div>
 4404
 4405                
 4406                    <div id="method_getConcatenatedMatrix" class="method item inherited">
 4407    <h3 class="name"><code>getConcatenatedMatrix</code></h3>
 4408
 4409    
 4410        <div class="args">
 4411            <span class="paren">(</span><ul class="args-list inline commas">
 4412            
 4413                <li class="arg">
 4414                    
 4415                        <code class="optional">[matrix]</code>
 4416                    
 4417                </li>
 4418            
 4419            </ul><span class="paren">)</span>
 4420        </div>
 4421    
 4422
 4423    
 4424        <span class="returns-inline">
 4425            <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 4426        </span>
 4427    
 4428
 4429    
 4430
 4431    
 4432
 4433    
 4434
 4435    
 4436
 4437    
 4438
 4439    
 4440
 4441    <div class="meta">
 4442        
 4443            
 4444                <p>Inherited from
 4445                <a href="../classes/DisplayObject.html#method_getConcatenatedMatrix">DisplayObject</a>:
 4446            
 4447        
 4448        
 4449        <a href="../files/easeljs_display_DisplayObject.js.html#l1003"><code>getConcatenatedMatrix:1003</code></a>
 4450        
 4451        </p>
 4452
 4453
 4454        
 4455
 4456        
 4457    </div>
 4458
 4459    <div class="description">
 4460        <p>Generates a Matrix2D object representing the combined transform of the display object and all of its
 4461parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>). This can
 4462be used to transform positions between coordinate spaces, such as with <a href="../classes/DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a>
 4463and <a href="../classes/DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>.</p>
 4464
 4465    </div>
 4466
 4467    
 4468        <div class="params">
 4469            <h4>Parameters:</h4>
 4470
 4471            <ul class="params-list">
 4472            
 4473                <li class="param">
 4474                    
 4475                        <code class="param-name optional">[matrix]</code>
 4476                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 4477                        <span class="flag optional" title="This parameter is optional.">optional</span>
 4478                    
 4479
 4480                    
 4481
 4482                    <div class="param-description">
 4483                        <p>A <a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a> object to populate with the calculated values.
 4484If null, a new Matrix2D object is returned.</p>
 4485
 4486                    </div>
 4487
 4488                    
 4489                </li>
 4490            
 4491            </ul>
 4492        </div>
 4493    
 4494
 4495    
 4496        <div class="returns">
 4497            <h4>Returns:</h4>
 4498
 4499            <div class="returns-description">
 4500                
 4501                    
 4502                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
 4503                    
 4504                    <p>The combined matrix.</p>
 4505
 4506                
 4507            </div>
 4508        </div>
 4509    
 4510
 4511    
 4512</div>
 4513
 4514                
 4515                    <div id="method_getMatrix" class="method item inherited">
 4516    <h3 class="name"><code>getMatrix</code></h3>
 4517
 4518    
 4519        <div class="args">
 4520            <span class="paren">(</span><ul class="args-list inline commas">
 4521            
 4522                <li class="arg">
 4523                    
 4524                        <code>matrix</code>
 4525                    
 4526                </li>
 4527            
 4528            </ul><span class="paren">)</span>
 4529        </div>
 4530    
 4531
 4532    
 4533        <span class="returns-inline">
 4534            <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 4535        </span>
 4536    
 4537
 4538    
 4539
 4540    
 4541
 4542    
 4543
 4544    
 4545
 4546    
 4547
 4548    
 4549
 4550    <div class="meta">
 4551        
 4552            
 4553                <p>Inherited from
 4554                <a href="../classes/DisplayObject.html#method_getMatrix">DisplayObject</a>:
 4555            
 4556        
 4557        
 4558        <a href="../files/easeljs_display_DisplayObject.js.html#l991"><code>getMatrix:991</code></a>
 4559        
 4560        </p>
 4561
 4562
 4563        
 4564
 4565        
 4566    </div>
 4567
 4568    <div class="description">
 4569        <p>Returns a matrix based on this object&#39;s current transform.</p>
 4570
 4571    </div>
 4572
 4573    
 4574        <div class="params">
 4575            <h4>Parameters:</h4>
 4576
 4577            <ul class="params-list">
 4578            
 4579                <li class="param">
 4580                    
 4581                        <code class="param-name">matrix</code>
 4582                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 4583                    
 4584
 4585                    
 4586
 4587                    <div class="param-description">
 4588                        <p>Optional. A Matrix2D object to populate with the calculated values. If null, a new
 4589Matrix object is returned.</p>
 4590
 4591                    </div>
 4592
 4593                    
 4594                </li>
 4595            
 4596            </ul>
 4597        </div>
 4598    
 4599
 4600    
 4601        <div class="returns">
 4602            <h4>Returns:</h4>
 4603
 4604            <div class="returns-description">
 4605                
 4606                    
 4607                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
 4608                    
 4609                    <p>A matrix representing this display object&#39;s transform.</p>
 4610
 4611                
 4612            </div>
 4613        </div>
 4614    
 4615
 4616    
 4617</div>
 4618
 4619                
 4620                    <div id="method_getObjectsUnderPoint" class="method item">
 4621    <h3 class="name"><code>getObjectsUnderPoint</code></h3>
 4622
 4623    
 4624        <div class="args">
 4625            <span class="paren">(</span><ul class="args-list inline commas">
 4626            
 4627                <li class="arg">
 4628                    
 4629                        <code>x</code>
 4630                    
 4631                </li>
 4632            
 4633                <li class="arg">
 4634                    
 4635                        <code>y</code>
 4636                    
 4637                </li>
 4638            
 4639                <li class="arg">
 4640                    
 4641                        <code class="optional">[mode=0]</code>
 4642                    
 4643                </li>
 4644            
 4645            </ul><span class="paren">)</span>
 4646        </div>
 4647    
 4648
 4649    
 4650        <span class="returns-inline">
 4651            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 4652        </span>
 4653    
 4654
 4655    
 4656
 4657    
 4658
 4659    
 4660
 4661    
 4662
 4663    
 4664
 4665    
 4666
 4667    <div class="meta">
 4668        
 4669            
 4670                
 4671                <p>
 4672                
 4673                Defined in
 4674                
 4675            
 4676        
 4677        
 4678        <a href="../files/easeljs_display_Container.js.html#l460"><code>getObjectsUnderPoint:460</code></a>
 4679        
 4680        </p>
 4681
 4682
 4683        
 4684
 4685        
 4686    </div>
 4687
 4688    <div class="description">
 4689        <p>Returns an array of all display objects under the specified coordinates that are in this container&#39;s display
 4690list. This routine ignores any display objects with <a href="../classes/DisplayObject.html#property_mouseEnabled" class="crosslink">mouseEnabled</a>
 4691set to <code>false</code>. The array will be sorted in order of visual depth, with the top-most display object at index 0.
 4692This uses shape based hit detection, and can be an expensive operation to run, so it is best to use it carefully.
 4693For example, if testing for objects under the mouse, test on tick (instead of on DisplayObject/mousemove:event),
 4694and only if the mouse&#39;s position has changed.</p>
 4695<p><ul>
 4696    <li>By default (mode=0) this method evaluates all display objects.</li>
 4697    <li>By setting the <code>mode</code> parameter to <code>1</code>, the <a href="../classes/DisplayObject.html#property_mouseEnabled" class="crosslink">mouseEnabled</a>
 4698        and MouseChildren:property properties will be respected.</li>
 4699       <li>Setting the <code>mode</code> to <code>2</code> additionally excludes display objects that do not have active mouse event
 4700           listeners or a DisplayObject:cursor:property property. That is, only objects
 4701           that would normally intercept mouse interaction will be included. This can significantly improve performance
 4702           in some cases by reducing the number of display objects that need to be tested.</li>
 4703</li></p>
 4704<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>
 4705
 4706    </div>
 4707
 4708    
 4709        <div class="params">
 4710            <h4>Parameters:</h4>
 4711
 4712            <ul class="params-list">
 4713            
 4714                <li class="param">
 4715                    
 4716                        <code class="param-name">x</code>
 4717                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4718                    
 4719
 4720                    
 4721
 4722                    <div class="param-description">
 4723                        <p>The x position in the container to test.</p>
 4724
 4725                    </div>
 4726
 4727                    
 4728                </li>
 4729            
 4730                <li class="param">
 4731                    
 4732                        <code class="param-name">y</code>
 4733                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4734                    
 4735
 4736                    
 4737
 4738                    <div class="param-description">
 4739                        <p>The y position in the container to test.</p>
 4740
 4741                    </div>
 4742
 4743                    
 4744                </li>
 4745            
 4746                <li class="param">
 4747                    
 4748                        <code class="param-name optional">[mode=0]</code>
 4749                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4750                        <span class="flag optional" title="This parameter is optional.">optional</span>
 4751                    
 4752
 4753                    
 4754
 4755                    <div class="param-description">
 4756                        <p>The mode to use to determine which display objects to include. 0-all, 1-respect mouseEnabled/mouseChildren, 2-only mouse opaque objects.</p>
 4757
 4758                    </div>
 4759
 4760                    
 4761                </li>
 4762            
 4763            </ul>
 4764        </div>
 4765    
 4766
 4767    
 4768        <div class="returns">
 4769            <h4>Returns:</h4>
 4770
 4771            <div class="returns-description">
 4772                
 4773                    
 4774                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>:
 4775                    
 4776                    <p>An Array of DisplayObjects under the specified coordinates.</p>
 4777
 4778                
 4779            </div>
 4780        </div>
 4781    
 4782
 4783    
 4784</div>
 4785
 4786                
 4787                    <div id="method_getObjectUnderPoint" class="method item">
 4788    <h3 class="name"><code>getObjectUnderPoint</code></h3>
 4789
 4790    
 4791        <div class="args">
 4792            <span class="paren">(</span><ul class="args-list inline commas">
 4793            
 4794                <li class="arg">
 4795                    
 4796                        <code>x</code>
 4797                    
 4798                </li>
 4799            
 4800                <li class="arg">
 4801                    
 4802                        <code>y</code>
 4803                    
 4804                </li>
 4805            
 4806                <li class="arg">
 4807                    
 4808                        <code>mode</code>
 4809                    
 4810                </li>
 4811            
 4812            </ul><span class="paren">)</span>
 4813        </div>
 4814    
 4815
 4816    
 4817        <span class="returns-inline">
 4818            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 4819        </span>
 4820    
 4821
 4822    
 4823
 4824    
 4825
 4826    
 4827
 4828    
 4829
 4830    
 4831
 4832    
 4833
 4834    <div class="meta">
 4835        
 4836            
 4837                
 4838                <p>
 4839                
 4840                Defined in
 4841                
 4842            
 4843        
 4844        
 4845        <a href="../files/easeljs_display_Container.js.html#l492"><code>getObjectUnderPoint:492</code></a>
 4846        
 4847        </p>
 4848
 4849
 4850        
 4851
 4852        
 4853    </div>
 4854
 4855    <div class="description">
 4856        <p>Similar to <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>, but returns only the top-most display
 4857object. This runs significantly faster than <code>getObjectsUnderPoint()</code>, but is still potentially an expensive
 4858operation. See <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a> for more information.</p>
 4859
 4860    </div>
 4861
 4862    
 4863        <div class="params">
 4864            <h4>Parameters:</h4>
 4865
 4866            <ul class="params-list">
 4867            
 4868                <li class="param">
 4869                    
 4870                        <code class="param-name">x</code>
 4871                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4872                    
 4873
 4874                    
 4875
 4876                    <div class="param-description">
 4877                        <p>The x position in the container to test.</p>
 4878
 4879                    </div>
 4880
 4881                    
 4882                </li>
 4883            
 4884                <li class="param">
 4885                    
 4886                        <code class="param-name">y</code>
 4887                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4888                    
 4889
 4890                    
 4891
 4892                    <div class="param-description">
 4893                        <p>The y position in the container to test.</p>
 4894
 4895                    </div>
 4896
 4897                    
 4898                </li>
 4899            
 4900                <li class="param">
 4901                    
 4902                        <code class="param-name">mode</code>
 4903                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4904                    
 4905
 4906                    
 4907
 4908                    <div class="param-description">
 4909                        <p>The mode to use to determine which display objects to include.  0-all, 1-respect mouseEnabled/mouseChildren, 2-only mouse opaque objects.</p>
 4910
 4911                    </div>
 4912
 4913                    
 4914                </li>
 4915            
 4916            </ul>
 4917        </div>
 4918    
 4919
 4920    
 4921        <div class="returns">
 4922            <h4>Returns:</h4>
 4923
 4924            <div class="returns-description">
 4925                
 4926                    
 4927                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 4928                    
 4929                    <p>The top-most display object under the specified coordinates.</p>
 4930
 4931                
 4932            </div>
 4933        </div>
 4934    
 4935
 4936    
 4937</div>
 4938
 4939                
 4940                    <div id="method_getTransformedBounds" class="method item inherited">
 4941    <h3 class="name"><code>getTransformedBounds</code></h3>
 4942
 4943    
 4944        <span class="paren">()</span>
 4945    
 4946
 4947    
 4948        <span class="returns-inline">
 4949            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 4950        </span>
 4951    
 4952
 4953    
 4954
 4955    
 4956
 4957    
 4958
 4959    
 4960
 4961    
 4962
 4963    
 4964
 4965    <div class="meta">
 4966        
 4967            
 4968                <p>Inherited from
 4969                <a href="../classes/DisplayObject.html#method_getTransformedBounds">DisplayObject</a>:
 4970            
 4971        
 4972        
 4973        <a href="../files/easeljs_display_DisplayObject.js.html#l1155"><code>getTransformedBounds:1155</code></a>
 4974        
 4975        </p>
 4976
 4977
 4978        
 4979
 4980        
 4981    </div>
 4982
 4983    <div class="description">
 4984        <p>Returns a rectangle representing this object&#39;s bounds in its parent&#39;s coordinate system (ie. with transformations applied).
 4985Objects that have been cached will return the transformed bounds of the cache.</p>
 4986<p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use 
 4987<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
 4988bounds.</p>
 4989<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
 4990values if you need to retain it.</p>
 4991<p>Container instances calculate aggregate bounds for all children that return bounds via getBounds.</p>
 4992
 4993    </div>
 4994
 4995    
 4996
 4997    
 4998        <div class="returns">
 4999            <h4>Returns:</h4>
 5000
 5001            <div class="returns-description">
 5002                
 5003                    
 5004                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
 5005                    
 5006                    <p>A Rectangle instance representing the bounds, or null if bounds are not available for this object.</p>
 5007
 5008                
 5009            </div>
 5010        </div>
 5011    
 5012
 5013    
 5014</div>
 5015
 5016                
 5017                    <div id="method_globalToLocal" class="method item inherited">
 5018    <h3 class="name"><code>globalToLocal</code></h3>
 5019
 5020    
 5021        <div class="args">
 5022            <span class="paren">(</span><ul class="args-list inline commas">
 5023            
 5024                <li class="arg">
 5025                    
 5026                        <code>x</code>
 5027                    
 5028                </li>
 5029            
 5030                <li class="arg">
 5031                    
 5032                        <code>y</code>
 5033                    
 5034                </li>
 5035            
 5036                <li class="arg">
 5037                    
 5038                        <code class="optional">[pt]</code>
 5039                    
 5040                </li>
 5041            
 5042            </ul><span class="paren">)</span>
 5043        </div>
 5044    
 5045
 5046    
 5047        <span class="returns-inline">
 5048            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
 5049        </span>
 5050    
 5051
 5052    
 5053
 5054    
 5055
 5056    
 5057
 5058    
 5059
 5060    
 5061
 5062    
 5063
 5064    <div class="meta">
 5065        
 5066            
 5067                <p>Inherited from
 5068                <a href="../classes/DisplayObject.html#method_globalToLocal">DisplayObject</a>:
 5069            
 5070        
 5071        
 5072        <a href="../files/easeljs_display_DisplayObject.js.html#l910"><code>globalToLocal:910</code></a>
 5073        
 5074        </p>
 5075
 5076
 5077        
 5078
 5079        
 5080    </div>
 5081
 5082    <div class="description">
 5083        <p>Transforms the specified x and y position from the global (stage) coordinate space to the
 5084coordinate space of the display object. For example, this could be used to determine
 5085the current mouse position within the display object. Returns a Point instance with x and y properties
 5086correlating to the transformed position in the display object&#39;s coordinate space.</p>
 5087<h4>Example</h4>
 5088
 5089<pre class="code prettyprint"><code> displayObject.x = 300;
 5090 displayObject.y = 200;
 5091 stage.addChild(displayObject);
 5092 var point = displayObject.globalToLocal(100, 100);
 5093 // Results in x=-200, y=-100</code></pre>
 5094
 5095    </div>
 5096
 5097    
 5098        <div class="params">
 5099            <h4>Parameters:</h4>
 5100
 5101            <ul class="params-list">
 5102            
 5103                <li class="param">
 5104                    
 5105                        <code class="param-name">x</code>
 5106                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5107                    
 5108
 5109                    
 5110
 5111                    <div class="param-description">
 5112                        <p>The x position on the stage to transform.</p>
 5113
 5114                    </div>
 5115
 5116                    
 5117                </li>
 5118            
 5119                <li class="param">
 5120                    
 5121                        <code class="param-name">y</code>
 5122                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5123                    
 5124
 5125                    
 5126
 5127                    <div class="param-description">
 5128                        <p>The y position on the stage to transform.</p>
 5129
 5130                    </div>
 5131
 5132                    
 5133                </li>
 5134            
 5135                <li class="param">
 5136                    
 5137                        <code class="param-name optional">[pt]</code>
 5138                        <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>
 5139                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5140                    
 5141
 5142                    
 5143
 5144                    <div class="param-description">
 5145                        <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
 5146
 5147                    </div>
 5148
 5149                    
 5150                </li>
 5151            
 5152            </ul>
 5153        </div>
 5154    
 5155
 5156    
 5157        <div class="returns">
 5158            <h4>Returns:</h4>
 5159
 5160            <div class="returns-description">
 5161                
 5162                    
 5163                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
 5164                    
 5165                    <p>A Point instance with x and y properties correlating to the transformed position in the
 5166display object&#39;s coordinate space.</p>
 5167
 5168                
 5169            </div>
 5170        </div>
 5171    
 5172
 5173    
 5174</div>
 5175
 5176                
 5177                    <div id="method_hasEventListener" class="method item inherited">
 5178    <h3 class="name"><code>hasEventListener</code></h3>
 5179
 5180    
 5181        <div class="args">
 5182            <span class="paren">(</span><ul class="args-list inline commas">
 5183            
 5184                <li class="arg">
 5185                    
 5186                        <code>type</code>
 5187                    
 5188                </li>
 5189            
 5190            </ul><span class="paren">)</span>
 5191        </div>
 5192    
 5193
 5194    
 5195        <span class="returns-inline">
 5196            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5197        </span>
 5198    
 5199
 5200    
 5201
 5202    
 5203
 5204    
 5205
 5206    
 5207
 5208    
 5209
 5210    
 5211
 5212    <div class="meta">
 5213        
 5214            
 5215                <p>Inherited from
 5216                <a href="../classes/EventDispatcher.html#method_hasEventListener">EventDispatcher</a>:
 5217            
 5218        
 5219        
 5220        <a href="../files/createjs_events_EventDispatcher.js.html#l339"><code>hasEventListener:339</code></a>
 5221        
 5222        </p>
 5223
 5224
 5225        
 5226
 5227        
 5228    </div>
 5229
 5230    <div class="description">
 5231        <p>Indicates whether there is at least one listener for the specified event type.</p>
 5232
 5233    </div>
 5234
 5235    
 5236        <div class="params">
 5237            <h4>Parameters:</h4>
 5238
 5239            <ul class="params-list">
 5240            
 5241                <li class="param">
 5242                    
 5243                        <code class="param-name">type</code>
 5244                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 5245                    
 5246
 5247                    
 5248
 5249                    <div class="param-description">
 5250                        <p>The string type of the event.</p>
 5251
 5252                    </div>
 5253
 5254                    
 5255                </li>
 5256            
 5257            </ul>
 5258        </div>
 5259    
 5260
 5261    
 5262        <div class="returns">
 5263            <h4>Returns:</h4>
 5264
 5265            <div class="returns-description">
 5266                
 5267                    
 5268                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 5269                    
 5270                    <p>Returns true if there is at least one listener for the specified event.</p>
 5271
 5272                
 5273            </div>
 5274        </div>
 5275    
 5276
 5277    
 5278</div>
 5279
 5280                
 5281                    <div id="method_hitTest" class="method item">
 5282    <h3 class="name"><code>hitTest</code></h3>
 5283
 5284    
 5285        <div class="args">
 5286            <span class="paren">(</span><ul class="args-list inline commas">
 5287            
 5288                <li class="arg">
 5289                    
 5290                        <code>x</code>
 5291                    
 5292                </li>
 5293            
 5294                <li class="arg">
 5295                    
 5296                        <code>y</code>
 5297                    
 5298                </li>
 5299            
 5300            </ul><span class="paren">)</span>
 5301        </div>
 5302    
 5303
 5304    
 5305        <span class="returns-inline">
 5306            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5307        </span>
 5308    
 5309
 5310    
 5311
 5312    
 5313
 5314    
 5315
 5316    
 5317
 5318    
 5319
 5320    
 5321
 5322    <div class="meta">
 5323        
 5324            <p>Inherited from
 5325            <a href="../classes/DisplayObject.html#method_hitTest">
 5326                DisplayObject
 5327            </a>
 5328            
 5329            but overwritten in
 5330            
 5331        
 5332        
 5333        <a href="../files/easeljs_display_Container.js.html#l445"><code>hitTest:445</code></a>
 5334        
 5335        </p>
 5336
 5337
 5338        
 5339
 5340        
 5341    </div>
 5342
 5343    <div class="description">
 5344        <p>Tests whether the display object intersects the specified local point (ie. draws a pixel with alpha &gt; 0 at the
 5345specified position). This ignores the alpha, shadow and compositeOperation of the display object, and all
 5346transform properties including regX/Y.</p>
 5347
 5348    </div>
 5349
 5350    
 5351        <div class="params">
 5352            <h4>Parameters:</h4>
 5353
 5354            <ul class="params-list">
 5355            
 5356                <li class="param">
 5357                    
 5358                        <code class="param-name">x</code>
 5359                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5360                    
 5361
 5362                    
 5363
 5364                    <div class="param-description">
 5365                        <p>The x position to check in the display object&#39;s local coordinates.</p>
 5366
 5367                    </div>
 5368
 5369                    
 5370                </li>
 5371            
 5372                <li class="param">
 5373                    
 5374                        <code class="param-name">y</code>
 5375                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5376                    
 5377
 5378                    
 5379
 5380                    <div class="param-description">
 5381                        <p>The y position to check in the display object&#39;s local coordinates.</p>
 5382
 5383                    </div>
 5384
 5385                    
 5386                </li>
 5387            
 5388            </ul>
 5389        </div>
 5390    
 5391
 5392    
 5393        <div class="returns">
 5394            <h4>Returns:</h4>
 5395
 5396            <div class="returns-description">
 5397                
 5398                    
 5399                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 5400                    
 5401                    <p>A Boolean indicating whether there is a visible section of a DisplayObject that overlaps the specified
 5402coordinates.</p>
 5403
 5404                
 5405            </div>
 5406        </div>
 5407    
 5408
 5409    
 5410</div>
 5411
 5412                
 5413                    <div id="method_initialize" class="method item deprecated">
 5414    <h3 class="name"><code>initialize</code></h3>
 5415
 5416    
 5417        <span class="paren">()</span>
 5418    
 5419
 5420    
 5421
 5422    
 5423        <span class="flag deprecated" title="in favour of &#x60;createjs.promote()&#x60;">deprecated</span>
 5424    
 5425
 5426    
 5427
 5428    
 5429
 5430    
 5431
 5432    
 5433
 5434    
 5435
 5436    <div class="meta">
 5437        
 5438            
 5439                
 5440                <p>
 5441                
 5442                Defined in
 5443                
 5444            
 5445        
 5446        
 5447        <a href="../files/easeljs_display_Container.js.html#l123"><code>initialize:123</code></a>
 5448        
 5449        </p>
 5450
 5451
 5452        
 5453            <p>Deprecated: in favour of &#x60;createjs.promote()&#x60;</p>
 5454        
 5455
 5456        
 5457    </div>
 5458
 5459    <div class="description">
 5460        <p>Constructor alias for backwards compatibility. This method will be removed in future versions.
 5461Subclasses should be updated to use Utility Methods/extends.</p>
 5462
 5463    </div>
 5464
 5465    
 5466
 5467    
 5468
 5469    
 5470</div>
 5471
 5472                
 5473                    <div id="method_isVisible" class="method item">
 5474    <h3 class="name"><code>isVisible</code></h3>
 5475
 5476    
 5477        <span class="paren">()</span>
 5478    
 5479
 5480    
 5481        <span class="returns-inline">
 5482            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5483        </span>
 5484    
 5485
 5486    
 5487
 5488    
 5489
 5490    
 5491
 5492    
 5493
 5494    
 5495
 5496    
 5497
 5498    <div class="meta">
 5499        
 5500            <p>Inherited from
 5501            <a href="../classes/DisplayObject.html#method_isVisible">
 5502                DisplayObject
 5503            </a>
 5504            
 5505            but overwritten in
 5506            
 5507        
 5508        
 5509        <a href="../files/easeljs_display_Container.js.html#l131"><code>isVisible:131</code></a>
 5510        
 5511        </p>
 5512
 5513
 5514        
 5515
 5516        
 5517    </div>
 5518
 5519    <div class="description">
 5520        <p>Returns true or false indicating whether the display object would be visible if drawn to a canvas.
 5521This does not account for whether it would be visible within the boundaries of the stage.</p>
 5522<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
 5523
 5524    </div>
 5525
 5526    
 5527
 5528    
 5529        <div class="returns">
 5530            <h4>Returns:</h4>
 5531
 5532            <div class="returns-description">
 5533                
 5534                    
 5535                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 5536                    
 5537                    <p>Boolean indicating whether the display object would be visible if drawn to a canvas</p>
 5538
 5539                
 5540            </div>
 5541        </div>
 5542    
 5543
 5544    
 5545</div>
 5546
 5547                
 5548                    <div id="method_localToGlobal" class="method item inherited">
 5549    <h3 class="name"><code>localToGlobal</code></h3>
 5550
 5551    
 5552        <div class="args">
 5553            <span class="paren">(</span><ul class="args-list inline commas">
 5554            
 5555                <li class="arg">
 5556                    
 5557                        <code>x</code>
 5558                    
 5559                </li>
 5560            
 5561                <li class="arg">
 5562                    
 5563                        <code>y</code>
 5564                    
 5565                </li>
 5566            
 5567                <li class="arg">
 5568                    
 5569                        <code class="optional">[pt]</code>
 5570                    
 5571                </li>
 5572            
 5573            </ul><span class="paren">)</span>
 5574        </div>
 5575    
 5576
 5577    
 5578        <span class="returns-inline">
 5579            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
 5580        </span>
 5581    
 5582
 5583    
 5584
 5585    
 5586
 5587    
 5588
 5589    
 5590
 5591    
 5592
 5593    
 5594
 5595    <div class="meta">
 5596        
 5597            
 5598                <p>Inherited from
 5599                <a href="../classes/DisplayObject.html#method_localToGlobal">DisplayObject</a>:
 5600            
 5601        
 5602        
 5603        <a href="../files/easeljs_display_DisplayObject.js.html#l885"><code>localToGlobal:885</code></a>
 5604        
 5605        </p>
 5606
 5607
 5608        
 5609
 5610        
 5611    </div>
 5612
 5613    <div class="description">
 5614        <p>Transforms the specified x and y position from the coordinate space of the display object
 5615to the global (stage) coordinate space. For example, this could be used to position an HTML label
 5616over a specific point on a nested display object. Returns a Point instance with x and y properties
 5617correlating to the transformed coordinates on the stage.</p>
 5618<h4>Example</h4>
 5619
 5620<pre class="code prettyprint"><code> displayObject.x = 300;
 5621 displayObject.y = 200;
 5622 stage.addChild(displayObject);
 5623 var point = displayObject.localToGlobal(100, 100);
 5624 // Results in x=400, y=300</code></pre>
 5625
 5626    </div>
 5627
 5628    
 5629        <div class="params">
 5630            <h4>Parameters:</h4>
 5631
 5632            <ul class="params-list">
 5633            
 5634                <li class="param">
 5635                    
 5636                        <code class="param-name">x</code>
 5637                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5638                    
 5639
 5640                    
 5641
 5642                    <div class="param-description">
 5643                        <p>The x position in the source display object to transform.</p>
 5644
 5645                    </div>
 5646
 5647                    
 5648                </li>
 5649            
 5650                <li class="param">
 5651                    
 5652                        <code class="param-name">y</code>
 5653                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5654                    
 5655
 5656                    
 5657
 5658                    <div class="param-description">
 5659                        <p>The y position in the source display object to transform.</p>
 5660
 5661                    </div>
 5662
 5663                    
 5664                </li>
 5665            
 5666                <li class="param">
 5667                    
 5668                        <code class="param-name optional">[pt]</code>
 5669                        <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>
 5670                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5671                    
 5672
 5673                    
 5674
 5675                    <div class="param-description">
 5676                        <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
 5677
 5678                    </div>
 5679
 5680                    
 5681                </li>
 5682            
 5683            </ul>
 5684        </div>
 5685    
 5686
 5687    
 5688        <div class="returns">
 5689            <h4>Returns:</h4>
 5690
 5691            <div class="returns-description">
 5692                
 5693                    
 5694                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
 5695                    
 5696                    <p>A Point instance with x and y properties correlating to the transformed coordinates
 5697on the stage.</p>
 5698
 5699                
 5700            </div>
 5701        </div>
 5702    
 5703
 5704    
 5705</div>
 5706
 5707                
 5708                    <div id="method_localToLocal" class="method item inherited">
 5709    <h3 class="name"><code>localToLocal</code></h3>
 5710
 5711    
 5712        <div class="args">
 5713            <span class="paren">(</span><ul class="args-list inline commas">
 5714            
 5715                <li class="arg">
 5716                    
 5717                        <code>x</code>
 5718                    
 5719                </li>
 5720            
 5721                <li class="arg">
 5722                    
 5723                        <code>y</code>
 5724                    
 5725                </li>
 5726            
 5727                <li class="arg">
 5728                    
 5729                        <code>target</code>
 5730                    
 5731                </li>
 5732            
 5733                <li class="arg">
 5734                    
 5735                        <code class="optional">[pt]</code>
 5736                    
 5737                </li>
 5738            
 5739            </ul><span class="paren">)</span>
 5740        </div>
 5741    
 5742
 5743    
 5744        <span class="returns-inline">
 5745            <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
 5746        </span>
 5747    
 5748
 5749    
 5750
 5751    
 5752
 5753    
 5754
 5755    
 5756
 5757    
 5758
 5759    
 5760
 5761    <div class="meta">
 5762        
 5763            
 5764                <p>Inherited from
 5765                <a href="../classes/DisplayObject.html#method_localToLocal">DisplayObject</a>:
 5766            
 5767        
 5768        
 5769        <a href="../files/easeljs_display_DisplayObject.js.html#l935"><code>localToLocal:935</code></a>
 5770        
 5771        </p>
 5772
 5773
 5774        
 5775
 5776        
 5777    </div>
 5778
 5779    <div class="description">
 5780        <p>Transforms the specified x and y position from the coordinate space of this display object to the coordinate
 5781space of the target display object. Returns a Point instance with x and y properties correlating to the
 5782transformed position in the target&#39;s coordinate space. Effectively the same as using the following code with
 5783<a href="../classes/DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a> and <a href="../classes/DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>.</p>
 5784<pre class="code prettyprint"><code> var pt = this.localToGlobal(x, y);
 5785 pt = target.globalToLocal(pt.x, pt.y);</code></pre>
 5786
 5787    </div>
 5788
 5789    
 5790        <div class="params">
 5791            <h4>Parameters:</h4>
 5792
 5793            <ul class="params-list">
 5794            
 5795                <li class="param">
 5796                    
 5797                        <code class="param-name">x</code>
 5798                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5799                    
 5800
 5801                    
 5802
 5803                    <div class="param-description">
 5804                        <p>The x position in the source display object to transform.</p>
 5805
 5806                    </div>
 5807
 5808                    
 5809                </li>
 5810            
 5811                <li class="param">
 5812                    
 5813                        <code class="param-name">y</code>
 5814                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5815                    
 5816
 5817                    
 5818
 5819                    <div class="param-description">
 5820                        <p>The y position on the source display object to transform.</p>
 5821
 5822                    </div>
 5823
 5824                    
 5825                </li>
 5826            
 5827                <li class="param">
 5828                    
 5829                        <code class="param-name">target</code>
 5830                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 5831                    
 5832
 5833                    
 5834
 5835                    <div class="param-description">
 5836                        <p>The target display object to which the coordinates will be transformed.</p>
 5837
 5838                    </div>
 5839
 5840                    
 5841                </li>
 5842            
 5843                <li class="param">
 5844                    
 5845                        <code class="param-name optional">[pt]</code>
 5846                        <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>
 5847                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5848                    
 5849
 5850                    
 5851
 5852                    <div class="param-description">
 5853                        <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
 5854
 5855                    </div>
 5856
 5857                    
 5858                </li>
 5859            
 5860            </ul>
 5861        </div>
 5862    
 5863
 5864    
 5865        <div class="returns">
 5866            <h4>Returns:</h4>
 5867
 5868            <div class="returns-description">
 5869                
 5870                    
 5871                        <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
 5872                    
 5873                    <p>Returns a Point instance with x and y properties correlating to the transformed position
 5874in the target&#39;s coordinate space.</p>
 5875
 5876                
 5877            </div>
 5878        </div>
 5879    
 5880
 5881    
 5882</div>
 5883
 5884                
 5885                    <div id="method_off" class="method item inherited">
 5886    <h3 class="name"><code>off</code></h3>
 5887
 5888    
 5889        <div class="args">
 5890            <span class="paren">(</span><ul class="args-list inline commas">
 5891            
 5892                <li class="arg">
 5893                    
 5894                        <code>type</code>
 5895                    
 5896                </li>
 5897            
 5898                <li class="arg">
 5899                    
 5900                        <code>listener</code>
 5901                    
 5902                </li>
 5903            
 5904                <li class="arg">
 5905                    
 5906                        <code class="optional">[useCapture]</code>
 5907                    
 5908                </li>
 5909            
 5910            </ul><span class="paren">)</span>
 5911        </div>
 5912    
 5913
 5914    
 5915
 5916    
 5917
 5918    
 5919
 5920    
 5921
 5922    
 5923
 5924    
 5925
 5926    
 5927
 5928    <div class="meta">
 5929        
 5930            
 5931                <p>Inherited from
 5932                <a href="../classes/EventDispatcher.html#method_off">EventDispatcher</a>:
 5933            
 5934        
 5935        
 5936        <a href="../files/createjs_events_EventDispatcher.js.html#l249"><code>off:249</code></a>
 5937        
 5938        </p>
 5939
 5940
 5941        
 5942
 5943        
 5944    </div>
 5945
 5946    <div class="description">
 5947        <p>A shortcut to the removeEventListener method, with the same parameters and return value. This is a companion to the
 5948.on method.</p>
 5949<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 
 5950<a href="../classes/EventDispatcher.html#method_on" class="crosslink">on</a> for an example.</p>
 5951
 5952    </div>
 5953
 5954    
 5955        <div class="params">
 5956            <h4>Parameters:</h4>
 5957
 5958            <ul class="params-list">
 5959            
 5960                <li class="param">
 5961                    
 5962                        <code class="param-name">type</code>
 5963                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 5964                    
 5965
 5966                    
 5967
 5968                    <div class="param-description">
 5969                        <p>The string type of the event.</p>
 5970
 5971                    </div>
 5972
 5973                    
 5974                </li>
 5975            
 5976                <li class="param">
 5977                    
 5978                        <code class="param-name">listener</code>
 5979                        <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>
 5980                    
 5981
 5982                    
 5983
 5984                    <div class="param-description">
 5985                        <p>The listener function or object.</p>
 5986
 5987                    </div>
 5988
 5989                    
 5990                </li>
 5991            
 5992                <li class="param">
 5993                    
 5994                        <code class="param-name optional">[useCapture]</code>
 5995                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 5996                        <span class="flag optional" title="This parameter is optional.">optional</span>
 5997                    
 5998
 5999                    
 6000
 6001                    <div class="param-description">
 6002                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
 6003
 6004                    </div>
 6005
 6006                    
 6007                </li>
 6008            
 6009            </ul>
 6010        </div>
 6011    
 6012
 6013    
 6014
 6015    
 6016</div>
 6017
 6018                
 6019                    <div id="method_on" class="method item inherited">
 6020    <h3 class="name"><code>on</code></h3>
 6021
 6022    
 6023        <div class="args">
 6024            <span class="paren">(</span><ul class="args-list inline commas">
 6025            
 6026                <li class="arg">
 6027                    
 6028                        <code>type</code>
 6029                    
 6030                </li>
 6031            
 6032                <li class="arg">
 6033                    
 6034                        <code>listener</code>
 6035                    
 6036                </li>
 6037            
 6038                <li class="arg">
 6039                    
 6040                        <code class="optional">[scope]</code>
 6041                    
 6042                </li>
 6043            
 6044                <li class="arg">
 6045                    
 6046                        <code class="optional">[once=false]</code>
 6047                    
 6048                </li>
 6049            
 6050                <li class="arg">
 6051                    
 6052                        <code class="optional">[data]</code>
 6053                    
 6054                </li>
 6055            
 6056                <li class="arg">
 6057                    
 6058                        <code class="optional">[useCapture=false]</code>
 6059                    
 6060                </li>
 6061            
 6062            </ul><span class="paren">)</span>
 6063        </div>
 6064    
 6065
 6066    
 6067        <span class="returns-inline">
 6068            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
 6069        </span>
 6070    
 6071
 6072    
 6073
 6074    
 6075
 6076    
 6077
 6078    
 6079
 6080    
 6081
 6082    
 6083
 6084    <div class="meta">
 6085        
 6086            
 6087                <p>Inherited from
 6088                <a href="../classes/EventDispatcher.html#method_on">EventDispatcher</a>:
 6089            
 6090        
 6091        
 6092        <a href="../files/createjs_events_EventDispatcher.js.html#l173"><code>on:173</code></a>
 6093        
 6094        </p>
 6095
 6096
 6097        
 6098
 6099        
 6100    </div>
 6101
 6102    <div class="description">
 6103        <p><p>A shortcut method for using addEventListener that makes it easier to specify an execution scope, have a listener
 6104only run once, associate arbitrary data with the listener, and remove the listener.</p></p>
 6105<p><p>This method works by creating an anonymous wrapper function and subscribing it with addEventListener.
 6106The wrapper function is returned for use with <code>removeEventListener</code> (or <code>off</code>).</p></p>
 6107<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
 6108<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
 6109to <code>on</code> with the same params will create multiple listeners.</p></p>
 6110<h4>Example</h4>
 6111
 6112<pre class="code prettyprint"><code>    var listener = myBtn.on("click", handleClick, null, false, {count:3});
 6113    function handleClick(evt, data) {
 6114        data.count -= 1;
 6115        console.log(this == myBtn); // true - scope defaults to the dispatcher
 6116        if (data.count == 0) {
 6117            alert("clicked 3 times!");
 6118            myBtn.off("click", listener);
 6119            // alternately: evt.remove();
 6120        }
 6121    }</code></pre>
 6122
 6123    </div>
 6124
 6125    
 6126        <div class="params">
 6127            <h4>Parameters:</h4>
 6128
 6129            <ul class="params-list">
 6130            
 6131                <li class="param">
 6132                    
 6133                        <code class="param-name">type</code>
 6134                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 6135                    
 6136
 6137                    
 6138
 6139                    <div class="param-description">
 6140                        <p>The string type of the event.</p>
 6141
 6142                    </div>
 6143
 6144                    
 6145                </li>
 6146            
 6147                <li class="param">
 6148                    
 6149                        <code class="param-name">listener</code>
 6150                        <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>
 6151                    
 6152
 6153                    
 6154
 6155                    <div class="param-description">
 6156                        <p>An object with a handleEvent method, or a function that will be called when
 6157the event is dispatched.</p>
 6158
 6159                    </div>
 6160
 6161                    
 6162                </li>
 6163            
 6164                <li class="param">
 6165                    
 6166                        <code class="param-name optional">[scope]</code>
 6167                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 6168                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6169                    
 6170
 6171                    
 6172
 6173                    <div class="param-description">
 6174                        <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>
 6175
 6176                    </div>
 6177
 6178                    
 6179                </li>
 6180            
 6181                <li class="param">
 6182                    
 6183                        <code class="param-name optional">[once=false]</code>
 6184                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6185                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6186                    
 6187
 6188                    
 6189
 6190                    <div class="param-description">
 6191                        <p>If true, the listener will remove itself after the first time it is triggered.</p>
 6192
 6193                    </div>
 6194
 6195                    
 6196                </li>
 6197            
 6198                <li class="param">
 6199                    
 6200                        <code class="param-name optional">[data]</code>
 6201                        <span class="type"></span>
 6202                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6203                    
 6204
 6205                    
 6206
 6207                    <div class="param-description">
 6208                        <p>Arbitrary data that will be included as the second parameter when the listener is called.</p>
 6209
 6210                    </div>
 6211
 6212                    
 6213                </li>
 6214            
 6215                <li class="param">
 6216                    
 6217                        <code class="param-name optional">[useCapture=false]</code>
 6218                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6219                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6220                    
 6221
 6222                    
 6223
 6224                    <div class="param-description">
 6225                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
 6226
 6227                    </div>
 6228
 6229                    
 6230                </li>
 6231            
 6232            </ul>
 6233        </div>
 6234    
 6235
 6236    
 6237        <div class="returns">
 6238            <h4>Returns:</h4>
 6239
 6240            <div class="returns-description">
 6241                
 6242                    
 6243                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>:
 6244                    
 6245                    <p>Returns the anonymous function that was created and assigned as the listener. This is needed to remove the listener later using .removeEventListener.</p>
 6246
 6247                
 6248            </div>
 6249        </div>
 6250    
 6251
 6252    
 6253</div>
 6254
 6255                
 6256                    <div id="method_removeAllChildren" class="method item">
 6257    <h3 class="name"><code>removeAllChildren</code></h3>
 6258
 6259    
 6260        <span class="paren">()</span>
 6261    
 6262
 6263    
 6264
 6265    
 6266
 6267    
 6268
 6269    
 6270
 6271    
 6272
 6273    
 6274
 6275    
 6276
 6277    <div class="meta">
 6278        
 6279            
 6280                
 6281                <p>
 6282                
 6283                Defined in
 6284                
 6285            
 6286        
 6287        
 6288        <a href="../files/easeljs_display_Container.js.html#l300"><code>removeAllChildren:300</code></a>
 6289        
 6290        </p>
 6291
 6292
 6293        
 6294
 6295        
 6296    </div>
 6297
 6298    <div class="description">
 6299        <p>Removes all children from the display list.</p>
 6300<h4>Example</h4>
 6301
 6302<pre class="code prettyprint"><code>container.removeAllChildren();</code></pre>
 6303
 6304    </div>
 6305
 6306    
 6307
 6308    
 6309
 6310    
 6311</div>
 6312
 6313                
 6314                    <div id="method_removeAllEventListeners" class="method item inherited">
 6315    <h3 class="name"><code>removeAllEventListeners</code></h3>
 6316
 6317    
 6318        <div class="args">
 6319            <span class="paren">(</span><ul class="args-list inline commas">
 6320            
 6321                <li class="arg">
 6322                    
 6323                        <code class="optional">[type]</code>
 6324                    
 6325                </li>
 6326            
 6327            </ul><span class="paren">)</span>
 6328        </div>
 6329    
 6330
 6331    
 6332
 6333    
 6334
 6335    
 6336
 6337    
 6338
 6339    
 6340
 6341    
 6342
 6343    
 6344
 6345    <div class="meta">
 6346        
 6347            
 6348                <p>Inherited from
 6349                <a href="../classes/EventDispatcher.html#method_removeAllEventListeners">EventDispatcher</a>:
 6350            
 6351        
 6352        
 6353        <a href="../files/createjs_events_EventDispatcher.js.html#l263"><code>removeAllEventListeners:263</code></a>
 6354        
 6355        </p>
 6356
 6357
 6358        
 6359
 6360        
 6361    </div>
 6362
 6363    <div class="description">
 6364        <p><p>Removes all listeners for the specified type, or all listeners of all types.</p></p>
 6365<h4>Example</h4>
 6366
 6367<pre class="code prettyprint"><code> // Remove all listeners
 6368 displayObject.removeAllEventListeners();
 6369
 6370 // Remove all click listeners
 6371 displayObject.removeAllEventListeners("click");</code></pre>
 6372
 6373    </div>
 6374
 6375    
 6376        <div class="params">
 6377            <h4>Parameters:</h4>
 6378
 6379            <ul class="params-list">
 6380            
 6381                <li class="param">
 6382                    
 6383                        <code class="param-name optional">[type]</code>
 6384                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 6385                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6386                    
 6387
 6388                    
 6389
 6390                    <div class="param-description">
 6391                        <p>The string type of the event. If omitted, all listeners for all types will be removed.</p>
 6392
 6393                    </div>
 6394
 6395                    
 6396                </li>
 6397            
 6398            </ul>
 6399        </div>
 6400    
 6401
 6402    
 6403
 6404    
 6405</div>
 6406
 6407                
 6408                    <div id="method_removeChild" class="method item">
 6409    <h3 class="name"><code>removeChild</code></h3>
 6410
 6411    
 6412        <div class="args">
 6413            <span class="paren">(</span><ul class="args-list inline commas">
 6414            
 6415                <li class="arg">
 6416                    
 6417                        <code>child</code>
 6418                    
 6419                </li>
 6420            
 6421            </ul><span class="paren">)</span>
 6422        </div>
 6423    
 6424
 6425    
 6426        <span class="returns-inline">
 6427            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6428        </span>
 6429    
 6430
 6431    
 6432
 6433    
 6434
 6435    
 6436
 6437    
 6438
 6439    
 6440
 6441    
 6442
 6443    <div class="meta">
 6444        
 6445            
 6446                
 6447                <p>
 6448                
 6449                Defined in
 6450                
 6451            
 6452        
 6453        
 6454        <a href="../files/easeljs_display_Container.js.html#l244"><code>removeChild:244</code></a>
 6455        
 6456        </p>
 6457
 6458
 6459        
 6460
 6461        
 6462    </div>
 6463
 6464    <div class="description">
 6465        <p>Removes the specified child from the display list. Note that it is faster to use removeChildAt() if the index is
 6466already known.</p>
 6467<h4>Example</h4>
 6468
 6469<pre class="code prettyprint"><code> container.removeChild(child);</code></pre>
 6470<p>You can also remove multiple children:</p>
 6471<pre class="code prettyprint"><code> removeChild(child1, child2, ...);</code></pre>
 6472<p>Returns true if the child (or children) was removed, or false if it was not in the display list.</p>
 6473
 6474    </div>
 6475
 6476    
 6477        <div class="params">
 6478            <h4>Parameters:</h4>
 6479
 6480            <ul class="params-list">
 6481            
 6482                <li class="param">
 6483                    
 6484                        <code class="param-name">child</code>
 6485                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 6486                    
 6487
 6488                    
 6489
 6490                    <div class="param-description">
 6491                        <p>The child to remove.</p>
 6492
 6493                    </div>
 6494
 6495                    
 6496                </li>
 6497            
 6498            </ul>
 6499        </div>
 6500    
 6501
 6502    
 6503        <div class="returns">
 6504            <h4>Returns:</h4>
 6505
 6506            <div class="returns-description">
 6507                
 6508                    
 6509                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 6510                    
 6511                    <p>true if the child (or children) was removed, or false if it was not in the display list.</p>
 6512
 6513                
 6514            </div>
 6515        </div>
 6516    
 6517
 6518    
 6519</div>
 6520
 6521                
 6522                    <div id="method_removeChildAt" class="method item">
 6523    <h3 class="name"><code>removeChildAt</code></h3>
 6524
 6525    
 6526        <div class="args">
 6527            <span class="paren">(</span><ul class="args-list inline commas">
 6528            
 6529                <li class="arg">
 6530                    
 6531                        <code>index</code>
 6532                    
 6533                </li>
 6534            
 6535            </ul><span class="paren">)</span>
 6536        </div>
 6537    
 6538
 6539    
 6540        <span class="returns-inline">
 6541            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6542        </span>
 6543    
 6544
 6545    
 6546
 6547    
 6548
 6549    
 6550
 6551    
 6552
 6553    
 6554
 6555    
 6556
 6557    <div class="meta">
 6558        
 6559            
 6560                
 6561                <p>
 6562                
 6563                Defined in
 6564                
 6565            
 6566        
 6567        
 6568        <a href="../files/easeljs_display_Container.js.html#l271"><code>removeChildAt:271</code></a>
 6569        
 6570        </p>
 6571
 6572
 6573        
 6574
 6575        
 6576    </div>
 6577
 6578    <div class="description">
 6579        <p>Removes the child at the specified index from the display list, and sets its parent to null.</p>
 6580<h4>Example</h4>
 6581
 6582<pre class="code prettyprint"><code> container.removeChildAt(2);</code></pre>
 6583<p>You can also remove multiple children:</p>
 6584<pre class="code prettyprint"><code> container.removeChild(2, 7, ...)</code></pre>
 6585<p>Returns true if the child (or children) was removed, or false if any index was out of range.</p>
 6586
 6587    </div>
 6588
 6589    
 6590        <div class="params">
 6591            <h4>Parameters:</h4>
 6592
 6593            <ul class="params-list">
 6594            
 6595                <li class="param">
 6596                    
 6597                        <code class="param-name">index</code>
 6598                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6599                    
 6600
 6601                    
 6602
 6603                    <div class="param-description">
 6604                        <p>The index of the child to remove.</p>
 6605
 6606                    </div>
 6607
 6608                    
 6609                </li>
 6610            
 6611            </ul>
 6612        </div>
 6613    
 6614
 6615    
 6616        <div class="returns">
 6617            <h4>Returns:</h4>
 6618
 6619            <div class="returns-description">
 6620                
 6621                    
 6622                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 6623                    
 6624                    <p>true if the child (or children) was removed, or false if any index was out of range.</p>
 6625
 6626                
 6627            </div>
 6628        </div>
 6629    
 6630
 6631    
 6632</div>
 6633
 6634                
 6635                    <div id="method_removeChildAt" class="method item protected">
 6636    <h3 class="name"><code>removeChildAt</code></h3>
 6637
 6638    
 6639        <div class="args">
 6640            <span class="paren">(</span><ul class="args-list inline commas">
 6641            
 6642                <li class="arg">
 6643                    
 6644                        <code>index</code>
 6645                    
 6646                </li>
 6647            
 6648                <li class="arg">
 6649                    
 6650                        <code class="optional">[silent]</code>
 6651                    
 6652                </li>
 6653            
 6654            </ul><span class="paren">)</span>
 6655        </div>
 6656    
 6657
 6658    
 6659        <span class="returns-inline">
 6660            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6661        </span>
 6662    
 6663
 6664    
 6665
 6666    
 6667        <span class="flag protected">protected</span>
 6668    
 6669
 6670    
 6671
 6672    
 6673
 6674    
 6675
 6676    
 6677
 6678    <div class="meta">
 6679        
 6680            
 6681                
 6682                <p>
 6683                
 6684                Defined in
 6685                
 6686            
 6687        
 6688        
 6689        <a href="../files/easeljs_display_Container.js.html#l578"><code>removeChildAt:578</code></a>
 6690        
 6691        </p>
 6692
 6693
 6694        
 6695
 6696        
 6697    </div>
 6698
 6699    <div class="description">
 6700        <p>Removes the child at the specified index from the display list, and sets its parent to null.
 6701Used by <code>removeChildAt</code>, <code>addChild</code>, and <code>addChildAt</code>.</p>
 6702
 6703    </div>
 6704
 6705    
 6706        <div class="params">
 6707            <h4>Parameters:</h4>
 6708
 6709            <ul class="params-list">
 6710            
 6711                <li class="param">
 6712                    
 6713                        <code class="param-name">index</code>
 6714                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6715                    
 6716
 6717                    
 6718
 6719                    <div class="param-description">
 6720                        <p>The index of the child to remove.</p>
 6721
 6722                    </div>
 6723
 6724                    
 6725                </li>
 6726            
 6727                <li class="param">
 6728                    
 6729                        <code class="param-name optional">[silent]</code>
 6730                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6731                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6732                    
 6733
 6734                    
 6735
 6736                    <div class="param-description">
 6737                        <p>Prevents dispatch of <code>removed</code> event if true.</p>
 6738
 6739                    </div>
 6740
 6741                    
 6742                </li>
 6743            
 6744            </ul>
 6745        </div>
 6746    
 6747
 6748    
 6749        <div class="returns">
 6750            <h4>Returns:</h4>
 6751
 6752            <div class="returns-description">
 6753                
 6754                    
 6755                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 6756                    
 6757                    <p>true if the child (or children) was removed, or false if any index was out of range.</p>
 6758
 6759                
 6760            </div>
 6761        </div>
 6762    
 6763
 6764    
 6765</div>
 6766
 6767                
 6768                    <div id="method_removeEventListener" class="method item inherited">
 6769    <h3 class="name"><code>removeEventListener</code></h3>
 6770
 6771    
 6772        <div class="args">
 6773            <span class="paren">(</span><ul class="args-list inline commas">
 6774            
 6775                <li class="arg">
 6776                    
 6777                        <code>type</code>
 6778                    
 6779                </li>
 6780            
 6781                <li class="arg">
 6782                    
 6783                        <code>listener</code>
 6784                    
 6785                </li>
 6786            
 6787                <li class="arg">
 6788                    
 6789                        <code class="optional">[useCapture]</code>
 6790                    
 6791                </li>
 6792            
 6793            </ul><span class="paren">)</span>
 6794        </div>
 6795    
 6796
 6797    
 6798
 6799    
 6800
 6801    
 6802
 6803    
 6804
 6805    
 6806
 6807    
 6808
 6809    
 6810
 6811    <div class="meta">
 6812        
 6813            
 6814                <p>Inherited from
 6815                <a href="../classes/EventDispatcher.html#method_removeEventListener">EventDispatcher</a>:
 6816            
 6817        
 6818        
 6819        <a href="../files/createjs_events_EventDispatcher.js.html#l219"><code>removeEventListener:219</code></a>
 6820        
 6821        </p>
 6822
 6823
 6824        
 6825
 6826        
 6827    </div>
 6828
 6829    <div class="description">
 6830        <p><p>Removes the specified event listener.</p></p>
 6831<p><p><b>Important Note:</b> that you must pass the exact function reference used when the event was added. If a proxy
 6832function, or function closure is used as the callback, the proxy/closure reference must be used - a new proxy or
 6833closure will not work.</p></p>
 6834<h4>Example</h4>
 6835
 6836<pre class="code prettyprint"><code> displayObject.removeEventListener("click", handleClick);</code></pre>
 6837
 6838    </div>
 6839
 6840    
 6841        <div class="params">
 6842            <h4>Parameters:</h4>
 6843
 6844            <ul class="params-list">
 6845            
 6846                <li class="param">
 6847                    
 6848                        <code class="param-name">type</code>
 6849                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 6850                    
 6851
 6852                    
 6853
 6854                    <div class="param-description">
 6855                        <p>The string type of the event.</p>
 6856
 6857                    </div>
 6858
 6859                    
 6860                </li>
 6861            
 6862                <li class="param">
 6863                    
 6864                        <code class="param-name">listener</code>
 6865                        <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>
 6866                    
 6867
 6868                    
 6869
 6870                    <div class="param-description">
 6871                        <p>The listener function or object.</p>
 6872
 6873                    </div>
 6874
 6875                    
 6876                </li>
 6877            
 6878                <li class="param">
 6879                    
 6880                        <code class="param-name optional">[useCapture]</code>
 6881                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 6882                        <span class="flag optional" title="This parameter is optional.">optional</span>
 6883                    
 6884
 6885                    
 6886
 6887                    <div class="param-description">
 6888                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
 6889
 6890                    </div>
 6891
 6892                    
 6893                </li>
 6894            
 6895            </ul>
 6896        </div>
 6897    
 6898
 6899    
 6900
 6901    
 6902</div>
 6903
 6904                
 6905                    <div id="method_set" class="method item inherited">
 6906    <h3 class="name"><code>set</code></h3>
 6907
 6908    
 6909        <div class="args">
 6910            <span class="paren">(</span><ul class="args-list inline commas">
 6911            
 6912                <li class="arg">
 6913                    
 6914                        <code>props</code>
 6915                    
 6916                </li>
 6917            
 6918            </ul><span class="paren">)</span>
 6919        </div>
 6920    
 6921
 6922    
 6923        <span class="returns-inline">
 6924            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 6925        </span>
 6926    
 6927
 6928    
 6929
 6930    
 6931
 6932    
 6933
 6934    
 6935
 6936    
 6937        <span class="flag chainable">chainable</span>
 6938    
 6939
 6940    
 6941
 6942    <div class="meta">
 6943        
 6944            
 6945                <p>Inherited from
 6946                <a href="../classes/DisplayObject.html#method_set">DisplayObject</a>:
 6947            
 6948        
 6949        
 6950        <a href="../files/easeljs_display_DisplayObject.js.html#l1071"><code>set:1071</code></a>
 6951        
 6952        </p>
 6953
 6954
 6955        
 6956
 6957        
 6958    </div>
 6959
 6960    <div class="description">
 6961        <p>Provides a chainable shortcut method for setting a number of properties on the instance.</p>
 6962<h4>Example</h4>
 6963
 6964<pre class="code prettyprint"><code> var myGraphics = new createjs.Graphics().beginFill("#ff0000").drawCircle(0, 0, 25);
 6965 var shape = stage.addChild(new Shape()).set({graphics:myGraphics, x:100, y:100, alpha:0.5});</code></pre>
 6966
 6967    </div>
 6968
 6969    
 6970        <div class="params">
 6971            <h4>Parameters:</h4>
 6972
 6973            <ul class="params-list">
 6974            
 6975                <li class="param">
 6976                    
 6977                        <code class="param-name">props</code>
 6978                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 6979                    
 6980
 6981                    
 6982
 6983                    <div class="param-description">
 6984                        <p>A generic object containing properties to copy to the DisplayObject instance.</p>
 6985
 6986                    </div>
 6987
 6988                    
 6989                </li>
 6990            
 6991            </ul>
 6992        </div>
 6993    
 6994
 6995    
 6996        <div class="returns">
 6997            <h4>Returns:</h4>
 6998
 6999            <div class="returns-description">
 7000                
 7001                    
 7002                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 7003                    
 7004                    <p>Returns the instance the method is called on (useful for chaining calls.)</p>
 7005
 7006                
 7007            </div>
 7008        </div>
 7009    
 7010
 7011    
 7012</div>
 7013
 7014                
 7015                    <div id="method_setBounds" class="method item inherited">
 7016    <h3 class="name"><code>setBounds</code></h3>
 7017
 7018    
 7019        <div class="args">
 7020            <span class="paren">(</span><ul class="args-list inline commas">
 7021            
 7022                <li class="arg">
 7023                    
 7024                        <code>x</code>
 7025                    
 7026                </li>
 7027            
 7028                <li class="arg">
 7029                    
 7030                        <code>y</code>
 7031                    
 7032                </li>
 7033            
 7034                <li class="arg">
 7035                    
 7036                        <code>width</code>
 7037                    
 7038                </li>
 7039            
 7040                <li class="arg">
 7041                    
 7042                        <code>height</code>
 7043                    
 7044                </li>
 7045            
 7046            </ul><span class="paren">)</span>
 7047        </div>
 7048    
 7049
 7050    
 7051
 7052    
 7053
 7054    
 7055
 7056    
 7057
 7058    
 7059
 7060    
 7061
 7062    
 7063
 7064    <div class="meta">
 7065        
 7066            
 7067                <p>Inherited from
 7068                <a href="../classes/DisplayObject.html#method_setBounds">DisplayObject</a>:
 7069            
 7070        
 7071        
 7072        <a href="../files/easeljs_display_DisplayObject.js.html#l1174"><code>setBounds:1174</code></a>
 7073        
 7074        </p>
 7075
 7076
 7077        
 7078
 7079        
 7080    </div>
 7081
 7082    <div class="description">
 7083        <p>Allows you to manually specify the bounds of an object that either cannot calculate their own bounds (ex. Shape &amp;
 7084Text) for future reference, or so the object can be included in Container bounds. Manually set bounds will always
 7085override calculated bounds.</p>
 7086<p>The bounds should be specified in the object&#39;s local (untransformed) coordinates. For example, a Shape instance
 7087with a 25px radius circle centered at 0,0 would have bounds of (-25, -25, 50, 50).</p>
 7088
 7089    </div>
 7090
 7091    
 7092        <div class="params">
 7093            <h4>Parameters:</h4>
 7094
 7095            <ul class="params-list">
 7096            
 7097                <li class="param">
 7098                    
 7099                        <code class="param-name">x</code>
 7100                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7101                    
 7102
 7103                    
 7104
 7105                    <div class="param-description">
 7106                        <p>The x origin of the bounds. Pass null to remove the manual bounds.</p>
 7107
 7108                    </div>
 7109
 7110                    
 7111                </li>
 7112            
 7113                <li class="param">
 7114                    
 7115                        <code class="param-name">y</code>
 7116                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7117                    
 7118
 7119                    
 7120
 7121                    <div class="param-description">
 7122                        <p>The y origin of the bounds.</p>
 7123
 7124                    </div>
 7125
 7126                    
 7127                </li>
 7128            
 7129                <li class="param">
 7130                    
 7131                        <code class="param-name">width</code>
 7132                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7133                    
 7134
 7135                    
 7136
 7137                    <div class="param-description">
 7138                        <p>The width of the bounds.</p>
 7139
 7140                    </div>
 7141
 7142                    
 7143                </li>
 7144            
 7145                <li class="param">
 7146                    
 7147                        <code class="param-name">height</code>
 7148                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7149                    
 7150
 7151                    
 7152
 7153                    <div class="param-description">
 7154                        <p>The height of the bounds.</p>
 7155
 7156                    </div>
 7157
 7158                    
 7159                </li>
 7160            
 7161            </ul>
 7162        </div>
 7163    
 7164
 7165    
 7166
 7167    
 7168</div>
 7169
 7170                
 7171                    <div id="method_setChildIndex" class="method item">
 7172    <h3 class="name"><code>setChildIndex</code></h3>
 7173
 7174    
 7175        <div class="args">
 7176            <span class="paren">(</span><ul class="args-list inline commas">
 7177            
 7178                <li class="arg">
 7179                    
 7180                        <code>child</code>
 7181                    
 7182                </li>
 7183            
 7184                <li class="arg">
 7185                    
 7186                        <code>index</code>
 7187                    
 7188                </li>
 7189            
 7190            </ul><span class="paren">)</span>
 7191        </div>
 7192    
 7193
 7194    
 7195
 7196    
 7197
 7198    
 7199
 7200    
 7201
 7202    
 7203
 7204    
 7205
 7206    
 7207
 7208    <div class="meta">
 7209        
 7210            
 7211                
 7212                <p>
 7213                
 7214                Defined in
 7215                
 7216            
 7217        
 7218        
 7219        <a href="../files/easeljs_display_Container.js.html#l413"><code>setChildIndex:413</code></a>
 7220        
 7221        </p>
 7222
 7223
 7224        
 7225
 7226        
 7227    </div>
 7228
 7229    <div class="description">
 7230        <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>
 7231
 7232    </div>
 7233
 7234    
 7235        <div class="params">
 7236            <h4>Parameters:</h4>
 7237
 7238            <ul class="params-list">
 7239            
 7240                <li class="param">
 7241                    
 7242                        <code class="param-name">child</code>
 7243                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 7244                    
 7245
 7246                    
 7247
 7248                    <div class="param-description">
 7249                         
 7250                    </div>
 7251
 7252                    
 7253                </li>
 7254            
 7255                <li class="param">
 7256                    
 7257                        <code class="param-name">index</code>
 7258                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7259                    
 7260
 7261                    
 7262
 7263                    <div class="param-description">
 7264                         
 7265                    </div>
 7266
 7267                    
 7268                </li>
 7269            
 7270            </ul>
 7271        </div>
 7272    
 7273
 7274    
 7275
 7276    
 7277</div>
 7278
 7279                
 7280                    <div id="method_setTransform" class="method item inherited">
 7281    <h3 class="name"><code>setTransform</code></h3>
 7282
 7283    
 7284        <div class="args">
 7285            <span class="paren">(</span><ul class="args-list inline commas">
 7286            
 7287                <li class="arg">
 7288                    
 7289                        <code class="optional">[x=0]</code>
 7290                    
 7291                </li>
 7292            
 7293                <li class="arg">
 7294                    
 7295                        <code class="optional">[y=0]</code>
 7296                    
 7297                </li>
 7298            
 7299                <li class="arg">
 7300                    
 7301                        <code class="optional">[scaleX=1]</code>
 7302                    
 7303                </li>
 7304            
 7305                <li class="arg">
 7306                    
 7307                        <code class="optional">[scaleY=1]</code>
 7308                    
 7309                </li>
 7310            
 7311                <li class="arg">
 7312                    
 7313                        <code class="optional">[rotation=0]</code>
 7314                    
 7315                </li>
 7316            
 7317                <li class="arg">
 7318                    
 7319                        <code class="optional">[skewX=0]</code>
 7320                    
 7321                </li>
 7322            
 7323                <li class="arg">
 7324                    
 7325                        <code class="optional">[skewY=0]</code>
 7326                    
 7327                </li>
 7328            
 7329                <li class="arg">
 7330                    
 7331                        <code class="optional">[regX=0]</code>
 7332                    
 7333                </li>
 7334            
 7335                <li class="arg">
 7336                    
 7337                        <code class="optional">[regY=0]</code>
 7338                    
 7339                </li>
 7340            
 7341            </ul><span class="paren">)</span>
 7342        </div>
 7343    
 7344
 7345    
 7346        <span class="returns-inline">
 7347            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 7348        </span>
 7349    
 7350
 7351    
 7352
 7353    
 7354
 7355    
 7356
 7357    
 7358
 7359    
 7360        <span class="flag chainable">chainable</span>
 7361    
 7362
 7363    
 7364
 7365    <div class="meta">
 7366        
 7367            
 7368                <p>Inherited from
 7369                <a href="../classes/DisplayObject.html#method_setTransform">DisplayObject</a>:
 7370            
 7371        
 7372        
 7373        <a href="../files/easeljs_display_DisplayObject.js.html#l957"><code>setTransform:957</code></a>
 7374        
 7375        </p>
 7376
 7377
 7378        
 7379
 7380        
 7381    </div>
 7382
 7383    <div class="description">
 7384        <p>Shortcut method to quickly set the transform properties on the display object. All parameters are optional.
 7385Omitted parameters will have the default value set.</p>
 7386<h4>Example</h4>
 7387
 7388<pre class="code prettyprint"><code> displayObject.setTransform(100, 100, 2, 2);</code></pre>
 7389
 7390    </div>
 7391
 7392    
 7393        <div class="params">
 7394            <h4>Parameters:</h4>
 7395
 7396            <ul class="params-list">
 7397            
 7398                <li class="param">
 7399                    
 7400                        <code class="param-name optional">[x=0]</code>
 7401                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7402                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7403                    
 7404
 7405                    
 7406
 7407                    <div class="param-description">
 7408                        <p>The horizontal translation (x position) in pixels</p>
 7409
 7410                    </div>
 7411
 7412                    
 7413                </li>
 7414            
 7415                <li class="param">
 7416                    
 7417                        <code class="param-name optional">[y=0]</code>
 7418                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7419                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7420                    
 7421
 7422                    
 7423
 7424                    <div class="param-description">
 7425                        <p>The vertical translation (y position) in pixels</p>
 7426
 7427                    </div>
 7428
 7429                    
 7430                </li>
 7431            
 7432                <li class="param">
 7433                    
 7434                        <code class="param-name optional">[scaleX=1]</code>
 7435                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7436                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7437                    
 7438
 7439                    
 7440
 7441                    <div class="param-description">
 7442                        <p>The horizontal scale, as a percentage of 1</p>
 7443
 7444                    </div>
 7445
 7446                    
 7447                </li>
 7448            
 7449                <li class="param">
 7450                    
 7451                        <code class="param-name optional">[scaleY=1]</code>
 7452                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7453                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7454                    
 7455
 7456                    
 7457
 7458                    <div class="param-description">
 7459                        <p>the vertical scale, as a percentage of 1</p>
 7460
 7461                    </div>
 7462
 7463                    
 7464                </li>
 7465            
 7466                <li class="param">
 7467                    
 7468                        <code class="param-name optional">[rotation=0]</code>
 7469                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7470                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7471                    
 7472
 7473                    
 7474
 7475                    <div class="param-description">
 7476                        <p>The rotation, in degrees</p>
 7477
 7478                    </div>
 7479
 7480                    
 7481                </li>
 7482            
 7483                <li class="param">
 7484                    
 7485                        <code class="param-name optional">[skewX=0]</code>
 7486                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7487                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7488                    
 7489
 7490                    
 7491
 7492                    <div class="param-description">
 7493                        <p>The horizontal skew factor</p>
 7494
 7495                    </div>
 7496
 7497                    
 7498                </li>
 7499            
 7500                <li class="param">
 7501                    
 7502                        <code class="param-name optional">[skewY=0]</code>
 7503                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7504                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7505                    
 7506
 7507                    
 7508
 7509                    <div class="param-description">
 7510                        <p>The vertical skew factor</p>
 7511
 7512                    </div>
 7513
 7514                    
 7515                </li>
 7516            
 7517                <li class="param">
 7518                    
 7519                        <code class="param-name optional">[regX=0]</code>
 7520                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7521                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7522                    
 7523
 7524                    
 7525
 7526                    <div class="param-description">
 7527                        <p>The horizontal registration point in pixels</p>
 7528
 7529                    </div>
 7530
 7531                    
 7532                </li>
 7533            
 7534                <li class="param">
 7535                    
 7536                        <code class="param-name optional">[regY=0]</code>
 7537                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7538                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7539                    
 7540
 7541                    
 7542
 7543                    <div class="param-description">
 7544                        <p>The vertical registration point in pixels</p>
 7545
 7546                    </div>
 7547
 7548                    
 7549                </li>
 7550            
 7551            </ul>
 7552        </div>
 7553    
 7554
 7555    
 7556        <div class="returns">
 7557            <h4>Returns:</h4>
 7558
 7559            <div class="returns-description">
 7560                
 7561                    
 7562                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
 7563                    
 7564                    <p>Returns this instance. Useful for chaining commands.</p>
 7565
 7566                
 7567            </div>
 7568        </div>
 7569    
 7570
 7571    
 7572</div>
 7573
 7574                
 7575                    <div id="method_sortChildren" class="method item">
 7576    <h3 class="name"><code>sortChildren</code></h3>
 7577
 7578    
 7579        <div class="args">
 7580            <span class="paren">(</span><ul class="args-list inline commas">
 7581            
 7582                <li class="arg">
 7583                    
 7584                        <code>sortFunction</code>
 7585                    
 7586                </li>
 7587            
 7588            </ul><span class="paren">)</span>
 7589        </div>
 7590    
 7591
 7592    
 7593
 7594    
 7595
 7596    
 7597
 7598    
 7599
 7600    
 7601
 7602    
 7603
 7604    
 7605
 7606    <div class="meta">
 7607        
 7608            
 7609                
 7610                <p>
 7611                
 7612                Defined in
 7613                
 7614            
 7615        
 7616        
 7617        <a href="../files/easeljs_display_Container.js.html#l343"><code>sortChildren:343</code></a>
 7618        
 7619        </p>
 7620
 7621
 7622        
 7623
 7624        
 7625    </div>
 7626
 7627    <div class="description">
 7628        <p>Performs an array sort operation on the child list.</p>
 7629<h4>Example: Display children with a higher y in front.</h4>
 7630
 7631<pre class="code prettyprint"><code> var sortFunction = function(obj1, obj2, options) {
 7632     if (obj1.y &gt; obj2.y) { return 1; }
 7633     if (obj1.y &lt; obj2.y) { return -1; }
 7634     return 0;
 7635 }
 7636 container.sortChildren(sortFunction);</code></pre>
 7637
 7638    </div>
 7639
 7640    
 7641        <div class="params">
 7642            <h4>Parameters:</h4>
 7643
 7644            <ul class="params-list">
 7645            
 7646                <li class="param">
 7647                    
 7648                        <code class="param-name">sortFunction</code>
 7649                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
 7650                    
 7651
 7652                    
 7653
 7654                    <div class="param-description">
 7655                        <p>the function to use to sort the child list. See JavaScript&#39;s <code>Array.sort</code>
 7656documentation for details.</p>
 7657
 7658                    </div>
 7659
 7660                    
 7661                </li>
 7662            
 7663            </ul>
 7664        </div>
 7665    
 7666
 7667    
 7668
 7669    
 7670</div>
 7671
 7672                
 7673                    <div id="method_swapChildren" class="method item">
 7674    <h3 class="name"><code>swapChildren</code></h3>
 7675
 7676    
 7677        <div class="args">
 7678            <span class="paren">(</span><ul class="args-list inline commas">
 7679            
 7680                <li class="arg">
 7681                    
 7682                        <code>child1</code>
 7683                    
 7684                </li>
 7685            
 7686                <li class="arg">
 7687                    
 7688                        <code>child2</code>
 7689                    
 7690                </li>
 7691            
 7692            </ul><span class="paren">)</span>
 7693        </div>
 7694    
 7695
 7696    
 7697
 7698    
 7699
 7700    
 7701
 7702    
 7703
 7704    
 7705
 7706    
 7707
 7708    
 7709
 7710    <div class="meta">
 7711        
 7712            
 7713                
 7714                <p>
 7715                
 7716                Defined in
 7717                
 7718            
 7719        
 7720        
 7721        <a href="../files/easeljs_display_Container.js.html#l393"><code>swapChildren:393</code></a>
 7722        
 7723        </p>
 7724
 7725
 7726        
 7727
 7728        
 7729    </div>
 7730
 7731    <div class="description">
 7732        <p>Swaps the specified children&#39;s depth in the display list. Fails silently if either child is not a child of this
 7733Container.</p>
 7734
 7735    </div>
 7736
 7737    
 7738        <div class="params">
 7739            <h4>Parameters:</h4>
 7740
 7741            <ul class="params-list">
 7742            
 7743                <li class="param">
 7744                    
 7745                        <code class="param-name">child1</code>
 7746                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 7747                    
 7748
 7749                    
 7750
 7751                    <div class="param-description">
 7752                         
 7753                    </div>
 7754
 7755                    
 7756                </li>
 7757            
 7758                <li class="param">
 7759                    
 7760                        <code class="param-name">child2</code>
 7761                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 7762                    
 7763
 7764                    
 7765
 7766                    <div class="param-description">
 7767                         
 7768                    </div>
 7769
 7770                    
 7771                </li>
 7772            
 7773            </ul>
 7774        </div>
 7775    
 7776
 7777    
 7778
 7779    
 7780</div>
 7781
 7782                
 7783                    <div id="method_swapChildrenAt" class="method item">
 7784    <h3 class="name"><code>swapChildrenAt</code></h3>
 7785
 7786    
 7787        <div class="args">
 7788            <span class="paren">(</span><ul class="args-list inline commas">
 7789            
 7790                <li class="arg">
 7791                    
 7792                        <code>index1</code>
 7793                    
 7794                </li>
 7795            
 7796                <li class="arg">
 7797                    
 7798                        <code>index2</code>
 7799                    
 7800                </li>
 7801            
 7802            </ul><span class="paren">)</span>
 7803        </div>
 7804    
 7805
 7806    
 7807
 7808    
 7809
 7810    
 7811
 7812    
 7813
 7814    
 7815
 7816    
 7817
 7818    
 7819
 7820    <div class="meta">
 7821        
 7822            
 7823                
 7824                <p>
 7825                
 7826                Defined in
 7827                
 7828            
 7829        
 7830        
 7831        <a href="../files/easeljs_display_Container.js.html#l378"><code>swapChildrenAt:378</code></a>
 7832        
 7833        </p>
 7834
 7835
 7836        
 7837
 7838        
 7839    </div>
 7840
 7841    <div class="description">
 7842        <p>Swaps the children at the specified indexes. Fails silently if either index is out of range.</p>
 7843
 7844    </div>
 7845
 7846    
 7847        <div class="params">
 7848            <h4>Parameters:</h4>
 7849
 7850            <ul class="params-list">
 7851            
 7852                <li class="param">
 7853                    
 7854                        <code class="param-name">index1</code>
 7855                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7856                    
 7857
 7858                    
 7859
 7860                    <div class="param-description">
 7861                         
 7862                    </div>
 7863
 7864                    
 7865                </li>
 7866            
 7867                <li class="param">
 7868                    
 7869                        <code class="param-name">index2</code>
 7870                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7871                    
 7872
 7873                    
 7874
 7875                    <div class="param-description">
 7876                         
 7877                    </div>
 7878
 7879                    
 7880                </li>
 7881            
 7882            </ul>
 7883        </div>
 7884    
 7885
 7886    
 7887
 7888    
 7889</div>
 7890
 7891                
 7892                    <div id="method_toString" class="method item">
 7893    <h3 class="name"><code>toString</code></h3>
 7894
 7895    
 7896        <span class="paren">()</span>
 7897    
 7898
 7899    
 7900        <span class="returns-inline">
 7901            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 7902        </span>
 7903    
 7904
 7905    
 7906
 7907    
 7908
 7909    
 7910
 7911    
 7912
 7913    
 7914
 7915    
 7916
 7917    <div class="meta">
 7918        
 7919            <p>Inherited from
 7920            <a href="../classes/EventDispatcher.html#method_toString">
 7921                EventDispatcher
 7922            </a>
 7923            
 7924            but overwritten in
 7925            
 7926        
 7927        
 7928        <a href="../files/easeljs_display_Container.js.html#l536"><code>toString:536</code></a>
 7929        
 7930        </p>
 7931
 7932
 7933        
 7934
 7935        
 7936    </div>
 7937
 7938    <div class="description">
 7939        <p>Returns a string representation of this object.</p>
 7940
 7941    </div>
 7942
 7943    
 7944
 7945    
 7946        <div class="returns">
 7947            <h4>Returns:</h4>
 7948
 7949            <div class="returns-description">
 7950                
 7951                    
 7952                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
 7953                    
 7954                    <p>a string representation of the instance.</p>
 7955
 7956                
 7957            </div>
 7958        </div>
 7959    
 7960
 7961    
 7962</div>
 7963
 7964                
 7965                    <div id="method_uncache" class="method item inherited">
 7966    <h3 class="name"><code>uncache</code></h3>
 7967
 7968    
 7969        <span class="paren">()</span>
 7970    
 7971
 7972    
 7973
 7974    
 7975
 7976    
 7977
 7978    
 7979
 7980    
 7981
 7982    
 7983
 7984    
 7985
 7986    <div class="meta">
 7987        
 7988            
 7989                <p>Inherited from
 7990                <a href="../classes/DisplayObject.html#method_uncache">DisplayObject</a>:
 7991            
 7992        
 7993        
 7994        <a href="../files/easeljs_display_DisplayObject.js.html#l864"><code>uncache:864</code></a>
 7995        
 7996        </p>
 7997
 7998
 7999        
 8000
 8001        
 8002    </div>
 8003
 8004    <div class="description">
 8005        <p>Clears the current cache. See <a href="../classes/DisplayObject.html#method_cache" class="crosslink">cache</a> for more information.</p>
 8006
 8007    </div>
 8008
 8009    
 8010
 8011    
 8012
 8013    
 8014</div>
 8015
 8016                
 8017                    <div id="method_updateCache" class="method item inherited">
 8018    <h3 class="name"><code>updateCache</code></h3>
 8019
 8020    
 8021        <div class="args">
 8022            <span class="paren">(</span><ul class="args-list inline commas">
 8023            
 8024                <li class="arg">
 8025                    
 8026                        <code>compositeOperation</code>
 8027                    
 8028                </li>
 8029            
 8030            </ul><span class="paren">)</span>
 8031        </div>
 8032    
 8033
 8034    
 8035
 8036    
 8037
 8038    
 8039
 8040    
 8041
 8042    
 8043
 8044    
 8045
 8046    
 8047
 8048    <div class="meta">
 8049        
 8050            
 8051                <p>Inherited from
 8052                <a href="../classes/DisplayObject.html#method_updateCache">DisplayObject</a>:
 8053            
 8054        
 8055        
 8056        <a href="../files/easeljs_display_DisplayObject.js.html#l835"><code>updateCache:835</code></a>
 8057        
 8058        </p>
 8059
 8060
 8061        
 8062
 8063        
 8064    </div>
 8065
 8066    <div class="description">
 8067        <p>Redraws the display object to its cache. Calling updateCache without an active cache will throw an error.
 8068If compositeOperation is null the current cache will be cleared prior to drawing. Otherwise the display object
 8069will be drawn over the existing cache using the specified compositeOperation.</p>
 8070<p><h4>Example</h4>
 8071Clear the current graphics of a cached shape, draw some new instructions, and then update the cache. The new line
 8072will be drawn on top of the old one.</p>
 8073<pre class="code prettyprint"><code> // Not shown: Creating the shape, and caching it.
 8074 shapeInstance.clear();
 8075 shapeInstance.setStrokeStyle(3).beginStroke("#ff0000").moveTo(100, 100).lineTo(200,200);
 8076 shapeInstance.updateCache();</code></pre>
 8077<p>In previous versions caching was handled on DisplayObject but has since been moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>.
 8078This allows for easier interaction and alternate cache methods like WebGL and <a href="../classes/StageGL.html" class="crosslink">StageGL</a>.</p>
 8079
 8080    </div>
 8081
 8082    
 8083        <div class="params">
 8084            <h4>Parameters:</h4>
 8085
 8086            <ul class="params-list">
 8087            
 8088                <li class="param">
 8089                    
 8090                        <code class="param-name">compositeOperation</code>
 8091                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 8092                    
 8093
 8094                    
 8095
 8096                    <div class="param-description">
 8097                        <p>The compositeOperation to use, or null to clear the cache and redraw it.
 8098<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
 8099whatwg spec on compositing</a>.</p>
 8100
 8101                    </div>
 8102
 8103                    
 8104                </li>
 8105            
 8106            </ul>
 8107        </div>
 8108    
 8109
 8110    
 8111
 8112    
 8113</div>
 8114
 8115                
 8116                    <div id="method_updateContext" class="method item inherited">
 8117    <h3 class="name"><code>updateContext</code></h3>
 8118
 8119    
 8120        <div class="args">
 8121            <span class="paren">(</span><ul class="args-list inline commas">
 8122            
 8123                <li class="arg">
 8124                    
 8125                        <code>ctx</code>
 8126                    
 8127                </li>
 8128            
 8129            </ul><span class="paren">)</span>
 8130        </div>
 8131    
 8132
 8133    
 8134
 8135    
 8136
 8137    
 8138
 8139    
 8140
 8141    
 8142
 8143    
 8144
 8145    
 8146
 8147    <div class="meta">
 8148        
 8149            
 8150                <p>Inherited from
 8151                <a href="../classes/DisplayObject.html#method_updateContext">DisplayObject</a>:
 8152            
 8153        
 8154        
 8155        <a href="../files/easeljs_display_DisplayObject.js.html#l760"><code>updateContext:760</code></a>
 8156        
 8157        </p>
 8158
 8159
 8160        
 8161
 8162        
 8163    </div>
 8164
 8165    <div class="description">
 8166        <p>Applies this display object&#39;s transformation, alpha, globalCompositeOperation, clipping path (mask), and shadow
 8167to the specified context. This is typically called prior to <a href="../classes/DisplayObject.html#method_draw" class="crosslink">draw</a>.</p>
 8168
 8169    </div>
 8170
 8171    
 8172        <div class="params">
 8173            <h4>Parameters:</h4>
 8174
 8175            <ul class="params-list">
 8176            
 8177                <li class="param">
 8178                    
 8179                        <code class="param-name">ctx</code>
 8180                        <span class="type">CanvasRenderingContext2D</span>
 8181                    
 8182
 8183                    
 8184
 8185                    <div class="param-description">
 8186                        <p>The canvas 2D to update.</p>
 8187
 8188                    </div>
 8189
 8190                    
 8191                </li>
 8192            
 8193            </ul>
 8194        </div>
 8195    
 8196
 8197    
 8198
 8199    
 8200</div>
 8201
 8202                
 8203                    <div id="method_willTrigger" class="method item inherited">
 8204    <h3 class="name"><code>willTrigger</code></h3>
 8205
 8206    
 8207        <div class="args">
 8208            <span class="paren">(</span><ul class="args-list inline commas">
 8209            
 8210                <li class="arg">
 8211                    
 8212                        <code>type</code>
 8213                    
 8214                </li>
 8215            
 8216            </ul><span class="paren">)</span>
 8217        </div>
 8218    
 8219
 8220    
 8221        <span class="returns-inline">
 8222            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8223        </span>
 8224    
 8225
 8226    
 8227
 8228    
 8229
 8230    
 8231
 8232    
 8233
 8234    
 8235
 8236    
 8237
 8238    <div class="meta">
 8239        
 8240            
 8241                <p>Inherited from
 8242                <a href="../classes/EventDispatcher.html#method_willTrigger">EventDispatcher</a>:
 8243            
 8244        
 8245        
 8246        <a href="../files/createjs_events_EventDispatcher.js.html#l350"><code>willTrigger:350</code></a>
 8247        
 8248        </p>
 8249
 8250
 8251        
 8252
 8253        
 8254    </div>
 8255
 8256    <div class="description">
 8257        <p>Indicates whether there is at least one listener for the specified event type on this object or any of its
 8258ancestors (parent, parent&#39;s parent, etc). A return value of true indicates that if a bubbling event of the
 8259specified type is dispatched from this object, it will trigger at least one listener.</p>
 8260<p>This is similar to <a href="../classes/EventDispatcher.html#method_hasEventListener" class="crosslink">hasEventListener</a>, but it searches the entire
 8261event flow for a listener, not just this object.</p>
 8262
 8263    </div>
 8264
 8265    
 8266        <div class="params">
 8267            <h4>Parameters:</h4>
 8268
 8269            <ul class="params-list">
 8270            
 8271                <li class="param">
 8272                    
 8273                        <code class="param-name">type</code>
 8274                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 8275                    
 8276
 8277                    
 8278
 8279                    <div class="param-description">
 8280                        <p>The string type of the event.</p>
 8281
 8282                    </div>
 8283
 8284                    
 8285                </li>
 8286            
 8287            </ul>
 8288        </div>
 8289    
 8290
 8291    
 8292        <div class="returns">
 8293            <h4>Returns:</h4>
 8294
 8295            <div class="returns-description">
 8296                
 8297                    
 8298                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 8299                    
 8300                    <p>Returns <code>true</code> if there is at least one listener for the specified event.</p>
 8301
 8302                
 8303            </div>
 8304        </div>
 8305    
 8306
 8307    
 8308</div>
 8309
 8310                
 8311            </div>
 8312        
 8313
 8314        
 8315            <div id="properties" class="api-class-tabpanel">
 8316                <h2 class="off-left">Properties</h2>
 8317
 8318                
 8319                    <div id="property__bounds" class="property item protected inherited">
 8320    <h3 class="name"><code>_bounds</code></h3>
 8321    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 8322
 8323    
 8324
 8325    
 8326        <span class="flag protected">protected</span>
 8327    
 8328
 8329    
 8330
 8331    
 8332
 8333    
 8334
 8335    <div class="meta">
 8336        
 8337            
 8338                <p>Inherited from
 8339                <a href="../classes/DisplayObject.html#property__bounds">DisplayObject</a>:
 8340            
 8341        
 8342        
 8343        <a href="../files/easeljs_display_DisplayObject.js.html#l443"><code>_bounds:443</code></a>
 8344        
 8345        </p>
 8346
 8347        
 8348
 8349        
 8350    </div>
 8351
 8352    <div class="description">
 8353        
 8354    </div>
 8355
 8356    
 8357        <p><strong>Default:</strong> null</p>
 8358    
 8359
 8360    
 8361
 8362    
 8363</div>
 8364
 8365                
 8366                    <div id="property__cacheDataURL" class="property item protected deprecated inherited">
 8367    <h3 class="name"><code>_cacheDataURL</code></h3>
 8368    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 8369
 8370    
 8371        <span class="flag deprecated">deprecated</span>
 8372    
 8373
 8374    
 8375        <span class="flag protected">protected</span>
 8376    
 8377
 8378    
 8379
 8380    
 8381
 8382    
 8383
 8384    <div class="meta">
 8385        
 8386            
 8387                <p>Inherited from
 8388                <a href="../classes/DisplayObject.html#property__cacheDataURL">DisplayObject</a>:
 8389            
 8390        
 8391        
 8392        <a href="../files/easeljs_display_DisplayObject.js.html#l418"><code>_cacheDataURL:418</code></a>
 8393        
 8394        </p>
 8395
 8396        
 8397
 8398        
 8399    </div>
 8400
 8401    <div class="description">
 8402        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
 8403
 8404    </div>
 8405
 8406    
 8407        <p><strong>Default:</strong> null</p>
 8408    
 8409
 8410    
 8411
 8412    
 8413</div>
 8414
 8415                
 8416                    <div id="property__cacheDataURLID" class="property item protected deprecated inherited">
 8417    <h3 class="name"><code>_cacheDataURLID</code></h3>
 8418    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8419
 8420    
 8421        <span class="flag deprecated">deprecated</span>
 8422    
 8423
 8424    
 8425        <span class="flag protected">protected</span>
 8426    
 8427
 8428    
 8429
 8430    
 8431
 8432    
 8433
 8434    <div class="meta">
 8435        
 8436            
 8437                <p>Inherited from
 8438                <a href="../classes/DisplayObject.html#property__cacheDataURLID">DisplayObject</a>:
 8439            
 8440        
 8441        
 8442        <a href="../files/easeljs_display_DisplayObject.js.html#l409"><code>_cacheDataURLID:409</code></a>
 8443        
 8444        </p>
 8445
 8446        
 8447
 8448        
 8449    </div>
 8450
 8451    <div class="description">
 8452        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
 8453
 8454    </div>
 8455
 8456    
 8457        <p><strong>Default:</strong> 0</p>
 8458    
 8459
 8460    
 8461
 8462    
 8463</div>
 8464
 8465                
 8466                    <div id="property__cacheScale" class="property item protected deprecated inherited">
 8467    <h3 class="name"><code>_cacheScale</code></h3>
 8468    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8469
 8470    
 8471        <span class="flag deprecated">deprecated</span>
 8472    
 8473
 8474    
 8475        <span class="flag protected">protected</span>
 8476    
 8477
 8478    
 8479
 8480    
 8481
 8482    
 8483
 8484    <div class="meta">
 8485        
 8486            
 8487                <p>Inherited from
 8488                <a href="../classes/DisplayObject.html#property__cacheScale">DisplayObject</a>:
 8489            
 8490        
 8491        
 8492        <a href="../files/easeljs_display_DisplayObject.js.html#l400"><code>_cacheScale:400</code></a>
 8493        
 8494        </p>
 8495
 8496        
 8497
 8498        
 8499    </div>
 8500
 8501    <div class="description">
 8502        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
 8503
 8504    </div>
 8505
 8506    
 8507        <p><strong>Default:</strong> 1</p>
 8508    
 8509
 8510    
 8511
 8512    
 8513</div>
 8514
 8515                
 8516                    <div id="property__captureListeners" class="property item protected inherited">
 8517    <h3 class="name"><code>_captureListeners</code></h3>
 8518    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 8519
 8520    
 8521
 8522    
 8523        <span class="flag protected">protected</span>
 8524    
 8525
 8526    
 8527
 8528    
 8529
 8530    
 8531
 8532    <div class="meta">
 8533        
 8534            
 8535                <p>Inherited from
 8536                <a href="../classes/EventDispatcher.html#property__captureListeners">EventDispatcher</a>:
 8537            
 8538        
 8539        
 8540        <a href="../files/createjs_events_EventDispatcher.js.html#l106"><code>_captureListeners:106</code></a>
 8541        
 8542        </p>
 8543
 8544        
 8545
 8546        
 8547    </div>
 8548
 8549    <div class="description">
 8550        
 8551    </div>
 8552
 8553    
 8554
 8555    
 8556
 8557    
 8558</div>
 8559
 8560                
 8561                    <div id="property__listeners" class="property item protected inherited">
 8562    <h3 class="name"><code>_listeners</code></h3>
 8563    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 8564
 8565    
 8566
 8567    
 8568        <span class="flag protected">protected</span>
 8569    
 8570
 8571    
 8572
 8573    
 8574
 8575    
 8576
 8577    <div class="meta">
 8578        
 8579            
 8580                <p>Inherited from
 8581                <a href="../classes/EventDispatcher.html#property__listeners">EventDispatcher</a>:
 8582            
 8583        
 8584        
 8585        <a href="../files/createjs_events_EventDispatcher.js.html#l99"><code>_listeners:99</code></a>
 8586        
 8587        </p>
 8588
 8589        
 8590
 8591        
 8592    </div>
 8593
 8594    <div class="description">
 8595        
 8596    </div>
 8597
 8598    
 8599
 8600    
 8601
 8602    
 8603</div>
 8604
 8605                
 8606                    <div id="property__props" class="property item protected inherited">
 8607    <h3 class="name"><code>_props</code></h3>
 8608    <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 8609
 8610    
 8611
 8612    
 8613        <span class="flag protected">protected</span>
 8614    
 8615
 8616    
 8617
 8618    
 8619
 8620    
 8621
 8622    <div class="meta">
 8623        
 8624            
 8625                <p>Inherited from
 8626                <a href="../classes/DisplayObject.html#property__props">DisplayObject</a>:
 8627            
 8628        
 8629        
 8630        <a href="../files/easeljs_display_DisplayObject.js.html#l427"><code>_props:427</code></a>
 8631        
 8632        </p>
 8633
 8634        
 8635
 8636        
 8637    </div>
 8638
 8639    <div class="description">
 8640        
 8641    </div>
 8642
 8643    
 8644        <p><strong>Default:</strong> null</p>
 8645    
 8646
 8647    
 8648
 8649    
 8650</div>
 8651
 8652                
 8653                    <div id="property__rectangle" class="property item protected inherited">
 8654    <h3 class="name"><code>_rectangle</code></h3>
 8655    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
 8656
 8657    
 8658
 8659    
 8660        <span class="flag protected">protected</span>
 8661    
 8662
 8663    
 8664
 8665    
 8666
 8667    
 8668
 8669    <div class="meta">
 8670        
 8671            
 8672                <p>Inherited from
 8673                <a href="../classes/DisplayObject.html#property__rectangle">DisplayObject</a>:
 8674            
 8675        
 8676        
 8677        <a href="../files/easeljs_display_DisplayObject.js.html#l435"><code>_rectangle:435</code></a>
 8678        
 8679        </p>
 8680
 8681        
 8682
 8683        
 8684    </div>
 8685
 8686    <div class="description">
 8687        
 8688    </div>
 8689
 8690    
 8691        <p><strong>Default:</strong> null</p>
 8692    
 8693
 8694    
 8695
 8696    
 8697</div>
 8698
 8699                
 8700                    <div id="property__webGLRenderStyle" class="property item protected inherited">
 8701    <h3 class="name"><code>_webGLRenderStyle</code></h3>
 8702    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8703
 8704    
 8705
 8706    
 8707        <span class="flag protected">protected</span>
 8708    
 8709
 8710    
 8711
 8712    
 8713
 8714    
 8715
 8716    <div class="meta">
 8717        
 8718            
 8719                <p>Inherited from
 8720                <a href="../classes/DisplayObject.html#property__webGLRenderStyle">DisplayObject</a>:
 8721            
 8722        
 8723        
 8724        <a href="../files/easeljs_display_DisplayObject.js.html#l451"><code>_webGLRenderStyle:451</code></a>
 8725        
 8726        </p>
 8727
 8728        
 8729
 8730        
 8731    </div>
 8732
 8733    <div class="description">
 8734        <p>Where StageGL should look for required display properties, matters only for leaf display objects. Containers
 8735or cached objects won&#39;t use this property, it&#39;s for native display of terminal elements.</p>
 8736
 8737    </div>
 8738
 8739    
 8740        <p><strong>Default:</strong> 0</p>
 8741    
 8742
 8743    
 8744
 8745    
 8746</div>
 8747
 8748                
 8749                    <div id="property_alpha" class="property item inherited">
 8750    <h3 class="name"><code>alpha</code></h3>
 8751    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8752
 8753    
 8754
 8755    
 8756
 8757    
 8758
 8759    
 8760
 8761    
 8762
 8763    <div class="meta">
 8764        
 8765            
 8766                <p>Inherited from
 8767                <a href="../classes/DisplayObject.html#property_alpha">DisplayObject</a>:
 8768            
 8769        
 8770        
 8771        <a href="../files/easeljs_display_DisplayObject.js.html#l144"><code>alpha:144</code></a>
 8772        
 8773        </p>
 8774
 8775        
 8776
 8777        
 8778    </div>
 8779
 8780    <div class="description">
 8781        <p>The alpha (transparency) for this display object. 0 is fully transparent, 1 is fully opaque.</p>
 8782
 8783    </div>
 8784
 8785    
 8786        <p><strong>Default:</strong> 1</p>
 8787    
 8788
 8789    
 8790
 8791    
 8792</div>
 8793
 8794                
 8795                    <div id="property_bitmapCache" class="property item inherited">
 8796    <h3 class="name"><code>bitmapCache</code></h3>
 8797    <span class="type"><a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></span>
 8798
 8799    
 8800
 8801    
 8802
 8803    
 8804
 8805    
 8806
 8807    
 8808        <span class="flag readonly">readonly</span>
 8809    
 8810
 8811    <div class="meta">
 8812        
 8813            
 8814                <p>Inherited from
 8815                <a href="../classes/DisplayObject.html#property_bitmapCache">DisplayObject</a>:
 8816            
 8817        
 8818        
 8819        <a href="../files/easeljs_display_DisplayObject.js.html#l162"><code>bitmapCache:162</code></a>
 8820        
 8821        </p>
 8822
 8823        
 8824
 8825        
 8826    </div>
 8827
 8828    <div class="description">
 8829        <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>
 8830for more information. Use this to control, inspect, and change the cache. In special circumstances this may be a modified or subclassed BitmapCache.</p>
 8831
 8832    </div>
 8833
 8834    
 8835        <p><strong>Default:</strong> null</p>
 8836    
 8837
 8838    
 8839
 8840    
 8841</div>
 8842
 8843                
 8844                    <div id="property_cacheCanvas" class="property item inherited">
 8845    <h3 class="name"><code>cacheCanvas</code></h3>
 8846    <span class="type">HTMLCanvasElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 8847
 8848    
 8849
 8850    
 8851
 8852    
 8853
 8854    
 8855
 8856    
 8857        <span class="flag readonly">readonly</span>
 8858    
 8859
 8860    <div class="meta">
 8861        
 8862            
 8863                <p>Inherited from
 8864                <a href="../classes/DisplayObject.html#property_cacheCanvas">DisplayObject</a>:
 8865            
 8866        
 8867        
 8868        <a href="../files/easeljs_display_DisplayObject.js.html#l152"><code>cacheCanvas:152</code></a>
 8869        
 8870        </p>
 8871
 8872        
 8873
 8874        
 8875    </div>
 8876
 8877    <div class="description">
 8878        <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>
 8879for 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>
 8880
 8881    </div>
 8882
 8883    
 8884        <p><strong>Default:</strong> null</p>
 8885    
 8886
 8887    
 8888
 8889    
 8890</div>
 8891
 8892                
 8893                    <div id="property_cacheID" class="property item deprecated inherited">
 8894    <h3 class="name"><code>cacheID</code></h3>
 8895    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8896
 8897    
 8898        <span class="flag deprecated">deprecated</span>
 8899    
 8900
 8901    
 8902
 8903    
 8904
 8905    
 8906
 8907    
 8908
 8909    <div class="meta">
 8910        
 8911            
 8912                <p>Inherited from
 8913                <a href="../classes/DisplayObject.html#property_cacheID">DisplayObject</a>:
 8914            
 8915        
 8916        
 8917        <a href="../files/easeljs_display_DisplayObject.js.html#l695"><code>cacheID:695</code></a>
 8918        
 8919        </p>
 8920
 8921        
 8922
 8923        
 8924    </div>
 8925
 8926    <div class="description">
 8927        <p>Returns an ID number that uniquely identifies the current cache for this display object. This can be used to
 8928determine if the cache has changed since a previous check.
 8929Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
 8930
 8931    </div>
 8932
 8933    
 8934        <p><strong>Default:</strong> 0</p>
 8935    
 8936
 8937    
 8938
 8939    
 8940</div>
 8941
 8942                
 8943                    <div id="property_children" class="property item">
 8944    <h3 class="name"><code>children</code></h3>
 8945    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 8946
 8947    
 8948
 8949    
 8950
 8951    
 8952
 8953    
 8954
 8955    
 8956
 8957    <div class="meta">
 8958        
 8959            
 8960                
 8961                <p>
 8962                
 8963                Defined in
 8964                
 8965            
 8966        
 8967        
 8968        <a href="../files/easeljs_display_Container.js.html#l62"><code>children:62</code></a>
 8969        
 8970        </p>
 8971
 8972        
 8973
 8974        
 8975    </div>
 8976
 8977    <div class="description">
 8978        <p>The array of children in the display list. You should usually use the child management methods such as
 8979<a href="../classes/Container.html#method_addChild" class="crosslink">addChild</a>, <a href="../classes/Container.html#method_removeChild" class="crosslink">removeChild</a>,
 8980<a href="../classes/Container.html#method_swapChildren" class="crosslink">swapChildren</a>, etc, rather than accessing this directly, but it is
 8981included for advanced uses.</p>
 8982
 8983    </div>
 8984
 8985    
 8986        <p><strong>Default:</strong> null</p>
 8987    
 8988
 8989    
 8990
 8991    
 8992</div>
 8993
 8994                
 8995                    <div id="property_compositeOperation" class="property item inherited">
 8996    <h3 class="name"><code>compositeOperation</code></h3>
 8997    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 8998
 8999    
 9000
 9001    
 9002
 9003    
 9004
 9005    
 9006
 9007    
 9008
 9009    <div class="meta">
 9010        
 9011            
 9012                <p>Inherited from
 9013                <a href="../classes/DisplayObject.html#property_compositeOperation">DisplayObject</a>:
 9014            
 9015        
 9016        
 9017        <a href="../files/easeljs_display_DisplayObject.js.html#l330"><code>compositeOperation:330</code></a>
 9018        
 9019        </p>
 9020
 9021        
 9022
 9023        
 9024    </div>
 9025
 9026    <div class="description">
 9027        <p>The composite operation indicates how the pixels of this display object will be composited with the elements
 9028behind it. If <code>null</code>, this property is inherited from the parent container. For more information, read the
 9029<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
 9030whatwg spec on compositing</a>. For a list of supported compositeOperation value, visit
 9031<a href="https://drafts.fxtf.org/compositing/">the W3C draft on Compositing and Blending</a>.</p>
 9032
 9033    </div>
 9034
 9035    
 9036        <p><strong>Default:</strong> null</p>
 9037    
 9038
 9039    
 9040
 9041    
 9042</div>
 9043
 9044                
 9045                    <div id="property_cursor" class="property item inherited">
 9046    <h3 class="name"><code>cursor</code></h3>
 9047    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 9048
 9049    
 9050
 9051    
 9052
 9053    
 9054
 9055    
 9056
 9057    
 9058
 9059    <div class="meta">
 9060        
 9061            
 9062                <p>Inherited from
 9063                <a href="../classes/DisplayObject.html#property_cursor">DisplayObject</a>:
 9064            
 9065        
 9066        
 9067        <a href="../files/easeljs_display_DisplayObject.js.html#l388"><code>cursor:388</code></a>
 9068        
 9069        </p>
 9070
 9071        
 9072
 9073        
 9074    </div>
 9075
 9076    <div class="description">
 9077        <p>A CSS cursor (ex. "pointer", "help", "text", etc) that will be displayed when the user hovers over this display
 9078object. You must enable mouseover events using the <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a> method to
 9079use this property. Setting a non-null cursor on a Container will override the cursor set on its descendants.</p>
 9080
 9081    </div>
 9082
 9083    
 9084        <p><strong>Default:</strong> null</p>
 9085    
 9086
 9087    
 9088
 9089    
 9090</div>
 9091
 9092                
 9093                    <div id="property_filters" class="property item inherited">
 9094    <h3 class="name"><code>filters</code></h3>
 9095    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 9096
 9097    
 9098
 9099    
 9100
 9101    
 9102
 9103    
 9104
 9105    
 9106
 9107    <div class="meta">
 9108        
 9109            
 9110                <p>Inherited from
 9111                <a href="../classes/DisplayObject.html#property_filters">DisplayObject</a>:
 9112            
 9113        
 9114        
 9115        <a href="../files/easeljs_display_DisplayObject.js.html#l352"><code>filters:352</code></a>
 9116        
 9117        </p>
 9118
 9119        
 9120
 9121        
 9122    </div>
 9123
 9124    <div class="description">
 9125        <p>An array of Filter objects to apply to this display object. Filters are only applied / updated when Cache
 9126or UpdateCache is called on the display object, and only apply to the area that is
 9127cached.</p>
 9128
 9129    </div>
 9130
 9131    
 9132        <p><strong>Default:</strong> null</p>
 9133    
 9134
 9135    
 9136
 9137    
 9138</div>
 9139
 9140                
 9141                    <div id="property_hitArea" class="property item inherited">
 9142    <h3 class="name"><code>hitArea</code></h3>
 9143    <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
 9144
 9145    
 9146
 9147    
 9148
 9149    
 9150
 9151    
 9152
 9153    
 9154
 9155    <div class="meta">
 9156        
 9157            
 9158                <p>Inherited from
 9159                <a href="../classes/DisplayObject.html#property_hitArea">DisplayObject</a>:
 9160            
 9161        
 9162        
 9163        <a href="../files/easeljs_display_DisplayObject.js.html#l371"><code>hitArea:371</code></a>
 9164        
 9165        </p>
 9166
 9167        
 9168
 9169        
 9170    </div>
 9171
 9172    <div class="description">
 9173        <p>A display object that will be tested when checking mouse interactions or testing <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>.
 9174The hit area will have its transformation applied relative to this display object&#39;s coordinate space (as though
 9175the hit test object were a child of this display object and relative to its regX/Y). The hitArea will be tested
 9176using only its own <code>alpha</code> value regardless of the alpha value on the target display object, or the target&#39;s
 9177ancestors (parents).</p>
 9178<p>If set on a <a href="../classes/Container.html" class="crosslink">Container</a>, children of the Container will not receive mouse events.
 9179This is similar to setting MouseChildren to false.</p>
 9180<p>Note that hitArea is NOT currently used by the <code>hitTest()</code> method, nor is it supported for <a href="../classes/Stage.html" class="crosslink">Stage</a>.</p>
 9181
 9182    </div>
 9183
 9184    
 9185        <p><strong>Default:</strong> null</p>
 9186    
 9187
 9188    
 9189
 9190    
 9191</div>
 9192
 9193                
 9194                    <div id="property_id" class="property item inherited">
 9195    <h3 class="name"><code>id</code></h3>
 9196    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9197
 9198    
 9199
 9200    
 9201
 9202    
 9203
 9204    
 9205
 9206    
 9207
 9208    <div class="meta">
 9209        
 9210            
 9211                <p>Inherited from
 9212                <a href="../classes/DisplayObject.html#property_id">DisplayObject</a>:
 9213            
 9214        
 9215        
 9216        <a href="../files/easeljs_display_DisplayObject.js.html#l172"><code>id:172</code></a>
 9217        
 9218        </p>
 9219
 9220        
 9221
 9222        
 9223    </div>
 9224
 9225    <div class="description">
 9226        <p>Unique ID for this display object. Makes display objects easier for some uses.</p>
 9227
 9228    </div>
 9229
 9230    
 9231        <p><strong>Default:</strong> -1</p>
 9232    
 9233
 9234    
 9235
 9236    
 9237</div>
 9238
 9239                
 9240                    <div id="property_mask" class="property item inherited">
 9241    <h3 class="name"><code>mask</code></h3>
 9242    <span class="type"><a href="../classes/Shape.html" class="crosslink">Shape</a></span>
 9243
 9244    
 9245
 9246    
 9247
 9248    
 9249
 9250    
 9251
 9252    
 9253
 9254    <div class="meta">
 9255        
 9256            
 9257                <p>Inherited from
 9258                <a href="../classes/DisplayObject.html#property_mask">DisplayObject</a>:
 9259            
 9260        
 9261        
 9262        <a href="../files/easeljs_display_DisplayObject.js.html#l362"><code>mask:362</code></a>
 9263        
 9264        </p>
 9265
 9266        
 9267
 9268        
 9269    </div>
 9270
 9271    <div class="description">
 9272        <p>A Shape instance that defines a vector mask (clipping path) for this display object.  The shape&#39;s transformation
 9273will be applied relative to the display object&#39;s parent coordinates (as if it were a child of the parent).</p>
 9274
 9275    </div>
 9276
 9277    
 9278        <p><strong>Default:</strong> null</p>
 9279    
 9280
 9281    
 9282
 9283    
 9284</div>
 9285
 9286                
 9287                    <div id="property_mouseChildren" class="property item">
 9288    <h3 class="name"><code>mouseChildren</code></h3>
 9289    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 9290
 9291    
 9292
 9293    
 9294
 9295    
 9296
 9297    
 9298
 9299    
 9300
 9301    <div class="meta">
 9302        
 9303            
 9304                
 9305                <p>
 9306                
 9307                Defined in
 9308                
 9309            
 9310        
 9311        
 9312        <a href="../files/easeljs_display_Container.js.html#l73"><code>mouseChildren:73</code></a>
 9313        
 9314        </p>
 9315
 9316        
 9317
 9318        
 9319    </div>
 9320
 9321    <div class="description">
 9322        <p>Indicates whether the children of this container are independently enabled for mouse/pointer interaction.
 9323If false, the children will be aggregated under the container - for example, a click on a child shape would
 9324trigger a click event on the container.</p>
 9325
 9326    </div>
 9327
 9328    
 9329        <p><strong>Default:</strong> true</p>
 9330    
 9331
 9332    
 9333
 9334    
 9335</div>
 9336
 9337                
 9338                    <div id="property_mouseEnabled" class="property item inherited">
 9339    <h3 class="name"><code>mouseEnabled</code></h3>
 9340    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 9341
 9342    
 9343
 9344    
 9345
 9346    
 9347
 9348    
 9349
 9350    
 9351
 9352    <div class="meta">
 9353        
 9354            
 9355                <p>Inherited from
 9356                <a href="../classes/DisplayObject.html#property_mouseEnabled">DisplayObject</a>:
 9357            
 9358        
 9359        
 9360        <a href="../files/easeljs_display_DisplayObject.js.html#l180"><code>mouseEnabled:180</code></a>
 9361        
 9362        </p>
 9363
 9364        
 9365
 9366        
 9367    </div>
 9368
 9369    <div class="description">
 9370        <p>Indicates whether to include this object when running mouse interactions. Setting this to <code>false</code> for children
 9371of a <a href="../classes/Container.html" class="crosslink">Container</a> will cause events on the Container to not fire when that child is
 9372clicked. Setting this property to <code>false</code> does not prevent the <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>
 9373method from returning the child.</p>
 9374<p><strong>Note:</strong> In EaselJS 0.7.0, the mouseEnabled property will not work properly with nested Containers. Please
 9375check 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
 9376provided in the next release of EaselJS.</p>
 9377
 9378    </div>
 9379
 9380    
 9381        <p><strong>Default:</strong> true</p>
 9382    
 9383
 9384    
 9385
 9386    
 9387</div>
 9388
 9389                
 9390                    <div id="property_name" class="property item inherited">
 9391    <h3 class="name"><code>name</code></h3>
 9392    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 9393
 9394    
 9395
 9396    
 9397
 9398    
 9399
 9400    
 9401
 9402    
 9403
 9404    <div class="meta">
 9405        
 9406            
 9407                <p>Inherited from
 9408                <a href="../classes/DisplayObject.html#property_name">DisplayObject</a>:
 9409            
 9410        
 9411        
 9412        <a href="../files/easeljs_display_DisplayObject.js.html#l205"><code>name:205</code></a>
 9413        
 9414        </p>
 9415
 9416        
 9417
 9418        
 9419    </div>
 9420
 9421    <div class="description">
 9422        <p>An optional name for this display object. Included in <a href="../classes/DisplayObject.html#method_toString" class="crosslink">toString</a> . Useful for
 9423debugging.</p>
 9424
 9425    </div>
 9426
 9427    
 9428        <p><strong>Default:</strong> null</p>
 9429    
 9430
 9431    
 9432
 9433    
 9434</div>
 9435
 9436                
 9437                    <div id="property_numChildren" class="property item">
 9438    <h3 class="name"><code>numChildren</code></h3>
 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
 9441    
 9442
 9443    
 9444
 9445    
 9446
 9447    
 9448
 9449    
 9450        <span class="flag readonly">readonly</span>
 9451    
 9452
 9453    <div class="meta">
 9454        
 9455            
 9456                
 9457                <p>
 9458                
 9459                Defined in
 9460                
 9461            
 9462        
 9463        
 9464        <a href="../files/easeljs_display_Container.js.html#l109"><code>numChildren:109</code></a>
 9465        
 9466        </p>
 9467
 9468        
 9469
 9470        
 9471    </div>
 9472
 9473    <div class="description">
 9474        <p>Returns the number of children in the container.</p>
 9475
 9476    </div>
 9477
 9478    
 9479
 9480    
 9481
 9482    
 9483</div>
 9484
 9485                
 9486                    <div id="property_parent" class="property item inherited">
 9487    <h3 class="name"><code>parent</code></h3>
 9488    <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
 9489
 9490    
 9491
 9492    
 9493
 9494    
 9495        <span class="flag final">final</span>
 9496    
 9497
 9498    
 9499
 9500    
 9501        <span class="flag readonly">readonly</span>
 9502    
 9503
 9504    <div class="meta">
 9505        
 9506            
 9507                <p>Inherited from
 9508                <a href="../classes/DisplayObject.html#property_parent">DisplayObject</a>:
 9509            
 9510        
 9511        
 9512        <a href="../files/easeljs_display_DisplayObject.js.html#l214"><code>parent:214</code></a>
 9513        
 9514        </p>
 9515
 9516        
 9517
 9518        
 9519    </div>
 9520
 9521    <div class="description">
 9522        <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
 9523contains this display object, or null if it has not been added
 9524to one.</p>
 9525
 9526    </div>
 9527
 9528    
 9529        <p><strong>Default:</strong> null</p>
 9530    
 9531
 9532    
 9533
 9534    
 9535</div>
 9536
 9537                
 9538                    <div id="property_regX" class="property item inherited">
 9539    <h3 class="name"><code>regX</code></h3>
 9540    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9541
 9542    
 9543
 9544    
 9545
 9546    
 9547
 9548    
 9549
 9550    
 9551
 9552    <div class="meta">
 9553        
 9554            
 9555                <p>Inherited from
 9556                <a href="../classes/DisplayObject.html#property_regX">DisplayObject</a>:
 9557            
 9558        
 9559        
 9560        <a href="../files/easeljs_display_DisplayObject.js.html#l226"><code>regX:226</code></a>
 9561        
 9562        </p>
 9563
 9564        
 9565
 9566        
 9567    </div>
 9568
 9569    <div class="description">
 9570        <p>The left offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate
 9571around its center, you would set regX and <a href="../classes/DisplayObject.html#property_regY" class="crosslink">regY</a> to 50.
 9572Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>
 9573
 9574    </div>
 9575
 9576    
 9577        <p><strong>Default:</strong> 0</p>
 9578    
 9579
 9580    
 9581
 9582    
 9583</div>
 9584
 9585                
 9586                    <div id="property_regY" class="property item inherited">
 9587    <h3 class="name"><code>regY</code></h3>
 9588    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9589
 9590    
 9591
 9592    
 9593
 9594    
 9595
 9596    
 9597
 9598    
 9599
 9600    <div class="meta">
 9601        
 9602            
 9603                <p>Inherited from
 9604                <a href="../classes/DisplayObject.html#property_regY">DisplayObject</a>:
 9605            
 9606        
 9607        
 9608        <a href="../files/easeljs_display_DisplayObject.js.html#l236"><code>regY:236</code></a>
 9609        
 9610        </p>
 9611
 9612        
 9613
 9614        
 9615    </div>
 9616
 9617    <div class="description">
 9618        <p>The y offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate around
 9619its center, you would set <a href="../classes/DisplayObject.html#property_regX" class="crosslink">regX</a> and regY to 50.
 9620Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>
 9621
 9622    </div>
 9623
 9624    
 9625        <p><strong>Default:</strong> 0</p>
 9626    
 9627
 9628    
 9629
 9630    
 9631</div>
 9632
 9633                
 9634                    <div id="property_rotation" class="property item inherited">
 9635    <h3 class="name"><code>rotation</code></h3>
 9636    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9637
 9638    
 9639
 9640    
 9641
 9642    
 9643
 9644    
 9645
 9646    
 9647
 9648    <div class="meta">
 9649        
 9650            
 9651                <p>Inherited from
 9652                <a href="../classes/DisplayObject.html#property_rotation">DisplayObject</a>:
 9653            
 9654        
 9655        
 9656        <a href="../files/easeljs_display_DisplayObject.js.html#l246"><code>rotation:246</code></a>
 9657        
 9658        </p>
 9659
 9660        
 9661
 9662        
 9663    </div>
 9664
 9665    <div class="description">
 9666        <p>The rotation in degrees for this display object.</p>
 9667
 9668    </div>
 9669
 9670    
 9671        <p><strong>Default:</strong> 0</p>
 9672    
 9673
 9674    
 9675
 9676    
 9677</div>
 9678
 9679                
 9680                    <div id="property_scaleX" class="property item inherited">
 9681    <h3 class="name"><code>scaleX</code></h3>
 9682    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9683
 9684    
 9685
 9686    
 9687
 9688    
 9689
 9690    
 9691
 9692    
 9693
 9694    <div class="meta">
 9695        
 9696            <p>Inherited from
 9697            <a href="../classes/DisplayObject.html#property_scaleX">
 9698                DisplayObject
 9699            </a>
 9700            
 9701            but overwritten in
 9702            
 9703        
 9704        
 9705        <a href="../files/easeljs_display_DisplayObject.js.html#l254"><code>scaleX:254</code></a>
 9706        
 9707        </p>
 9708
 9709        
 9710
 9711        
 9712    </div>
 9713
 9714    <div class="description">
 9715        <p>The factor to stretch this display object horizontally. For example, setting scaleX to 2 will stretch the display
 9716object to twice its nominal width. To horizontally flip an object, set the scale to a negative number.</p>
 9717
 9718    </div>
 9719
 9720    
 9721        <p><strong>Default:</strong> 1</p>
 9722    
 9723
 9724    
 9725
 9726    
 9727</div>
 9728
 9729                
 9730                    <div id="property_scaleY" class="property item inherited">
 9731    <h3 class="name"><code>scaleY</code></h3>
 9732    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9733
 9734    
 9735
 9736    
 9737
 9738    
 9739
 9740    
 9741
 9742    
 9743
 9744    <div class="meta">
 9745        
 9746            
 9747                <p>Inherited from
 9748                <a href="../classes/DisplayObject.html#property_scaleY">DisplayObject</a>:
 9749            
 9750        
 9751        
 9752        <a href="../files/easeljs_display_DisplayObject.js.html#l263"><code>scaleY:263</code></a>
 9753        
 9754        </p>
 9755
 9756        
 9757
 9758        
 9759    </div>
 9760
 9761    <div class="description">
 9762        <p>The factor to stretch this display object vertically. For example, setting scaleY to 0.5 will stretch the display
 9763object to half its nominal height. To vertically flip an object, set the scale to a negative number.</p>
 9764
 9765    </div>
 9766
 9767    
 9768        <p><strong>Default:</strong> 1</p>
 9769    
 9770
 9771    
 9772
 9773    
 9774</div>
 9775
 9776                
 9777                    <div id="property_shadow" class="property item inherited">
 9778    <h3 class="name"><code>shadow</code></h3>
 9779    <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
 9780
 9781    
 9782
 9783    
 9784
 9785    
 9786
 9787    
 9788
 9789    
 9790
 9791    <div class="meta">
 9792        
 9793            
 9794                <p>Inherited from
 9795                <a href="../classes/DisplayObject.html#property_shadow">DisplayObject</a>:
 9796            
 9797        
 9798        
 9799        <a href="../files/easeljs_display_DisplayObject.js.html#l288"><code>shadow:288</code></a>
 9800        
 9801        </p>
 9802
 9803        
 9804
 9805        
 9806    </div>
 9807
 9808    <div class="description">
 9809        <p>A shadow object that defines the shadow to render on this display object. Set to <code>null</code> to remove a shadow. If
 9810null, this property is inherited from the parent container.</p>
 9811
 9812    </div>
 9813
 9814    
 9815        <p><strong>Default:</strong> null</p>
 9816    
 9817
 9818    
 9819
 9820    
 9821</div>
 9822
 9823                
 9824                    <div id="property_skewX" class="property item inherited">
 9825    <h3 class="name"><code>skewX</code></h3>
 9826    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9827
 9828    
 9829
 9830    
 9831
 9832    
 9833
 9834    
 9835
 9836    
 9837
 9838    <div class="meta">
 9839        
 9840            
 9841                <p>Inherited from
 9842                <a href="../classes/DisplayObject.html#property_skewX">DisplayObject</a>:
 9843            
 9844        
 9845        
 9846        <a href="../files/easeljs_display_DisplayObject.js.html#l272"><code>skewX:272</code></a>
 9847        
 9848        </p>
 9849
 9850        
 9851
 9852        
 9853    </div>
 9854
 9855    <div class="description">
 9856        <p>The factor to skew this display object horizontally.</p>
 9857
 9858    </div>
 9859
 9860    
 9861        <p><strong>Default:</strong> 0</p>
 9862    
 9863
 9864    
 9865
 9866    
 9867</div>
 9868
 9869                
 9870                    <div id="property_skewY" class="property item inherited">
 9871    <h3 class="name"><code>skewY</code></h3>
 9872    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9873
 9874    
 9875
 9876    
 9877
 9878    
 9879
 9880    
 9881
 9882    
 9883
 9884    <div class="meta">
 9885        
 9886            
 9887                <p>Inherited from
 9888                <a href="../classes/DisplayObject.html#property_skewY">DisplayObject</a>:
 9889            
 9890        
 9891        
 9892        <a href="../files/easeljs_display_DisplayObject.js.html#l280"><code>skewY:280</code></a>
 9893        
 9894        </p>
 9895
 9896        
 9897
 9898        
 9899    </div>
 9900
 9901    <div class="description">
 9902        <p>The factor to skew this display object vertically.</p>
 9903
 9904    </div>
 9905
 9906    
 9907        <p><strong>Default:</strong> 0</p>
 9908    
 9909
 9910    
 9911
 9912    
 9913</div>
 9914
 9915                
 9916                    <div id="property_snapToPixel" class="property item inherited">
 9917    <h3 class="name"><code>snapToPixel</code></h3>
 9918    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 9919
 9920    
 9921
 9922    
 9923
 9924    
 9925
 9926    
 9927
 9928    
 9929
 9930    <div class="meta">
 9931        
 9932            
 9933                <p>Inherited from
 9934                <a href="../classes/DisplayObject.html#property_snapToPixel">DisplayObject</a>:
 9935            
 9936        
 9937        
 9938        <a href="../files/easeljs_display_DisplayObject.js.html#l342"><code>snapToPixel:342</code></a>
 9939        
 9940        </p>
 9941
 9942        
 9943
 9944        
 9945    </div>
 9946
 9947    <div class="description">
 9948        <p>Indicates whether the display object should be drawn to a whole pixel when
 9949Stage/snapToPixelEnabled is true. To enable/disable snapping on whole
 9950categories of display objects, set this value on the prototype (Ex. Text.prototype.snapToPixel = true).</p>
 9951
 9952    </div>
 9953
 9954    
 9955        <p><strong>Default:</strong> true</p>
 9956    
 9957
 9958    
 9959
 9960    
 9961</div>
 9962
 9963                
 9964                    <div id="property_stage" class="property item inherited">
 9965    <h3 class="name"><code>stage</code></h3>
 9966    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
 9967
 9968    
 9969
 9970    
 9971
 9972    
 9973
 9974    
 9975
 9976    
 9977        <span class="flag readonly">readonly</span>
 9978    
 9979
 9980    <div class="meta">
 9981        
 9982            
 9983                <p>Inherited from
 9984                <a href="../classes/DisplayObject.html#property_stage">DisplayObject</a>:
 9985            
 9986        
 9987        
 9988        <a href="../files/easeljs_display_DisplayObject.js.html#l688"><code>stage:688</code></a>
 9989        
 9990        </p>
 9991
 9992        
 9993
 9994        
 9995    </div>
 9996
 9997    <div class="description">
 9998        <p>Returns the Stage instance that this display object will be rendered on, or null if it has not been added to one.</p>
 9999
10000    </div>
10001
10002    
10003
10004    
10005
10006    
10007</div>
10008
10009                
10010                    <div id="property_tickChildren" class="property item">
10011    <h3 class="name"><code>tickChildren</code></h3>
10012    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
10013
10014    
10015
10016    
10017
10018    
10019
10020    
10021
10022    
10023
10024    <div class="meta">
10025        
10026            
10027                
10028                <p>
10029                
10030                Defined in
10031                
10032            
10033        
10034        
10035        <a href="../files/easeljs_display_Container.js.html#l83"><code>tickChildren:83</code></a>
10036        
10037        </p>
10038
10039        
10040
10041        
10042    </div>
10043
10044    <div class="description">
10045        <p>If false, the tick will not be propagated to children of this Container. This can provide some performance benefits.
10046In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates
10047on some display objects (ex. Sprite &amp; MovieClip frame advancing, DOMElement visibility handling).</p>
10048
10049    </div>
10050
10051    
10052        <p><strong>Default:</strong> true</p>
10053    
10054
10055    
10056
10057    
10058</div>
10059
10060                
10061                    <div id="property_tickEnabled" class="property item inherited">
10062    <h3 class="name"><code>tickEnabled</code></h3>
10063    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
10064
10065    
10066
10067    
10068
10069    
10070
10071    
10072
10073    
10074
10075    <div class="meta">
10076        
10077            
10078                <p>Inherited from
10079                <a href="../classes/DisplayObject.html#property_tickEnabled">DisplayObject</a>:
10080            
10081        
10082        
10083        <a href="../files/easeljs_display_DisplayObject.js.html#l195"><code>tickEnabled:195</code></a>
10084        
10085        </p>
10086
10087        
10088
10089        
10090    </div>
10091
10092    <div class="description">
10093        <p>If false, the tick will not run on this display object (or its children). This can provide some performance benefits.
10094In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates
10095on some display objects (ex. Sprite &amp; MovieClip frame advancing, and DOMElement display properties).</p>
10096
10097    </div>
10098
10099    
10100        <p><strong>Default:</strong> true</p>
10101    
10102
10103    
10104
10105    
10106</div>
10107
10108                
10109                    <div id="property_transformMatrix" class="property item inherited">
10110    <h3 class="name"><code>transformMatrix</code></h3>
10111    <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
10112
10113    
10114
10115    
10116
10117    
10118
10119    
10120
10121    
10122
10123    <div class="meta">
10124        
10125            
10126                <p>Inherited from
10127                <a href="../classes/DisplayObject.html#property_transformMatrix">DisplayObject</a>:
10128            
10129        
10130        
10131        <a href="../files/easeljs_display_DisplayObject.js.html#l321"><code>transformMatrix:321</code></a>
10132        
10133        </p>
10134
10135        
10136
10137        
10138    </div>
10139
10140    <div class="description">
10141        <p>If set, defines the transformation for this display object, overriding all other transformation properties
10142(x, y, rotation, scale, skew).</p>
10143
10144    </div>
10145
10146    
10147        <p><strong>Default:</strong> null</p>
10148    
10149
10150    
10151
10152    
10153</div>
10154
10155                
10156                    <div id="property_visible" class="property item inherited">
10157    <h3 class="name"><code>visible</code></h3>
10158    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
10159
10160    
10161
10162    
10163
10164    
10165
10166    
10167
10168    
10169
10170    <div class="meta">
10171        
10172            
10173                <p>Inherited from
10174                <a href="../classes/DisplayObject.html#property_visible">DisplayObject</a>:
10175            
10176        
10177        
10178        <a href="../files/easeljs_display_DisplayObject.js.html#l297"><code>visible:297</code></a>
10179        
10180        </p>
10181
10182        
10183
10184        
10185    </div>
10186
10187    <div class="description">
10188        <p>Indicates whether this display object should be rendered to the canvas and included when running the Stage
10189Stage/getObjectsUnderPoint method.</p>
10190
10191    </div>
10192
10193    
10194        <p><strong>Default:</strong> true</p>
10195    
10196
10197    
10198
10199    
10200</div>
10201
10202                
10203                    <div id="property_x" class="property item inherited">
10204    <h3 class="name"><code>x</code></h3>
10205    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10206
10207    
10208
10209    
10210
10211    
10212
10213    
10214
10215    
10216
10217    <div class="meta">
10218        
10219            
10220                <p>Inherited from
10221                <a href="../classes/DisplayObject.html#property_x">DisplayObject</a>:
10222            
10223        
10224        
10225        <a href="../files/easeljs_display_DisplayObject.js.html#l306"><code>x:306</code></a>
10226        
10227        </p>
10228
10229        
10230
10231        
10232    </div>
10233
10234    <div class="description">
10235        <p>The x (horizontal) position of the display object, relative to its parent.</p>
10236
10237    </div>
10238
10239    
10240        <p><strong>Default:</strong> 0</p>
10241    
10242
10243    
10244
10245    
10246</div>
10247
10248                
10249                    <div id="property_y" class="property item inherited">
10250    <h3 class="name"><code>y</code></h3>
10251    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10252
10253    
10254
10255    
10256
10257    
10258
10259    
10260
10261    
10262
10263    <div class="meta">
10264        
10265            
10266                <p>Inherited from
10267                <a href="../classes/DisplayObject.html#property_y">DisplayObject</a>:
10268            
10269        
10270        
10271        <a href="../files/easeljs_display_DisplayObject.js.html#l314"><code>y:314</code></a>
10272        
10273        </p>
10274
10275        
10276
10277        
10278    </div>
10279
10280    <div class="description">
10281        
10282    </div>
10283
10284    
10285        <p><strong>Default:</strong> 0</p>
10286    
10287
10288    
10289
10290    
10291</div>
10292
10293                
10294            </div>
10295        
10296
10297        
10298
10299        
10300            <div id="events" class="api-class-tabpanel">
10301                <h2 class="off-left">Events</h2>
10302
10303                
10304                    <div id="event_added" class="events item inherited">
10305    <h3 class="name"><code>added</code></h3>
10306    <span class="type"></span>
10307
10308    
10309
10310    
10311
10312    
10313
10314    
10315
10316    <div class="meta">
10317        
10318            
10319                <p>Inherited from
10320                <a href="../classes/DisplayObject.html#event_added">DisplayObject</a>:
10321            
10322        
10323        
10324        <a href="../files/easeljs_display_DisplayObject.js.html#l646"><code>added:646</code></a>
10325        
10326        </p>
10327
10328        
10329
10330        
10331    </div>
10332
10333    <div class="description">
10334        <p>Dispatched when the display object is added to a parent container.</p>
10335
10336    </div>
10337
10338    
10339
10340
10341    
10342</div>
10343
10344                
10345                    <div id="event_click" class="events item inherited">
10346    <h3 class="name"><code>click</code></h3>
10347    <span class="type"></span>
10348
10349    
10350
10351    
10352
10353    
10354
10355    
10356
10357    <div class="meta">
10358        
10359            
10360                <p>Inherited from
10361                <a href="../classes/DisplayObject.html#event_click">DisplayObject</a>:
10362            
10363        
10364        
10365        <a href="../files/easeljs_display_DisplayObject.js.html#l546"><code>click:546</code></a>
10366        
10367        </p>
10368
10369        
10370
10371        
10372            <p>Available since 0.6.0</p>
10373        
10374    </div>
10375
10376    <div class="description">
10377        <p>Dispatched when the user presses their left mouse button and then releases it while over the display object.
10378See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
10379
10380    </div>
10381
10382    
10383
10384
10385    
10386</div>
10387
10388                
10389                    <div id="event_dblclick" class="events item inherited">
10390    <h3 class="name"><code>dblclick</code></h3>
10391    <span class="type"></span>
10392
10393    
10394
10395    
10396
10397    
10398
10399    
10400
10401    <div class="meta">
10402        
10403            
10404                <p>Inherited from
10405                <a href="../classes/DisplayObject.html#event_dblclick">DisplayObject</a>:
10406            
10407        
10408        
10409        <a href="../files/easeljs_display_DisplayObject.js.html#l553"><code>dblclick:553</code></a>
10410        
10411        </p>
10412
10413        
10414
10415        
10416            <p>Available since 0.6.0</p>
10417        
10418    </div>
10419
10420    <div class="description">
10421        <p>Dispatched when the user double clicks their left mouse button over this display object.
10422See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
10423
10424    </div>
10425
10426    
10427
10428
10429    
10430</div>
10431
10432                
10433                    <div id="event_mousedown" class="events item inherited">
10434    <h3 class="name"><code>mousedown</code></h3>
10435    <span class="type"></span>
10436
10437    
10438
10439    
10440
10441    
10442
10443    
10444
10445    <div class="meta">
10446        
10447            
10448                <p>Inherited from
10449                <a href="../classes/DisplayObject.html#event_mousedown">DisplayObject</a>:
10450            
10451        
10452        
10453        <a href="../files/easeljs_display_DisplayObject.js.html#l539"><code>mousedown:539</code></a>
10454        
10455        </p>
10456
10457        
10458
10459        
10460            <p>Available since 0.6.0</p>
10461        
10462    </div>
10463
10464    <div class="description">
10465        <p>Dispatched when the user presses their left mouse button over the display object. See the 
10466<a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
10467
10468    </div>
10469
10470    
10471
10472
10473    
10474</div>
10475
10476                
10477                    <div id="event_mouseout" class="events item inherited">
10478    <h3 class="name"><code>mouseout</code></h3>
10479    <span class="type"></span>
10480
10481    
10482
10483    
10484
10485    
10486
10487    
10488
10489    <div class="meta">
10490        
10491            
10492                <p>Inherited from
10493                <a href="../classes/DisplayObject.html#event_mouseout">DisplayObject</a>:
10494            
10495        
10496        
10497        <a href="../files/easeljs_display_DisplayObject.js.html#l568"><code>mouseout:568</code></a>
10498        
10499        </p>
10500
10501        
10502
10503        
10504            <p>Available since 0.6.0</p>
10505        
10506    </div>
10507
10508    <div class="description">
10509        <p>Dispatched when the user&#39;s mouse leaves this display object. This event must be enabled using 
10510<a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="../classes/DisplayObject.html#event_rollout" class="crosslink">rollout</a>.
10511See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
10512
10513    </div>
10514
10515    
10516
10517
10518    
10519</div>
10520
10521                
10522                    <div id="event_mouseover" class="events item inherited">
10523    <h3 class="name"><code>mouseover</code></h3>
10524    <span class="type"></span>
10525
10526    
10527
10528    
10529
10530    
10531
10532    
10533
10534    <div class="meta">
10535        
10536            
10537                <p>Inherited from
10538                <a href="../classes/DisplayObject.html#event_mouseover">DisplayObject</a>:
10539            
10540        
10541        
10542        <a href="../files/easeljs_display_DisplayObject.js.html#l560"><code>mouseover:560</code></a>
10543        
10544        </p>
10545
10546        
10547
10548        
10549            <p>Available since 0.6.0</p>
10550        
10551    </div>
10552
10553    <div class="description">
10554        <p>Dispatched when the user&#39;s mouse enters this display object. This event must be enabled using 
10555<a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="../classes/DisplayObject.html#event_rollover" class="crosslink">rollover</a>.
10556See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
10557
10558    </div>
10559
10560    
10561
10562
10563    
10564</div>
10565
10566                
10567                    <div id="event_pressmove" class="events item inherited">
10568    <h3 class="name"><code>pressmove</code></h3>
10569    <span class="type"></span>
10570
10571    
10572
10573    
10574
10575    
10576
10577    
10578
10579    <div class="meta">
10580        
10581            
10582                <p>Inherited from
10583                <a href="../classes/DisplayObject.html#event_pressmove">DisplayObject</a>:
10584            
10585        
10586        
10587        <a href="../files/easeljs_display_DisplayObject.js.html#l616"><code>pressmove:616</code></a>
10588        
10589        </p>
10590
10591        
10592
10593        
10594            <p>Available since 0.7.0</p>
10595        
10596    </div>
10597
10598    <div class="description">
10599        <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressmove
10600event will be generated on that object whenever the mouse moves until the mouse press is released. This can be
10601useful for dragging and similar operations.</p>
10602<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
10603(e.g. during a <code>pressmove</code> event), a <code>pressmove</code> event is still generated. However since it is no longer in the
10604display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
10605the 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>
10606or <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>),
10607then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
10608
10609    </div>
10610
10611    
10612
10613
10614    
10615</div>
10616
10617                
10618                    <div id="event_pressup" class="events item inherited">
10619    <h3 class="name"><code>pressup</code></h3>
10620    <span class="type"></span>
10621
10622    
10623
10624    
10625
10626    
10627
10628    
10629
10630    <div class="meta">
10631        
10632            
10633                <p>Inherited from
10634                <a href="../classes/DisplayObject.html#event_pressup">DisplayObject</a>:
10635            
10636        
10637        
10638        <a href="../files/easeljs_display_DisplayObject.js.html#l631"><code>pressup:631</code></a>
10639        
10640        </p>
10641
10642        
10643
10644        
10645            <p>Available since 0.7.0</p>
10646        
10647    </div>
10648
10649    <div class="description">
10650        <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressup event
10651will be generated on that object when that mouse press is released. This can be useful for dragging and similar
10652operations.</p>
10653<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
10654(e.g. during a <code>pressmove</code> event), a <code>pressup</code> event is still generated. However since it is no longer in the
10655display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
10656the 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>
10657or <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>),
10658then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
10659
10660    </div>
10661
10662    
10663
10664
10665    
10666</div>
10667
10668                
10669                    <div id="event_removed" class="events item inherited">
10670    <h3 class="name"><code>removed</code></h3>
10671    <span class="type"></span>
10672
10673    
10674
10675    
10676
10677    
10678
10679    
10680
10681    <div class="meta">
10682        
10683            
10684                <p>Inherited from
10685                <a href="../classes/DisplayObject.html#event_removed">DisplayObject</a>:
10686            
10687        
10688        
10689        <a href="../files/easeljs_display_DisplayObject.js.html#l651"><code>removed:651</code></a>
10690        
10691        </p>
10692
10693        
10694
10695        
10696    </div>
10697
10698    <div class="description">
10699        <p>Dispatched when the display object is removed from its parent container.</p>
10700
10701    </div>
10702
10703    
10704
10705
10706    
10707</div>
10708
10709                
10710                    <div id="event_rollout" class="events item inherited">
10711    <h3 class="name"><code>rollout</code></h3>
10712    <span class="type"></span>
10713
10714    
10715
10716    
10717
10718    
10719
10720    
10721
10722    <div class="meta">
10723        
10724            
10725                <p>Inherited from
10726                <a href="../classes/DisplayObject.html#event_rollout">DisplayObject</a>:
10727            
10728        
10729        
10730        <a href="../files/easeljs_display_DisplayObject.js.html#l596"><code>rollout:596</code></a>
10731        
10732        </p>
10733
10734        
10735
10736        
10737            <p>Available since 0.7.0</p>
10738        
10739    </div>
10740
10741    <div class="description">
10742        <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseout" class="crosslink">mouseout</a>, with the following
10743differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
10744aggregate of their content.</p>
10745<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
10746shapeA, then directly on to shapeB, then off both. With a listener for Mouseout:event
10747on myContainer, two events would be received, each targeting a child element:<OL></p>
10748<p><LI>when the mouse leaves shapeA (target=shapeA)</LI></p>
10749<p><LI>when the mouse leaves shapeB (target=shapeB)</LI>
10750</OL>
10751However, with a listener for "rollout" instead, only a single event is received when the mouse leaves
10752the aggregate myContainer content (target=myContainer).</p>
10753<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
10754See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
10755
10756    </div>
10757
10758    
10759
10760
10761    
10762</div>
10763
10764                
10765                    <div id="event_rollover" class="events item inherited">
10766    <h3 class="name"><code>rollover</code></h3>
10767    <span class="type"></span>
10768
10769    
10770
10771    
10772
10773    
10774
10775    
10776
10777    <div class="meta">
10778        
10779            
10780                <p>Inherited from
10781                <a href="../classes/DisplayObject.html#event_rollover">DisplayObject</a>:
10782            
10783        
10784        
10785        <a href="../files/easeljs_display_DisplayObject.js.html#l576"><code>rollover:576</code></a>
10786        
10787        </p>
10788
10789        
10790
10791        
10792            <p>Available since 0.7.0</p>
10793        
10794    </div>
10795
10796    <div class="description">
10797        <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseover" class="crosslink">mouseover</a>, with the following
10798differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
10799aggregate of their content.</p>
10800<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
10801shapeA and then directly on to shapeB. With a listener for Mouseover:event on
10802myContainer, two events would be received, each targeting a child element:<OL></p>
10803<p><LI>when the mouse enters shapeA (target=shapeA)</LI></p>
10804<p><LI>when the mouse enters shapeB (target=shapeB)</LI>
10805</OL>
10806However, with a listener for "rollover" instead, only a single event is received when the mouse first enters
10807the aggregate myContainer content (target=myContainer).</p>
10808<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
10809See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
10810
10811    </div>
10812
10813    
10814
10815
10816    
10817</div>
10818
10819                
10820                    <div id="event_tick" class="events item inherited">
10821    <h3 class="name"><code>tick</code></h3>
10822    <span class="type"></span>
10823
10824    
10825
10826    
10827
10828    
10829
10830    
10831
10832    <div class="meta">
10833        
10834            
10835                <p>Inherited from
10836                <a href="../classes/DisplayObject.html#event_tick">DisplayObject</a>:
10837            
10838        
10839        
10840        <a href="../files/easeljs_display_DisplayObject.js.html#l656"><code>tick:656</code></a>
10841        
10842        </p>
10843
10844        
10845
10846        
10847            <p>Available since 0.6.0</p>
10848        
10849    </div>
10850
10851    <div class="description">
10852        <p>Dispatched on each display object on a stage whenever the stage updates. This occurs immediately before the
10853rendering (draw) pass. When <a href="../classes/Stage.html#method_update" class="crosslink">update</a> is called, first all display objects on
10854the stage dispatch the tick event, then all of the display objects are drawn to stage. Children will have their
10855Tick:event event dispatched in order of their depth prior to the event being
10856dispatched on their parent.</p>
10857
10858    </div>
10859
10860    
10861        <div class="params">
10862            <h4>Event Payload:</h4>
10863
10864            <ul class="params-list">
10865            
10866                <li class="param">
10867                    
10868                        <code class="param-name">target</code>
10869                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
10870                    
10871
10872                    
10873
10874                    <div class="param-description">
10875                        <p>The object that dispatched the event.</p>
10876
10877                    </div>
10878
10879                    
10880                </li>
10881            
10882                <li class="param">
10883                    
10884                        <code class="param-name">type</code>
10885                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
10886                    
10887
10888                    
10889
10890                    <div class="param-description">
10891                        <p>The event type.</p>
10892
10893                    </div>
10894
10895                    
10896                </li>
10897            
10898                <li class="param">
10899                    
10900                        <code class="param-name">params</code>
10901                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
10902                    
10903
10904                    
10905
10906                    <div class="param-description">
10907                        <p>An array containing any arguments that were passed to the Stage.update() method. For
10908     example if you called stage.update("hello"), then the params would be ["hello"].</p>
10909
10910                    </div>
10911
10912                    
10913                </li>
10914            
10915            </ul>
10916        </div>
10917    
10918
10919
10920    
10921</div>
10922
10923                
10924            </div>
10925        
10926    </div>
10927</div>
10928
10929                    </div>
10930                </div>
10931            </div>
10932        </div>
10933    </div>
10934</div>
10935<script src="../assets/vendor/prettify/prettify-min.js"></script>
10936<script>prettyPrint();</script>
10937<script src="../assets/js/yui-prettify.js"></script>
10938<script src="../assets/../api.js"></script>
10939<script src="../assets/js/api-filter.js"></script>
10940<script src="../assets/js/api-list.js"></script>
10941<script src="../assets/js/api-search.js"></script>
10942<script src="../assets/js/apidocs.js"></script>
10943</body>
10944</html>