all repos — simplyrpg @ 99d2f828009feee73ba45ef124cbaa02ff1d61dd

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

libraries/EaselJS_docs/classes/DOMElement.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 : DOMElement</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>DOMElement Class</h1>
 199<div class="box meta">
 200    
 201
 202    
 203        <div class="extends">
 204            Extends <a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a>
 205        </div>
 206    
 207
 208    
 209        <div class="foundat">
 210            Defined in: <a href="../files/easeljs_display_DOMElement.js.html#l41"><code>DOMElement: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><b>This class is still experimental, and more advanced use is likely to be buggy. Please report bugs.</b></p>
 227<p>A DOMElement allows you to associate a HTMLElement with the display list. It will be transformed
 228within the DOM as though it is child of the <a href="../classes/Container.html" class="crosslink">Container</a> it is added to. However, it is
 229not rendered to canvas, and as such will retain whatever z-index it has relative to the canvas (ie. it will be
 230drawn in front of or behind the canvas).</p>
 231<p>The position of a DOMElement is relative to their parent node in the DOM. It is recommended that
 232the DOM Object be added to a div that also contains the canvas so that they share the same position
 233on the page.</p>
 234<p>DOMElement is useful for positioning HTML elements over top of canvas content, and for elements
 235that you want to display outside the bounds of the canvas. For example, a tooltip with rich HTML
 236content.</p>
 237<h4>Mouse Interaction</h4>
 238
 239<p>DOMElement instances are not full EaselJS display objects, and do not participate in EaselJS mouse
 240events or support methods like hitTest. To get mouse events from a DOMElement, you must instead add handlers to
 241the htmlElement (note, this does not support EventDispatcher)</p>
 242<pre class="code prettyprint"><code> var domElement = new createjs.DOMElement(htmlElement);
 243 domElement.htmlElement.onclick = function() {
 244     console.log("clicked");
 245 }</code></pre>
 246<p><strong>Important:</strong> This class needs to be notified it is about to be drawn, this will happen automatically
 247if you call stage.update, calling stage.draw or disabling tickEnabled will miss important steps and it will render
 248stale information.</p>
 249
 250</div>
 251
 252
 253    <div class="constructor">
 254        <h2>Constructor</h2>
 255        <div id="method_DOMElement" class="method item">
 256    <h3 class="name"><code>DOMElement</code></h3>
 257
 258    
 259        <div class="args">
 260            <span class="paren">(</span><ul class="args-list inline commas">
 261            
 262                <li class="arg">
 263                    
 264                        <code>htmlElement</code>
 265                    
 266                </li>
 267            
 268            </ul><span class="paren">)</span>
 269        </div>
 270    
 271
 272    
 273
 274    
 275
 276    
 277
 278    
 279
 280    
 281
 282    
 283
 284    
 285
 286    <div class="meta">
 287        
 288            
 289                
 290                <p>
 291                
 292                Defined in
 293                
 294            
 295        
 296        
 297        <a href="../files/easeljs_display_DOMElement.js.html#l41"><code>DOMElement:41</code></a>
 298        
 299        </p>
 300
 301
 302        
 303
 304        
 305    </div>
 306
 307    <div class="description">
 308        
 309    </div>
 310
 311    
 312        <div class="params">
 313            <h4>Parameters:</h4>
 314
 315            <ul class="params-list">
 316            
 317                <li class="param">
 318                    
 319                        <code class="param-name">htmlElement</code>
 320                        <span class="type"><a href="https://developer.mozilla.org/en/Document_Object_Model_(DOM)/HTMLElement" class="crosslink external" target="_blank">HTMLElement</a></span>
 321                    
 322
 323                    
 324
 325                    <div class="param-description">
 326                        <p>A reference or id for the DOM element to manage.</p>
 327
 328                    </div>
 329
 330                    
 331                </li>
 332            
 333            </ul>
 334        </div>
 335    
 336
 337    
 338
 339    
 340</div>
 341
 342    </div>
 343
 344
 345<div id="classdocs" class="tabview">
 346    <ul class="api-class-tabs">
 347        <li class="api-class-tab index"><a href="#index">Index</a></li>
 348
 349        
 350            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
 351        
 352        
 353            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
 354        
 355        
 356        
 357            <li class="api-class-tab events"><a href="#events">Events</a></li>
 358        
 359    </ul>
 360
 361    <div>
 362        <div id="index" class="api-class-tabpanel index">
 363            <h2 class="off-left">Item Index</h2>
 364
 365            
 366                <div class="index-section methods">
 367                    <h3>Methods</h3>
 368
 369                    <ul class="index-list methods extends">
 370                        
 371                            <li class="index-item method protected inherited">
 372                                <a href="#method__applyShadow">_applyShadow</a>
 373
 374                                
 375                                
 376                            </li>
 377                        
 378                            <li class="index-item method protected inherited">
 379                                <a href="#method__cloneProps">_cloneProps</a>
 380
 381                                
 382                                
 383                            </li>
 384                        
 385                            <li class="index-item method protected inherited">
 386                                <a href="#method__dispatchEvent">_dispatchEvent</a>
 387
 388                                
 389                                
 390                            </li>
 391                        
 392                            <li class="index-item method protected inherited">
 393                                <a href="#method__getBounds">_getBounds</a>
 394
 395                                
 396                                
 397                            </li>
 398                        
 399                            <li class="index-item method protected inherited">
 400                                <a href="#method__getStage">_getStage</a>
 401
 402                                
 403                                
 404                            </li>
 405                        
 406                            <li class="index-item method protected">
 407                                <a href="#method__handleDrawEnd">_handleDrawEnd</a>
 408
 409                                
 410                                
 411                            </li>
 412                        
 413                            <li class="index-item method protected inherited">
 414                                <a href="#method__isMouseOpaque">_isMouseOpaque</a>
 415
 416                                
 417                                
 418                            </li>
 419                        
 420                            <li class="index-item method protected inherited">
 421                                <a href="#method__testHit">_testHit</a>
 422
 423                                
 424                                
 425                            </li>
 426                        
 427                            <li class="index-item method protected inherited">
 428                                <a href="#method__tick">_tick</a>
 429
 430                                
 431                                
 432                            </li>
 433                        
 434                            <li class="index-item method protected inherited">
 435                                <a href="#method__transformBounds">_transformBounds</a>
 436
 437                                
 438                                
 439                            </li>
 440                        
 441                            <li class="index-item method inherited">
 442                                <a href="#method__updateState">_updateState</a>
 443
 444                                
 445                                
 446                            </li>
 447                        
 448                            <li class="index-item method inherited">
 449                                <a href="#method_addEventListener">addEventListener</a>
 450
 451                                
 452                                
 453                            </li>
 454                        
 455                            <li class="index-item method inherited">
 456                                <a href="#method_cache">cache</a>
 457
 458                                
 459                                
 460                            </li>
 461                        
 462                            <li class="index-item method inherited">
 463                                <a href="#method_clone">clone</a>
 464
 465                                
 466                                
 467                            </li>
 468                        
 469                            <li class="index-item method inherited">
 470                                <a href="#method_dispatchEvent">dispatchEvent</a>
 471
 472                                
 473                                
 474                            </li>
 475                        
 476                            <li class="index-item method inherited">
 477                                <a href="#method_draw">draw</a>
 478
 479                                
 480                                
 481                            </li>
 482                        
 483                            <li class="index-item method inherited">
 484                                <a href="#method_getBounds">getBounds</a>
 485
 486                                
 487                                
 488                            </li>
 489                        
 490                            <li class="index-item method inherited">
 491                                <a href="#method_getCacheDataURL">getCacheDataURL</a>
 492
 493                                
 494                                
 495                            </li>
 496                        
 497                            <li class="index-item method inherited">
 498                                <a href="#method_getConcatenatedDisplayProps">getConcatenatedDisplayProps</a>
 499
 500                                
 501                                
 502                            </li>
 503                        
 504                            <li class="index-item method inherited">
 505                                <a href="#method_getConcatenatedMatrix">getConcatenatedMatrix</a>
 506
 507                                
 508                                
 509                            </li>
 510                        
 511                            <li class="index-item method inherited">
 512                                <a href="#method_getMatrix">getMatrix</a>
 513
 514                                
 515                                
 516                            </li>
 517                        
 518                            <li class="index-item method inherited">
 519                                <a href="#method_getTransformedBounds">getTransformedBounds</a>
 520
 521                                
 522                                
 523                            </li>
 524                        
 525                            <li class="index-item method inherited">
 526                                <a href="#method_globalToLocal">globalToLocal</a>
 527
 528                                
 529                                
 530                            </li>
 531                        
 532                            <li class="index-item method inherited">
 533                                <a href="#method_hasEventListener">hasEventListener</a>
 534
 535                                
 536                                
 537                            </li>
 538                        
 539                            <li class="index-item method inherited">
 540                                <a href="#method_hitTest">hitTest</a>
 541
 542                                
 543                                
 544                            </li>
 545                        
 546                            <li class="index-item method inherited">
 547                                <a href="#method_isVisible">isVisible</a>
 548
 549                                
 550                                
 551                            </li>
 552                        
 553                            <li class="index-item method inherited">
 554                                <a href="#method_localToGlobal">localToGlobal</a>
 555
 556                                
 557                                
 558                            </li>
 559                        
 560                            <li class="index-item method inherited">
 561                                <a href="#method_localToLocal">localToLocal</a>
 562
 563                                
 564                                
 565                            </li>
 566                        
 567                            <li class="index-item method inherited">
 568                                <a href="#method_off">off</a>
 569
 570                                
 571                                
 572                            </li>
 573                        
 574                            <li class="index-item method inherited">
 575                                <a href="#method_on">on</a>
 576
 577                                
 578                                
 579                            </li>
 580                        
 581                            <li class="index-item method inherited">
 582                                <a href="#method_removeAllEventListeners">removeAllEventListeners</a>
 583
 584                                
 585                                
 586                            </li>
 587                        
 588                            <li class="index-item method inherited">
 589                                <a href="#method_removeEventListener">removeEventListener</a>
 590
 591                                
 592                                
 593                            </li>
 594                        
 595                            <li class="index-item method inherited">
 596                                <a href="#method_set">set</a>
 597
 598                                
 599                                
 600                            </li>
 601                        
 602                            <li class="index-item method inherited">
 603                                <a href="#method_setBounds">setBounds</a>
 604
 605                                
 606                                
 607                            </li>
 608                        
 609                            <li class="index-item method inherited">
 610                                <a href="#method_setTransform">setTransform</a>
 611
 612                                
 613                                
 614                            </li>
 615                        
 616                            <li class="index-item method inherited">
 617                                <a href="#method_toString">toString</a>
 618
 619                                
 620                                
 621                            </li>
 622                        
 623                            <li class="index-item method inherited">
 624                                <a href="#method_uncache">uncache</a>
 625
 626                                
 627                                
 628                            </li>
 629                        
 630                            <li class="index-item method inherited">
 631                                <a href="#method_updateCache">updateCache</a>
 632
 633                                
 634                                
 635                            </li>
 636                        
 637                            <li class="index-item method inherited">
 638                                <a href="#method_updateContext">updateContext</a>
 639
 640                                
 641                                
 642                            </li>
 643                        
 644                            <li class="index-item method inherited">
 645                                <a href="#method_willTrigger">willTrigger</a>
 646
 647                                
 648                                
 649                            </li>
 650                        
 651                    </ul>
 652                </div>
 653            
 654
 655            
 656                <div class="index-section properties">
 657                    <h3>Properties</h3>
 658
 659                    <ul class="index-list properties extends">
 660                        
 661                            <li class="index-item property protected inherited">
 662                                <a href="#property__bounds">_bounds</a>
 663
 664                                
 665                                
 666                            </li>
 667                        
 668                            <li class="index-item property protected deprecated inherited">
 669                                <a href="#property__cacheDataURL">_cacheDataURL</a>
 670
 671                                
 672                                
 673                                    <span class="flag deprecated">deprecated</span>
 674                                
 675                            </li>
 676                        
 677                            <li class="index-item property protected deprecated inherited">
 678                                <a href="#property__cacheDataURLID">_cacheDataURLID</a>
 679
 680                                
 681                                
 682                                    <span class="flag deprecated">deprecated</span>
 683                                
 684                            </li>
 685                        
 686                            <li class="index-item property protected deprecated inherited">
 687                                <a href="#property__cacheScale">_cacheScale</a>
 688
 689                                
 690                                
 691                                    <span class="flag deprecated">deprecated</span>
 692                                
 693                            </li>
 694                        
 695                            <li class="index-item property protected inherited">
 696                                <a href="#property__captureListeners">_captureListeners</a>
 697
 698                                
 699                                
 700                            </li>
 701                        
 702                            <li class="index-item property protected">
 703                                <a href="#property__drawAction">_drawAction</a>
 704
 705                                
 706                                
 707                            </li>
 708                        
 709                            <li class="index-item property protected inherited">
 710                                <a href="#property__listeners">_listeners</a>
 711
 712                                
 713                                
 714                            </li>
 715                        
 716                            <li class="index-item property protected">
 717                                <a href="#property__oldMtx">_oldMtx</a>
 718
 719                                
 720                                
 721                            </li>
 722                        
 723                            <li class="index-item property protected">
 724                                <a href="#property__oldStage">_oldStage</a>
 725
 726                                
 727                                
 728                            </li>
 729                        
 730                            <li class="index-item property protected inherited">
 731                                <a href="#property__props">_props</a>
 732
 733                                
 734                                
 735                            </li>
 736                        
 737                            <li class="index-item property protected inherited">
 738                                <a href="#property__rectangle">_rectangle</a>
 739
 740                                
 741                                
 742                            </li>
 743                        
 744                            <li class="index-item property protected inherited">
 745                                <a href="#property__webGLRenderStyle">_webGLRenderStyle</a>
 746
 747                                
 748                                
 749                            </li>
 750                        
 751                            <li class="index-item property inherited">
 752                                <a href="#property_alpha">alpha</a>
 753
 754                                
 755                                
 756                            </li>
 757                        
 758                            <li class="index-item property inherited">
 759                                <a href="#property_bitmapCache">bitmapCache</a>
 760
 761                                
 762                                
 763                            </li>
 764                        
 765                            <li class="index-item property inherited">
 766                                <a href="#property_cacheCanvas">cacheCanvas</a>
 767
 768                                
 769                                
 770                            </li>
 771                        
 772                            <li class="index-item property deprecated inherited">
 773                                <a href="#property_cacheID">cacheID</a>
 774
 775                                
 776                                
 777                                    <span class="flag deprecated">deprecated</span>
 778                                
 779                            </li>
 780                        
 781                            <li class="index-item property inherited">
 782                                <a href="#property_compositeOperation">compositeOperation</a>
 783
 784                                
 785                                
 786                            </li>
 787                        
 788                            <li class="index-item property inherited">
 789                                <a href="#property_cursor">cursor</a>
 790
 791                                
 792                                
 793                            </li>
 794                        
 795                            <li class="index-item property inherited">
 796                                <a href="#property_filters">filters</a>
 797
 798                                
 799                                
 800                            </li>
 801                        
 802                            <li class="index-item property inherited">
 803                                <a href="#property_hitArea">hitArea</a>
 804
 805                                
 806                                
 807                            </li>
 808                        
 809                            <li class="index-item property">
 810                                <a href="#property_htmlElement">htmlElement</a>
 811
 812                                
 813                                
 814                            </li>
 815                        
 816                            <li class="index-item property inherited">
 817                                <a href="#property_id">id</a>
 818
 819                                
 820                                
 821                            </li>
 822                        
 823                            <li class="index-item property inherited">
 824                                <a href="#property_mask">mask</a>
 825
 826                                
 827                                
 828                            </li>
 829                        
 830                            <li class="index-item property inherited">
 831                                <a href="#property_mouseEnabled">mouseEnabled</a>
 832
 833                                
 834                                
 835                            </li>
 836                        
 837                            <li class="index-item property inherited">
 838                                <a href="#property_name">name</a>
 839
 840                                
 841                                
 842                            </li>
 843                        
 844                            <li class="index-item property inherited">
 845                                <a href="#property_parent">parent</a>
 846
 847                                
 848                                
 849                            </li>
 850                        
 851                            <li class="index-item property inherited">
 852                                <a href="#property_regX">regX</a>
 853
 854                                
 855                                
 856                            </li>
 857                        
 858                            <li class="index-item property inherited">
 859                                <a href="#property_regY">regY</a>
 860
 861                                
 862                                
 863                            </li>
 864                        
 865                            <li class="index-item property inherited">
 866                                <a href="#property_rotation">rotation</a>
 867
 868                                
 869                                
 870                            </li>
 871                        
 872                            <li class="index-item property inherited inherited">
 873                                <a href="#property_scaleX">scaleX</a>
 874
 875                                
 876                                
 877                            </li>
 878                        
 879                            <li class="index-item property inherited">
 880                                <a href="#property_scaleY">scaleY</a>
 881
 882                                
 883                                
 884                            </li>
 885                        
 886                            <li class="index-item property inherited">
 887                                <a href="#property_shadow">shadow</a>
 888
 889                                
 890                                
 891                            </li>
 892                        
 893                            <li class="index-item property inherited">
 894                                <a href="#property_skewX">skewX</a>
 895
 896                                
 897                                
 898                            </li>
 899                        
 900                            <li class="index-item property inherited">
 901                                <a href="#property_skewY">skewY</a>
 902
 903                                
 904                                
 905                            </li>
 906                        
 907                            <li class="index-item property inherited">
 908                                <a href="#property_snapToPixel">snapToPixel</a>
 909
 910                                
 911                                
 912                            </li>
 913                        
 914                            <li class="index-item property inherited">
 915                                <a href="#property_stage">stage</a>
 916
 917                                
 918                                
 919                            </li>
 920                        
 921                            <li class="index-item property inherited">
 922                                <a href="#property_tickEnabled">tickEnabled</a>
 923
 924                                
 925                                
 926                            </li>
 927                        
 928                            <li class="index-item property inherited">
 929                                <a href="#property_transformMatrix">transformMatrix</a>
 930
 931                                
 932                                
 933                            </li>
 934                        
 935                            <li class="index-item property inherited">
 936                                <a href="#property_visible">visible</a>
 937
 938                                
 939                                
 940                            </li>
 941                        
 942                            <li class="index-item property inherited">
 943                                <a href="#property_x">x</a>
 944
 945                                
 946                                
 947                            </li>
 948                        
 949                            <li class="index-item property inherited">
 950                                <a href="#property_y">y</a>
 951
 952                                
 953                                
 954                            </li>
 955                        
 956                    </ul>
 957                </div>
 958            
 959
 960            
 961
 962            
 963                <div class="index-section events">
 964                    <h3>Events</h3>
 965
 966                    <ul class="index-list events extends">
 967                        
 968                            <li class="index-item event inherited">
 969                                <a href="#event_added">added</a>
 970
 971                                
 972                                
 973                            </li>
 974                        
 975                            <li class="index-item event inherited">
 976                                <a href="#event_click">click</a>
 977
 978                                
 979                                
 980                            </li>
 981                        
 982                            <li class="index-item event">
 983                                <a href="#event_dblClick">dblClick</a>
 984
 985                                
 986                                
 987                            </li>
 988                        
 989                            <li class="index-item event inherited">
 990                                <a href="#event_dblclick">dblclick</a>
 991
 992                                
 993                                
 994                            </li>
 995                        
 996                            <li class="index-item event inherited">
 997                                <a href="#event_mousedown">mousedown</a>
 998
 999                                
