all repos — simplyrpg @ 22e7c7bea11f4bc81b76acd3c35138615dc759ee

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

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