all repos — simplyrpg @ 7b6d888ad1be8f0a76eb81aea89360ce46b72947

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

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