1000                                
1001                            </li>
1002                        
1003                            <li class="index-item event inherited">
1004                                <a href="#event_mouseout">mouseout</a>
1005
1006                                
1007                                
1008                            </li>
1009                        
1010                            <li class="index-item event inherited">
1011                                <a href="#event_mouseover">mouseover</a>
1012
1013                                
1014                                
1015                            </li>
1016                        
1017                            <li class="index-item event inherited">
1018                                <a href="#event_pressmove">pressmove</a>
1019
1020                                
1021                                
1022                            </li>
1023                        
1024                            <li class="index-item event inherited">
1025                                <a href="#event_pressup">pressup</a>
1026
1027                                
1028                                
1029                            </li>
1030                        
1031                            <li class="index-item event inherited">
1032                                <a href="#event_removed">removed</a>
1033
1034                                
1035                                
1036                            </li>
1037                        
1038                            <li class="index-item event inherited">
1039                                <a href="#event_rollout">rollout</a>
1040
1041                                
1042                                
1043                            </li>
1044                        
1045                            <li class="index-item event inherited">
1046                                <a href="#event_rollover">rollover</a>
1047
1048                                
1049                                
1050                            </li>
1051                        
1052                            <li class="index-item event inherited">
1053                                <a href="#event_tick">tick</a>
1054
1055                                
1056                                
1057                            </li>
1058                        
1059                    </ul>
1060                </div>
1061            
1062        </div>
1063
1064        
1065            <div id="methods" class="api-class-tabpanel">
1066                <h2 class="off-left">Methods</h2>
1067
1068                
1069                    <div id="method__applyShadow" class="method item protected inherited">
1070    <h3 class="name"><code>_applyShadow</code></h3>
1071
1072    
1073        <div class="args">
1074            <span class="paren">(</span><ul class="args-list inline commas">
1075            
1076                <li class="arg">
1077                    
1078                        <code>ctx</code>
1079                    
1080                </li>
1081            
1082                <li class="arg">
1083                    
1084                        <code>shadow</code>
1085                    
1086                </li>
1087            
1088            </ul><span class="paren">)</span>
1089        </div>
1090    
1091
1092    
1093
1094    
1095
1096    
1097        <span class="flag protected">protected</span>
1098    
1099
1100    
1101
1102    
1103
1104    
1105
1106    
1107
1108    <div class="meta">
1109        
1110            
1111                <p>Inherited from
1112                <a href="../classes/DisplayObject.html#method__applyShadow">DisplayObject</a>:
1113            
1114        
1115        
1116        <a href="../files/easeljs_display_DisplayObject.js.html#l1261"><code>_applyShadow:1261</code></a>
1117        
1118        </p>
1119
1120
1121        
1122
1123        
1124    </div>
1125
1126    <div class="description">
1127        
1128    </div>
1129
1130    
1131        <div class="params">
1132            <h4>Parameters:</h4>
1133
1134            <ul class="params-list">
1135            
1136                <li class="param">
1137                    
1138                        <code class="param-name">ctx</code>
1139                        <span class="type">CanvasRenderingContext2D</span>
1140                    
1141
1142                    
1143
1144                    <div class="param-description">
1145                        
1146                    </div>
1147
1148                    
1149                </li>
1150            
1151                <li class="param">
1152                    
1153                        <code class="param-name">shadow</code>
1154                        <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
1155                    
1156
1157                    
1158
1159                    <div class="param-description">
1160                        
1161                    </div>
1162
1163                    
1164                </li>
1165            
1166            </ul>
1167        </div>
1168    
1169
1170    
1171
1172    
1173</div>
1174
1175                
1176                    <div id="method__cloneProps" class="method item protected inherited">
1177    <h3 class="name"><code>_cloneProps</code></h3>
1178
1179    
1180        <div class="args">
1181            <span class="paren">(</span><ul class="args-list inline commas">
1182            
1183                <li class="arg">
1184                    
1185                        <code>o</code>
1186                    
1187                </li>
1188            
1189            </ul><span class="paren">)</span>
1190        </div>
1191    
1192
1193    
1194        <span class="returns-inline">
1195            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
1196        </span>
1197    
1198
1199    
1200
1201    
1202        <span class="flag protected">protected</span>
1203    
1204
1205    
1206
1207    
1208
1209    
1210
1211    
1212
1213    <div class="meta">
1214        
1215            
1216                <p>Inherited from
1217                <a href="../classes/DisplayObject.html#method__cloneProps">DisplayObject</a>:
1218            
1219        
1220        
1221        <a href="../files/easeljs_display_DisplayObject.js.html#l1228"><code>_cloneProps:1228</code></a>
1222        
1223        </p>
1224
1225
1226        
1227
1228        
1229    </div>
1230
1231    <div class="description">
1232        
1233    </div>
1234
1235    
1236        <div class="params">
1237            <h4>Parameters:</h4>
1238
1239            <ul class="params-list">
1240            
1241                <li class="param">
1242                    
1243                        <code class="param-name">o</code>
1244                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
1245                    
1246
1247                    
1248
1249                    <div class="param-description">
1250                        <p>The DisplayObject instance which will have properties from the current DisplayObject
1251instance copied into.</p>
1252
1253                    </div>
1254
1255                    
1256                </li>
1257            
1258            </ul>
1259        </div>
1260    
1261
1262    
1263        <div class="returns">
1264            <h4>Returns:</h4>
1265
1266            <div class="returns-description">
1267                
1268                    
1269                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
1270                    
1271                    <p>o</p>
1272
1273                
1274            </div>
1275        </div>
1276    
1277
1278    
1279</div>
1280
1281                
1282                    <div id="method__dispatchEvent" class="method item protected inherited">
1283    <h3 class="name"><code>_dispatchEvent</code></h3>
1284
1285    
1286        <div class="args">
1287            <span class="paren">(</span><ul class="args-list inline commas">
1288            
1289                <li class="arg">
1290                    
1291                        <code>eventObj</code>
1292                    
1293                </li>
1294            
1295                <li class="arg">
1296                    
1297                        <code>eventPhase</code>
1298                    
1299                </li>
1300            
1301            </ul><span class="paren">)</span>
1302        </div>
1303    
1304
1305    
1306
1307    
1308
1309    
1310        <span class="flag protected">protected</span>
1311    
1312
1313    
1314
1315    
1316
1317    
1318
1319    
1320
1321    <div class="meta">
1322        
1323            
1324                <p>Inherited from
1325                <a href="../classes/EventDispatcher.html#method__dispatchEvent">EventDispatcher</a>:
1326            
1327        
1328        
1329        <a href="../files/createjs_events_EventDispatcher.js.html#l380"><code>_dispatchEvent:380</code></a>
1330        
1331        </p>
1332
1333
1334        
1335
1336        
1337    </div>
1338
1339    <div class="description">
1340        
1341    </div>
1342
1343    
1344        <div class="params">
1345            <h4>Parameters:</h4>
1346
1347            <ul class="params-list">
1348            
1349                <li class="param">
1350                    
1351                        <code class="param-name">eventObj</code>
1352                        <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>
1353                    
1354
1355                    
1356
1357                    <div class="param-description">
1358                        
1359                    </div>
1360
1361                    
1362                </li>
1363            
1364                <li class="param">
1365                    
1366                        <code class="param-name">eventPhase</code>
1367                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
1368                    
1369
1370                    
1371
1372                    <div class="param-description">
1373                        
1374                    </div>
1375
1376                    
1377                </li>
1378            
1379            </ul>
1380        </div>
1381    
1382
1383    
1384
1385    
1386</div>
1387
1388                
1389                    <div id="method__getBounds" class="method item protected inherited">
1390    <h3 class="name"><code>_getBounds</code></h3>
1391
1392    
1393        <div class="args">
1394            <span class="paren">(</span><ul class="args-list inline commas">
1395            
1396                <li class="arg">
1397                    
1398                        <code>matrix</code>
1399                    
1400                </li>
1401            
1402                <li class="arg">
1403                    
1404                        <code>ignoreTransform</code>
1405                    
1406                </li>
1407            
1408            </ul><span class="paren">)</span>
1409        </div>
1410    
1411
1412    
1413        <span class="returns-inline">
1414            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
1415        </span>
1416    
1417
1418    
1419
1420    
1421        <span class="flag protected">protected</span>
1422    
1423
1424    
1425
1426    
1427
1428    
1429
1430    
1431
1432    <div class="meta">
1433        
1434            
1435                <p>Inherited from
1436                <a href="../classes/DisplayObject.html#method__getBounds">DisplayObject</a>:
1437            
1438        
1439        
1440        <a href="../files/easeljs_display_DisplayObject.js.html#l1308"><code>_getBounds:1308</code></a>
1441        
1442        </p>
1443
1444
1445        
1446
1447        
1448    </div>
1449
1450    <div class="description">
1451        
1452    </div>
1453
1454    
1455        <div class="params">
1456            <h4>Parameters:</h4>
1457
1458            <ul class="params-list">
1459            
1460                <li class="param">
1461                    
1462                        <code class="param-name">matrix</code>
1463                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1464                    
1465
1466                    
1467
1468                    <div class="param-description">
1469                        
1470                    </div>
1471
1472                    
1473                </li>
1474            
1475                <li class="param">
1476                    
1477                        <code class="param-name">ignoreTransform</code>
1478                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1479                    
1480
1481                    
1482
1483                    <div class="param-description">
1484                        <p>If true, does not apply this object&#39;s transform.</p>
1485
1486                    </div>
1487
1488                    
1489                </li>
1490            
1491            </ul>
1492        </div>
1493    
1494
1495    
1496        <div class="returns">
1497            <h4>Returns:</h4>
1498
1499            <div class="returns-description">
1500                
1501                    
1502                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
1503                    
1504                
1505            </div>
1506        </div>
1507    
1508
1509    
1510</div>
1511
1512                
1513                    <div id="method__getStage" class="method item protected inherited">
1514    <h3 class="name"><code>_getStage</code></h3>
1515
1516    
1517        <span class="paren">()</span>
1518    
1519
1520    
1521        <span class="returns-inline">
1522            <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
1523        </span>
1524    
1525
1526    
1527
1528    
1529        <span class="flag protected">protected</span>
1530    
1531
1532    
1533
1534    
1535
1536    
1537
1538    
1539
1540    <div class="meta">
1541        
1542            
1543                <p>Inherited from
1544                <a href="../classes/DisplayObject.html#method__getStage">DisplayObject</a>:
1545            
1546        
1547        
1548        <a href="../files/easeljs_display_DisplayObject.js.html#l672"><code>_getStage:672</code></a>
1549        
1550        </p>
1551
1552
1553        
1554
1555        
1556    </div>
1557
1558    <div class="description">
1559        <p>Use the <a href="../classes/DisplayObject.html#property_stage" class="crosslink">stage</a> property instead.</p>
1560
1561    </div>
1562
1563    
1564
1565    
1566        <div class="returns">
1567            <h4>Returns:</h4>
1568
1569            <div class="returns-description">
1570                
1571                    
1572                        <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>:
1573                    
1574                
1575            </div>
1576        </div>
1577    
1578
1579    
1580</div>
1581
1582                
1583                    <div id="method__handleDrawEnd" class="method item protected">
1584    <h3 class="name"><code>_handleDrawEnd</code></h3>
1585
1586    
1587        <div class="args">
1588            <span class="paren">(</span><ul class="args-list inline commas">
1589            
1590                <li class="arg">
1591                    
1592                        <code>evt</code>
1593                    
1594                </li>
1595            
1596            </ul><span class="paren">)</span>
1597        </div>
1598    
1599
1600    
1601
1602    
1603
1604    
1605        <span class="flag protected">protected</span>
1606    
1607
1608    
1609
1610    
1611
1612    
1613
1614    
1615
1616    <div class="meta">
1617        
1618            
1619                
1620                <p>
1621                
1622                Defined in
1623                
1624            
1625        
1626        
1627        <a href="../files/easeljs_display_DOMElement.js.html#l261"><code>_handleDrawEnd:261</code></a>
1628        
1629        </p>
1630
1631
1632        
1633
1634        
1635    </div>
1636
1637    <div class="description">
1638        
1639    </div>
1640
1641    
1642        <div class="params">
1643            <h4>Parameters:</h4>
1644
1645            <ul class="params-list">
1646            
1647                <li class="param">
1648                    
1649                        <code class="param-name">evt</code>
1650                        <span class="type"><a href="../classes/Event.html" class="crosslink">Event</a></span>
1651                    
1652
1653                    
1654
1655                    <div class="param-description">
1656                         
1657                    </div>
1658
1659                    
1660                </li>
1661            
1662            </ul>
1663        </div>
1664    
1665
1666    
1667
1668    
1669</div>
1670
1671                
1672                    <div id="method__isMouseOpaque" class="method item protected inherited">
1673    <h3 class="name"><code>_isMouseOpaque</code></h3>
1674
1675    
1676        <span class="paren">()</span>
1677    
1678
1679    
1680        <span class="returns-inline">
1681            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1682        </span>
1683    
1684
1685    
1686
1687    
1688        <span class="flag protected">protected</span>
1689    
1690
1691    
1692
1693    
1694
1695    
1696
1697    
1698
1699    <div class="meta">
1700        
1701            
1702                <p>Inherited from
1703                <a href="../classes/DisplayObject.html#method__isMouseOpaque">DisplayObject</a>:
1704            
1705        
1706        
1707        <a href="../files/easeljs_display_DisplayObject.js.html#l1352"><code>_isMouseOpaque:1352</code></a>
1708        
1709        </p>
1710
1711
1712        
1713
1714        
1715    </div>
1716
1717    <div class="description">
1718        <p>Indicates whether the display object has any mouse event listeners or a cursor.</p>
1719
1720    </div>
1721
1722    
1723
1724    
1725        <div class="returns">
1726            <h4>Returns:</h4>
1727
1728            <div class="returns-description">
1729                
1730                    
1731                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
1732                    
1733                
1734            </div>
1735        </div>
1736    
1737
1738    
1739</div>
1740
1741                
1742                    <div id="method__testHit" class="method item protected inherited">
1743    <h3 class="name"><code>_testHit</code></h3>
1744
1745    
1746        <div class="args">
1747            <span class="paren">(</span><ul class="args-list inline commas">
1748            
1749                <li class="arg">
1750                    
1751                        <code>ctx</code>
1752                    
1753                </li>
1754            
1755            </ul><span class="paren">)</span>
1756        </div>
1757    
1758
1759    
1760        <span class="returns-inline">
1761            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1762        </span>
1763    
1764
1765    
1766
1767    
1768        <span class="flag protected">protected</span>
1769    
1770
1771    
1772
1773    
1774
1775    
1776
1777    
1778
1779    <div class="meta">
1780        
1781            
1782                <p>Inherited from
1783                <a href="../classes/DisplayObject.html#method__testHit">DisplayObject</a>:
1784            
1785        
1786        
1787        <a href="../files/easeljs_display_DisplayObject.js.html#l1291"><code>_testHit:1291</code></a>
1788        
1789        </p>
1790
1791
1792        
1793
1794        
1795    </div>
1796
1797    <div class="description">
1798        
1799    </div>
1800
1801    
1802        <div class="params">
1803            <h4>Parameters:</h4>
1804
1805            <ul class="params-list">
1806            
1807                <li class="param">
1808                    
1809                        <code class="param-name">ctx</code>
1810                        <span class="type">CanvasRenderingContext2D</span>
1811                    
1812
1813                    
1814
1815                    <div class="param-description">
1816                        
1817                    </div>
1818
1819                    
1820                </li>
1821            
1822            </ul>
1823        </div>
1824    
1825
1826    
1827        <div class="returns">
1828            <h4>Returns:</h4>
1829
1830            <div class="returns-description">
1831                
1832                    
1833                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
1834                    
1835                
1836            </div>
1837        </div>
1838    
1839
1840    
1841</div>
1842
1843                
1844                    <div id="method__tick" class="method item protected">
1845    <h3 class="name"><code>_tick</code></h3>
1846
1847    
1848        <div class="args">
1849            <span class="paren">(</span><ul class="args-list inline commas">
1850            
1851                <li class="arg">
1852                    
1853                        <code>evtObj</code>
1854                    
1855                </li>
1856            
1857            </ul><span class="paren">)</span>
1858        </div>
1859    
1860
1861    
1862
1863    
1864
1865    
1866        <span class="flag protected">protected</span>
1867    
1868
1869    
1870
1871    
1872
1873    
1874
1875    
1876
1877    <div class="meta">
1878        
1879            <p>Inherited from
1880            <a href="../classes/DisplayObject.html#method__tick">
1881                DisplayObject
1882            </a>
1883            
1884            but overwritten in
1885            
1886        
1887        
1888        <a href="../files/easeljs_display_DOMElement.js.html#l245"><code>_tick:245</code></a>
1889        
1890        </p>
1891
1892
1893        
1894
1895        
1896    </div>
1897
1898    <div class="description">
1899        
1900    </div>
1901
1902    
1903        <div class="params">
1904            <h4>Parameters:</h4>
1905
1906            <ul class="params-list">
1907            
1908                <li class="param">
1909                    
1910                        <code class="param-name">evtObj</code>
1911                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
1912                    
1913
1914                    
1915
1916                    <div class="param-description">
1917                        <p>An event object that will be dispatched to all tick listeners. This object is reused between dispatchers to reduce construction &amp; GC costs.
1918function.</p>
1919
1920                    </div>
1921
1922                    
1923                </li>
1924            
1925            </ul>
1926        </div>
1927    
1928
1929    
1930
1931    
1932</div>
1933
1934                
1935                    <div id="method__transformBounds" class="method item protected inherited">
1936    <h3 class="name"><code>_transformBounds</code></h3>
1937
1938    
1939        <div class="args">
1940            <span class="paren">(</span><ul class="args-list inline commas">
1941            
1942                <li class="arg">
1943                    
1944                        <code>bounds</code>
1945                    
1946                </li>
1947            
1948                <li class="arg">
1949                    
1950                        <code>matrix</code>
1951                    
1952                </li>
1953            
1954                <li class="arg">
1955                    
1956                        <code>ignoreTransform</code>
1957                    
1958                </li>
1959            
1960            </ul><span class="paren">)</span>
1961        </div>
1962    
1963
1964    
1965        <span class="returns-inline">
1966            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
1967        </span>
1968    
1969
1970    
1971
1972    
1973        <span class="flag protected">protected</span>
1974    
1975
1976    
1977
1978    
1979
1980    
1981
1982    
1983
1984    <div class="meta">
1985        
1986            
1987                <p>Inherited from
1988                <a href="../classes/DisplayObject.html#method__transformBounds">DisplayObject</a>:
1989            
1990        
1991        
1992        <a href="../files/easeljs_display_DisplayObject.js.html#l1319"><code>_transformBounds:1319</code></a>
1993        
1994        </p>
1995
1996
1997        
1998
1999        
2000    </div>
2001
2002    <div class="description">
2003        
2004    </div>
2005
2006    
2007        <div class="params">
2008            <h4>Parameters:</h4>
2009
2010            <ul class="params-list">
2011            
2012                <li class="param">
2013                    
2014                        <code class="param-name">bounds</code>
2015                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
2016                    
2017
2018                    
2019
2020                    <div class="param-description">
2021                        
2022                    </div>
2023
2024                    
2025                </li>
2026            
2027                <li class="param">
2028                    
2029                        <code class="param-name">matrix</code>
2030                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
2031                    
2032
2033                    
2034
2035                    <div class="param-description">
2036                        
2037                    </div>
2038
2039                    
2040                </li>
2041            
2042                <li class="param">
2043                    
2044                        <code class="param-name">ignoreTransform</code>
2045                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2046                    
2047
2048                    
2049
2050                    <div class="param-description">
2051                        
2052                    </div>
2053
2054                    
2055                </li>
2056            
2057            </ul>
2058        </div>
2059    
2060
2061    
2062        <div class="returns">
2063            <h4>Returns:</h4>
2064
2065            <div class="returns-description">
2066                
2067                    
2068                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
2069                    
2070                
2071            </div>
2072        </div>
2073    
2074
2075    
2076</div>
2077
2078                
2079                    <div id="method__updateState" class="method item inherited">
2080    <h3 class="name"><code>_updateState</code></h3>
2081
2082    
2083        <span class="paren">()</span>
2084    
2085
2086    
2087
2088    
2089
2090    
2091
2092    
2093
2094    
2095
2096    
2097
2098    
2099
2100    <div class="meta">
2101        
2102            
2103                <p>Inherited from
2104                <a href="../classes/DisplayObject.html#method__updateState">DisplayObject</a>:
2105            
2106        
2107        
2108        <a href="../files/easeljs_display_DisplayObject.js.html#l1214"><code>_updateState:1214</code></a>
2109        
2110        </p>
2111
2112
2113        
2114
2115        
2116    </div>
2117
2118    <div class="description">
2119        <p>Called before the object gets drawn and is a chance to ensure the display state of the object is correct.
2120Mostly used by <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> and <a href="../classes/BitmapText.html" class="crosslink">BitmapText</a> to
2121correct their internal state and children prior to being drawn.</p>
2122<p>Is manually called via draw in a <a href="../classes/Stage.html" class="crosslink">Stage</a> but is automatically called when
2123present in a <a href="../classes/StageGL.html" class="crosslink">StageGL</a> instance.</p>
2124
2125    </div>
2126
2127    
2128
2129    
2130
2131    
2132</div>
2133
2134                
2135                    <div id="method_addEventListener" class="method item inherited">
2136    <h3 class="name"><code>addEventListener</code></h3>
2137
2138    
2139        <div class="args">
2140            <span class="paren">(</span><ul class="args-list inline commas">
2141            
2142                <li class="arg">
2143                    
2144                        <code>type</code>
2145                    
2146                </li>
2147            
2148                <li class="arg">
2149                    
2150                        <code>listener</code>
2151                    
2152                </li>
2153            
2154                <li class="arg">
2155                    
2156                        <code class="optional">[useCapture]</code>
2157                    
2158                </li>
2159            
2160            </ul><span class="paren">)</span>
2161        </div>
2162    
2163
2164    
2165        <span class="returns-inline">
2166            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/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>
2167        </span>
2168    
2169
2170    
2171
2172    
2173
2174    
2175
2176    
2177
2178    
2179
2180    
2181
2182    <div class="meta">
2183        
2184            
2185                <p>Inherited from
2186                <a href="../classes/EventDispatcher.html#method_addEventListener">EventDispatcher</a>:
2187            
2188        
2189        
2190        <a href="../files/createjs_events_EventDispatcher.js.html#l140"><code>addEventListener:140</code></a>
2191        
2192        </p>
2193
2194
2195        
2196
2197        
2198    </div>
2199
2200    <div class="description">
2201        <p><p>Adds the specified event listener. Note that adding multiple listeners to the same function will result in
2202multiple callbacks getting fired.</p></p>
2203<h4>Example</h4>
2204
2205<pre class="code prettyprint"><code> displayObject.addEventListener("click", handleClick);
2206 function handleClick(event) {
2207    // Click happened.
2208 }</code></pre>
2209
2210    </div>
2211
2212    
2213        <div class="params">
2214            <h4>Parameters:</h4>
2215
2216            <ul class="params-list">
2217            
2218                <li class="param">
2219                    
2220                        <code class="param-name">type</code>
2221                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
2222                    
2223
2224                    
2225
2226                    <div class="param-description">
2227                        <p>The string type of the event.</p>
2228
2229                    </div>
2230
2231                    
2232                </li>
2233            
2234                <li class="param">
2235                    
2236                        <code class="param-name">listener</code>
2237                        <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>
2238                    
2239
2240                    
2241
2242                    <div class="param-description">
2243                        <p>An object with a handleEvent method, or a function that will be called when
2244the event is dispatched.</p>
2245
2246                    </div>
2247
2248                    
2249                </li>
2250            
2251                <li class="param">
2252                    
2253                        <code class="param-name optional">[useCapture]</code>
2254                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2255                        <span class="flag optional" title="This parameter is optional.">optional</span>
2256                    
2257
2258                    
2259
2260                    <div class="param-description">
2261                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
2262
2263                    </div>
2264
2265                    
2266                </li>
2267            
2268            </ul>
2269        </div>
2270    
2271
2272    
2273        <div class="returns">
2274            <h4>Returns:</h4>
2275
2276            <div class="returns-description">
2277                
2278                    
2279                        <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>:
2280                    
2281                    <p>Returns the listener for chaining or assignment.</p>
2282
2283                
2284            </div>
2285        </div>
2286    
2287
2288    
2289</div>
2290
2291                
2292                    <div id="method_cache" class="method item">
2293    <h3 class="name"><code>cache</code></h3>
2294
2295    
2296        <span class="paren">()</span>
2297    
2298
2299    
2300
2301    
2302
2303    
2304
2305    
2306
2307    
2308
2309    
2310
2311    
2312
2313    <div class="meta">
2314        
2315            <p>Inherited from
2316            <a href="../classes/DisplayObject.html#method_cache">
2317                DisplayObject
2318            </a>
2319            
2320            but overwritten in
2321            
2322        
2323        
2324        <a href="../files/easeljs_display_DOMElement.js.html#l155"><code>cache:155</code></a>
2325        
2326        </p>
2327
2328
2329        
2330
2331        
2332    </div>
2333
2334    <div class="description">
2335        <p>Not applicable to DOMElement.</p>
2336
2337    </div>
2338
2339    
2340
2341    
2342
2343    
2344</div>
2345
2346                
2347                    <div id="method_clone" class="method item">
2348    <h3 class="name"><code>clone</code></h3>
2349
2350    
2351        <span class="paren">()</span>
2352    
2353
2354    
2355
2356    
2357
2358    
2359
2360    
2361
2362    
2363
2364    
2365
2366    
2367
2368    <div class="meta">
2369        
2370            <p>Inherited from
2371            <a href="../classes/DisplayObject.html#method_clone">
2372                DisplayObject
2373            </a>
2374            
2375            but overwritten in
2376            
2377        
2378        
2379        <a href="../files/easeljs_display_DOMElement.js.html#l197"><code>clone:197</code></a>
2380        
2381        </p>
2382
2383
2384        
2385
2386        
2387    </div>
2388
2389    <div class="description">
2390        <p>DOMElement cannot be cloned. Throws an error.</p>
2391
2392    </div>
2393
2394    
2395
2396    
2397
2398    
2399</div>
2400
2401                
2402                    <div id="method_dispatchEvent" class="method item inherited">
2403    <h3 class="name"><code>dispatchEvent</code></h3>
2404
2405    
2406        <div class="args">
2407            <span class="paren">(</span><ul class="args-list inline commas">
2408            
2409                <li class="arg">
2410                    
2411                        <code>eventObj</code>
2412                    
2413                </li>
2414            
2415                <li class="arg">
2416                    
2417                        <code class="optional">[bubbles]</code>
2418                    
2419                </li>
2420            
2421                <li class="arg">
2422                    
2423                        <code class="optional">[cancelable]</code>
2424                    
2425                </li>
2426            
2427            </ul><span class="paren">)</span>
2428        </div>
2429    
2430
2431    
2432        <span class="returns-inline">
2433            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2434        </span>
2435    
2436
2437    
2438
2439    
2440
2441    
2442
2443    
2444
2445    
2446
2447    
2448
2449    <div class="meta">
2450        
2451            
2452                <p>Inherited from
2453                <a href="../classes/EventDispatcher.html#method_dispatchEvent">EventDispatcher</a>:
2454            
2455        
2456        
2457        <a href="../files/createjs_events_EventDispatcher.js.html#l285"><code>dispatchEvent:285</code></a>
2458        
2459        </p>
2460
2461
2462        
2463
2464        
2465    </div>
2466
2467    <div class="description">
2468        <p><p>Dispatches the specified event to all listeners.</p></p>
2469<h4>Example</h4>
2470
2471<pre class="code prettyprint"><code> // Use a string event
2472 this.dispatchEvent("complete");
2473
2474 // Use an Event instance
2475 var event = new createjs.Event("progress");
2476 this.dispatchEvent(event);</code></pre>
2477
2478    </div>
2479
2480    
2481        <div class="params">
2482            <h4>Parameters:</h4>
2483
2484            <ul class="params-list">
2485            
2486                <li class="param">
2487                    
2488                        <code class="param-name">eventObj</code>
2489                        <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>
2490                    
2491
2492                    
2493
2494                    <div class="param-description">
2495                        <p>An object with a "type" property, or a string type.
2496While a generic object will work, it is recommended to use a CreateJS Event instance. If a string is used,
2497dispatchEvent will construct an Event instance if necessary with the specified type. This latter approach can
2498be used to avoid event object instantiation for non-bubbling events that may not have any listeners.</p>
2499
2500                    </div>
2501
2502                    
2503                </li>
2504            
2505                <li class="param">
2506                    
2507                        <code class="param-name optional">[bubbles]</code>
2508                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2509                        <span class="flag optional" title="This parameter is optional.">optional</span>
2510                    
2511
2512                    
2513
2514                    <div class="param-description">
2515                        <p>Specifies the <code>bubbles</code> value when a string was passed to eventObj.</p>
2516
2517                    </div>
2518
2519                    
2520                </li>
2521            
2522                <li class="param">
2523                    
2524                        <code class="param-name optional">[cancelable]</code>
2525                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2526                        <span class="flag optional" title="This parameter is optional.">optional</span>
2527                    
2528
2529                    
2530
2531                    <div class="param-description">
2532                        <p>Specifies the <code>cancelable</code> value when a string was passed to eventObj.</p>
2533
2534                    </div>
2535
2536                    
2537                </li>
2538            
2539            </ul>
2540        </div>
2541    
2542
2543    
2544        <div class="returns">
2545            <h4>Returns:</h4>
2546
2547            <div class="returns-description">
2548                
2549                    
2550                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
2551                    
2552                    <p>Returns false if <code>preventDefault()</code> was called on a cancelable event, true otherwise.</p>
2553
2554                
2555            </div>
2556        </div>
2557    
2558
2559    
2560</div>
2561
2562                
2563                    <div id="method_draw" class="method item">
2564    <h3 class="name"><code>draw</code></h3>
2565
2566    
2567        <div class="args">
2568            <span class="paren">(</span><ul class="args-list inline commas">
2569            
2570                <li class="arg">
2571                    
2572                        <code>ctx</code>
2573                    
2574                </li>
2575            
2576                <li class="arg">
2577                    
2578                        <code>ignoreCache</code>
2579                    
2580                </li>
2581            
2582            </ul><span class="paren">)</span>
2583        </div>
2584    
2585
2586    
2587        <span class="returns-inline">
2588            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2589        </span>
2590    
2591
2592    
2593
2594    
2595
2596    
2597
2598    
2599
2600    
2601
2602    
2603
2604    <div class="meta">
2605        
2606            <p>Inherited from
2607            <a href="../classes/DisplayObject.html#method_draw">
2608                DisplayObject
2609            </a>
2610            
2611            but overwritten in
2612            
2613        
2614        
2615        <a href="../files/easeljs_display_DOMElement.js.html#l138"><code>draw:138</code></a>
2616        
2617        </p>
2618
2619
2620        
2621
2622        
2623    </div>
2624
2625    <div class="description">
2626        <p>Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform.
2627Returns true if the draw was handled (useful for overriding functionality).
2628NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
2629
2630    </div>
2631
2632    
2633        <div class="params">
2634            <h4>Parameters:</h4>
2635
2636            <ul class="params-list">
2637            
2638                <li class="param">
2639                    
2640                        <code class="param-name">ctx</code>
2641                        <span class="type">CanvasRenderingContext2D</span>
2642                    
2643
2644                    
2645
2646                    <div class="param-description">
2647                        <p>The canvas 2D context object to draw into.</p>
2648
2649                    </div>
2650
2651                    
2652                </li>
2653            
2654                <li class="param">
2655                    
2656                        <code class="param-name">ignoreCache</code>
2657                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2658                    
2659
2660                    
2661
2662                    <div class="param-description">
2663                        <p>Indicates whether the draw operation should ignore any current cache.
2664For example, used for drawing the cache (to prevent it from simply drawing an existing cache back
2665into itself).</p>
2666
2667                    </div>
2668
2669                    
2670                </li>
2671            
2672            </ul>
2673        </div>
2674    
2675
2676    
2677        <div class="returns">
2678            <h4>Returns:</h4>
2679
2680            <div class="returns-description">
2681                
2682                    
2683                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
2684                    
2685                
2686            </div>
2687        </div>
2688    
2689
2690    
2691</div>
2692
2693                
2694                    <div id="method_getBounds" class="method item inherited">
2695    <h3 class="name"><code>getBounds</code></h3>
2696
2697    
2698        <span class="paren">()</span>
2699    
2700
2701    
2702        <span class="returns-inline">
2703            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
2704        </span>
2705    
2706
2707    
2708
2709    
2710
2711    
2712
2713    
2714
2715    
2716
2717    
2718
2719    <div class="meta">
2720        
2721            
2722                <p>Inherited from
2723                <a href="../classes/DisplayObject.html#method_getBounds">DisplayObject</a>:
2724            
2725        
2726        
2727        <a href="../files/easeljs_display_DisplayObject.js.html#l1089"><code>getBounds:1089</code></a>
2728        
2729        </p>
2730
2731
2732        
2733
2734        
2735    </div>
2736
2737    <div class="description">
2738        <p>Returns a rectangle representing this object&#39;s bounds in its local coordinate system (ie. with no transformation).
2739Objects that have been cached will return the bounds of the cache.</p>
2740<p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use 
2741<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
2742bounds.</p>
2743<table>
2744    <tr><td><b>All</b></td><td>
2745        All display objects support setting bounds manually using setBounds(). Likewise, display objects that
2746        have been cached using cache() will return the bounds of their cache. Manual and cache bounds will override
2747        the automatic calculations listed below.
2748    </td></tr>
2749    <tr><td><b>Bitmap</b></td><td>
2750        Returns the width and height of the sourceRect (if specified) or image, extending from (x=0,y=0).
2751    </td></tr>
2752    <tr><td><b>Sprite</b></td><td>
2753        Returns the bounds of the current frame. May have non-zero x/y if a frame registration point was specified
2754        in the spritesheet data. See also <a href="../classes/SpriteSheet.html#method_getFrameBounds" class="crosslink">getFrameBounds</a>
2755    </td></tr>
2756    <tr><td><b>Container</b></td><td>
2757        Returns the aggregate (combined) bounds of all children that return a non-null value from getBounds().
2758    </td></tr>
2759    <tr><td><b>Shape</b></td><td>
2760        Does not currently support automatic bounds calculations. Use setBounds() to manually define bounds.
2761    </td></tr>
2762    <tr><td><b>Text</b></td><td>
2763        Returns approximate bounds. Horizontal values (x/width) are quite accurate, but vertical values (y/height) are
2764        not, especially when using textBaseline values other than "top".
2765    </td></tr>
2766    <tr><td><b>BitmapText</b></td><td>
2767        Returns approximate bounds. Values will be more accurate if spritesheet frame registration points are close
2768        to (x=0,y=0).
2769    </td></tr>
2770</table>
2771
2772<p>Bounds can be expensive to calculate for some objects (ex. text, or containers with many children), and
2773are recalculated each time you call getBounds(). You can prevent recalculation on static objects by setting the
2774bounds explicitly:</p>
2775<pre class="code prettyprint"><code>var bounds = obj.getBounds();
2776obj.setBounds(bounds.x, bounds.y, bounds.width, bounds.height);
2777// getBounds will now use the set values, instead of recalculating</code></pre>
2778<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
2779values if you need to retain it.</p>
2780<pre class="code prettyprint"><code>var myBounds = obj.getBounds().clone();
2781// OR:
2782myRect.copy(obj.getBounds());</code></pre>
2783
2784    </div>
2785
2786    
2787
2788    
2789        <div class="returns">
2790            <h4>Returns:</h4>
2791
2792            <div class="returns-description">
2793                
2794                    
2795                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
2796                    
2797                    <p>A Rectangle instance representing the bounds, or null if bounds are not available for this
2798object.</p>
2799
2800                
2801            </div>
2802        </div>
2803    
2804
2805    
2806</div>
2807
2808                
2809                    <div id="method_getCacheDataURL" class="method item inherited">
2810    <h3 class="name"><code>getCacheDataURL</code></h3>
2811
2812    
2813        <span class="paren">()</span>
2814    
2815
2816    
2817        <span class="returns-inline">
2818            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
2819        </span>
2820    
2821
2822    
2823
2824    
2825
2826    
2827
2828    
2829
2830    
2831
2832    
2833
2834    <div class="meta">
2835        
2836            
2837                <p>Inherited from
2838                <a href="../classes/DisplayObject.html#method_getCacheDataURL">DisplayObject</a>:
2839            
2840        
2841        
2842        <a href="../files/easeljs_display_DisplayObject.js.html#l875"><code>getCacheDataURL:875</code></a>
2843        
2844        </p>
2845
2846
2847        
2848
2849        
2850    </div>
2851
2852    <div class="description">
2853        <p>Returns a data URL for the cache, or null if this display object is not cached.
2854Only generated if the cache has changed, otherwise returns last result.</p>
2855
2856    </div>
2857
2858    
2859
2860    
2861        <div class="returns">
2862            <h4>Returns:</h4>
2863
2864            <div class="returns-description">
2865                
2866                    
2867                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
2868                    
2869                    <p>The image data url for the cache.</p>
2870
2871                
2872            </div>
2873        </div>
2874    
2875
2876    
2877</div>
2878
2879                
2880                    <div id="method_getConcatenatedDisplayProps" class="method item inherited">
2881    <h3 class="name"><code>getConcatenatedDisplayProps</code></h3>
2882
2883    
2884        <div class="args">
2885            <span class="paren">(</span><ul class="args-list inline commas">
2886            
2887                <li class="arg">
2888                    
2889                        <code class="optional">[props]</code>
2890                    
2891                </li>
2892            
2893            </ul><span class="paren">)</span>
2894        </div>
2895    
2896
2897    
2898        <span class="returns-inline">
2899            <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
2900        </span>
2901    
2902
2903    
2904
2905    
2906
2907    
2908
2909    
2910
2911    
2912
2913    
2914
2915    <div class="meta">
2916        
2917            
2918                <p>Inherited from
2919                <a href="../classes/DisplayObject.html#method_getConcatenatedDisplayProps">DisplayObject</a>:
2920            
2921        
2922        
2923        <a href="../files/easeljs_display_DisplayObject.js.html#l1021"><code>getConcatenatedDisplayProps:1021</code></a>
2924        
2925        </p>
2926
2927
2928        
2929
2930        
2931    </div>
2932
2933    <div class="description">
2934        <p>Generates a DisplayProps object representing the combined display properties of the  object and all of its
2935parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>).</p>
2936
2937    </div>
2938
2939    
2940        <div class="params">
2941            <h4>Parameters:</h4>
2942
2943            <ul class="params-list">
2944            
2945                <li class="param">
2946                    
2947                        <code class="param-name optional">[props]</code>
2948                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
2949                        <span class="flag optional" title="This parameter is optional.">optional</span>
2950                    
2951
2952                    
2953
2954                    <div class="param-description">
2955                        <p>A <a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a> object to populate with the calculated values.
2956If null, a new DisplayProps object is returned.</p>
2957
2958                    </div>
2959
2960                    
2961                </li>
2962            
2963            </ul>
2964        </div>
2965    
2966
2967    
2968        <div class="returns">
2969            <h4>Returns:</h4>
2970
2971            <div class="returns-description">
2972                
2973                    
2974                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
2975                    
2976                    <p>The combined display properties.</p>
2977
2978                
2979            </div>
2980        </div>
2981    
2982
2983    
2984</div>
2985
2986                
2987                    <div id="method_getConcatenatedMatrix" class="method item inherited">
2988    <h3 class="name"><code>getConcatenatedMatrix</code></h3>
2989
2990    
2991        <div class="args">
2992            <span class="paren">(</span><ul class="args-list inline commas">
2993            
2994                <li class="arg">
2995                    
2996                        <code class="optional">[matrix]</code>
2997                    
2998                </li>
2999            
3000            </ul><span class="paren">)</span>
3001        </div>
3002    
3003
3004    
3005        <span class="returns-inline">
3006            <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3007        </span>
3008    
3009
3010    
3011
3012    
3013
3014    
3015
3016    
3017
3018    
3019
3020    
3021
3022    <div class="meta">
3023        
3024            
3025                <p>Inherited from
3026                <a href="../classes/DisplayObject.html#method_getConcatenatedMatrix">DisplayObject</a>:
3027            
3028        
3029        
3030        <a href="../files/easeljs_display_DisplayObject.js.html#l1003"><code>getConcatenatedMatrix:1003</code></a>
3031        
3032        </p>
3033
3034
3035        
3036
3037        
3038    </div>
3039
3040    <div class="description">
3041        <p>Generates a Matrix2D object representing the combined transform of the display object and all of its
3042parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>). This can
3043be used to transform positions between coordinate spaces, such as with <a href="../classes/DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a>
3044and <a href="../classes/DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>.</p>
3045
3046    </div>
3047
3048    
3049        <div class="params">
3050            <h4>Parameters:</h4>
3051
3052            <ul class="params-list">
3053            
3054                <li class="param">
3055                    
3056                        <code class="param-name optional">[matrix]</code>
3057                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3058                        <span class="flag optional" title="This parameter is optional.">optional</span>
3059                    
3060
3061                    
3062
3063                    <div class="param-description">
3064                        <p>A <a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a> object to populate with the calculated values.
3065If null, a new Matrix2D object is returned.</p>
3066
3067                    </div>
3068
3069                    
3070                </li>
3071            
3072            </ul>
3073        </div>
3074    
3075
3076    
3077        <div class="returns">
3078            <h4>Returns:</h4>
3079
3080            <div class="returns-description">
3081                
3082                    
3083                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
3084                    
3085                    <p>The combined matrix.</p>
3086
3087                
3088            </div>
3089        </div>
3090    
3091
3092    
3093</div>
3094
3095                
3096                    <div id="method_getMatrix" class="method item inherited">
3097    <h3 class="name"><code>getMatrix</code></h3>
3098
3099    
3100        <div class="args">
3101            <span class="paren">(</span><ul class="args-list inline commas">
3102            
3103                <li class="arg">
3104                    
3105                        <code>matrix</code>
3106                    
3107                </li>
3108            
3109            </ul><span class="paren">)</span>
3110        </div>
3111    
3112
3113    
3114        <span class="returns-inline">
3115            <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3116        </span>
3117    
3118
3119    
3120
3121    
3122
3123    
3124
3125    
3126
3127    
3128
3129    
3130
3131    <div class="meta">
3132        
3133            
3134                <p>Inherited from
3135                <a href="../classes/DisplayObject.html#method_getMatrix">DisplayObject</a>:
3136            
3137        
3138        
3139        <a href="../files/easeljs_display_DisplayObject.js.html#l991"><code>getMatrix:991</code></a>
3140        
3141        </p>
3142
3143
3144        
3145
3146        
3147    </div>
3148
3149    <div class="description">
3150        <p>Returns a matrix based on this object&#39;s current transform.</p>
3151
3152    </div>
3153
3154    
3155        <div class="params">
3156            <h4>Parameters:</h4>
3157
3158            <ul class="params-list">
3159            
3160                <li class="param">
3161                    
3162                        <code class="param-name">matrix</code>
3163                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3164                    
3165
3166                    
3167
3168                    <div class="param-description">
3169                        <p>Optional. A Matrix2D object to populate with the calculated values. If null, a new
3170Matrix object is returned.</p>
3171
3172                    </div>
3173
3174                    
3175                </li>
3176            
3177            </ul>
3178        </div>
3179    
3180
3181    
3182        <div class="returns">
3183            <h4>Returns:</h4>
3184
3185            <div class="returns-description">
3186                
3187                    
3188                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
3189                    
3190                    <p>A matrix representing this display object&#39;s transform.</p>
3191
3192                
3193            </div>
3194        </div>
3195    
3196
3197    
3198</div>
3199
3200                
3201                    <div id="method_getTransformedBounds" class="method item inherited">
3202    <h3 class="name"><code>getTransformedBounds</code></h3>
3203
3204    
3205        <span class="paren">()</span>
3206    
3207
3208    
3209        <span class="returns-inline">
3210            <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
3211        </span>
3212    
3213
3214    
3215
3216    
3217
3218    
3219
3220    
3221
3222    
3223
3224    
3225
3226    <div class="meta">
3227        
3228            
3229                <p>Inherited from
3230                <a href="../classes/DisplayObject.html#method_getTransformedBounds">DisplayObject</a>:
3231            
3232        
3233        
3234        <a href="../files/easeljs_display_DisplayObject.js.html#l1155"><code>getTransformedBounds:1155</code></a>
3235        
3236        </p>
3237
3238
3239        
3240
3241        
3242    </div>
3243
3244    <div class="description">
3245        <p>Returns a rectangle representing this object&#39;s bounds in its parent&#39;s coordinate system (ie. with transformations applied).
3246Objects that have been cached will return the transformed bounds of the cache.</p>
3247<p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use 
3248<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
3249bounds.</p>
3250<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
3251values if you need to retain it.</p>
3252<p>Container instances calculate aggregate bounds for all children that return bounds via getBounds.</p>
3253
3254    </div>
3255
3256    
3257
3258    
3259        <div class="returns">
3260            <h4>Returns:</h4>
3261
3262            <div class="returns-description">
3263                
3264                    
3265                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
3266                    
3267                    <p>A Rectangle instance representing the bounds, or null if bounds are not available for this object.</p>
3268
3269                
3270            </div>
3271        </div>
3272    
3273
3274    
3275</div>
3276
3277                
3278                    <div id="method_globalToLocal" class="method item">
3279    <h3 class="name"><code>globalToLocal</code></h3>
3280
3281    
3282        <span class="paren">()</span>
3283    
3284
3285    
3286
3287    
3288
3289    
3290
3291    
3292
3293    
3294
3295    
3296
3297    
3298
3299    <div class="meta">
3300        
3301            <p>Inherited from
3302            <a href="../classes/DisplayObject.html#method_globalToLocal">
3303                DisplayObject
3304            </a>
3305            
3306            but overwritten in
3307            
3308        
3309        
3310        <a href="../files/easeljs_display_DOMElement.js.html#l185"><code>globalToLocal:185</code></a>
3311        
3312        </p>
3313
3314
3315        
3316
3317        
3318    </div>
3319
3320    <div class="description">
3321        <p>Not applicable to DOMElement.</p>
3322
3323    </div>
3324
3325    
3326
3327    
3328
3329    
3330</div>
3331
3332                
3333                    <div id="method_hasEventListener" class="method item inherited">
3334    <h3 class="name"><code>hasEventListener</code></h3>
3335
3336    
3337        <div class="args">
3338            <span class="paren">(</span><ul class="args-list inline commas">
3339            
3340                <li class="arg">
3341                    
3342                        <code>type</code>
3343                    
3344                </li>
3345            
3346            </ul><span class="paren">)</span>
3347        </div>
3348    
3349
3350    
3351        <span class="returns-inline">
3352            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3353        </span>
3354    
3355
3356    
3357
3358    
3359
3360    
3361
3362    
3363
3364    
3365
3366    
3367
3368    <div class="meta">
3369        
3370            
3371                <p>Inherited from
3372                <a href="../classes/EventDispatcher.html#method_hasEventListener">EventDispatcher</a>:
3373            
3374        
3375        
3376        <a href="../files/createjs_events_EventDispatcher.js.html#l339"><code>hasEventListener:339</code></a>
3377        
3378        </p>
3379
3380
3381        
3382
3383        
3384    </div>
3385
3386    <div class="description">
3387        <p>Indicates whether there is at least one listener for the specified event type.</p>
3388
3389    </div>
3390
3391    
3392        <div class="params">
3393            <h4>Parameters:</h4>
3394
3395            <ul class="params-list">
3396            
3397                <li class="param">
3398                    
3399                        <code class="param-name">type</code>
3400                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
3401                    
3402
3403                    
3404
3405                    <div class="param-description">
3406                        <p>The string type of the event.</p>
3407
3408                    </div>
3409
3410                    
3411                </li>
3412            
3413            </ul>
3414        </div>
3415    
3416
3417    
3418        <div class="returns">
3419            <h4>Returns:</h4>
3420
3421            <div class="returns-description">
3422                
3423                    
3424                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
3425                    
3426                    <p>Returns true if there is at least one listener for the specified event.</p>
3427
3428                
3429            </div>
3430        </div>
3431    
3432
3433    
3434</div>
3435
3436                
3437                    <div id="method_hitTest" class="method item">
3438    <h3 class="name"><code>hitTest</code></h3>
3439
3440    
3441        <span class="paren">()</span>
3442    
3443
3444    
3445
3446    
3447
3448    
3449
3450    
3451
3452    
3453
3454    
3455
3456    
3457
3458    <div class="meta">
3459        
3460            <p>Inherited from
3461            <a href="../classes/DisplayObject.html#method_hitTest">
3462                DisplayObject
3463            </a>
3464            
3465            but overwritten in
3466            
3467        
3468        
3469        <a href="../files/easeljs_display_DOMElement.js.html#l173"><code>hitTest:173</code></a>
3470        
3471        </p>
3472
3473
3474        
3475
3476        
3477    </div>
3478
3479    <div class="description">
3480        <p>Not applicable to DOMElement.</p>
3481
3482    </div>
3483
3484    
3485
3486    
3487
3488    
3489</div>
3490
3491                
3492                    <div id="method_isVisible" class="method item">
3493    <h3 class="name"><code>isVisible</code></h3>
3494
3495    
3496        <span class="paren">()</span>
3497    
3498
3499    
3500        <span class="returns-inline">
3501            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3502        </span>
3503    
3504
3505    
3506
3507    
3508
3509    
3510
3511    
3512
3513    
3514
3515    
3516
3517    <div class="meta">
3518        
3519            <p>Inherited from
3520            <a href="../classes/DisplayObject.html#method_isVisible">
3521                DisplayObject
3522            </a>
3523            
3524            but overwritten in
3525            
3526        
3527        
3528        <a href="../files/easeljs_display_DOMElement.js.html#l127"><code>isVisible:127</code></a>
3529        
3530        </p>
3531
3532
3533        
3534
3535        
3536    </div>
3537
3538    <div class="description">
3539        <p>Returns true or false indicating whether the display object would be visible if drawn to a canvas.
3540This does not account for whether it would be visible within the boundaries of the stage.
3541NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
3542
3543    </div>
3544
3545    
3546
3547    
3548        <div class="returns">
3549            <h4>Returns:</h4>
3550
3551            <div class="returns-description">
3552                
3553                    
3554                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
3555                    
3556                    <p>Boolean indicating whether the display object would be visible if drawn to a canvas</p>
3557
3558                
3559            </div>
3560        </div>
3561    
3562
3563    
3564</div>
3565
3566                
3567                    <div id="method_localToGlobal" class="method item">
3568    <h3 class="name"><code>localToGlobal</code></h3>
3569
3570    
3571        <span class="paren">()</span>
3572    
3573
3574    
3575
3576    
3577
3578    
3579
3580    
3581
3582    
3583
3584    
3585
3586    
3587
3588    <div class="meta">
3589        
3590            <p>Inherited from
3591            <a href="../classes/DisplayObject.html#method_localToGlobal">
3592                DisplayObject
3593            </a>
3594            
3595            but overwritten in
3596            
3597        
3598        
3599        <a href="../files/easeljs_display_DOMElement.js.html#l179"><code>localToGlobal:179</code></a>
3600        
3601        </p>
3602
3603
3604        
3605
3606        
3607    </div>
3608
3609    <div class="description">
3610        <p>Not applicable to DOMElement.</p>
3611
3612    </div>
3613
3614    
3615
3616    
3617
3618    
3619</div>
3620
3621                
3622                    <div id="method_localToLocal" class="method item">
3623    <h3 class="name"><code>localToLocal</code></h3>
3624
3625    
3626        <span class="paren">()</span>
3627    
3628
3629    
3630
3631    
3632
3633    
3634
3635    
3636
3637    
3638
3639    
3640
3641    
3642
3643    <div class="meta">
3644        
3645            <p>Inherited from
3646            <a href="../classes/DisplayObject.html#method_localToLocal">
3647                DisplayObject
3648            </a>
3649            
3650            but overwritten in
3651            
3652        
3653        
3654        <a href="../files/easeljs_display_DOMElement.js.html#l191"><code>localToLocal:191</code></a>
3655        
3656        </p>
3657
3658
3659        
3660
3661        
3662    </div>
3663
3664    <div class="description">
3665        <p>Not applicable to DOMElement.</p>
3666
3667    </div>
3668
3669    
3670
3671    
3672
3673    
3674</div>
3675
3676                
3677                    <div id="method_off" class="method item inherited">
3678    <h3 class="name"><code>off</code></h3>
3679
3680    
3681        <div class="args">
3682            <span class="paren">(</span><ul class="args-list inline commas">
3683            
3684                <li class="arg">
3685                    
3686                        <code>type</code>
3687                    
3688                </li>
3689            
3690                <li class="arg">
3691                    
3692                        <code>listener</code>
3693                    
3694                </li>
3695            
3696                <li class="arg">
3697                    
3698                        <code class="optional">[useCapture]</code>
3699                    
3700                </li>
3701            
3702            </ul><span class="paren">)</span>
3703        </div>
3704    
3705
3706    
3707
3708    
3709
3710    
3711
3712    
3713
3714    
3715
3716    
3717
3718    
3719
3720    <div class="meta">
3721        
3722            
3723                <p>Inherited from
3724                <a href="../classes/EventDispatcher.html#method_off">EventDispatcher</a>:
3725            
3726        
3727        
3728        <a href="../files/createjs_events_EventDispatcher.js.html#l249"><code>off:249</code></a>
3729        
3730        </p>
3731
3732
3733        
3734
3735        
3736    </div>
3737
3738    <div class="description">
3739        <p>A shortcut to the removeEventListener method, with the same parameters and return value. This is a companion to the
3740.on method.</p>
3741<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 
3742<a href="../classes/EventDispatcher.html#method_on" class="crosslink">on</a> for an example.</p>
3743
3744    </div>
3745
3746    
3747        <div class="params">
3748            <h4>Parameters:</h4>
3749
3750            <ul class="params-list">
3751            
3752                <li class="param">
3753                    
3754                        <code class="param-name">type</code>
3755                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
3756                    
3757
3758                    
3759
3760                    <div class="param-description">
3761                        <p>The string type of the event.</p>
3762
3763                    </div>
3764
3765                    
3766                </li>
3767            
3768                <li class="param">
3769                    
3770                        <code class="param-name">listener</code>
3771                        <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>
3772                    
3773
3774                    
3775
3776                    <div class="param-description">
3777                        <p>The listener function or object.</p>
3778
3779                    </div>
3780
3781                    
3782                </li>
3783            
3784                <li class="param">
3785                    
3786                        <code class="param-name optional">[useCapture]</code>
3787                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3788                        <span class="flag optional" title="This parameter is optional.">optional</span>
3789                    
3790
3791                    
3792
3793                    <div class="param-description">
3794                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
3795
3796                    </div>
3797
3798                    
3799                </li>
3800            
3801            </ul>
3802        </div>
3803    
3804
3805    
3806
3807    
3808</div>
3809
3810                
3811                    <div id="method_on" class="method item inherited">
3812    <h3 class="name"><code>on</code></h3>
3813
3814    
3815        <div class="args">
3816            <span class="paren">(</span><ul class="args-list inline commas">
3817            
3818                <li class="arg">
3819                    
3820                        <code>type</code>
3821                    
3822                </li>
3823            
3824                <li class="arg">
3825                    
3826                        <code>listener</code>
3827                    
3828                </li>
3829            
3830                <li class="arg">
3831                    
3832                        <code class="optional">[scope]</code>
3833                    
3834                </li>
3835            
3836                <li class="arg">
3837                    
3838                        <code class="optional">[once=false]</code>
3839                    
3840                </li>
3841            
3842                <li class="arg">
3843                    
3844                        <code class="optional">[data]</code>
3845                    
3846                </li>
3847            
3848                <li class="arg">
3849                    
3850                        <code class="optional">[useCapture=false]</code>
3851                    
3852                </li>
3853            
3854            </ul><span class="paren">)</span>
3855        </div>
3856    
3857
3858    
3859        <span class="returns-inline">
3860            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
3861        </span>
3862    
3863
3864    
3865
3866    
3867
3868    
3869
3870    
3871
3872    
3873
3874    
3875
3876    <div class="meta">
3877        
3878            
3879                <p>Inherited from
3880                <a href="../classes/EventDispatcher.html#method_on">EventDispatcher</a>:
3881            
3882        
3883        
3884        <a href="../files/createjs_events_EventDispatcher.js.html#l173"><code>on:173</code></a>
3885        
3886        </p>
3887
3888
3889        
3890
3891        
3892    </div>
3893
3894    <div class="description">
3895        <p><p>A shortcut method for using addEventListener that makes it easier to specify an execution scope, have a listener
3896only run once, associate arbitrary data with the listener, and remove the listener.</p></p>
3897<p><p>This method works by creating an anonymous wrapper function and subscribing it with addEventListener.
3898The wrapper function is returned for use with <code>removeEventListener</code> (or <code>off</code>).</p></p>
3899<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
3900<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
3901to <code>on</code> with the same params will create multiple listeners.</p></p>
3902<h4>Example</h4>
3903
3904<pre class="code prettyprint"><code>    var listener = myBtn.on("click", handleClick, null, false, {count:3});
3905    function handleClick(evt, data) {
3906        data.count -= 1;
3907        console.log(this == myBtn); // true - scope defaults to the dispatcher
3908        if (data.count == 0) {
3909            alert("clicked 3 times!");
3910            myBtn.off("click", listener);
3911            // alternately: evt.remove();
3912        }
3913    }</code></pre>
3914
3915    </div>
3916
3917    
3918        <div class="params">
3919            <h4>Parameters:</h4>
3920
3921            <ul class="params-list">
3922            
3923                <li class="param">
3924                    
3925                        <code class="param-name">type</code>
3926                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
3927                    
3928
3929                    
3930
3931                    <div class="param-description">
3932                        <p>The string type of the event.</p>
3933
3934                    </div>
3935
3936                    
3937                </li>
3938            
3939                <li class="param">
3940                    
3941                        <code class="param-name">listener</code>
3942                        <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>
3943                    
3944
3945                    
3946
3947                    <div class="param-description">
3948                        <p>An object with a handleEvent method, or a function that will be called when
3949the event is dispatched.</p>
3950
3951                    </div>
3952
3953                    
3954                </li>
3955            
3956                <li class="param">
3957                    
3958                        <code class="param-name optional">[scope]</code>
3959                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
3960                        <span class="flag optional" title="This parameter is optional.">optional</span>
3961                    
3962
3963                    
3964
3965                    <div class="param-description">
3966                        <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>
3967
3968                    </div>
3969
3970                    
3971                </li>
3972            
3973                <li class="param">
3974                    
3975                        <code class="param-name optional">[once=false]</code>
3976                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3977                        <span class="flag optional" title="This parameter is optional.">optional</span>
3978                    
3979
3980                    
3981
3982                    <div class="param-description">
3983                        <p>If true, the listener will remove itself after the first time it is triggered.</p>
3984
3985                    </div>
3986
3987                    
3988                </li>
3989            
3990                <li class="param">
3991                    
3992                        <code class="param-name optional">[data]</code>
3993                        <span class="type"></span>
3994                        <span class="flag optional" title="This parameter is optional.">optional</span>
3995                    
3996
3997                    
3998
3999                    <div class="param-description">
4000                        <p>Arbitrary data that will be included as the second parameter when the listener is called.</p>
4001
4002                    </div>
4003
4004                    
4005                </li>
4006            
4007                <li class="param">
4008                    
4009                        <code class="param-name optional">[useCapture=false]</code>
4010                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
4011                        <span class="flag optional" title="This parameter is optional.">optional</span>
4012                    
4013
4014                    
4015
4016                    <div class="param-description">
4017                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
4018
4019                    </div>
4020
4021                    
4022                </li>
4023            
4024            </ul>
4025        </div>
4026    
4027
4028    
4029        <div class="returns">
4030            <h4>Returns:</h4>
4031
4032            <div class="returns-description">
4033                
4034                    
4035                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>:
4036                    
4037                    <p>Returns the anonymous function that was created and assigned as the listener. This is needed to remove the listener later using .removeEventListener.</p>
4038
4039                
4040            </div>
4041        </div>
4042    
4043
4044    
4045</div>
4046
4047                
4048                    <div id="method_removeAllEventListeners" class="method item inherited">
4049    <h3 class="name"><code>removeAllEventListeners</code></h3>
4050
4051    
4052        <div class="args">
4053            <span class="paren">(</span><ul class="args-list inline commas">
4054            
4055                <li class="arg">
4056                    
4057                        <code class="optional">[type]</code>
4058                    
4059                </li>
4060            
4061            </ul><span class="paren">)</span>
4062        </div>
4063    
4064
4065    
4066
4067    
4068
4069    
4070
4071    
4072
4073    
4074
4075    
4076
4077    
4078
4079    <div class="meta">
4080        
4081            
4082                <p>Inherited from
4083                <a href="../classes/EventDispatcher.html#method_removeAllEventListeners">EventDispatcher</a>:
4084            
4085        
4086        
4087        <a href="../files/createjs_events_EventDispatcher.js.html#l263"><code>removeAllEventListeners:263</code></a>
4088        
4089        </p>
4090
4091
4092        
4093
4094        
4095    </div>
4096
4097    <div class="description">
4098        <p><p>Removes all listeners for the specified type, or all listeners of all types.</p></p>
4099<h4>Example</h4>
4100
4101<pre class="code prettyprint"><code> // Remove all listeners
4102 displayObject.removeAllEventListeners();
4103
4104 // Remove all click listeners
4105 displayObject.removeAllEventListeners("click");</code></pre>
4106
4107    </div>
4108
4109    
4110        <div class="params">
4111            <h4>Parameters:</h4>
4112
4113            <ul class="params-list">
4114            
4115                <li class="param">
4116                    
4117                        <code class="param-name optional">[type]</code>
4118                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
4119                        <span class="flag optional" title="This parameter is optional.">optional</span>
4120                    
4121
4122                    
4123
4124                    <div class="param-description">
4125                        <p>The string type of the event. If omitted, all listeners for all types will be removed.</p>
4126
4127                    </div>
4128
4129                    
4130                </li>
4131            
4132            </ul>
4133        </div>
4134    
4135
4136    
4137
4138    
4139</div>
4140
4141                
4142                    <div id="method_removeEventListener" class="method item inherited">
4143    <h3 class="name"><code>removeEventListener</code></h3>
4144
4145    
4146        <div class="args">
4147            <span class="paren">(</span><ul class="args-list inline commas">
4148            
4149                <li class="arg">
4150                    
4151                        <code>type</code>
4152                    
4153                </li>
4154            
4155                <li class="arg">
4156                    
4157                        <code>listener</code>
4158                    
4159                </li>
4160            
4161                <li class="arg">
4162                    
4163                        <code class="optional">[useCapture]</code>
4164                    
4165                </li>
4166            
4167            </ul><span class="paren">)</span>
4168        </div>
4169    
4170
4171    
4172
4173    
4174
4175    
4176
4177    
4178
4179    
4180
4181    
4182
4183    
4184
4185    <div class="meta">
4186        
4187            
4188                <p>Inherited from
4189                <a href="../classes/EventDispatcher.html#method_removeEventListener">EventDispatcher</a>:
4190            
4191        
4192        
4193        <a href="../files/createjs_events_EventDispatcher.js.html#l219"><code>removeEventListener:219</code></a>
4194        
4195        </p>
4196
4197
4198        
4199
4200        
4201    </div>
4202
4203    <div class="description">
4204        <p><p>Removes the specified event listener.</p></p>
4205<p><p><b>Important Note:</b> that you must pass the exact function reference used when the event was added. If a proxy
4206function, or function closure is used as the callback, the proxy/closure reference must be used - a new proxy or
4207closure will not work.</p></p>
4208<h4>Example</h4>
4209
4210<pre class="code prettyprint"><code> displayObject.removeEventListener("click", handleClick);</code></pre>
4211
4212    </div>
4213
4214    
4215        <div class="params">
4216            <h4>Parameters:</h4>
4217
4218            <ul class="params-list">
4219            
4220                <li class="param">
4221                    
4222                        <code class="param-name">type</code>
4223                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
4224                    
4225
4226                    
4227
4228                    <div class="param-description">
4229                        <p>The string type of the event.</p>
4230
4231                    </div>
4232
4233                    
4234                </li>
4235            
4236                <li class="param">
4237                    
4238                        <code class="param-name">listener</code>
4239                        <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>
4240                    
4241
4242                    
4243
4244                    <div class="param-description">
4245                        <p>The listener function or object.</p>
4246
4247                    </div>
4248
4249                    
4250                </li>
4251            
4252                <li class="param">
4253                    
4254                        <code class="param-name optional">[useCapture]</code>
4255                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
4256                        <span class="flag optional" title="This parameter is optional.">optional</span>
4257                    
4258
4259                    
4260
4261                    <div class="param-description">
4262                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
4263
4264                    </div>
4265
4266                    
4267                </li>
4268            
4269            </ul>
4270        </div>
4271    
4272
4273    
4274
4275    
4276</div>
4277
4278                
4279                    <div id="method_set" class="method item inherited">
4280    <h3 class="name"><code>set</code></h3>
4281
4282    
4283        <div class="args">
4284            <span class="paren">(</span><ul class="args-list inline commas">
4285            
4286                <li class="arg">
4287                    
4288                        <code>props</code>
4289                    
4290                </li>
4291            
4292            </ul><span class="paren">)</span>
4293        </div>
4294    
4295
4296    
4297        <span class="returns-inline">
4298            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
4299        </span>
4300    
4301
4302    
4303
4304    
4305
4306    
4307
4308    
4309
4310    
4311        <span class="flag chainable">chainable</span>
4312    
4313
4314    
4315
4316    <div class="meta">
4317        
4318            
4319                <p>Inherited from
4320                <a href="../classes/DisplayObject.html#method_set">DisplayObject</a>:
4321            
4322        
4323        
4324        <a href="../files/easeljs_display_DisplayObject.js.html#l1071"><code>set:1071</code></a>
4325        
4326        </p>
4327
4328
4329        
4330
4331        
4332    </div>
4333
4334    <div class="description">
4335        <p>Provides a chainable shortcut method for setting a number of properties on the instance.</p>
4336<h4>Example</h4>
4337
4338<pre class="code prettyprint"><code> var myGraphics = new createjs.Graphics().beginFill("#ff0000").drawCircle(0, 0, 25);
4339 var shape = stage.addChild(new Shape()).set({graphics:myGraphics, x:100, y:100, alpha:0.5});</code></pre>
4340
4341    </div>
4342
4343    
4344        <div class="params">
4345            <h4>Parameters:</h4>
4346
4347            <ul class="params-list">
4348            
4349                <li class="param">
4350                    
4351                        <code class="param-name">props</code>
4352                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
4353                    
4354
4355                    
4356
4357                    <div class="param-description">
4358                        <p>A generic object containing properties to copy to the DisplayObject instance.</p>
4359
4360                    </div>
4361
4362                    
4363                </li>
4364            
4365            </ul>
4366        </div>
4367    
4368
4369    
4370        <div class="returns">
4371            <h4>Returns:</h4>
4372
4373            <div class="returns-description">
4374                
4375                    
4376                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
4377                    
4378                    <p>Returns the instance the method is called on (useful for chaining calls.)</p>
4379
4380                
4381            </div>
4382        </div>
4383    
4384
4385    
4386</div>
4387
4388                
4389                    <div id="method_setBounds" class="method item inherited">
4390    <h3 class="name"><code>setBounds</code></h3>
4391
4392    
4393        <div class="args">
4394            <span class="paren">(</span><ul class="args-list inline commas">
4395            
4396                <li class="arg">
4397                    
4398                        <code>x</code>
4399                    
4400                </li>
4401            
4402                <li class="arg">
4403                    
4404                        <code>y</code>
4405                    
4406                </li>
4407            
4408                <li class="arg">
4409                    
4410                        <code>width</code>
4411                    
4412                </li>
4413            
4414                <li class="arg">
4415                    
4416                        <code>height</code>
4417                    
4418                </li>
4419            
4420            </ul><span class="paren">)</span>
4421        </div>
4422    
4423
4424    
4425
4426    
4427
4428    
4429
4430    
4431
4432    
4433
4434    
4435
4436    
4437
4438    <div class="meta">
4439        
4440            
4441                <p>Inherited from
4442                <a href="../classes/DisplayObject.html#method_setBounds">DisplayObject</a>:
4443            
4444        
4445        
4446        <a href="../files/easeljs_display_DisplayObject.js.html#l1174"><code>setBounds:1174</code></a>
4447        
4448        </p>
4449
4450
4451        
4452
4453        
4454    </div>
4455
4456    <div class="description">
4457        <p>Allows you to manually specify the bounds of an object that either cannot calculate their own bounds (ex. Shape &amp;
4458Text) for future reference, or so the object can be included in Container bounds. Manually set bounds will always
4459override calculated bounds.</p>
4460<p>The bounds should be specified in the object&#39;s local (untransformed) coordinates. For example, a Shape instance
4461with a 25px radius circle centered at 0,0 would have bounds of (-25, -25, 50, 50).</p>
4462
4463    </div>
4464
4465    
4466        <div class="params">
4467            <h4>Parameters:</h4>
4468
4469            <ul class="params-list">
4470            
4471                <li class="param">
4472                    
4473                        <code class="param-name">x</code>
4474                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4475                    
4476
4477                    
4478
4479                    <div class="param-description">
4480                        <p>The x origin of the bounds. Pass null to remove the manual bounds.</p>
4481
4482                    </div>
4483
4484                    
4485                </li>
4486            
4487                <li class="param">
4488                    
4489                        <code class="param-name">y</code>
4490                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4491                    
4492
4493                    
4494
4495                    <div class="param-description">
4496                        <p>The y origin of the bounds.</p>
4497
4498                    </div>
4499
4500                    
4501                </li>
4502            
4503                <li class="param">
4504                    
4505                        <code class="param-name">width</code>
4506                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4507                    
4508
4509                    
4510
4511                    <div class="param-description">
4512                        <p>The width of the bounds.</p>
4513
4514                    </div>
4515
4516                    
4517                </li>
4518            
4519                <li class="param">
4520                    
4521                        <code class="param-name">height</code>
4522                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4523                    
4524
4525                    
4526
4527                    <div class="param-description">
4528                        <p>The height of the bounds.</p>
4529
4530                    </div>
4531
4532                    
4533                </li>
4534            
4535            </ul>
4536        </div>
4537    
4538
4539    
4540
4541    
4542</div>
4543
4544                
4545                    <div id="method_setTransform" class="method item inherited">
4546    <h3 class="name"><code>setTransform</code></h3>
4547
4548    
4549        <div class="args">
4550            <span class="paren">(</span><ul class="args-list inline commas">
4551            
4552                <li class="arg">
4553                    
4554                        <code class="optional">[x=0]</code>
4555                    
4556                </li>
4557            
4558                <li class="arg">
4559                    
4560                        <code class="optional">[y=0]</code>
4561                    
4562                </li>
4563            
4564                <li class="arg">
4565                    
4566                        <code class="optional">[scaleX=1]</code>
4567                    
4568                </li>
4569            
4570                <li class="arg">
4571                    
4572                        <code class="optional">[scaleY=1]</code>
4573                    
4574                </li>
4575            
4576                <li class="arg">
4577                    
4578                        <code class="optional">[rotation=0]</code>
4579                    
4580                </li>
4581            
4582                <li class="arg">
4583                    
4584                        <code class="optional">[skewX=0]</code>
4585                    
4586                </li>
4587            
4588                <li class="arg">
4589                    
4590                        <code class="optional">[skewY=0]</code>
4591                    
4592                </li>
4593            
4594                <li class="arg">
4595                    
4596                        <code class="optional">[regX=0]</code>
4597                    
4598                </li>
4599            
4600                <li class="arg">
4601                    
4602                        <code class="optional">[regY=0]</code>
4603                    
4604                </li>
4605            
4606            </ul><span class="paren">)</span>
4607        </div>
4608    
4609
4610    
4611        <span class="returns-inline">
4612            <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
4613        </span>
4614    
4615
4616    
4617
4618    
4619
4620    
4621
4622    
4623
4624    
4625        <span class="flag chainable">chainable</span>
4626    
4627
4628    
4629
4630    <div class="meta">
4631        
4632            
4633                <p>Inherited from
4634                <a href="../classes/DisplayObject.html#method_setTransform">DisplayObject</a>:
4635            
4636        
4637        
4638        <a href="../files/easeljs_display_DisplayObject.js.html#l957"><code>setTransform:957</code></a>
4639        
4640        </p>
4641
4642
4643        
4644
4645        
4646    </div>
4647
4648    <div class="description">
4649        <p>Shortcut method to quickly set the transform properties on the display object. All parameters are optional.
4650Omitted parameters will have the default value set.</p>
4651<h4>Example</h4>
4652
4653<pre class="code prettyprint"><code> displayObject.setTransform(100, 100, 2, 2);</code></pre>
4654
4655    </div>
4656
4657    
4658        <div class="params">
4659            <h4>Parameters:</h4>
4660
4661            <ul class="params-list">
4662            
4663                <li class="param">
4664                    
4665                        <code class="param-name optional">[x=0]</code>
4666                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4667                        <span class="flag optional" title="This parameter is optional.">optional</span>
4668                    
4669
4670                    
4671
4672                    <div class="param-description">
4673                        <p>The horizontal translation (x position) in pixels</p>
4674
4675                    </div>
4676
4677                    
4678                </li>
4679            
4680                <li class="param">
4681                    
4682                        <code class="param-name optional">[y=0]</code>
4683                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4684                        <span class="flag optional" title="This parameter is optional.">optional</span>
4685                    
4686
4687                    
4688
4689                    <div class="param-description">
4690                        <p>The vertical translation (y position) in pixels</p>
4691
4692                    </div>
4693
4694                    
4695                </li>
4696            
4697                <li class="param">
4698                    
4699                        <code class="param-name optional">[scaleX=1]</code>
4700                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4701                        <span class="flag optional" title="This parameter is optional.">optional</span>
4702                    
4703
4704                    
4705
4706                    <div class="param-description">
4707                        <p>The horizontal scale, as a percentage of 1</p>
4708
4709                    </div>
4710
4711                    
4712                </li>
4713            
4714                <li class="param">
4715                    
4716                        <code class="param-name optional">[scaleY=1]</code>
4717                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4718                        <span class="flag optional" title="This parameter is optional.">optional</span>
4719                    
4720
4721                    
4722
4723                    <div class="param-description">
4724                        <p>the vertical scale, as a percentage of 1</p>
4725
4726                    </div>
4727
4728                    
4729                </li>
4730            
4731                <li class="param">
4732                    
4733                        <code class="param-name optional">[rotation=0]</code>
4734                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4735                        <span class="flag optional" title="This parameter is optional.">optional</span>
4736                    
4737
4738                    
4739
4740                    <div class="param-description">
4741                        <p>The rotation, in degrees</p>
4742
4743                    </div>
4744
4745                    
4746                </li>
4747            
4748                <li class="param">
4749                    
4750                        <code class="param-name optional">[skewX=0]</code>
4751                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4752                        <span class="flag optional" title="This parameter is optional.">optional</span>
4753                    
4754
4755                    
4756
4757                    <div class="param-description">
4758                        <p>The horizontal skew factor</p>
4759
4760                    </div>
4761
4762                    
4763                </li>
4764            
4765                <li class="param">
4766                    
4767                        <code class="param-name optional">[skewY=0]</code>
4768                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4769                        <span class="flag optional" title="This parameter is optional.">optional</span>
4770                    
4771
4772                    
4773
4774                    <div class="param-description">
4775                        <p>The vertical skew factor</p>
4776
4777                    </div>
4778
4779                    
4780                </li>
4781            
4782                <li class="param">
4783                    
4784                        <code class="param-name optional">[regX=0]</code>
4785                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4786                        <span class="flag optional" title="This parameter is optional.">optional</span>
4787                    
4788
4789                    
4790
4791                    <div class="param-description">
4792                        <p>The horizontal registration point in pixels</p>
4793
4794                    </div>
4795
4796                    
4797                </li>
4798            
4799                <li class="param">
4800                    
4801                        <code class="param-name optional">[regY=0]</code>
4802                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4803                        <span class="flag optional" title="This parameter is optional.">optional</span>
4804                    
4805
4806                    
4807
4808                    <div class="param-description">
4809                        <p>The vertical registration point in pixels</p>
4810
4811                    </div>
4812
4813                    
4814                </li>
4815            
4816            </ul>
4817        </div>
4818    
4819
4820    
4821        <div class="returns">
4822            <h4>Returns:</h4>
4823
4824            <div class="returns-description">
4825                
4826                    
4827                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
4828                    
4829                    <p>Returns this instance. Useful for chaining commands.</p>
4830
4831                
4832            </div>
4833        </div>
4834    
4835
4836    
4837</div>
4838
4839                
4840                    <div id="method_toString" class="method item">
4841    <h3 class="name"><code>toString</code></h3>
4842
4843    
4844        <span class="paren">()</span>
4845    
4846
4847    
4848        <span class="returns-inline">
4849            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
4850        </span>
4851    
4852
4853    
4854
4855    
4856
4857    
4858
4859    
4860
4861    
4862
4863    
4864
4865    <div class="meta">
4866        
4867            <p>Inherited from
4868            <a href="../classes/EventDispatcher.html#method_toString">
4869                EventDispatcher
4870            </a>
4871            
4872            but overwritten in
4873            
4874        
4875        
4876        <a href="../files/easeljs_display_DOMElement.js.html#l205"><code>toString:205</code></a>
4877        
4878        </p>
4879
4880
4881        
4882
4883        
4884    </div>
4885
4886    <div class="description">
4887        <p>Returns a string representation of this object.</p>
4888
4889    </div>
4890
4891    
4892
4893    
4894        <div class="returns">
4895            <h4>Returns:</h4>
4896
4897            <div class="returns-description">
4898                
4899                    
4900                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
4901                    
4902                    <p>a string representation of the instance.</p>
4903
4904                
4905            </div>
4906        </div>
4907    
4908
4909    
4910</div>
4911
4912                
4913                    <div id="method_uncache" class="method item">
4914    <h3 class="name"><code>uncache</code></h3>
4915
4916    
4917        <span class="paren">()</span>
4918    
4919
4920    
4921
4922    
4923
4924    
4925
4926    
4927
4928    
4929
4930    
4931
4932    
4933
4934    <div class="meta">
4935        
4936            <p>Inherited from
4937            <a href="../classes/DisplayObject.html#method_uncache">
4938                DisplayObject
4939            </a>
4940            
4941            but overwritten in
4942            
4943        
4944        
4945        <a href="../files/easeljs_display_DOMElement.js.html#l161"><code>uncache:161</code></a>
4946        
4947        </p>
4948
4949
4950        
4951
4952        
4953    </div>
4954
4955    <div class="description">
4956        <p>Not applicable to DOMElement.</p>
4957
4958    </div>
4959
4960    
4961
4962    
4963
4964    
4965</div>
4966
4967                
4968                    <div id="method_updateCache" class="method item">
4969    <h3 class="name"><code>updateCache</code></h3>
4970
4971    
4972        <span class="paren">()</span>
4973    
4974
4975    
4976
4977    
4978
4979    
4980
4981    
4982
4983    
4984
4985    
4986
4987    
4988
4989    <div class="meta">
4990        
4991            <p>Inherited from
4992            <a href="../classes/DisplayObject.html#method_updateCache">
4993                DisplayObject
4994            </a>
4995            
4996            but overwritten in
4997            
4998        
4999        
5000        <a href="../files/easeljs_display_DOMElement.js.html#l167"><code>updateCache:167</code></a>
5001        
5002        </p>
5003
5004
5005        
5006
5007        
5008    </div>
5009
5010    <div class="description">
5011        <p>Not applicable to DOMElement.</p>
5012
5013    </div>
5014
5015    
5016
5017    
5018
5019    
5020</div>
5021
5022                
5023                    <div id="method_updateContext" class="method item inherited">
5024    <h3 class="name"><code>updateContext</code></h3>
5025
5026    
5027        <div class="args">
5028            <span class="paren">(</span><ul class="args-list inline commas">
5029            
5030                <li class="arg">
5031                    
5032                        <code>ctx</code>
5033                    
5034                </li>
5035            
5036            </ul><span class="paren">)</span>
5037        </div>
5038    
5039
5040    
5041
5042    
5043
5044    
5045
5046    
5047
5048    
5049
5050    
5051
5052    
5053
5054    <div class="meta">
5055        
5056            
5057                <p>Inherited from
5058                <a href="../classes/DisplayObject.html#method_updateContext">DisplayObject</a>:
5059            
5060        
5061        
5062        <a href="../files/easeljs_display_DisplayObject.js.html#l760"><code>updateContext:760</code></a>
5063        
5064        </p>
5065
5066
5067        
5068
5069        
5070    </div>
5071
5072    <div class="description">
5073        <p>Applies this display object&#39;s transformation, alpha, globalCompositeOperation, clipping path (mask), and shadow
5074to the specified context. This is typically called prior to <a href="../classes/DisplayObject.html#method_draw" class="crosslink">draw</a>.</p>
5075
5076    </div>
5077
5078    
5079        <div class="params">
5080            <h4>Parameters:</h4>
5081
5082            <ul class="params-list">
5083            
5084                <li class="param">
5085                    
5086                        <code class="param-name">ctx</code>
5087                        <span class="type">CanvasRenderingContext2D</span>
5088                    
5089
5090                    
5091
5092                    <div class="param-description">
5093                        <p>The canvas 2D to update.</p>
5094
5095                    </div>
5096
5097                    
5098                </li>
5099            
5100            </ul>
5101        </div>
5102    
5103
5104    
5105
5106    
5107</div>
5108
5109                
5110                    <div id="method_willTrigger" class="method item inherited">
5111    <h3 class="name"><code>willTrigger</code></h3>
5112
5113    
5114        <div class="args">
5115            <span class="paren">(</span><ul class="args-list inline commas">
5116            
5117                <li class="arg">
5118                    
5119                        <code>type</code>
5120                    
5121                </li>
5122            
5123            </ul><span class="paren">)</span>
5124        </div>
5125    
5126
5127    
5128        <span class="returns-inline">
5129            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
5130        </span>
5131    
5132
5133    
5134
5135    
5136
5137    
5138
5139    
5140
5141    
5142
5143    
5144
5145    <div class="meta">
5146        
5147            
5148                <p>Inherited from
5149                <a href="../classes/EventDispatcher.html#method_willTrigger">EventDispatcher</a>:
5150            
5151        
5152        
5153        <a href="../files/createjs_events_EventDispatcher.js.html#l350"><code>willTrigger:350</code></a>
5154        
5155        </p>
5156
5157
5158        
5159
5160        
5161    </div>
5162
5163    <div class="description">
5164        <p>Indicates whether there is at least one listener for the specified event type on this object or any of its
5165ancestors (parent, parent&#39;s parent, etc). A return value of true indicates that if a bubbling event of the
5166specified type is dispatched from this object, it will trigger at least one listener.</p>
5167<p>This is similar to <a href="../classes/EventDispatcher.html#method_hasEventListener" class="crosslink">hasEventListener</a>, but it searches the entire
5168event flow for a listener, not just this object.</p>
5169
5170    </div>
5171
5172    
5173        <div class="params">
5174            <h4>Parameters:</h4>
5175
5176            <ul class="params-list">
5177            
5178                <li class="param">
5179                    
5180                        <code class="param-name">type</code>
5181                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
5182                    
5183
5184                    
5185
5186                    <div class="param-description">
5187                        <p>The string type of the event.</p>
5188
5189                    </div>
5190
5191                    
5192                </li>
5193            
5194            </ul>
5195        </div>
5196    
5197
5198    
5199        <div class="returns">
5200            <h4>Returns:</h4>
5201
5202            <div class="returns-description">
5203                
5204                    
5205                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
5206                    
5207                    <p>Returns <code>true</code> if there is at least one listener for the specified event.</p>
5208
5209                
5210            </div>
5211        </div>
5212    
5213
5214    
5215</div>
5216
5217                
5218            </div>
5219        
5220
5221        
5222            <div id="properties" class="api-class-tabpanel">
5223                <h2 class="off-left">Properties</h2>
5224
5225                
5226                    <div id="property__bounds" class="property item protected inherited">
5227    <h3 class="name"><code>_bounds</code></h3>
5228    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
5229
5230    
5231
5232    
5233        <span class="flag protected">protected</span>
5234    
5235
5236    
5237
5238    
5239
5240    
5241
5242    <div class="meta">
5243        
5244            
5245                <p>Inherited from
5246                <a href="../classes/DisplayObject.html#property__bounds">DisplayObject</a>:
5247            
5248        
5249        
5250        <a href="../files/easeljs_display_DisplayObject.js.html#l443"><code>_bounds:443</code></a>
5251        
5252        </p>
5253
5254        
5255
5256        
5257    </div>
5258
5259    <div class="description">
5260        
5261    </div>
5262
5263    
5264        <p><strong>Default:</strong> null</p>
5265    
5266
5267    
5268
5269    
5270</div>
5271
5272                
5273                    <div id="property__cacheDataURL" class="property item protected deprecated inherited">
5274    <h3 class="name"><code>_cacheDataURL</code></h3>
5275    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
5276
5277    
5278        <span class="flag deprecated">deprecated</span>
5279    
5280
5281    
5282        <span class="flag protected">protected</span>
5283    
5284
5285    
5286
5287    
5288
5289    
5290
5291    <div class="meta">
5292        
5293            
5294                <p>Inherited from
5295                <a href="../classes/DisplayObject.html#property__cacheDataURL">DisplayObject</a>:
5296            
5297        
5298        
5299        <a href="../files/easeljs_display_DisplayObject.js.html#l418"><code>_cacheDataURL:418</code></a>
5300        
5301        </p>
5302
5303        
5304
5305        
5306    </div>
5307
5308    <div class="description">
5309        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
5310
5311    </div>
5312
5313    
5314        <p><strong>Default:</strong> null</p>
5315    
5316
5317    
5318
5319    
5320</div>
5321
5322                
5323                    <div id="property__cacheDataURLID" class="property item protected deprecated inherited">
5324    <h3 class="name"><code>_cacheDataURLID</code></h3>
5325    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5326
5327    
5328        <span class="flag deprecated">deprecated</span>
5329    
5330
5331    
5332        <span class="flag protected">protected</span>
5333    
5334
5335    
5336
5337    
5338
5339    
5340
5341    <div class="meta">
5342        
5343            
5344                <p>Inherited from
5345                <a href="../classes/DisplayObject.html#property__cacheDataURLID">DisplayObject</a>:
5346            
5347        
5348        
5349        <a href="../files/easeljs_display_DisplayObject.js.html#l409"><code>_cacheDataURLID:409</code></a>
5350        
5351        </p>
5352
5353        
5354
5355        
5356    </div>
5357
5358    <div class="description">
5359        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
5360
5361    </div>
5362
5363    
5364        <p><strong>Default:</strong> 0</p>
5365    
5366
5367    
5368
5369    
5370</div>
5371
5372                
5373                    <div id="property__cacheScale" class="property item protected deprecated inherited">
5374    <h3 class="name"><code>_cacheScale</code></h3>
5375    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5376
5377    
5378        <span class="flag deprecated">deprecated</span>
5379    
5380
5381    
5382        <span class="flag protected">protected</span>
5383    
5384
5385    
5386
5387    
5388
5389    
5390
5391    <div class="meta">
5392        
5393            
5394                <p>Inherited from
5395                <a href="../classes/DisplayObject.html#property__cacheScale">DisplayObject</a>:
5396            
5397        
5398        
5399        <a href="../files/easeljs_display_DisplayObject.js.html#l400"><code>_cacheScale:400</code></a>
5400        
5401        </p>
5402
5403        
5404
5405        
5406    </div>
5407
5408    <div class="description">
5409        <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
5410
5411    </div>
5412
5413    
5414        <p><strong>Default:</strong> 1</p>
5415    
5416
5417    
5418
5419    
5420</div>
5421
5422                
5423                    <div id="property__captureListeners" class="property item protected inherited">
5424    <h3 class="name"><code>_captureListeners</code></h3>
5425    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
5426
5427    
5428
5429    
5430        <span class="flag protected">protected</span>
5431    
5432
5433    
5434
5435    
5436
5437    
5438
5439    <div class="meta">
5440        
5441            
5442                <p>Inherited from
5443                <a href="../classes/EventDispatcher.html#property__captureListeners">EventDispatcher</a>:
5444            
5445        
5446        
5447        <a href="../files/createjs_events_EventDispatcher.js.html#l106"><code>_captureListeners:106</code></a>
5448        
5449        </p>
5450
5451        
5452
5453        
5454    </div>
5455
5456    <div class="description">
5457        
5458    </div>
5459
5460    
5461
5462    
5463
5464    
5465</div>
5466
5467                
5468                    <div id="property__drawAction" class="property item protected">
5469    <h3 class="name"><code>_drawAction</code></h3>
5470    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
5471
5472    
5473
5474    
5475        <span class="flag protected">protected</span>
5476    
5477
5478    
5479
5480    
5481
5482    
5483
5484    <div class="meta">
5485        
5486            
5487                
5488                <p>
5489                
5490                Defined in
5491                
5492            
5493        
5494        
5495        <a href="../files/easeljs_display_DOMElement.js.html#l112"><code>_drawAction:112</code></a>
5496        
5497        </p>
5498
5499        
5500
5501        
5502    </div>
5503
5504    <div class="description">
5505        <p>The event listener proxy triggered drawing draw for special circumstances.</p>
5506
5507    </div>
5508
5509    
5510
5511    
5512
5513    
5514</div>
5515
5516                
5517                    <div id="property__listeners" class="property item protected inherited">
5518    <h3 class="name"><code>_listeners</code></h3>
5519    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
5520
5521    
5522
5523    
5524        <span class="flag protected">protected</span>
5525    
5526
5527    
5528
5529    
5530
5531    
5532
5533    <div class="meta">
5534        
5535            
5536                <p>Inherited from
5537                <a href="../classes/EventDispatcher.html#property__listeners">EventDispatcher</a>:
5538            
5539        
5540        
5541        <a href="../files/createjs_events_EventDispatcher.js.html#l99"><code>_listeners:99</code></a>
5542        
5543        </p>
5544
5545        
5546
5547        
5548    </div>
5549
5550    <div class="description">
5551        
5552    </div>
5553
5554    
5555
5556    
5557
5558    
5559</div>
5560
5561                
5562                    <div id="property__oldMtx" class="property item protected">
5563    <h3 class="name"><code>_oldMtx</code></h3>
5564    <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
5565
5566    
5567
5568    
5569        <span class="flag protected">protected</span>
5570    
5571
5572    
5573
5574    
5575
5576    
5577
5578    <div class="meta">
5579        
5580            
5581                
5582                <p>
5583                
5584                Defined in
5585                
5586            
5587        
5588        
5589        <a href="../files/easeljs_display_DOMElement.js.html#l98"><code>_oldMtx:98</code></a>
5590        
5591        </p>
5592
5593        
5594
5595        
5596    </div>
5597
5598    <div class="description">
5599        
5600    </div>
5601
5602    
5603
5604    
5605
5606    
5607</div>
5608
5609                
5610                    <div id="property__oldStage" class="property item protected">
5611    <h3 class="name"><code>_oldStage</code></h3>
5612    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
5613
5614    
5615
5616    
5617        <span class="flag protected">protected</span>
5618    
5619
5620    
5621
5622    
5623
5624    
5625
5626    <div class="meta">
5627        
5628            
5629                
5630                <p>
5631                
5632                Defined in
5633                
5634            
5635        
5636        
5637        <a href="../files/easeljs_display_DOMElement.js.html#l105"><code>_oldStage:105</code></a>
5638        
5639        </p>
5640
5641        
5642
5643        
5644    </div>
5645
5646    <div class="description">
5647        <p>Used to track the object which this class attached listeners to, helps optimize listener attachment.</p>
5648
5649    </div>
5650
5651    
5652
5653    
5654
5655    
5656</div>
5657
5658                
5659                    <div id="property__props" class="property item protected inherited">
5660    <h3 class="name"><code>_props</code></h3>
5661    <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
5662
5663    
5664
5665    
5666        <span class="flag protected">protected</span>
5667    
5668
5669    
5670
5671    
5672
5673    
5674
5675    <div class="meta">
5676        
5677            
5678                <p>Inherited from
5679                <a href="../classes/DisplayObject.html#property__props">DisplayObject</a>:
5680            
5681        
5682        
5683        <a href="../files/easeljs_display_DisplayObject.js.html#l427"><code>_props:427</code></a>
5684        
5685        </p>
5686
5687        
5688
5689        
5690    </div>
5691
5692    <div class="description">
5693        
5694    </div>
5695
5696    
5697        <p><strong>Default:</strong> null</p>
5698    
5699
5700    
5701
5702    
5703</div>
5704
5705                
5706                    <div id="property__rectangle" class="property item protected inherited">
5707    <h3 class="name"><code>_rectangle</code></h3>
5708    <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
5709
5710    
5711
5712    
5713        <span class="flag protected">protected</span>
5714    
5715
5716    
5717
5718    
5719
5720    
5721
5722    <div class="meta">
5723        
5724            
5725                <p>Inherited from
5726                <a href="../classes/DisplayObject.html#property__rectangle">DisplayObject</a>:
5727            
5728        
5729        
5730        <a href="../files/easeljs_display_DisplayObject.js.html#l435"><code>_rectangle:435</code></a>
5731        
5732        </p>
5733
5734        
5735
5736        
5737    </div>
5738
5739    <div class="description">
5740        
5741    </div>
5742
5743    
5744        <p><strong>Default:</strong> null</p>
5745    
5746
5747    
5748
5749    
5750</div>
5751
5752                
5753                    <div id="property__webGLRenderStyle" class="property item protected inherited">
5754    <h3 class="name"><code>_webGLRenderStyle</code></h3>
5755    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5756
5757    
5758
5759    
5760        <span class="flag protected">protected</span>
5761    
5762
5763    
5764
5765    
5766
5767    
5768
5769    <div class="meta">
5770        
5771            
5772                <p>Inherited from
5773                <a href="../classes/DisplayObject.html#property__webGLRenderStyle">DisplayObject</a>:
5774            
5775        
5776        
5777        <a href="../files/easeljs_display_DisplayObject.js.html#l451"><code>_webGLRenderStyle:451</code></a>
5778        
5779        </p>
5780
5781        
5782
5783        
5784    </div>
5785
5786    <div class="description">
5787        <p>Where StageGL should look for required display properties, matters only for leaf display objects. Containers
5788or cached objects won&#39;t use this property, it&#39;s for native display of terminal elements.</p>
5789
5790    </div>
5791
5792    
5793        <p><strong>Default:</strong> 0</p>
5794    
5795
5796    
5797
5798    
5799</div>
5800
5801                
5802                    <div id="property_alpha" class="property item inherited">
5803    <h3 class="name"><code>alpha</code></h3>
5804    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5805
5806    
5807
5808    
5809
5810    
5811
5812    
5813
5814    
5815
5816    <div class="meta">
5817        
5818            
5819                <p>Inherited from
5820                <a href="../classes/DisplayObject.html#property_alpha">DisplayObject</a>:
5821            
5822        
5823        
5824        <a href="../files/easeljs_display_DisplayObject.js.html#l144"><code>alpha:144</code></a>
5825        
5826        </p>
5827
5828        
5829
5830        
5831    </div>
5832
5833    <div class="description">
5834        <p>The alpha (transparency) for this display object. 0 is fully transparent, 1 is fully opaque.</p>
5835
5836    </div>
5837
5838    
5839        <p><strong>Default:</strong> 1</p>
5840    
5841
5842    
5843
5844    
5845</div>
5846
5847                
5848                    <div id="property_bitmapCache" class="property item inherited">
5849    <h3 class="name"><code>bitmapCache</code></h3>
5850    <span class="type"><a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></span>
5851
5852    
5853
5854    
5855
5856    
5857
5858    
5859
5860    
5861        <span class="flag readonly">readonly</span>
5862    
5863
5864    <div class="meta">
5865        
5866            
5867                <p>Inherited from
5868                <a href="../classes/DisplayObject.html#property_bitmapCache">DisplayObject</a>:
5869            
5870        
5871        
5872        <a href="../files/easeljs_display_DisplayObject.js.html#l162"><code>bitmapCache:162</code></a>
5873        
5874        </p>
5875
5876        
5877
5878        
5879    </div>
5880
5881    <div class="description">
5882        <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>
5883for more information. Use this to control, inspect, and change the cache. In special circumstances this may be a modified or subclassed BitmapCache.</p>
5884
5885    </div>
5886
5887    
5888        <p><strong>Default:</strong> null</p>
5889    
5890
5891    
5892
5893    
5894</div>
5895
5896                
5897                    <div id="property_cacheCanvas" class="property item inherited">
5898    <h3 class="name"><code>cacheCanvas</code></h3>
5899    <span class="type">HTMLCanvasElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
5900
5901    
5902
5903    
5904
5905    
5906
5907    
5908
5909    
5910        <span class="flag readonly">readonly</span>
5911    
5912
5913    <div class="meta">
5914        
5915            
5916                <p>Inherited from
5917                <a href="../classes/DisplayObject.html#property_cacheCanvas">DisplayObject</a>:
5918            
5919        
5920        
5921        <a href="../files/easeljs_display_DisplayObject.js.html#l152"><code>cacheCanvas:152</code></a>
5922        
5923        </p>
5924
5925        
5926
5927        
5928    </div>
5929
5930    <div class="description">
5931        <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>
5932for 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>
5933
5934    </div>
5935
5936    
5937        <p><strong>Default:</strong> null</p>
5938    
5939
5940    
5941
5942    
5943</div>
5944
5945                
5946                    <div id="property_cacheID" class="property item deprecated inherited">
5947    <h3 class="name"><code>cacheID</code></h3>
5948    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5949
5950    
5951        <span class="flag deprecated">deprecated</span>
5952    
5953
5954    
5955
5956    
5957
5958    
5959
5960    
5961
5962    <div class="meta">
5963        
5964            
5965                <p>Inherited from
5966                <a href="../classes/DisplayObject.html#property_cacheID">DisplayObject</a>:
5967            
5968        
5969        
5970        <a href="../files/easeljs_display_DisplayObject.js.html#l695"><code>cacheID:695</code></a>
5971        
5972        </p>
5973
5974        
5975
5976        
5977    </div>
5978
5979    <div class="description">
5980        <p>Returns an ID number that uniquely identifies the current cache for this display object. This can be used to
5981determine if the cache has changed since a previous check.
5982Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
5983
5984    </div>
5985
5986    
5987        <p><strong>Default:</strong> 0</p>
5988    
5989
5990    
5991
5992    
5993</div>
5994
5995                
5996                    <div id="property_compositeOperation" class="property item inherited">
5997    <h3 class="name"><code>compositeOperation</code></h3>
5998    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
5999
6000    
6001
6002    
6003
6004    
6005
6006    
6007
6008    
6009
6010    <div class="meta">
6011        
6012            
6013                <p>Inherited from
6014                <a href="../classes/DisplayObject.html#property_compositeOperation">DisplayObject</a>:
6015            
6016        
6017        
6018        <a href="../files/easeljs_display_DisplayObject.js.html#l330"><code>compositeOperation:330</code></a>
6019        
6020        </p>
6021
6022        
6023
6024        
6025    </div>
6026
6027    <div class="description">
6028        <p>The composite operation indicates how the pixels of this display object will be composited with the elements
6029behind it. If <code>null</code>, this property is inherited from the parent container. For more information, read the
6030<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
6031whatwg spec on compositing</a>. For a list of supported compositeOperation value, visit
6032<a href="https://drafts.fxtf.org/compositing/">the W3C draft on Compositing and Blending</a>.</p>
6033
6034    </div>
6035
6036    
6037        <p><strong>Default:</strong> null</p>
6038    
6039
6040    
6041
6042    
6043</div>
6044
6045                
6046                    <div id="property_cursor" class="property item inherited">
6047    <h3 class="name"><code>cursor</code></h3>
6048    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
6049
6050    
6051
6052    
6053
6054    
6055
6056    
6057
6058    
6059
6060    <div class="meta">
6061        
6062            
6063                <p>Inherited from
6064                <a href="../classes/DisplayObject.html#property_cursor">DisplayObject</a>:
6065            
6066        
6067        
6068        <a href="../files/easeljs_display_DisplayObject.js.html#l388"><code>cursor:388</code></a>
6069        
6070        </p>
6071
6072        
6073
6074        
6075    </div>
6076
6077    <div class="description">
6078        <p>A CSS cursor (ex. "pointer", "help", "text", etc) that will be displayed when the user hovers over this display
6079object. You must enable mouseover events using the <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a> method to
6080use this property. Setting a non-null cursor on a Container will override the cursor set on its descendants.</p>
6081
6082    </div>
6083
6084    
6085        <p><strong>Default:</strong> null</p>
6086    
6087
6088    
6089
6090    
6091</div>
6092
6093                
6094                    <div id="property_filters" class="property item inherited">
6095    <h3 class="name"><code>filters</code></h3>
6096    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
6097
6098    
6099
6100    
6101
6102    
6103
6104    
6105
6106    
6107
6108    <div class="meta">
6109        
6110            
6111                <p>Inherited from
6112                <a href="../classes/DisplayObject.html#property_filters">DisplayObject</a>:
6113            
6114        
6115        
6116        <a href="../files/easeljs_display_DisplayObject.js.html#l352"><code>filters:352</code></a>
6117        
6118        </p>
6119
6120        
6121
6122        
6123    </div>
6124
6125    <div class="description">
6126        <p>An array of Filter objects to apply to this display object. Filters are only applied / updated when Cache
6127or UpdateCache is called on the display object, and only apply to the area that is
6128cached.</p>
6129
6130    </div>
6131
6132    
6133        <p><strong>Default:</strong> null</p>
6134    
6135
6136    
6137
6138    
6139</div>
6140
6141                
6142                    <div id="property_hitArea" class="property item inherited">
6143    <h3 class="name"><code>hitArea</code></h3>
6144    <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
6145
6146    
6147
6148    
6149
6150    
6151
6152    
6153
6154    
6155
6156    <div class="meta">
6157        
6158            
6159                <p>Inherited from
6160                <a href="../classes/DisplayObject.html#property_hitArea">DisplayObject</a>:
6161            
6162        
6163        
6164        <a href="../files/easeljs_display_DisplayObject.js.html#l371"><code>hitArea:371</code></a>
6165        
6166        </p>
6167
6168        
6169
6170        
6171    </div>
6172
6173    <div class="description">
6174        <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>.
6175The hit area will have its transformation applied relative to this display object&#39;s coordinate space (as though
6176the hit test object were a child of this display object and relative to its regX/Y). The hitArea will be tested
6177using only its own <code>alpha</code> value regardless of the alpha value on the target display object, or the target&#39;s
6178ancestors (parents).</p>
6179<p>If set on a <a href="../classes/Container.html" class="crosslink">Container</a>, children of the Container will not receive mouse events.
6180This is similar to setting MouseChildren to false.</p>
6181<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>
6182
6183    </div>
6184
6185    
6186        <p><strong>Default:</strong> null</p>
6187    
6188
6189    
6190
6191    
6192</div>
6193
6194                
6195                    <div id="property_htmlElement" class="property item">
6196    <h3 class="name"><code>htmlElement</code></h3>
6197    <span class="type"><a href="https://developer.mozilla.org/en/Document_Object_Model_(DOM)/HTMLElement" class="crosslink external" target="_blank">HTMLElement</a></span>
6198
6199    
6200
6201    
6202
6203    
6204
6205    
6206
6207    
6208
6209    <div class="meta">
6210        
6211            
6212                
6213                <p>
6214                
6215                Defined in
6216                
6217            
6218        
6219        
6220        <a href="../files/easeljs_display_DOMElement.js.html#l89"><code>htmlElement:89</code></a>
6221        
6222        </p>
6223
6224        
6225
6226        
6227    </div>
6228
6229    <div class="description">
6230        <p>The DOM object to manage.</p>
6231
6232    </div>
6233
6234    
6235
6236    
6237
6238    
6239</div>
6240
6241                
6242                    <div id="property_id" class="property item inherited">
6243    <h3 class="name"><code>id</code></h3>
6244    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6245
6246    
6247
6248    
6249
6250    
6251
6252    
6253
6254    
6255
6256    <div class="meta">
6257        
6258            
6259                <p>Inherited from
6260                <a href="../classes/DisplayObject.html#property_id">DisplayObject</a>:
6261            
6262        
6263        
6264        <a href="../files/easeljs_display_DisplayObject.js.html#l172"><code>id:172</code></a>
6265        
6266        </p>
6267
6268        
6269
6270        
6271    </div>
6272
6273    <div class="description">
6274        <p>Unique ID for this display object. Makes display objects easier for some uses.</p>
6275
6276    </div>
6277
6278    
6279        <p><strong>Default:</strong> -1</p>
6280    
6281
6282    
6283
6284    
6285</div>
6286
6287                
6288                    <div id="property_mask" class="property item inherited">
6289    <h3 class="name"><code>mask</code></h3>
6290    <span class="type"><a href="../classes/Shape.html" class="crosslink">Shape</a></span>
6291
6292    
6293
6294    
6295
6296    
6297
6298    
6299
6300    
6301
6302    <div class="meta">
6303        
6304            
6305                <p>Inherited from
6306                <a href="../classes/DisplayObject.html#property_mask">DisplayObject</a>:
6307            
6308        
6309        
6310        <a href="../files/easeljs_display_DisplayObject.js.html#l362"><code>mask:362</code></a>
6311        
6312        </p>
6313
6314        
6315
6316        
6317    </div>
6318
6319    <div class="description">
6320        <p>A Shape instance that defines a vector mask (clipping path) for this display object.  The shape&#39;s transformation
6321will be applied relative to the display object&#39;s parent coordinates (as if it were a child of the parent).</p>
6322
6323    </div>
6324
6325    
6326        <p><strong>Default:</strong> null</p>
6327    
6328
6329    
6330
6331    
6332</div>
6333
6334                
6335                    <div id="property_mouseEnabled" class="property item inherited">
6336    <h3 class="name"><code>mouseEnabled</code></h3>
6337    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
6338
6339    
6340
6341    
6342
6343    
6344
6345    
6346
6347    
6348
6349    <div class="meta">
6350        
6351            
6352                <p>Inherited from
6353                <a href="../classes/DisplayObject.html#property_mouseEnabled">DisplayObject</a>:
6354            
6355        
6356        
6357        <a href="../files/easeljs_display_DisplayObject.js.html#l180"><code>mouseEnabled:180</code></a>
6358        
6359        </p>
6360
6361        
6362
6363        
6364    </div>
6365
6366    <div class="description">
6367        <p>Indicates whether to include this object when running mouse interactions. Setting this to <code>false</code> for children
6368of a <a href="../classes/Container.html" class="crosslink">Container</a> will cause events on the Container to not fire when that child is
6369clicked. Setting this property to <code>false</code> does not prevent the <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>
6370method from returning the child.</p>
6371<p><strong>Note:</strong> In EaselJS 0.7.0, the mouseEnabled property will not work properly with nested Containers. Please
6372check 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
6373provided in the next release of EaselJS.</p>
6374
6375    </div>
6376
6377    
6378        <p><strong>Default:</strong> true</p>
6379    
6380
6381    
6382
6383    
6384</div>
6385
6386                
6387                    <div id="property_name" class="property item inherited">
6388    <h3 class="name"><code>name</code></h3>
6389    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
6390
6391    
6392
6393    
6394
6395    
6396
6397    
6398
6399    
6400
6401    <div class="meta">
6402        
6403            
6404                <p>Inherited from
6405                <a href="../classes/DisplayObject.html#property_name">DisplayObject</a>:
6406            
6407        
6408        
6409        <a href="../files/easeljs_display_DisplayObject.js.html#l205"><code>name:205</code></a>
6410        
6411        </p>
6412
6413        
6414
6415        
6416    </div>
6417
6418    <div class="description">
6419        <p>An optional name for this display object. Included in <a href="../classes/DisplayObject.html#method_toString" class="crosslink">toString</a> . Useful for
6420debugging.</p>
6421
6422    </div>
6423
6424    
6425        <p><strong>Default:</strong> null</p>
6426    
6427
6428    
6429
6430    
6431</div>
6432
6433                
6434                    <div id="property_parent" class="property item inherited">
6435    <h3 class="name"><code>parent</code></h3>
6436    <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
6437
6438    
6439
6440    
6441
6442    
6443        <span class="flag final">final</span>
6444    
6445
6446    
6447
6448    
6449        <span class="flag readonly">readonly</span>
6450    
6451
6452    <div class="meta">
6453        
6454            
6455                <p>Inherited from
6456                <a href="../classes/DisplayObject.html#property_parent">DisplayObject</a>:
6457            
6458        
6459        
6460        <a href="../files/easeljs_display_DisplayObject.js.html#l214"><code>parent:214</code></a>
6461        
6462        </p>
6463
6464        
6465
6466        
6467    </div>
6468
6469    <div class="description">
6470        <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
6471contains this display object, or null if it has not been added
6472to one.</p>
6473
6474    </div>
6475
6476    
6477        <p><strong>Default:</strong> null</p>
6478    
6479
6480    
6481
6482    
6483</div>
6484
6485                
6486                    <div id="property_regX" class="property item inherited">
6487    <h3 class="name"><code>regX</code></h3>
6488    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6489
6490    
6491
6492    
6493
6494    
6495
6496    
6497
6498    
6499
6500    <div class="meta">
6501        
6502            
6503                <p>Inherited from
6504                <a href="../classes/DisplayObject.html#property_regX">DisplayObject</a>:
6505            
6506        
6507        
6508        <a href="../files/easeljs_display_DisplayObject.js.html#l226"><code>regX:226</code></a>
6509        
6510        </p>
6511
6512        
6513
6514        
6515    </div>
6516
6517    <div class="description">
6518        <p>The left offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate
6519around its center, you would set regX and <a href="../classes/DisplayObject.html#property_regY" class="crosslink">regY</a> to 50.
6520Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>
6521
6522    </div>
6523
6524    
6525        <p><strong>Default:</strong> 0</p>
6526    
6527
6528    
6529
6530    
6531</div>
6532
6533                
6534                    <div id="property_regY" class="property item inherited">
6535    <h3 class="name"><code>regY</code></h3>
6536    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6537
6538    
6539
6540    
6541
6542    
6543
6544    
6545
6546    
6547
6548    <div class="meta">
6549        
6550            
6551                <p>Inherited from
6552                <a href="../classes/DisplayObject.html#property_regY">DisplayObject</a>:
6553            
6554        
6555        
6556        <a href="../files/easeljs_display_DisplayObject.js.html#l236"><code>regY:236</code></a>
6557        
6558        </p>
6559
6560        
6561
6562        
6563    </div>
6564
6565    <div class="description">
6566        <p>The y offset for this display object&#39;s registration point. For example, to make a 100x100px Bitmap rotate around
6567its center, you would set <a href="../classes/DisplayObject.html#property_regX" class="crosslink">regX</a> and regY to 50.
6568Cached object&#39;s registration points should be set based on pre-cache conditions, not cached size.</p>
6569
6570    </div>
6571
6572    
6573        <p><strong>Default:</strong> 0</p>
6574    
6575
6576    
6577
6578    
6579</div>
6580
6581                
6582                    <div id="property_rotation" class="property item inherited">
6583    <h3 class="name"><code>rotation</code></h3>
6584    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6585
6586    
6587
6588    
6589
6590    
6591
6592    
6593
6594    
6595
6596    <div class="meta">
6597        
6598            
6599                <p>Inherited from
6600                <a href="../classes/DisplayObject.html#property_rotation">DisplayObject</a>:
6601            
6602        
6603        
6604        <a href="../files/easeljs_display_DisplayObject.js.html#l246"><code>rotation:246</code></a>
6605        
6606        </p>
6607
6608        
6609
6610        
6611    </div>
6612
6613    <div class="description">
6614        <p>The rotation in degrees for this display object.</p>
6615
6616    </div>
6617
6618    
6619        <p><strong>Default:</strong> 0</p>
6620    
6621
6622    
6623
6624    
6625</div>
6626
6627                
6628                    <div id="property_scaleX" class="property item inherited">
6629    <h3 class="name"><code>scaleX</code></h3>
6630    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6631
6632    
6633
6634    
6635
6636    
6637
6638    
6639
6640    
6641
6642    <div class="meta">
6643        
6644            <p>Inherited from
6645            <a href="../classes/DisplayObject.html#property_scaleX">
6646                DisplayObject
6647            </a>
6648            
6649            but overwritten in
6650            
6651        
6652        
6653        <a href="../files/easeljs_display_DisplayObject.js.html#l254"><code>scaleX:254</code></a>
6654        
6655        </p>
6656
6657        
6658
6659        
6660    </div>
6661
6662    <div class="description">
6663        <p>The factor to stretch this display object horizontally. For example, setting scaleX to 2 will stretch the display
6664object to twice its nominal width. To horizontally flip an object, set the scale to a negative number.</p>
6665
6666    </div>
6667
6668    
6669        <p><strong>Default:</strong> 1</p>
6670    
6671
6672    
6673
6674    
6675</div>
6676
6677                
6678                    <div id="property_scaleY" class="property item inherited">
6679    <h3 class="name"><code>scaleY</code></h3>
6680    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6681
6682    
6683
6684    
6685
6686    
6687
6688    
6689
6690    
6691
6692    <div class="meta">
6693        
6694            
6695                <p>Inherited from
6696                <a href="../classes/DisplayObject.html#property_scaleY">DisplayObject</a>:
6697            
6698        
6699        
6700        <a href="../files/easeljs_display_DisplayObject.js.html#l263"><code>scaleY:263</code></a>
6701        
6702        </p>
6703
6704        
6705
6706        
6707    </div>
6708
6709    <div class="description">
6710        <p>The factor to stretch this display object vertically. For example, setting scaleY to 0.5 will stretch the display
6711object to half its nominal height. To vertically flip an object, set the scale to a negative number.</p>
6712
6713    </div>
6714
6715    
6716        <p><strong>Default:</strong> 1</p>
6717    
6718
6719    
6720
6721    
6722</div>
6723
6724                
6725                    <div id="property_shadow" class="property item inherited">
6726    <h3 class="name"><code>shadow</code></h3>
6727    <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
6728
6729    
6730
6731    
6732
6733    
6734
6735    
6736
6737    
6738
6739    <div class="meta">
6740        
6741            
6742                <p>Inherited from
6743                <a href="../classes/DisplayObject.html#property_shadow">DisplayObject</a>:
6744            
6745        
6746        
6747        <a href="../files/easeljs_display_DisplayObject.js.html#l288"><code>shadow:288</code></a>
6748        
6749        </p>
6750
6751        
6752
6753        
6754    </div>
6755
6756    <div class="description">
6757        <p>A shadow object that defines the shadow to render on this display object. Set to <code>null</code> to remove a shadow. If
6758null, this property is inherited from the parent container.</p>
6759
6760    </div>
6761
6762    
6763        <p><strong>Default:</strong> null</p>
6764    
6765
6766    
6767
6768    
6769</div>
6770
6771                
6772                    <div id="property_skewX" class="property item inherited">
6773    <h3 class="name"><code>skewX</code></h3>
6774    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6775
6776    
6777
6778    
6779
6780    
6781
6782    
6783
6784    
6785
6786    <div class="meta">
6787        
6788            
6789                <p>Inherited from
6790                <a href="../classes/DisplayObject.html#property_skewX">DisplayObject</a>:
6791            
6792        
6793        
6794        <a href="../files/easeljs_display_DisplayObject.js.html#l272"><code>skewX:272</code></a>
6795        
6796        </p>
6797
6798        
6799
6800        
6801    </div>
6802
6803    <div class="description">
6804        <p>The factor to skew this display object horizontally.</p>
6805
6806    </div>
6807
6808    
6809        <p><strong>Default:</strong> 0</p>
6810    
6811
6812    
6813
6814    
6815</div>
6816
6817                
6818                    <div id="property_skewY" class="property item inherited">
6819    <h3 class="name"><code>skewY</code></h3>
6820    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6821
6822    
6823
6824    
6825
6826    
6827
6828    
6829
6830    
6831
6832    <div class="meta">
6833        
6834            
6835                <p>Inherited from
6836                <a href="../classes/DisplayObject.html#property_skewY">DisplayObject</a>:
6837            
6838        
6839        
6840        <a href="../files/easeljs_display_DisplayObject.js.html#l280"><code>skewY:280</code></a>
6841        
6842        </p>
6843
6844        
6845
6846        
6847    </div>
6848
6849    <div class="description">
6850        <p>The factor to skew this display object vertically.</p>
6851
6852    </div>
6853
6854    
6855        <p><strong>Default:</strong> 0</p>
6856    
6857
6858    
6859
6860    
6861</div>
6862
6863                
6864                    <div id="property_snapToPixel" class="property item inherited">
6865    <h3 class="name"><code>snapToPixel</code></h3>
6866    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
6867
6868    
6869
6870    
6871
6872    
6873
6874    
6875
6876    
6877
6878    <div class="meta">
6879        
6880            
6881                <p>Inherited from
6882                <a href="../classes/DisplayObject.html#property_snapToPixel">DisplayObject</a>:
6883            
6884        
6885        
6886        <a href="../files/easeljs_display_DisplayObject.js.html#l342"><code>snapToPixel:342</code></a>
6887        
6888        </p>
6889
6890        
6891
6892        
6893    </div>
6894
6895    <div class="description">
6896        <p>Indicates whether the display object should be drawn to a whole pixel when
6897Stage/snapToPixelEnabled is true. To enable/disable snapping on whole
6898categories of display objects, set this value on the prototype (Ex. Text.prototype.snapToPixel = true).</p>
6899
6900    </div>
6901
6902    
6903        <p><strong>Default:</strong> true</p>
6904    
6905
6906    
6907
6908    
6909</div>
6910
6911                
6912                    <div id="property_stage" class="property item inherited">
6913    <h3 class="name"><code>stage</code></h3>
6914    <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
6915
6916    
6917
6918    
6919
6920    
6921
6922    
6923
6924    
6925        <span class="flag readonly">readonly</span>
6926    
6927
6928    <div class="meta">
6929        
6930            
6931                <p>Inherited from
6932                <a href="../classes/DisplayObject.html#property_stage">DisplayObject</a>:
6933            
6934        
6935        
6936        <a href="../files/easeljs_display_DisplayObject.js.html#l688"><code>stage:688</code></a>
6937        
6938        </p>
6939
6940        
6941
6942        
6943    </div>
6944
6945    <div class="description">
6946        <p>Returns the Stage instance that this display object will be rendered on, or null if it has not been added to one.</p>
6947
6948    </div>
6949
6950    
6951
6952    
6953
6954    
6955</div>
6956
6957                
6958                    <div id="property_tickEnabled" class="property item inherited">
6959    <h3 class="name"><code>tickEnabled</code></h3>
6960    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
6961
6962    
6963
6964    
6965
6966    
6967
6968    
6969
6970    
6971
6972    <div class="meta">
6973        
6974            
6975                <p>Inherited from
6976                <a href="../classes/DisplayObject.html#property_tickEnabled">DisplayObject</a>:
6977            
6978        
6979        
6980        <a href="../files/easeljs_display_DisplayObject.js.html#l195"><code>tickEnabled:195</code></a>
6981        
6982        </p>
6983
6984        
6985
6986        
6987    </div>
6988
6989    <div class="description">
6990        <p>If false, the tick will not run on this display object (or its children). This can provide some performance benefits.
6991In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates
6992on some display objects (ex. Sprite &amp; MovieClip frame advancing, and DOMElement display properties).</p>
6993
6994    </div>
6995
6996    
6997        <p><strong>Default:</strong> true</p>
6998    
6999
7000    
7001
7002    
7003</div>
7004
7005                
7006                    <div id="property_transformMatrix" class="property item inherited">
7007    <h3 class="name"><code>transformMatrix</code></h3>
7008    <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
7009
7010    
7011
7012    
7013
7014    
7015
7016    
7017
7018    
7019
7020    <div class="meta">
7021        
7022            
7023                <p>Inherited from
7024                <a href="../classes/DisplayObject.html#property_transformMatrix">DisplayObject</a>:
7025            
7026        
7027        
7028        <a href="../files/easeljs_display_DisplayObject.js.html#l321"><code>transformMatrix:321</code></a>
7029        
7030        </p>
7031
7032        
7033
7034        
7035    </div>
7036
7037    <div class="description">
7038        <p>If set, defines the transformation for this display object, overriding all other transformation properties
7039(x, y, rotation, scale, skew).</p>
7040
7041    </div>
7042
7043    
7044        <p><strong>Default:</strong> null</p>
7045    
7046
7047    
7048
7049    
7050</div>
7051
7052                
7053                    <div id="property_visible" class="property item inherited">
7054    <h3 class="name"><code>visible</code></h3>
7055    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
7056
7057    
7058
7059    
7060
7061    
7062
7063    
7064
7065    
7066
7067    <div class="meta">
7068        
7069            
7070                <p>Inherited from
7071                <a href="../classes/DisplayObject.html#property_visible">DisplayObject</a>:
7072            
7073        
7074        
7075        <a href="../files/easeljs_display_DisplayObject.js.html#l297"><code>visible:297</code></a>
7076        
7077        </p>
7078
7079        
7080
7081        
7082    </div>
7083
7084    <div class="description">
7085        <p>Indicates whether this display object should be rendered to the canvas and included when running the Stage
7086Stage/getObjectsUnderPoint method.</p>
7087
7088    </div>
7089
7090    
7091        <p><strong>Default:</strong> true</p>
7092    
7093
7094    
7095
7096    
7097</div>
7098
7099                
7100                    <div id="property_x" class="property item inherited">
7101    <h3 class="name"><code>x</code></h3>
7102    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
7103
7104    
7105
7106    
7107
7108    
7109
7110    
7111
7112    
7113
7114    <div class="meta">
7115        
7116            
7117                <p>Inherited from
7118                <a href="../classes/DisplayObject.html#property_x">DisplayObject</a>:
7119            
7120        
7121        
7122        <a href="../files/easeljs_display_DisplayObject.js.html#l306"><code>x:306</code></a>
7123        
7124        </p>
7125
7126        
7127
7128        
7129    </div>
7130
7131    <div class="description">
7132        <p>The x (horizontal) position of the display object, relative to its parent.</p>
7133
7134    </div>
7135
7136    
7137        <p><strong>Default:</strong> 0</p>
7138    
7139
7140    
7141
7142    
7143</div>
7144
7145                
7146                    <div id="property_y" class="property item inherited">
7147    <h3 class="name"><code>y</code></h3>
7148    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
7149
7150    
7151
7152    
7153
7154    
7155
7156    
7157
7158    
7159
7160    <div class="meta">
7161        
7162            
7163                <p>Inherited from
7164                <a href="../classes/DisplayObject.html#property_y">DisplayObject</a>:
7165            
7166        
7167        
7168        <a href="../files/easeljs_display_DisplayObject.js.html#l314"><code>y:314</code></a>
7169        
7170        </p>
7171
7172        
7173
7174        
7175    </div>
7176
7177    <div class="description">
7178        
7179    </div>
7180
7181    
7182        <p><strong>Default:</strong> 0</p>
7183    
7184
7185    
7186
7187    
7188</div>
7189
7190                
7191            </div>
7192        
7193
7194        
7195
7196        
7197            <div id="events" class="api-class-tabpanel">
7198                <h2 class="off-left">Events</h2>
7199
7200                
7201                    <div id="event_added" class="events item inherited">
7202    <h3 class="name"><code>added</code></h3>
7203    <span class="type"></span>
7204
7205    
7206
7207    
7208
7209    
7210
7211    
7212
7213    <div class="meta">
7214        
7215            
7216                <p>Inherited from
7217                <a href="../classes/DisplayObject.html#event_added">DisplayObject</a>:
7218            
7219        
7220        
7221        <a href="../files/easeljs_display_DisplayObject.js.html#l646"><code>added:646</code></a>
7222        
7223        </p>
7224
7225        
7226
7227        
7228    </div>
7229
7230    <div class="description">
7231        <p>Dispatched when the display object is added to a parent container.</p>
7232
7233    </div>
7234
7235    
7236
7237
7238    
7239</div>
7240
7241                
7242                    <div id="event_click" class="events item">
7243    <h3 class="name"><code>click</code></h3>
7244    <span class="type"></span>
7245
7246    
7247
7248    
7249
7250    
7251
7252    
7253
7254    <div class="meta">
7255        
7256            <p>Inherited from
7257            <a href="../classes/DisplayObject.html#event_click">
7258                DisplayObject
7259            </a>
7260            
7261            but overwritten in
7262            
7263        
7264        
7265        <a href="../files/easeljs_display_DOMElement.js.html#l214"><code>click:214</code></a>
7266        
7267        </p>
7268
7269        
7270
7271        
7272    </div>
7273
7274    <div class="description">
7275        <p>Interaction events should be added to <code>htmlElement</code>, and not the DOMElement instance, since DOMElement instances
7276are not full EaselJS display objects and do not participate in EaselJS mouse events.</p>
7277
7278    </div>
7279
7280    
7281
7282
7283    
7284</div>
7285
7286                
7287                    <div id="event_dblClick" class="events item">
7288    <h3 class="name"><code>dblClick</code></h3>
7289    <span class="type"></span>
7290
7291    
7292
7293    
7294
7295    
7296
7297    
7298
7299    <div class="meta">
7300        
7301            
7302                
7303                <p>
7304                
7305                Defined in
7306                
7307            
7308        
7309        
7310        <a href="../files/easeljs_display_DOMElement.js.html#l220"><code>dblClick:220</code></a>
7311        
7312        </p>
7313
7314        
7315
7316        
7317    </div>
7318
7319    <div class="description">
7320        <p>Interaction events should be added to <code>htmlElement</code>, and not the DOMElement instance, since DOMElement instances
7321are not full EaselJS display objects and do not participate in EaselJS mouse events.</p>
7322
7323    </div>
7324
7325    
7326
7327
7328    
7329</div>
7330
7331                
7332                    <div id="event_dblclick" class="events item inherited">
7333    <h3 class="name"><code>dblclick</code></h3>
7334    <span class="type"></span>
7335
7336    
7337
7338    
7339
7340    
7341
7342    
7343
7344    <div class="meta">
7345        
7346            
7347                <p>Inherited from
7348                <a href="../classes/DisplayObject.html#event_dblclick">DisplayObject</a>:
7349            
7350        
7351        
7352        <a href="../files/easeljs_display_DisplayObject.js.html#l553"><code>dblclick:553</code></a>
7353        
7354        </p>
7355
7356        
7357
7358        
7359            <p>Available since 0.6.0</p>
7360        
7361    </div>
7362
7363    <div class="description">
7364        <p>Dispatched when the user double clicks their left mouse button over this display object.
7365See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
7366
7367    </div>
7368
7369    
7370
7371
7372    
7373</div>
7374
7375                
7376                    <div id="event_mousedown" class="events item">
7377    <h3 class="name"><code>mousedown</code></h3>
7378    <span class="type"></span>
7379
7380    
7381
7382    
7383
7384    
7385
7386    
7387
7388    <div class="meta">
7389        
7390            <p>Inherited from
7391            <a href="../classes/DisplayObject.html#event_mousedown">
7392                DisplayObject
7393            </a>
7394            
7395            but overwritten in
7396            
7397        
7398        
7399        <a href="../files/easeljs_display_DOMElement.js.html#l226"><code>mousedown:226</code></a>
7400        
7401        </p>
7402
7403        
7404
7405        
7406    </div>
7407
7408    <div class="description">
7409        <p>Interaction events should be added to <code>htmlElement</code>, and not the DOMElement instance, since DOMElement instances
7410are not full EaselJS display objects and do not participate in EaselJS mouse events.</p>
7411
7412    </div>
7413
7414    
7415
7416
7417    
7418</div>
7419
7420                
7421                    <div id="event_mouseout" class="events item inherited">
7422    <h3 class="name"><code>mouseout</code></h3>
7423    <span class="type"></span>
7424
7425    
7426
7427    
7428
7429    
7430
7431    
7432
7433    <div class="meta">
7434        
7435            
7436                <p>Inherited from
7437                <a href="../classes/DisplayObject.html#event_mouseout">DisplayObject</a>:
7438            
7439        
7440        
7441        <a href="../files/easeljs_display_DisplayObject.js.html#l568"><code>mouseout:568</code></a>
7442        
7443        </p>
7444
7445        
7446
7447        
7448            <p>Available since 0.6.0</p>
7449        
7450    </div>
7451
7452    <div class="description">
7453        <p>Dispatched when the user&#39;s mouse leaves this display object. This event must be enabled using 
7454<a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="../classes/DisplayObject.html#event_rollout" class="crosslink">rollout</a>.
7455See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
7456
7457    </div>
7458
7459    
7460
7461
7462    
7463</div>
7464
7465                
7466                    <div id="event_mouseover" class="events item">
7467    <h3 class="name"><code>mouseover</code></h3>
7468    <span class="type"></span>
7469
7470    
7471
7472    
7473
7474    
7475
7476    
7477
7478    <div class="meta">
7479        
7480            <p>Inherited from
7481            <a href="../classes/DisplayObject.html#event_mouseover">
7482                DisplayObject
7483            </a>
7484            
7485            but overwritten in
7486            
7487        
7488        
7489        <a href="../files/easeljs_display_DOMElement.js.html#l232"><code>mouseover:232</code></a>
7490        
7491        </p>
7492
7493        
7494
7495        
7496    </div>
7497
7498    <div class="description">
7499        <p>The HTMLElement can listen for the mouseover event, not the DOMElement instance.
7500Since DOMElement instances are not full EaselJS display objects and do not participate in EaselJS mouse events.</p>
7501
7502    </div>
7503
7504    
7505
7506
7507    
7508</div>
7509
7510                
7511                    <div id="event_pressmove" class="events item inherited">
7512    <h3 class="name"><code>pressmove</code></h3>
7513    <span class="type"></span>
7514
7515    
7516
7517    
7518
7519    
7520
7521    
7522
7523    <div class="meta">
7524        
7525            
7526                <p>Inherited from
7527                <a href="../classes/DisplayObject.html#event_pressmove">DisplayObject</a>:
7528            
7529        
7530        
7531        <a href="../files/easeljs_display_DisplayObject.js.html#l616"><code>pressmove:616</code></a>
7532        
7533        </p>
7534
7535        
7536
7537        
7538            <p>Available since 0.7.0</p>
7539        
7540    </div>
7541
7542    <div class="description">
7543        <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressmove
7544event will be generated on that object whenever the mouse moves until the mouse press is released. This can be
7545useful for dragging and similar operations.</p>
7546<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
7547(e.g. during a <code>pressmove</code> event), a <code>pressmove</code> event is still generated. However since it is no longer in the
7548display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
7549the 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>
7550or <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>),
7551then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
7552
7553    </div>
7554
7555    
7556
7557
7558    
7559</div>
7560
7561                
7562                    <div id="event_pressup" class="events item inherited">
7563    <h3 class="name"><code>pressup</code></h3>
7564    <span class="type"></span>
7565
7566    
7567
7568    
7569
7570    
7571
7572    
7573
7574    <div class="meta">
7575        
7576            
7577                <p>Inherited from
7578                <a href="../classes/DisplayObject.html#event_pressup">DisplayObject</a>:
7579            
7580        
7581        
7582        <a href="../files/easeljs_display_DisplayObject.js.html#l631"><code>pressup:631</code></a>
7583        
7584        </p>
7585
7586        
7587
7588        
7589            <p>Available since 0.7.0</p>
7590        
7591    </div>
7592
7593    <div class="description">
7594        <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressup event
7595will be generated on that object when that mouse press is released. This can be useful for dragging and similar
7596operations.</p>
7597<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
7598(e.g. during a <code>pressmove</code> event), a <code>pressup</code> event is still generated. However since it is no longer in the
7599display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
7600the 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>
7601or <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>),
7602then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
7603
7604    </div>
7605
7606    
7607
7608
7609    
7610</div>
7611
7612                
7613                    <div id="event_removed" class="events item inherited">
7614    <h3 class="name"><code>removed</code></h3>
7615    <span class="type"></span>
7616
7617    
7618
7619    
7620
7621    
7622
7623    
7624
7625    <div class="meta">
7626        
7627            
7628                <p>Inherited from
7629                <a href="../classes/DisplayObject.html#event_removed">DisplayObject</a>:
7630            
7631        
7632        
7633        <a href="../files/easeljs_display_DisplayObject.js.html#l651"><code>removed:651</code></a>
7634        
7635        </p>
7636
7637        
7638
7639        
7640    </div>
7641
7642    <div class="description">
7643        <p>Dispatched when the display object is removed from its parent container.</p>
7644
7645    </div>
7646
7647    
7648
7649
7650    
7651</div>
7652
7653                
7654                    <div id="event_rollout" class="events item inherited">
7655    <h3 class="name"><code>rollout</code></h3>
7656    <span class="type"></span>
7657
7658    
7659
7660    
7661
7662    
7663
7664    
7665
7666    <div class="meta">
7667        
7668            
7669                <p>Inherited from
7670                <a href="../classes/DisplayObject.html#event_rollout">DisplayObject</a>:
7671            
7672        
7673        
7674        <a href="../files/easeljs_display_DisplayObject.js.html#l596"><code>rollout:596</code></a>
7675        
7676        </p>
7677
7678        
7679
7680        
7681            <p>Available since 0.7.0</p>
7682        
7683    </div>
7684
7685    <div class="description">
7686        <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseout" class="crosslink">mouseout</a>, with the following
7687differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
7688aggregate of their content.</p>
7689<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
7690shapeA, then directly on to shapeB, then off both. With a listener for Mouseout:event
7691on myContainer, two events would be received, each targeting a child element:<OL></p>
7692<p><LI>when the mouse leaves shapeA (target=shapeA)</LI></p>
7693<p><LI>when the mouse leaves shapeB (target=shapeB)</LI>
7694</OL>
7695However, with a listener for "rollout" instead, only a single event is received when the mouse leaves
7696the aggregate myContainer content (target=myContainer).</p>
7697<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
7698See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
7699
7700    </div>
7701
7702    
7703
7704
7705    
7706</div>
7707
7708                
7709                    <div id="event_rollover" class="events item inherited">
7710    <h3 class="name"><code>rollover</code></h3>
7711    <span class="type"></span>
7712
7713    
7714
7715    
7716
7717    
7718
7719    
7720
7721    <div class="meta">
7722        
7723            
7724                <p>Inherited from
7725                <a href="../classes/DisplayObject.html#event_rollover">DisplayObject</a>:
7726            
7727        
7728        
7729        <a href="../files/easeljs_display_DisplayObject.js.html#l576"><code>rollover:576</code></a>
7730        
7731        </p>
7732
7733        
7734
7735        
7736            <p>Available since 0.7.0</p>
7737        
7738    </div>
7739
7740    <div class="description">
7741        <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseover" class="crosslink">mouseover</a>, with the following
7742differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
7743aggregate of their content.</p>
7744<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
7745shapeA and then directly on to shapeB. With a listener for Mouseover:event on
7746myContainer, two events would be received, each targeting a child element:<OL></p>
7747<p><LI>when the mouse enters shapeA (target=shapeA)</LI></p>
7748<p><LI>when the mouse enters shapeB (target=shapeB)</LI>
7749</OL>
7750However, with a listener for "rollover" instead, only a single event is received when the mouse first enters
7751the aggregate myContainer content (target=myContainer).</p>
7752<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
7753See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
7754
7755    </div>
7756
7757    
7758
7759
7760    
7761</div>
7762
7763                
7764                    <div id="event_tick" class="events item">
7765    <h3 class="name"><code>tick</code></h3>
7766    <span class="type"></span>
7767
7768    
7769
7770    
7771
7772    
7773
7774    
7775
7776    <div class="meta">
7777        
7778            <p>Inherited from
7779            <a href="../classes/DisplayObject.html#event_tick">
7780                DisplayObject
7781            </a>
7782            
7783            but overwritten in
7784            
7785        
7786        
7787        <a href="../files/easeljs_display_DOMElement.js.html#l238"><code>tick:238</code></a>
7788        
7789        </p>
7790
7791        
7792
7793        
7794    </div>
7795
7796    <div class="description">
7797        <p>Not applicable to DOMElement.</p>
7798
7799    </div>
7800
7801    
7802
7803
7804    
7805</div>
7806
7807                
7808            </div>
7809        
7810    </div>
7811</div>
7812
7813                    </div>
7814                </div>
7815            </div>
7816        </div>
7817    </div>
7818</div>
7819<script src="../assets/vendor/prettify/prettify-min.js"></script>
7820<script>prettyPrint();</script>
7821<script src="../assets/js/yui-prettify.js"></script>
7822<script src="../assets/../api.js"></script>
7823<script src="../assets/js/api-filter.js"></script>
7824<script src="../assets/js/api-list.js"></script>
7825<script src="../assets/js/api-search.js"></script>
7826<script src="../assets/js/apidocs.js"></script>
7827</body>
7828</html>