all repos — simplyrpg @ main

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

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