all repos — simplyrpg @ b1d5daf21334d3da94abd04cb734a157b3b13fbe

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

libraries/EaselJS_docs/classes/SpriteSheetBuilder.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 : SpriteSheetBuilder</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>SpriteSheetBuilder Class</h1>
 199<div class="box meta">
 200    
 201
 202    
 203        <div class="extends">
 204            Extends <a href="../classes/EventDispatcher.html" class="crosslink">EventDispatcher</a>
 205        </div>
 206    
 207
 208    
 209        <div class="foundat">
 210            Defined in: <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l41"><code>SpriteSheetBuilder:41</code></a>
 211        </div>
 212    
 213
 214    
 215        
 216            Module: <a href="../modules/EaselJS.html">EaselJS</a>
 217        
 218    
 219
 220    
 221</div>
 222
 223
 224
 225<div class="box intro">
 226    <p>The SpriteSheetBuilder allows you to generate <a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a> instances at run time
 227from any display object. This can allow you to maintain your assets as vector graphics (for low file size), and
 228render them at run time as SpriteSheets for better performance.</p>
 229<p>SpriteSheets can be built either synchronously, or asynchronously, so that large SpriteSheets can be generated
 230without locking the UI.</p>
 231<p>Note that the "images" used in the generated SpriteSheet are actually canvas elements, and that they will be
 232sized to the nearest power of 2 up to the value of <a href="../classes/SpriteSheetBuilder.html#property_maxWidth" class="crosslink">maxWidth</a>
 233or <a href="../classes/SpriteSheetBuilder.html#property_maxHeight" class="crosslink">maxHeight</a>.</p>
 234
 235</div>
 236
 237
 238    <div class="constructor">
 239        <h2>Constructor</h2>
 240        <div id="method_SpriteSheetBuilder" class="method item">
 241    <h3 class="name"><code>SpriteSheetBuilder</code></h3>
 242
 243    
 244        <div class="args">
 245            <span class="paren">(</span><ul class="args-list inline commas">
 246            
 247                <li class="arg">
 248                    
 249                        <code class="optional">[framerate=0]</code>
 250                    
 251                </li>
 252            
 253            </ul><span class="paren">)</span>
 254        </div>
 255    
 256
 257    
 258
 259    
 260
 261    
 262
 263    
 264
 265    
 266
 267    
 268
 269    
 270
 271    <div class="meta">
 272        
 273            
 274                
 275                <p>
 276                
 277                Defined in
 278                
 279            
 280        
 281        
 282        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l41"><code>SpriteSheetBuilder:41</code></a>
 283        
 284        </p>
 285
 286
 287        
 288
 289        
 290    </div>
 291
 292    <div class="description">
 293        
 294    </div>
 295
 296    
 297        <div class="params">
 298            <h4>Parameters:</h4>
 299
 300            <ul class="params-list">
 301            
 302                <li class="param">
 303                    
 304                        <code class="param-name optional">[framerate=0]</code>
 305                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 306                        <span class="flag optional" title="This parameter is optional.">optional</span>
 307                    
 308
 309                    
 310
 311                    <div class="param-description">
 312                        <p>The <a href="../classes/SpriteSheet.html#property_framerate" class="crosslink">framerate</a> of
 313<a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a> instances that are created.</p>
 314
 315                    </div>
 316
 317                    
 318                </li>
 319            
 320            </ul>
 321        </div>
 322    
 323
 324    
 325
 326    
 327</div>
 328
 329    </div>
 330
 331
 332<div id="classdocs" class="tabview">
 333    <ul class="api-class-tabs">
 334        <li class="api-class-tab index"><a href="#index">Index</a></li>
 335
 336        
 337            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
 338        
 339        
 340            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
 341        
 342        
 343        
 344            <li class="api-class-tab events"><a href="#events">Events</a></li>
 345        
 346    </ul>
 347
 348    <div>
 349        <div id="index" class="api-class-tabpanel index">
 350            <h2 class="off-left">Item Index</h2>
 351
 352            
 353                <div class="index-section methods">
 354                    <h3>Methods</h3>
 355
 356                    <ul class="index-list methods extends">
 357                        
 358                            <li class="index-item method protected inherited">
 359                                <a href="#method__dispatchEvent">_dispatchEvent</a>
 360
 361                                
 362                                
 363                            </li>
 364                        
 365                            <li class="index-item method protected">
 366                                <a href="#method__drawNext">_drawNext</a>
 367
 368                                
 369                                
 370                            </li>
 371                        
 372                            <li class="index-item method protected">
 373                                <a href="#method__endBuild">_endBuild</a>
 374
 375                                
 376                                
 377                            </li>
 378                        
 379                            <li class="index-item method protected">
 380                                <a href="#method__fillRow">_fillRow</a>
 381
 382                                
 383                                
 384                            </li>
 385                        
 386                            <li class="index-item method protected">
 387                                <a href="#method__getSize">_getSize</a>
 388
 389                                
 390                                
 391                            </li>
 392                        
 393                            <li class="index-item method protected">
 394                                <a href="#method__run">_run</a>
 395
 396                                
 397                                
 398                            </li>
 399                        
 400                            <li class="index-item method protected">
 401                                <a href="#method__setupMovieClipFrame">_setupMovieClipFrame</a>
 402
 403                                
 404                                
 405                            </li>
 406                        
 407                            <li class="index-item method protected">
 408                                <a href="#method__startBuild">_startBuild</a>
 409
 410                                
 411                                
 412                            </li>
 413                        
 414                            <li class="index-item method">
 415                                <a href="#method_addAnimation">addAnimation</a>
 416
 417                                
 418                                
 419                            </li>
 420                        
 421                            <li class="index-item method inherited">
 422                                <a href="#method_addEventListener">addEventListener</a>
 423
 424                                
 425                                
 426                            </li>
 427                        
 428                            <li class="index-item method">
 429                                <a href="#method_addFrame">addFrame</a>
 430
 431                                
 432                                
 433                            </li>
 434                        
 435                            <li class="index-item method">
 436                                <a href="#method_addMovieClip">addMovieClip</a>
 437
 438                                
 439                                
 440                            </li>
 441                        
 442                            <li class="index-item method">
 443                                <a href="#method_build">build</a>
 444
 445                                
 446                                
 447                            </li>
 448                        
 449                            <li class="index-item method">
 450                                <a href="#method_buildAsync">buildAsync</a>
 451
 452                                
 453                                
 454                            </li>
 455                        
 456                            <li class="index-item method">
 457                                <a href="#method_clone">clone</a>
 458
 459                                
 460                                
 461                            </li>
 462                        
 463                            <li class="index-item method inherited">
 464                                <a href="#method_dispatchEvent">dispatchEvent</a>
 465
 466                                
 467                                
 468                            </li>
 469                        
 470                            <li class="index-item method inherited">
 471                                <a href="#method_hasEventListener">hasEventListener</a>
 472
 473                                
 474                                
 475                            </li>
 476                        
 477                            <li class="index-item method inherited">
 478                                <a href="#method_off">off</a>
 479
 480                                
 481                                
 482                            </li>
 483                        
 484                            <li class="index-item method inherited">
 485                                <a href="#method_on">on</a>
 486
 487                                
 488                                
 489                            </li>
 490                        
 491                            <li class="index-item method inherited">
 492                                <a href="#method_removeAllEventListeners">removeAllEventListeners</a>
 493
 494                                
 495                                
 496                            </li>
 497                        
 498                            <li class="index-item method inherited">
 499                                <a href="#method_removeEventListener">removeEventListener</a>
 500
 501                                
 502                                
 503                            </li>
 504                        
 505                            <li class="index-item method">
 506                                <a href="#method_stopAsync">stopAsync</a>
 507
 508                                
 509                                
 510                            </li>
 511                        
 512                            <li class="index-item method inherited">
 513                                <a href="#method_toString">toString</a>
 514
 515                                
 516                                
 517                            </li>
 518                        
 519                            <li class="index-item method inherited">
 520                                <a href="#method_willTrigger">willTrigger</a>
 521
 522                                
 523                                
 524                            </li>
 525                        
 526                    </ul>
 527                </div>
 528            
 529
 530            
 531                <div class="index-section properties">
 532                    <h3>Properties</h3>
 533
 534                    <ul class="index-list properties extends">
 535                        
 536                            <li class="index-item property protected">
 537                                <a href="#property__animations">_animations</a>
 538
 539                                
 540                                
 541                            </li>
 542                        
 543                            <li class="index-item property protected inherited">
 544                                <a href="#property__captureListeners">_captureListeners</a>
 545
 546                                
 547                                
 548                            </li>
 549                        
 550                            <li class="index-item property protected">
 551                                <a href="#property__data">_data</a>
 552
 553                                
 554                                
 555                            </li>
 556                        
 557                            <li class="index-item property protected">
 558                                <a href="#property__frames">_frames</a>
 559
 560                                
 561                                
 562                            </li>
 563                        
 564                            <li class="index-item property protected">
 565                                <a href="#property__index">_index</a>
 566
 567                                
 568                                
 569                            </li>
 570                        
 571                            <li class="index-item property protected inherited">
 572                                <a href="#property__listeners">_listeners</a>
 573
 574                                
 575                                
 576                            </li>
 577                        
 578                            <li class="index-item property protected">
 579                                <a href="#property__nextFrameIndex">_nextFrameIndex</a>
 580
 581                                
 582                                
 583                            </li>
 584                        
 585                            <li class="index-item property protected">
 586                                <a href="#property__scale">_scale</a>
 587
 588                                
 589                                
 590                            </li>
 591                        
 592                            <li class="index-item property protected">
 593                                <a href="#property__timerID">_timerID</a>
 594
 595                                
 596                                
 597                            </li>
 598                        
 599                            <li class="index-item property">
 600                                <a href="#property_framerate">framerate</a>
 601
 602                                
 603                                
 604                            </li>
 605                        
 606                            <li class="index-item property">
 607                                <a href="#property_maxHeight">maxHeight</a>
 608
 609                                
 610                                
 611                            </li>
 612                        
 613                            <li class="index-item property">
 614                                <a href="#property_maxWidth">maxWidth</a>
 615
 616                                
 617                                
 618                            </li>
 619                        
 620                            <li class="index-item property">
 621                                <a href="#property_padding">padding</a>
 622
 623                                
 624                                
 625                            </li>
 626                        
 627                            <li class="index-item property">
 628                                <a href="#property_progress">progress</a>
 629
 630                                
 631                                
 632                            </li>
 633                        
 634                            <li class="index-item property">
 635                                <a href="#property_scale">scale</a>
 636
 637                                
 638                                
 639                            </li>
 640                        
 641                            <li class="index-item property">
 642                                <a href="#property_spriteSheet">spriteSheet</a>
 643
 644                                
 645                                
 646                            </li>
 647                        
 648                            <li class="index-item property">
 649                                <a href="#property_timeSlice">timeSlice</a>
 650
 651                                
 652                                
 653                            </li>
 654                        
 655                    </ul>
 656                </div>
 657            
 658
 659            
 660
 661            
 662                <div class="index-section events">
 663                    <h3>Events</h3>
 664
 665                    <ul class="index-list events extends">
 666                        
 667                            <li class="index-item event">
 668                                <a href="#event_complete">complete</a>
 669
 670                                
 671                                
 672                            </li>
 673                        
 674                            <li class="index-item event">
 675                                <a href="#event_progress">progress</a>
 676
 677                                
 678                                
 679                            </li>
 680                        
 681                    </ul>
 682                </div>
 683            
 684        </div>
 685
 686        
 687            <div id="methods" class="api-class-tabpanel">
 688                <h2 class="off-left">Methods</h2>
 689
 690                
 691                    <div id="method__dispatchEvent" class="method item protected inherited">
 692    <h3 class="name"><code>_dispatchEvent</code></h3>
 693
 694    
 695        <div class="args">
 696            <span class="paren">(</span><ul class="args-list inline commas">
 697            
 698                <li class="arg">
 699                    
 700                        <code>eventObj</code>
 701                    
 702                </li>
 703            
 704                <li class="arg">
 705                    
 706                        <code>eventPhase</code>
 707                    
 708                </li>
 709            
 710            </ul><span class="paren">)</span>
 711        </div>
 712    
 713
 714    
 715
 716    
 717
 718    
 719        <span class="flag protected">protected</span>
 720    
 721
 722    
 723
 724    
 725
 726    
 727
 728    
 729
 730    <div class="meta">
 731        
 732            
 733                <p>Inherited from
 734                <a href="../classes/EventDispatcher.html#method__dispatchEvent">EventDispatcher</a>:
 735            
 736        
 737        
 738        <a href="../files/createjs_events_EventDispatcher.js.html#l380"><code>_dispatchEvent:380</code></a>
 739        
 740        </p>
 741
 742
 743        
 744
 745        
 746    </div>
 747
 748    <div class="description">
 749        
 750    </div>
 751
 752    
 753        <div class="params">
 754            <h4>Parameters:</h4>
 755
 756            <ul class="params-list">
 757            
 758                <li class="param">
 759                    
 760                        <code class="param-name">eventObj</code>
 761                        <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>
 762                    
 763
 764                    
 765
 766                    <div class="param-description">
 767                         
 768                    </div>
 769
 770                    
 771                </li>
 772            
 773                <li class="param">
 774                    
 775                        <code class="param-name">eventPhase</code>
 776                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 777                    
 778
 779                    
 780
 781                    <div class="param-description">
 782                         
 783                    </div>
 784
 785                    
 786                </li>
 787            
 788            </ul>
 789        </div>
 790    
 791
 792    
 793
 794    
 795</div>
 796
 797                
 798                    <div id="method__drawNext" class="method item protected">
 799    <h3 class="name"><code>_drawNext</code></h3>
 800
 801    
 802        <span class="paren">()</span>
 803    
 804
 805    
 806        <span class="returns-inline">
 807            <span class="type"></span>
 808        </span>
 809    
 810
 811    
 812
 813    
 814        <span class="flag protected">protected</span>
 815    
 816
 817    
 818
 819    
 820
 821    
 822
 823    
 824
 825    <div class="meta">
 826        
 827            
 828                
 829                <p>
 830                
 831                Defined in
 832                
 833            
 834        
 835        
 836        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l514"><code>_drawNext:514</code></a>
 837        
 838        </p>
 839
 840
 841        
 842
 843        
 844    </div>
 845
 846    <div class="description">
 847        
 848    </div>
 849
 850    
 851
 852    
 853        <div class="returns">
 854            <h4>Returns:</h4>
 855
 856            <div class="returns-description">
 857                
 858                    
 859                    <p>Boolean Returns false if this is the last draw.</p>
 860
 861                
 862            </div>
 863        </div>
 864    
 865
 866    
 867</div>
 868
 869                
 870                    <div id="method__endBuild" class="method item protected">
 871    <h3 class="name"><code>_endBuild</code></h3>
 872
 873    
 874        <span class="paren">()</span>
 875    
 876
 877    
 878
 879    
 880
 881    
 882        <span class="flag protected">protected</span>
 883    
 884
 885    
 886
 887    
 888
 889    
 890
 891    
 892
 893    <div class="meta">
 894        
 895            
 896                
 897                <p>
 898                
 899                Defined in
 900                
 901            
 902        
 903        
 904        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l478"><code>_endBuild:478</code></a>
 905        
 906        </p>
 907
 908
 909        
 910
 911        
 912    </div>
 913
 914    <div class="description">
 915        
 916    </div>
 917
 918    
 919
 920    
 921
 922    
 923</div>
 924
 925                
 926                    <div id="method__fillRow" class="method item protected">
 927    <h3 class="name"><code>_fillRow</code></h3>
 928
 929    
 930        <div class="args">
 931            <span class="paren">(</span><ul class="args-list inline commas">
 932            
 933                <li class="arg">
 934                    
 935                        <code>frames</code>
 936                    
 937                </li>
 938            
 939                <li class="arg">
 940                    
 941                        <code>y</code>
 942                    
 943                </li>
 944            
 945                <li class="arg">
 946                    
 947                        <code>img</code>
 948                    
 949                </li>
 950            
 951                <li class="arg">
 952                    
 953                        <code>dataFrames</code>
 954                    
 955                </li>
 956            
 957                <li class="arg">
 958                    
 959                        <code>pad</code>
 960                    
 961                </li>
 962            
 963            </ul><span class="paren">)</span>
 964        </div>
 965    
 966
 967    
 968        <span class="returns-inline">
 969            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 970        </span>
 971    
 972
 973    
 974
 975    
 976        <span class="flag protected">protected</span>
 977    
 978
 979    
 980
 981    
 982
 983    
 984
 985    
 986
 987    <div class="meta">
 988        
 989            
 990                
 991                <p>
 992                
 993                Defined in
 994                
 995            
 996        
 997        
 998        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l440"><code>_fillRow:440</code></a>
 999        
1000        </p>
1001
1002
1003        
1004
1005        
1006    </div>
1007
1008    <div class="description">
1009        
1010    </div>
1011
1012    
1013        <div class="params">
1014            <h4>Parameters:</h4>
1015
1016            <ul class="params-list">
1017            
1018                <li class="param">
1019                    
1020                        <code class="param-name">frames</code>
1021                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
1022                    
1023
1024                    
1025
1026                    <div class="param-description">
1027                         
1028                    </div>
1029
1030                    
1031                </li>
1032            
1033                <li class="param">
1034                    
1035                        <code class="param-name">y</code>
1036                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1037                    
1038
1039                    
1040
1041                    <div class="param-description">
1042                         
1043                    </div>
1044
1045                    
1046                </li>
1047            
1048                <li class="param">
1049                    
1050                        <code class="param-name">img</code>
1051                        <span class="type">HTMLImageElement</span>
1052                    
1053
1054                    
1055
1056                    <div class="param-description">
1057                         
1058                    </div>
1059
1060                    
1061                </li>
1062            
1063                <li class="param">
1064                    
1065                        <code class="param-name">dataFrames</code>
1066                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
1067                    
1068
1069                    
1070
1071                    <div class="param-description">
1072                         
1073                    </div>
1074
1075                    
1076                </li>
1077            
1078                <li class="param">
1079                    
1080                        <code class="param-name">pad</code>
1081                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1082                    
1083
1084                    
1085
1086                    <div class="param-description">
1087                         
1088                    </div>
1089
1090                    
1091                </li>
1092            
1093            </ul>
1094        </div>
1095    
1096
1097    
1098        <div class="returns">
1099            <h4>Returns:</h4>
1100
1101            <div class="returns-description">
1102                
1103                    
1104                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
1105                    
1106                    <p>The width &amp; height of the row.</p>
1107
1108                
1109            </div>
1110        </div>
1111    
1112
1113    
1114</div>
1115
1116                
1117                    <div id="method__getSize" class="method item protected">
1118    <h3 class="name"><code>_getSize</code></h3>
1119
1120    
1121        <span class="paren">()</span>
1122    
1123
1124    
1125        <span class="returns-inline">
1126            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1127        </span>
1128    
1129
1130    
1131
1132    
1133        <span class="flag protected">protected</span>
1134    
1135
1136    
1137
1138    
1139
1140    
1141
1142    
1143
1144    <div class="meta">
1145        
1146            
1147                
1148                <p>
1149                
1150                Defined in
1151                
1152            
1153        
1154        
1155        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l429"><code>_getSize:429</code></a>
1156        
1157        </p>
1158
1159
1160        
1161
1162        
1163    </div>
1164
1165    <div class="description">
1166        
1167    </div>
1168
1169    
1170
1171    
1172        <div class="returns">
1173            <h4>Returns:</h4>
1174
1175            <div class="returns-description">
1176                
1177                    
1178                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
1179                    
1180                    <p>The width &amp; height of the row.</p>
1181
1182                
1183            </div>
1184        </div>
1185    
1186
1187    
1188</div>
1189
1190                
1191                    <div id="method__run" class="method item protected">
1192    <h3 class="name"><code>_run</code></h3>
1193
1194    
1195        <span class="paren">()</span>
1196    
1197
1198    
1199
1200    
1201
1202    
1203        <span class="flag protected">protected</span>
1204    
1205
1206    
1207
1208    
1209
1210    
1211
1212    
1213
1214    <div class="meta">
1215        
1216            
1217                
1218                <p>
1219                
1220                Defined in
1221                
1222            
1223        
1224        
1225        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l489"><code>_run:489</code></a>
1226        
1227        </p>
1228
1229
1230        
1231
1232        
1233    </div>
1234
1235    <div class="description">
1236        
1237    </div>
1238
1239    
1240
1241    
1242
1243    
1244</div>
1245
1246                
1247                    <div id="method__setupMovieClipFrame" class="method item protected">
1248    <h3 class="name"><code>_setupMovieClipFrame</code></h3>
1249
1250    
1251        <span class="paren">()</span>
1252    
1253
1254    
1255        <span class="returns-inline">
1256            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1257        </span>
1258    
1259
1260    
1261
1262    
1263        <span class="flag protected">protected</span>
1264    
1265
1266    
1267
1268    
1269
1270    
1271
1272    
1273
1274    <div class="meta">
1275        
1276            
1277                
1278                <p>
1279                
1280                Defined in
1281                
1282            
1283        
1284        
1285        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l416"><code>_setupMovieClipFrame:416</code></a>
1286        
1287        </p>
1288
1289
1290        
1291
1292        
1293    </div>
1294
1295    <div class="description">
1296        
1297    </div>
1298
1299    
1300
1301    
1302        <div class="returns">
1303            <h4>Returns:</h4>
1304
1305            <div class="returns-description">
1306                
1307                    
1308                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
1309                    
1310                    <p>The width &amp; height of the row.</p>
1311
1312                
1313            </div>
1314        </div>
1315    
1316
1317    
1318</div>
1319
1320                
1321                    <div id="method__startBuild" class="method item protected">
1322    <h3 class="name"><code>_startBuild</code></h3>
1323
1324    
1325        <span class="paren">()</span>
1326    
1327
1328    
1329
1330    
1331
1332    
1333        <span class="flag protected">protected</span>
1334    
1335
1336    
1337
1338    
1339
1340    
1341
1342    
1343
1344    <div class="meta">
1345        
1346            
1347                
1348                <p>
1349                
1350                Defined in
1351                
1352            
1353        
1354        
1355        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l375"><code>_startBuild:375</code></a>
1356        
1357        </p>
1358
1359
1360        
1361
1362        
1363    </div>
1364
1365    <div class="description">
1366        
1367    </div>
1368
1369    
1370
1371    
1372
1373    
1374</div>
1375
1376                
1377                    <div id="method_addAnimation" class="method item">
1378    <h3 class="name"><code>addAnimation</code></h3>
1379
1380    
1381        <div class="args">
1382            <span class="paren">(</span><ul class="args-list inline commas">
1383            
1384                <li class="arg">
1385                    
1386                        <code>name</code>
1387                    
1388                </li>
1389            
1390                <li class="arg">
1391                    
1392                        <code>frames</code>
1393                    
1394                </li>
1395            
1396                <li class="arg">
1397                    
1398                        <code class="optional">[next]</code>
1399                    
1400                </li>
1401            
1402                <li class="arg">
1403                    
1404                        <code class="optional">[speed]</code>
1405                    
1406                </li>
1407            
1408            </ul><span class="paren">)</span>
1409        </div>
1410    
1411
1412    
1413
1414    
1415
1416    
1417
1418    
1419
1420    
1421
1422    
1423
1424    
1425
1426    <div class="meta">
1427        
1428            
1429                
1430                <p>
1431                
1432                Defined in
1433                
1434            
1435        
1436        
1437        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l243"><code>addAnimation:243</code></a>
1438        
1439        </p>
1440
1441
1442        
1443
1444        
1445    </div>
1446
1447    <div class="description">
1448        <p>Adds an animation that will be included in the created <a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a>.</p>
1449
1450    </div>
1451
1452    
1453        <div class="params">
1454            <h4>Parameters:</h4>
1455
1456            <ul class="params-list">
1457            
1458                <li class="param">
1459                    
1460                        <code class="param-name">name</code>
1461                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
1462                    
1463
1464                    
1465
1466                    <div class="param-description">
1467                        <p>The name for the animation.</p>
1468
1469                    </div>
1470
1471                    
1472                </li>
1473            
1474                <li class="param">
1475                    
1476                        <code class="param-name">frames</code>
1477                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
1478                    
1479
1480                    
1481
1482                    <div class="param-description">
1483                        <p>An array of frame indexes that comprise the animation. Ex. [3,6,5] would describe an animation
1484that played frame indexes 3, 6, and 5 in that order.</p>
1485
1486                    </div>
1487
1488                    
1489                </li>
1490            
1491                <li class="param">
1492                    
1493                        <code class="param-name optional">[next]</code>
1494                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
1495                        <span class="flag optional" title="This parameter is optional.">optional</span>
1496                    
1497
1498                    
1499
1500                    <div class="param-description">
1501                        <p>Specifies the name of the animation to continue to after this animation ends. You can
1502also pass false to have the animation stop when it ends. By default it will loop to the start of the same animation.</p>
1503
1504                    </div>
1505
1506                    
1507                </li>
1508            
1509                <li class="param">
1510                    
1511                        <code class="param-name optional">[speed]</code>
1512                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1513                        <span class="flag optional" title="This parameter is optional.">optional</span>
1514                    
1515
1516                    
1517
1518                    <div class="param-description">
1519                        <p>Specifies a frame advance speed for this animation. For example, a value of 0.5 would
1520cause the animation to advance every second tick. Note that earlier versions used <code>frequency</code> instead, which had
1521the opposite effect.</p>
1522
1523                    </div>
1524
1525                    
1526                </li>
1527            
1528            </ul>
1529        </div>
1530    
1531
1532    
1533
1534    
1535</div>
1536
1537                
1538                    <div id="method_addEventListener" class="method item inherited">
1539    <h3 class="name"><code>addEventListener</code></h3>
1540
1541    
1542        <div class="args">
1543            <span class="paren">(</span><ul class="args-list inline commas">
1544            
1545                <li class="arg">
1546                    
1547                        <code>type</code>
1548                    
1549                </li>
1550            
1551                <li class="arg">
1552                    
1553                        <code>listener</code>
1554                    
1555                </li>
1556            
1557                <li class="arg">
1558                    
1559                        <code class="optional">[useCapture]</code>
1560                    
1561                </li>
1562            
1563            </ul><span class="paren">)</span>
1564        </div>
1565    
1566
1567    
1568        <span class="returns-inline">
1569            <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>
1570        </span>
1571    
1572
1573    
1574
1575    
1576
1577    
1578
1579    
1580
1581    
1582
1583    
1584
1585    <div class="meta">
1586        
1587            
1588                <p>Inherited from
1589                <a href="../classes/EventDispatcher.html#method_addEventListener">EventDispatcher</a>:
1590            
1591        
1592        
1593        <a href="../files/createjs_events_EventDispatcher.js.html#l140"><code>addEventListener:140</code></a>
1594        
1595        </p>
1596
1597
1598        
1599
1600        
1601    </div>
1602
1603    <div class="description">
1604        <p><p>Adds the specified event listener. Note that adding multiple listeners to the same function will result in
1605multiple callbacks getting fired.</p></p>
1606<h4>Example</h4>
1607
1608<pre class="code prettyprint"><code> displayObject.addEventListener("click", handleClick);
1609 function handleClick(event) {
1610    // Click happened.
1611 }</code></pre>
1612
1613    </div>
1614
1615    
1616        <div class="params">
1617            <h4>Parameters:</h4>
1618
1619            <ul class="params-list">
1620            
1621                <li class="param">
1622                    
1623                        <code class="param-name">type</code>
1624                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
1625                    
1626
1627                    
1628
1629                    <div class="param-description">
1630                        <p>The string type of the event.</p>
1631
1632                    </div>
1633
1634                    
1635                </li>
1636            
1637                <li class="param">
1638                    
1639                        <code class="param-name">listener</code>
1640                        <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>
1641                    
1642
1643                    
1644
1645                    <div class="param-description">
1646                        <p>An object with a handleEvent method, or a function that will be called when
1647the event is dispatched.</p>
1648
1649                    </div>
1650
1651                    
1652                </li>
1653            
1654                <li class="param">
1655                    
1656                        <code class="param-name optional">[useCapture]</code>
1657                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1658                        <span class="flag optional" title="This parameter is optional.">optional</span>
1659                    
1660
1661                    
1662
1663                    <div class="param-description">
1664                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
1665
1666                    </div>
1667
1668                    
1669                </li>
1670            
1671            </ul>
1672        </div>
1673    
1674
1675    
1676        <div class="returns">
1677            <h4>Returns:</h4>
1678
1679            <div class="returns-description">
1680                
1681                    
1682                        <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>:
1683                    
1684                    <p>Returns the listener for chaining or assignment.</p>
1685
1686                
1687            </div>
1688        </div>
1689    
1690
1691    
1692</div>
1693
1694                
1695                    <div id="method_addFrame" class="method item">
1696    <h3 class="name"><code>addFrame</code></h3>
1697
1698    
1699        <div class="args">
1700            <span class="paren">(</span><ul class="args-list inline commas">
1701            
1702                <li class="arg">
1703                    
1704                        <code>source</code>
1705                    
1706                </li>
1707            
1708                <li class="arg">
1709                    
1710                        <code class="optional">[sourceRect]</code>
1711                    
1712                </li>
1713            
1714                <li class="arg">
1715                    
1716                        <code class="optional">[scale=1]</code>
1717                    
1718                </li>
1719            
1720                <li class="arg">
1721                    
1722                        <code class="optional">[setupFunction]</code>
1723                    
1724                </li>
1725            
1726                <li class="arg">
1727                    
1728                        <code class="optional">[setupData]</code>
1729                    
1730                </li>
1731            
1732            </ul><span class="paren">)</span>
1733        </div>
1734    
1735
1736    
1737        <span class="returns-inline">
1738            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1739        </span>
1740    
1741
1742    
1743
1744    
1745
1746    
1747
1748    
1749
1750    
1751
1752    
1753
1754    <div class="meta">
1755        
1756            
1757                
1758                <p>
1759                
1760                Defined in
1761                
1762            
1763        
1764        
1765        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l215"><code>addFrame:215</code></a>
1766        
1767        </p>
1768
1769
1770        
1771
1772        
1773    </div>
1774
1775    <div class="description">
1776        <p>Adds a frame to the <a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a>. Note that the frame will not be drawn until you
1777call <a href="../classes/SpriteSheetBuilder.html#method_build" class="crosslink">build</a> method. The optional setup params allow you to have
1778a function run immediately before the draw occurs. For example, this allows you to add a single source multiple
1779times, but manipulate it or its children to change it to generate different frames.</p>
1780<p>Note that the source&#39;s transformations (x, y, scale, rotate, alpha) will be ignored, except for regX/Y. To apply
1781transforms to a source object and have them captured in the SpriteSheet, simply place it into a <a href="../classes/Container.html" class="crosslink">Container</a>
1782and pass in the Container as the source.</p>
1783
1784    </div>
1785
1786    
1787        <div class="params">
1788            <h4>Parameters:</h4>
1789
1790            <ul class="params-list">
1791            
1792                <li class="param">
1793                    
1794                        <code class="param-name">source</code>
1795                        <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
1796                    
1797
1798                    
1799
1800                    <div class="param-description">
1801                        <p>The source <a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a>  to draw as the frame.</p>
1802
1803                    </div>
1804
1805                    
1806                </li>
1807            
1808                <li class="param">
1809                    
1810                        <code class="param-name optional">[sourceRect]</code>
1811                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
1812                        <span class="flag optional" title="This parameter is optional.">optional</span>
1813                    
1814
1815                    
1816
1817                    <div class="param-description">
1818                        <p>A <a href="../classes/Rectangle.html" class="crosslink">Rectangle</a> defining the portion of the
1819source to draw to the frame. If not specified, it will look for a <code>getBounds</code> method, bounds property, or
1820<code>nominalBounds</code> property on the source to use. If one is not found, the frame will be skipped.</p>
1821
1822                    </div>
1823
1824                    
1825                </li>
1826            
1827                <li class="param">
1828                    
1829                        <code class="param-name optional">[scale=1]</code>
1830                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1831                        <span class="flag optional" title="This parameter is optional.">optional</span>
1832                    
1833
1834                    
1835
1836                    <div class="param-description">
1837                        <p>Optional. The scale to draw this frame at. Default is 1.</p>
1838
1839                    </div>
1840
1841                    
1842                </li>
1843            
1844                <li class="param">
1845                    
1846                        <code class="param-name optional">[setupFunction]</code>
1847                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
1848                        <span class="flag optional" title="This parameter is optional.">optional</span>
1849                    
1850
1851                    
1852
1853                    <div class="param-description">
1854                        <p>A function to call immediately before drawing this frame. It will be called with two parameters: the source, and setupData.</p>
1855
1856                    </div>
1857
1858                    
1859                </li>
1860            
1861                <li class="param">
1862                    
1863                        <code class="param-name optional">[setupData]</code>
1864                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
1865                        <span class="flag optional" title="This parameter is optional.">optional</span>
1866                    
1867
1868                    
1869
1870                    <div class="param-description">
1871                        <p>Arbitrary setup data to pass to setupFunction as the second parameter.</p>
1872
1873                    </div>
1874
1875                    
1876                </li>
1877            
1878            </ul>
1879        </div>
1880    
1881
1882    
1883        <div class="returns">
1884            <h4>Returns:</h4>
1885
1886            <div class="returns-description">
1887                
1888                    
1889                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
1890                    
1891                    <p>The index of the frame that was just added, or null if a sourceRect could not be determined.</p>
1892
1893                
1894            </div>
1895        </div>
1896    
1897
1898    
1899</div>
1900
1901                
1902                    <div id="method_addMovieClip" class="method item">
1903    <h3 class="name"><code>addMovieClip</code></h3>
1904
1905    
1906        <div class="args">
1907            <span class="paren">(</span><ul class="args-list inline commas">
1908            
1909                <li class="arg">
1910                    
1911                        <code>source</code>
1912                    
1913                </li>
1914            
1915                <li class="arg">
1916                    
1917                        <code class="optional">[sourceRect]</code>
1918                    
1919                </li>
1920            
1921                <li class="arg">
1922                    
1923                        <code class="optional">[scale=1]</code>
1924                    
1925                </li>
1926            
1927                <li class="arg">
1928                    
1929                        <code class="optional">[setupFunction]</code>
1930                    
1931                </li>
1932            
1933                <li class="arg">
1934                    
1935                        <code class="optional">[setupData]</code>
1936                    
1937                </li>
1938            
1939                <li class="arg">
1940                    
1941                        <code class="optional">[labelFunction]</code>
1942                    
1943                </li>
1944            
1945            </ul><span class="paren">)</span>
1946        </div>
1947    
1948
1949    
1950
1951    
1952
1953    
1954
1955    
1956
1957    
1958
1959    
1960
1961    
1962
1963    <div class="meta">
1964        
1965            
1966                
1967                <p>
1968                
1969                Defined in
1970                
1971            
1972        
1973        
1974        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l260"><code>addMovieClip:260</code></a>
1975        
1976        </p>
1977
1978
1979        
1980
1981        
1982    </div>
1983
1984    <div class="description">
1985        <p>This will take a <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> instance, and add its frames and labels to this
1986builder. Labels will be added as an animation running from the label index to the next label. For example, if
1987there is a label named "foo" at frame 0 and a label named "bar" at frame 10, in a MovieClip with 15 frames, it
1988will add an animation named "foo" that runs from frame index 0 to 9, and an animation named "bar" that runs from
1989frame index 10 to 14.</p>
1990<p>Note that this will iterate through the full MovieClip with <a href="../classes/MovieClip.html#property_actionsEnabled" class="crosslink">actionsEnabled</a>
1991set to <code>false</code>, ending on the last frame.</p>
1992
1993    </div>
1994
1995    
1996        <div class="params">
1997            <h4>Parameters:</h4>
1998
1999            <ul class="params-list">
2000            
2001                <li class="param">
2002                    
2003                        <code class="param-name">source</code>
2004                        <span class="type"><a href="../classes/MovieClip.html" class="crosslink">MovieClip</a></span>
2005                    
2006
2007                    
2008
2009                    <div class="param-description">
2010                        <p>The source MovieClip instance to add to the SpriteSheet.</p>
2011
2012                    </div>
2013
2014                    
2015                </li>
2016            
2017                <li class="param">
2018                    
2019                        <code class="param-name optional">[sourceRect]</code>
2020                        <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
2021                        <span class="flag optional" title="This parameter is optional.">optional</span>
2022                    
2023
2024                    
2025
2026                    <div class="param-description">
2027                        <p>A <a href="../classes/Rectangle.html" class="crosslink">Rectangle</a> defining the portion of the source to
2028draw to the frame. If not specified, it will look for a <a href="../classes/DisplayObject.html#method_getBounds" class="crosslink">getBounds</a>
2029method, <code>frameBounds</code> Array, <code>bounds</code> property, or <code>nominalBounds</code> property on the source to use. If one is not
2030found, the MovieClip will be skipped.</p>
2031
2032                    </div>
2033
2034                    
2035                </li>
2036            
2037                <li class="param">
2038                    
2039                        <code class="param-name optional">[scale=1]</code>
2040                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2041                        <span class="flag optional" title="This parameter is optional.">optional</span>
2042                    
2043
2044                    
2045
2046                    <div class="param-description">
2047                        <p>The scale to draw the movie clip at.</p>
2048
2049                    </div>
2050
2051                    
2052                </li>
2053            
2054                <li class="param">
2055                    
2056                        <code class="param-name optional">[setupFunction]</code>
2057                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
2058                        <span class="flag optional" title="This parameter is optional.">optional</span>
2059                    
2060
2061                    
2062
2063                    <div class="param-description">
2064                        <p>A function to call immediately before drawing each frame. It will be called
2065with three parameters: the source, setupData, and the frame index.</p>
2066
2067                    </div>
2068
2069                    
2070                </li>
2071            
2072                <li class="param">
2073                    
2074                        <code class="param-name optional">[setupData]</code>
2075                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
2076                        <span class="flag optional" title="This parameter is optional.">optional</span>
2077                    
2078
2079                    
2080
2081                    <div class="param-description">
2082                        <p>Arbitrary setup data to pass to setupFunction as the second parameter.</p>
2083
2084                    </div>
2085
2086                    
2087                </li>
2088            
2089                <li class="param">
2090                    
2091                        <code class="param-name optional">[labelFunction]</code>
2092                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
2093                        <span class="flag optional" title="This parameter is optional.">optional</span>
2094                    
2095
2096                    
2097
2098                    <div class="param-description">
2099                        <p>This method will be called for each MovieClip label that is added with four
2100parameters: the label name, the source MovieClip instance, the starting frame index (in the movieclip timeline)
2101and the end index. It must return a new name for the label/animation, or <code>false</code> to exclude the label.</p>
2102
2103                    </div>
2104
2105                    
2106                </li>
2107            
2108            </ul>
2109        </div>
2110    
2111
2112    
2113
2114    
2115</div>
2116
2117                
2118                    <div id="method_build" class="method item">
2119    <h3 class="name"><code>build</code></h3>
2120
2121    
2122        <span class="paren">()</span>
2123    
2124
2125    
2126        <span class="returns-inline">
2127            <span class="type"><a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a></span>
2128        </span>
2129    
2130
2131    
2132
2133    
2134
2135    
2136
2137    
2138
2139    
2140
2141    
2142
2143    <div class="meta">
2144        
2145            
2146                
2147                <p>
2148                
2149                Defined in
2150                
2151            
2152        
2153        
2154        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l318"><code>build:318</code></a>
2155        
2156        </p>
2157
2158
2159        
2160
2161        
2162    </div>
2163
2164    <div class="description">
2165        <p>Builds a <a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a> instance based on the current frames.</p>
2166
2167    </div>
2168
2169    
2170
2171    
2172        <div class="returns">
2173            <h4>Returns:</h4>
2174
2175            <div class="returns-description">
2176                
2177                    
2178                        <span class="type"><a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a></span>:
2179                    
2180                    <p>The created SpriteSheet instance, or null if a build is already running or an error
2181occurred.</p>
2182
2183                
2184            </div>
2185        </div>
2186    
2187
2188    
2189</div>
2190
2191                
2192                    <div id="method_buildAsync" class="method item">
2193    <h3 class="name"><code>buildAsync</code></h3>
2194
2195    
2196        <div class="args">
2197            <span class="paren">(</span><ul class="args-list inline commas">
2198            
2199                <li class="arg">
2200                    
2201                        <code class="optional">[timeSlice]</code>
2202                    
2203                </li>
2204            
2205            </ul><span class="paren">)</span>
2206        </div>
2207    
2208
2209    
2210
2211    
2212
2213    
2214
2215    
2216
2217    
2218
2219    
2220
2221    
2222
2223    <div class="meta">
2224        
2225            
2226                
2227                <p>
2228                
2229                Defined in
2230                
2231            
2232        
2233        
2234        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l332"><code>buildAsync:332</code></a>
2235        
2236        </p>
2237
2238
2239        
2240
2241        
2242    </div>
2243
2244    <div class="description">
2245        <p>Asynchronously builds a <a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a> instance based on the current frames. It will
2246run 20 times per second, using an amount of time defined by <code>timeSlice</code>. When it is complete it will call the
2247specified callback.</p>
2248
2249    </div>
2250
2251    
2252        <div class="params">
2253            <h4>Parameters:</h4>
2254
2255            <ul class="params-list">
2256            
2257                <li class="param">
2258                    
2259                        <code class="param-name optional">[timeSlice]</code>
2260                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2261                        <span class="flag optional" title="This parameter is optional.">optional</span>
2262                    
2263
2264                    
2265
2266                    <div class="param-description">
2267                        <p>Sets the timeSlice property on this instance.</p>
2268
2269                    </div>
2270
2271                    
2272                </li>
2273            
2274            </ul>
2275        </div>
2276    
2277
2278    
2279
2280    
2281</div>
2282
2283                
2284                    <div id="method_clone" class="method item">
2285    <h3 class="name"><code>clone</code></h3>
2286
2287    
2288        <span class="paren">()</span>
2289    
2290
2291    
2292
2293    
2294
2295    
2296
2297    
2298
2299    
2300
2301    
2302
2303    
2304
2305    <div class="meta">
2306        
2307            
2308                
2309                <p>
2310                
2311                Defined in
2312                
2313            
2314        
2315        
2316        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l356"><code>clone:356</code></a>
2317        
2318        </p>
2319
2320
2321        
2322
2323        
2324    </div>
2325
2326    <div class="description">
2327        <p>SpriteSheetBuilder instances cannot be cloned.</p>
2328
2329    </div>
2330
2331    
2332
2333    
2334
2335    
2336</div>
2337
2338                
2339                    <div id="method_dispatchEvent" class="method item inherited">
2340    <h3 class="name"><code>dispatchEvent</code></h3>
2341
2342    
2343        <div class="args">
2344            <span class="paren">(</span><ul class="args-list inline commas">
2345            
2346                <li class="arg">
2347                    
2348                        <code>eventObj</code>
2349                    
2350                </li>
2351            
2352                <li class="arg">
2353                    
2354                        <code class="optional">[bubbles]</code>
2355                    
2356                </li>
2357            
2358                <li class="arg">
2359                    
2360                        <code class="optional">[cancelable]</code>
2361                    
2362                </li>
2363            
2364            </ul><span class="paren">)</span>
2365        </div>
2366    
2367
2368    
2369        <span class="returns-inline">
2370            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2371        </span>
2372    
2373
2374    
2375
2376    
2377
2378    
2379
2380    
2381
2382    
2383
2384    
2385
2386    <div class="meta">
2387        
2388            
2389                <p>Inherited from
2390                <a href="../classes/EventDispatcher.html#method_dispatchEvent">EventDispatcher</a>:
2391            
2392        
2393        
2394        <a href="../files/createjs_events_EventDispatcher.js.html#l285"><code>dispatchEvent:285</code></a>
2395        
2396        </p>
2397
2398
2399        
2400
2401        
2402    </div>
2403
2404    <div class="description">
2405        <p><p>Dispatches the specified event to all listeners.</p></p>
2406<h4>Example</h4>
2407
2408<pre class="code prettyprint"><code> // Use a string event
2409 this.dispatchEvent("complete");
2410
2411 // Use an Event instance
2412 var event = new createjs.Event("progress");
2413 this.dispatchEvent(event);</code></pre>
2414
2415    </div>
2416
2417    
2418        <div class="params">
2419            <h4>Parameters:</h4>
2420
2421            <ul class="params-list">
2422            
2423                <li class="param">
2424                    
2425                        <code class="param-name">eventObj</code>
2426                        <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>
2427                    
2428
2429                    
2430
2431                    <div class="param-description">
2432                        <p>An object with a "type" property, or a string type.
2433While a generic object will work, it is recommended to use a CreateJS Event instance. If a string is used,
2434dispatchEvent will construct an Event instance if necessary with the specified type. This latter approach can
2435be used to avoid event object instantiation for non-bubbling events that may not have any listeners.</p>
2436
2437                    </div>
2438
2439                    
2440                </li>
2441            
2442                <li class="param">
2443                    
2444                        <code class="param-name optional">[bubbles]</code>
2445                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2446                        <span class="flag optional" title="This parameter is optional.">optional</span>
2447                    
2448
2449                    
2450
2451                    <div class="param-description">
2452                        <p>Specifies the <code>bubbles</code> value when a string was passed to eventObj.</p>
2453
2454                    </div>
2455
2456                    
2457                </li>
2458            
2459                <li class="param">
2460                    
2461                        <code class="param-name optional">[cancelable]</code>
2462                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2463                        <span class="flag optional" title="This parameter is optional.">optional</span>
2464                    
2465
2466                    
2467
2468                    <div class="param-description">
2469                        <p>Specifies the <code>cancelable</code> value when a string was passed to eventObj.</p>
2470
2471                    </div>
2472
2473                    
2474                </li>
2475            
2476            </ul>
2477        </div>
2478    
2479
2480    
2481        <div class="returns">
2482            <h4>Returns:</h4>
2483
2484            <div class="returns-description">
2485                
2486                    
2487                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
2488                    
2489                    <p>Returns false if <code>preventDefault()</code> was called on a cancelable event, true otherwise.</p>
2490
2491                
2492            </div>
2493        </div>
2494    
2495
2496    
2497</div>
2498
2499                
2500                    <div id="method_hasEventListener" class="method item inherited">
2501    <h3 class="name"><code>hasEventListener</code></h3>
2502
2503    
2504        <div class="args">
2505            <span class="paren">(</span><ul class="args-list inline commas">
2506            
2507                <li class="arg">
2508                    
2509                        <code>type</code>
2510                    
2511                </li>
2512            
2513            </ul><span class="paren">)</span>
2514        </div>
2515    
2516
2517    
2518        <span class="returns-inline">
2519            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2520        </span>
2521    
2522
2523    
2524
2525    
2526
2527    
2528
2529    
2530
2531    
2532
2533    
2534
2535    <div class="meta">
2536        
2537            
2538                <p>Inherited from
2539                <a href="../classes/EventDispatcher.html#method_hasEventListener">EventDispatcher</a>:
2540            
2541        
2542        
2543        <a href="../files/createjs_events_EventDispatcher.js.html#l339"><code>hasEventListener:339</code></a>
2544        
2545        </p>
2546
2547
2548        
2549
2550        
2551    </div>
2552
2553    <div class="description">
2554        <p>Indicates whether there is at least one listener for the specified event type.</p>
2555
2556    </div>
2557
2558    
2559        <div class="params">
2560            <h4>Parameters:</h4>
2561
2562            <ul class="params-list">
2563            
2564                <li class="param">
2565                    
2566                        <code class="param-name">type</code>
2567                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
2568                    
2569
2570                    
2571
2572                    <div class="param-description">
2573                        <p>The string type of the event.</p>
2574
2575                    </div>
2576
2577                    
2578                </li>
2579            
2580            </ul>
2581        </div>
2582    
2583
2584    
2585        <div class="returns">
2586            <h4>Returns:</h4>
2587
2588            <div class="returns-description">
2589                
2590                    
2591                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
2592                    
2593                    <p>Returns true if there is at least one listener for the specified event.</p>
2594
2595                
2596            </div>
2597        </div>
2598    
2599
2600    
2601</div>
2602
2603                
2604                    <div id="method_off" class="method item inherited">
2605    <h3 class="name"><code>off</code></h3>
2606
2607    
2608        <div class="args">
2609            <span class="paren">(</span><ul class="args-list inline commas">
2610            
2611                <li class="arg">
2612                    
2613                        <code>type</code>
2614                    
2615                </li>
2616            
2617                <li class="arg">
2618                    
2619                        <code>listener</code>
2620                    
2621                </li>
2622            
2623                <li class="arg">
2624                    
2625                        <code class="optional">[useCapture]</code>
2626                    
2627                </li>
2628            
2629            </ul><span class="paren">)</span>
2630        </div>
2631    
2632
2633    
2634
2635    
2636
2637    
2638
2639    
2640
2641    
2642
2643    
2644
2645    
2646
2647    <div class="meta">
2648        
2649            
2650                <p>Inherited from
2651                <a href="../classes/EventDispatcher.html#method_off">EventDispatcher</a>:
2652            
2653        
2654        
2655        <a href="../files/createjs_events_EventDispatcher.js.html#l249"><code>off:249</code></a>
2656        
2657        </p>
2658
2659
2660        
2661
2662        
2663    </div>
2664
2665    <div class="description">
2666        <p>A shortcut to the removeEventListener method, with the same parameters and return value. This is a companion to the
2667.on method.</p>
2668<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 
2669<a href="../classes/EventDispatcher.html#method_on" class="crosslink">on</a> for an example.</p>
2670
2671    </div>
2672
2673    
2674        <div class="params">
2675            <h4>Parameters:</h4>
2676
2677            <ul class="params-list">
2678            
2679                <li class="param">
2680                    
2681                        <code class="param-name">type</code>
2682                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
2683                    
2684
2685                    
2686
2687                    <div class="param-description">
2688                        <p>The string type of the event.</p>
2689
2690                    </div>
2691
2692                    
2693                </li>
2694            
2695                <li class="param">
2696                    
2697                        <code class="param-name">listener</code>
2698                        <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>
2699                    
2700
2701                    
2702
2703                    <div class="param-description">
2704                        <p>The listener function or object.</p>
2705
2706                    </div>
2707
2708                    
2709                </li>
2710            
2711                <li class="param">
2712                    
2713                        <code class="param-name optional">[useCapture]</code>
2714                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2715                        <span class="flag optional" title="This parameter is optional.">optional</span>
2716                    
2717
2718                    
2719
2720                    <div class="param-description">
2721                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
2722
2723                    </div>
2724
2725                    
2726                </li>
2727            
2728            </ul>
2729        </div>
2730    
2731
2732    
2733
2734    
2735</div>
2736
2737                
2738                    <div id="method_on" class="method item inherited">
2739    <h3 class="name"><code>on</code></h3>
2740
2741    
2742        <div class="args">
2743            <span class="paren">(</span><ul class="args-list inline commas">
2744            
2745                <li class="arg">
2746                    
2747                        <code>type</code>
2748                    
2749                </li>
2750            
2751                <li class="arg">
2752                    
2753                        <code>listener</code>
2754                    
2755                </li>
2756            
2757                <li class="arg">
2758                    
2759                        <code class="optional">[scope]</code>
2760                    
2761                </li>
2762            
2763                <li class="arg">
2764                    
2765                        <code class="optional">[once=false]</code>
2766                    
2767                </li>
2768            
2769                <li class="arg">
2770                    
2771                        <code class="optional">[data]</code>
2772                    
2773                </li>
2774            
2775                <li class="arg">
2776                    
2777                        <code class="optional">[useCapture=false]</code>
2778                    
2779                </li>
2780            
2781            </ul><span class="paren">)</span>
2782        </div>
2783    
2784
2785    
2786        <span class="returns-inline">
2787            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
2788        </span>
2789    
2790
2791    
2792
2793    
2794
2795    
2796
2797    
2798
2799    
2800
2801    
2802
2803    <div class="meta">
2804        
2805            
2806                <p>Inherited from
2807                <a href="../classes/EventDispatcher.html#method_on">EventDispatcher</a>:
2808            
2809        
2810        
2811        <a href="../files/createjs_events_EventDispatcher.js.html#l173"><code>on:173</code></a>
2812        
2813        </p>
2814
2815
2816        
2817
2818        
2819    </div>
2820
2821    <div class="description">
2822        <p><p>A shortcut method for using addEventListener that makes it easier to specify an execution scope, have a listener
2823only run once, associate arbitrary data with the listener, and remove the listener.</p></p>
2824<p><p>This method works by creating an anonymous wrapper function and subscribing it with addEventListener.
2825The wrapper function is returned for use with <code>removeEventListener</code> (or <code>off</code>).</p></p>
2826<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
2827<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
2828to <code>on</code> with the same params will create multiple listeners.</p></p>
2829<h4>Example</h4>
2830
2831<pre class="code prettyprint"><code>    var listener = myBtn.on("click", handleClick, null, false, {count:3});
2832    function handleClick(evt, data) {
2833        data.count -= 1;
2834        console.log(this == myBtn); // true - scope defaults to the dispatcher
2835        if (data.count == 0) {
2836            alert("clicked 3 times!");
2837            myBtn.off("click", listener);
2838            // alternately: evt.remove();
2839        }
2840    }</code></pre>
2841
2842    </div>
2843
2844    
2845        <div class="params">
2846            <h4>Parameters:</h4>
2847
2848            <ul class="params-list">
2849            
2850                <li class="param">
2851                    
2852                        <code class="param-name">type</code>
2853                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
2854                    
2855
2856                    
2857
2858                    <div class="param-description">
2859                        <p>The string type of the event.</p>
2860
2861                    </div>
2862
2863                    
2864                </li>
2865            
2866                <li class="param">
2867                    
2868                        <code class="param-name">listener</code>
2869                        <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>
2870                    
2871
2872                    
2873
2874                    <div class="param-description">
2875                        <p>An object with a handleEvent method, or a function that will be called when
2876the event is dispatched.</p>
2877
2878                    </div>
2879
2880                    
2881                </li>
2882            
2883                <li class="param">
2884                    
2885                        <code class="param-name optional">[scope]</code>
2886                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
2887                        <span class="flag optional" title="This parameter is optional.">optional</span>
2888                    
2889
2890                    
2891
2892                    <div class="param-description">
2893                        <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>
2894
2895                    </div>
2896
2897                    
2898                </li>
2899            
2900                <li class="param">
2901                    
2902                        <code class="param-name optional">[once=false]</code>
2903                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2904                        <span class="flag optional" title="This parameter is optional.">optional</span>
2905                    
2906
2907                    
2908
2909                    <div class="param-description">
2910                        <p>If true, the listener will remove itself after the first time it is triggered.</p>
2911
2912                    </div>
2913
2914                    
2915                </li>
2916            
2917                <li class="param">
2918                    
2919                        <code class="param-name optional">[data]</code>
2920                        <span class="type"></span>
2921                        <span class="flag optional" title="This parameter is optional.">optional</span>
2922                    
2923
2924                    
2925
2926                    <div class="param-description">
2927                        <p>Arbitrary data that will be included as the second parameter when the listener is called.</p>
2928
2929                    </div>
2930
2931                    
2932                </li>
2933            
2934                <li class="param">
2935                    
2936                        <code class="param-name optional">[useCapture=false]</code>
2937                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2938                        <span class="flag optional" title="This parameter is optional.">optional</span>
2939                    
2940
2941                    
2942
2943                    <div class="param-description">
2944                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
2945
2946                    </div>
2947
2948                    
2949                </li>
2950            
2951            </ul>
2952        </div>
2953    
2954
2955    
2956        <div class="returns">
2957            <h4>Returns:</h4>
2958
2959            <div class="returns-description">
2960                
2961                    
2962                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>:
2963                    
2964                    <p>Returns the anonymous function that was created and assigned as the listener. This is needed to remove the listener later using .removeEventListener.</p>
2965
2966                
2967            </div>
2968        </div>
2969    
2970
2971    
2972</div>
2973
2974                
2975                    <div id="method_removeAllEventListeners" class="method item inherited">
2976    <h3 class="name"><code>removeAllEventListeners</code></h3>
2977
2978    
2979        <div class="args">
2980            <span class="paren">(</span><ul class="args-list inline commas">
2981            
2982                <li class="arg">
2983                    
2984                        <code class="optional">[type]</code>
2985                    
2986                </li>
2987            
2988            </ul><span class="paren">)</span>
2989        </div>
2990    
2991
2992    
2993
2994    
2995
2996    
2997
2998    
2999
3000    
3001
3002    
3003
3004    
3005
3006    <div class="meta">
3007        
3008            
3009                <p>Inherited from
3010                <a href="../classes/EventDispatcher.html#method_removeAllEventListeners">EventDispatcher</a>:
3011            
3012        
3013        
3014        <a href="../files/createjs_events_EventDispatcher.js.html#l263"><code>removeAllEventListeners:263</code></a>
3015        
3016        </p>
3017
3018
3019        
3020
3021        
3022    </div>
3023
3024    <div class="description">
3025        <p><p>Removes all listeners for the specified type, or all listeners of all types.</p></p>
3026<h4>Example</h4>
3027
3028<pre class="code prettyprint"><code> // Remove all listeners
3029 displayObject.removeAllEventListeners();
3030
3031 // Remove all click listeners
3032 displayObject.removeAllEventListeners("click");</code></pre>
3033
3034    </div>
3035
3036    
3037        <div class="params">
3038            <h4>Parameters:</h4>
3039
3040            <ul class="params-list">
3041            
3042                <li class="param">
3043                    
3044                        <code class="param-name optional">[type]</code>
3045                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
3046                        <span class="flag optional" title="This parameter is optional.">optional</span>
3047                    
3048
3049                    
3050
3051                    <div class="param-description">
3052                        <p>The string type of the event. If omitted, all listeners for all types will be removed.</p>
3053
3054                    </div>
3055
3056                    
3057                </li>
3058            
3059            </ul>
3060        </div>
3061    
3062
3063    
3064
3065    
3066</div>
3067
3068                
3069                    <div id="method_removeEventListener" class="method item inherited">
3070    <h3 class="name"><code>removeEventListener</code></h3>
3071
3072    
3073        <div class="args">
3074            <span class="paren">(</span><ul class="args-list inline commas">
3075            
3076                <li class="arg">
3077                    
3078                        <code>type</code>
3079                    
3080                </li>
3081            
3082                <li class="arg">
3083                    
3084                        <code>listener</code>
3085                    
3086                </li>
3087            
3088                <li class="arg">
3089                    
3090                        <code class="optional">[useCapture]</code>
3091                    
3092                </li>
3093            
3094            </ul><span class="paren">)</span>
3095        </div>
3096    
3097
3098    
3099
3100    
3101
3102    
3103
3104    
3105
3106    
3107
3108    
3109
3110    
3111
3112    <div class="meta">
3113        
3114            
3115                <p>Inherited from
3116                <a href="../classes/EventDispatcher.html#method_removeEventListener">EventDispatcher</a>:
3117            
3118        
3119        
3120        <a href="../files/createjs_events_EventDispatcher.js.html#l219"><code>removeEventListener:219</code></a>
3121        
3122        </p>
3123
3124
3125        
3126
3127        
3128    </div>
3129
3130    <div class="description">
3131        <p><p>Removes the specified event listener.</p></p>
3132<p><p><b>Important Note:</b> that you must pass the exact function reference used when the event was added. If a proxy
3133function, or function closure is used as the callback, the proxy/closure reference must be used - a new proxy or
3134closure will not work.</p></p>
3135<h4>Example</h4>
3136
3137<pre class="code prettyprint"><code> displayObject.removeEventListener("click", handleClick);</code></pre>
3138
3139    </div>
3140
3141    
3142        <div class="params">
3143            <h4>Parameters:</h4>
3144
3145            <ul class="params-list">
3146            
3147                <li class="param">
3148                    
3149                        <code class="param-name">type</code>
3150                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
3151                    
3152
3153                    
3154
3155                    <div class="param-description">
3156                        <p>The string type of the event.</p>
3157
3158                    </div>
3159
3160                    
3161                </li>
3162            
3163                <li class="param">
3164                    
3165                        <code class="param-name">listener</code>
3166                        <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>
3167                    
3168
3169                    
3170
3171                    <div class="param-description">
3172                        <p>The listener function or object.</p>
3173
3174                    </div>
3175
3176                    
3177                </li>
3178            
3179                <li class="param">
3180                    
3181                        <code class="param-name optional">[useCapture]</code>
3182                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3183                        <span class="flag optional" title="This parameter is optional.">optional</span>
3184                    
3185
3186                    
3187
3188                    <div class="param-description">
3189                        <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
3190
3191                    </div>
3192
3193                    
3194                </li>
3195            
3196            </ul>
3197        </div>
3198    
3199
3200    
3201
3202    
3203</div>
3204
3205                
3206                    <div id="method_stopAsync" class="method item">
3207    <h3 class="name"><code>stopAsync</code></h3>
3208
3209    
3210        <span class="paren">()</span>
3211    
3212
3213    
3214
3215    
3216
3217    
3218
3219    
3220
3221    
3222
3223    
3224
3225    
3226
3227    <div class="meta">
3228        
3229            
3230                
3231                <p>
3232                
3233                Defined in
3234                
3235            
3236        
3237        
3238        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l347"><code>stopAsync:347</code></a>
3239        
3240        </p>
3241
3242
3243        
3244
3245        
3246    </div>
3247
3248    <div class="description">
3249        <p>Stops the current asynchronous build.</p>
3250
3251    </div>
3252
3253    
3254
3255    
3256
3257    
3258</div>
3259
3260                
3261                    <div id="method_toString" class="method item">
3262    <h3 class="name"><code>toString</code></h3>
3263
3264    
3265        <span class="paren">()</span>
3266    
3267
3268    
3269        <span class="returns-inline">
3270            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
3271        </span>
3272    
3273
3274    
3275
3276    
3277
3278    
3279
3280    
3281
3282    
3283
3284    
3285
3286    <div class="meta">
3287        
3288            <p>Inherited from
3289            <a href="../classes/EventDispatcher.html#method_toString">
3290                EventDispatcher
3291            </a>
3292            
3293            but overwritten in
3294            
3295        
3296        
3297        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l364"><code>toString:364</code></a>
3298        
3299        </p>
3300
3301
3302        
3303
3304        
3305    </div>
3306
3307    <div class="description">
3308        <p>Returns a string representation of this object.</p>
3309
3310    </div>
3311
3312    
3313
3314    
3315        <div class="returns">
3316            <h4>Returns:</h4>
3317
3318            <div class="returns-description">
3319                
3320                    
3321                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
3322                    
3323                    <p>a string representation of the instance.</p>
3324
3325                
3326            </div>
3327        </div>
3328    
3329
3330    
3331</div>
3332
3333                
3334                    <div id="method_willTrigger" class="method item inherited">
3335    <h3 class="name"><code>willTrigger</code></h3>
3336
3337    
3338        <div class="args">
3339            <span class="paren">(</span><ul class="args-list inline commas">
3340            
3341                <li class="arg">
3342                    
3343                        <code>type</code>
3344                    
3345                </li>
3346            
3347            </ul><span class="paren">)</span>
3348        </div>
3349    
3350
3351    
3352        <span class="returns-inline">
3353            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3354        </span>
3355    
3356
3357    
3358
3359    
3360
3361    
3362
3363    
3364
3365    
3366
3367    
3368
3369    <div class="meta">
3370        
3371            
3372                <p>Inherited from
3373                <a href="../classes/EventDispatcher.html#method_willTrigger">EventDispatcher</a>:
3374            
3375        
3376        
3377        <a href="../files/createjs_events_EventDispatcher.js.html#l350"><code>willTrigger:350</code></a>
3378        
3379        </p>
3380
3381
3382        
3383
3384        
3385    </div>
3386
3387    <div class="description">
3388        <p>Indicates whether there is at least one listener for the specified event type on this object or any of its
3389ancestors (parent, parent&#39;s parent, etc). A return value of true indicates that if a bubbling event of the
3390specified type is dispatched from this object, it will trigger at least one listener.</p>
3391<p>This is similar to <a href="../classes/EventDispatcher.html#method_hasEventListener" class="crosslink">hasEventListener</a>, but it searches the entire
3392event flow for a listener, not just this object.</p>
3393
3394    </div>
3395
3396    
3397        <div class="params">
3398            <h4>Parameters:</h4>
3399
3400            <ul class="params-list">
3401            
3402                <li class="param">
3403                    
3404                        <code class="param-name">type</code>
3405                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
3406                    
3407
3408                    
3409
3410                    <div class="param-description">
3411                        <p>The string type of the event.</p>
3412
3413                    </div>
3414
3415                    
3416                </li>
3417            
3418            </ul>
3419        </div>
3420    
3421
3422    
3423        <div class="returns">
3424            <h4>Returns:</h4>
3425
3426            <div class="returns-description">
3427                
3428                    
3429                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
3430                    
3431                    <p>Returns <code>true</code> if there is at least one listener for the specified event.</p>
3432
3433                
3434            </div>
3435        </div>
3436    
3437
3438    
3439</div>
3440
3441                
3442            </div>
3443        
3444
3445        
3446            <div id="properties" class="api-class-tabpanel">
3447                <h2 class="off-left">Properties</h2>
3448
3449                
3450                    <div id="property__animations" class="property item protected">
3451    <h3 class="name"><code>_animations</code></h3>
3452    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
3453
3454    
3455
3456    
3457        <span class="flag protected">protected</span>
3458    
3459
3460    
3461
3462    
3463
3464    
3465
3466    <div class="meta">
3467        
3468            
3469                
3470                <p>
3471                
3472                Defined in
3473                
3474            
3475        
3476        
3477        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l147"><code>_animations:147</code></a>
3478        
3479        </p>
3480
3481        
3482
3483        
3484    </div>
3485
3486    <div class="description">
3487        
3488    </div>
3489
3490    
3491
3492    
3493
3494    
3495</div>
3496
3497                
3498                    <div id="property__captureListeners" class="property item protected inherited">
3499    <h3 class="name"><code>_captureListeners</code></h3>
3500    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
3501
3502    
3503
3504    
3505        <span class="flag protected">protected</span>
3506    
3507
3508    
3509
3510    
3511
3512    
3513
3514    <div class="meta">
3515        
3516            
3517                <p>Inherited from
3518                <a href="../classes/EventDispatcher.html#property__captureListeners">EventDispatcher</a>:
3519            
3520        
3521        
3522        <a href="../files/createjs_events_EventDispatcher.js.html#l106"><code>_captureListeners:106</code></a>
3523        
3524        </p>
3525
3526        
3527
3528        
3529    </div>
3530
3531    <div class="description">
3532        
3533    </div>
3534
3535    
3536
3537    
3538
3539    
3540</div>
3541
3542                
3543                    <div id="property__data" class="property item protected">
3544    <h3 class="name"><code>_data</code></h3>
3545    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
3546
3547    
3548
3549    
3550        <span class="flag protected">protected</span>
3551    
3552
3553    
3554
3555    
3556
3557    
3558
3559    <div class="meta">
3560        
3561            
3562                
3563                <p>
3564                
3565                Defined in
3566                
3567            
3568        
3569        
3570        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l154"><code>_data:154</code></a>
3571        
3572        </p>
3573
3574        
3575
3576        
3577    </div>
3578
3579    <div class="description">
3580        
3581    </div>
3582
3583    
3584
3585    
3586
3587    
3588</div>
3589
3590                
3591                    <div id="property__frames" class="property item protected">
3592    <h3 class="name"><code>_frames</code></h3>
3593    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
3594
3595    
3596
3597    
3598        <span class="flag protected">protected</span>
3599    
3600
3601    
3602
3603    
3604
3605    
3606
3607    <div class="meta">
3608        
3609            
3610                
3611                <p>
3612                
3613                Defined in
3614                
3615            
3616        
3617        
3618        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l140"><code>_frames:140</code></a>
3619        
3620        </p>
3621
3622        
3623
3624        
3625    </div>
3626
3627    <div class="description">
3628        
3629    </div>
3630
3631    
3632
3633    
3634
3635    
3636</div>
3637
3638                
3639                    <div id="property__index" class="property item protected">
3640    <h3 class="name"><code>_index</code></h3>
3641    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3642
3643    
3644
3645    
3646        <span class="flag protected">protected</span>
3647    
3648
3649    
3650
3651    
3652
3653    
3654
3655    <div class="meta">
3656        
3657            
3658                
3659                <p>
3660                
3661                Defined in
3662                
3663            
3664        
3665        
3666        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l168"><code>_index:168</code></a>
3667        
3668        </p>
3669
3670        
3671
3672        
3673    </div>
3674
3675    <div class="description">
3676        
3677    </div>
3678
3679    
3680
3681    
3682
3683    
3684</div>
3685
3686                
3687                    <div id="property__listeners" class="property item protected inherited">
3688    <h3 class="name"><code>_listeners</code></h3>
3689    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
3690
3691    
3692
3693    
3694        <span class="flag protected">protected</span>
3695    
3696
3697    
3698
3699    
3700
3701    
3702
3703    <div class="meta">
3704        
3705            
3706                <p>Inherited from
3707                <a href="../classes/EventDispatcher.html#property__listeners">EventDispatcher</a>:
3708            
3709        
3710        
3711        <a href="../files/createjs_events_EventDispatcher.js.html#l99"><code>_listeners:99</code></a>
3712        
3713        </p>
3714
3715        
3716
3717        
3718    </div>
3719
3720    <div class="description">
3721        
3722    </div>
3723
3724    
3725
3726    
3727
3728    
3729</div>
3730
3731                
3732                    <div id="property__nextFrameIndex" class="property item protected">
3733    <h3 class="name"><code>_nextFrameIndex</code></h3>
3734    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3735
3736    
3737
3738    
3739        <span class="flag protected">protected</span>
3740    
3741
3742    
3743
3744    
3745
3746    
3747
3748    <div class="meta">
3749        
3750            
3751                
3752                <p>
3753                
3754                Defined in
3755                
3756            
3757        
3758        
3759        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l161"><code>_nextFrameIndex:161</code></a>
3760        
3761        </p>
3762
3763        
3764
3765        
3766    </div>
3767
3768    <div class="description">
3769        
3770    </div>
3771
3772    
3773
3774    
3775
3776    
3777</div>
3778
3779                
3780                    <div id="property__scale" class="property item protected">
3781    <h3 class="name"><code>_scale</code></h3>
3782    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3783
3784    
3785
3786    
3787        <span class="flag protected">protected</span>
3788    
3789
3790    
3791
3792    
3793
3794    
3795
3796    <div class="meta">
3797        
3798            
3799                
3800                <p>
3801                
3802                Defined in
3803                
3804            
3805        
3806        
3807        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l182"><code>_scale:182</code></a>
3808        
3809        </p>
3810
3811        
3812
3813        
3814    </div>
3815
3816    <div class="description">
3817        
3818    </div>
3819
3820    
3821
3822    
3823
3824    
3825</div>
3826
3827                
3828                    <div id="property__timerID" class="property item protected">
3829    <h3 class="name"><code>_timerID</code></h3>
3830    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3831
3832    
3833
3834    
3835        <span class="flag protected">protected</span>
3836    
3837
3838    
3839
3840    
3841
3842    
3843
3844    <div class="meta">
3845        
3846            
3847                
3848                <p>
3849                
3850                Defined in
3851                
3852            
3853        
3854        
3855        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l175"><code>_timerID:175</code></a>
3856        
3857        </p>
3858
3859        
3860
3861        
3862    </div>
3863
3864    <div class="description">
3865        
3866    </div>
3867
3868    
3869
3870    
3871
3872    
3873</div>
3874
3875                
3876                    <div id="property_framerate" class="property item">
3877    <h3 class="name"><code>framerate</code></h3>
3878    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3879
3880    
3881
3882    
3883
3884    
3885
3886    
3887
3888    
3889
3890    <div class="meta">
3891        
3892            
3893                
3894                <p>
3895                
3896                Defined in
3897                
3898            
3899        
3900        
3901        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l128"><code>framerate:128</code></a>
3902        
3903        </p>
3904
3905        
3906
3907        
3908    </div>
3909
3910    <div class="description">
3911        <p>A <a href="../classes/SpriteSheet.html#property_framerate" class="crosslink">framerate</a> value that will be passed to new <a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a> instances that are
3912created. If no framerate is specified (or it is 0), then SpriteSheets will use the <a href="../classes/Ticker.html" class="crosslink">Ticker</a>
3913framerate.</p>
3914
3915    </div>
3916
3917    
3918        <p><strong>Default:</strong> 0</p>
3919    
3920
3921    
3922
3923    
3924</div>
3925
3926                
3927                    <div id="property_maxHeight" class="property item">
3928    <h3 class="name"><code>maxHeight</code></h3>
3929    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3930
3931    
3932
3933    
3934
3935    
3936
3937    
3938
3939    
3940
3941    <div class="meta">
3942        
3943            
3944                
3945                <p>
3946                
3947                Defined in
3948                
3949            
3950        
3951        
3952        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l72"><code>maxHeight:72</code></a>
3953        
3954        </p>
3955
3956        
3957
3958        
3959    </div>
3960
3961    <div class="description">
3962        <p>The maximum height for the images (not individual frames) in the generated SpriteSheet. It is recommended to
3963use a power of 2 for this value (ex. 1024, 2048, 4096). If the frames cannot all fit within the max
3964dimensions, then additional images will be created as needed.</p>
3965
3966    </div>
3967
3968    
3969        <p><strong>Default:</strong> 2048</p>
3970    
3971
3972    
3973
3974    
3975</div>
3976
3977                
3978                    <div id="property_maxWidth" class="property item">
3979    <h3 class="name"><code>maxWidth</code></h3>
3980    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3981
3982    
3983
3984    
3985
3986    
3987
3988    
3989
3990    
3991
3992    <div class="meta">
3993        
3994            
3995                
3996                <p>
3997                
3998                Defined in
3999                
4000            
4001        
4002        
4003        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l62"><code>maxWidth:62</code></a>
4004        
4005        </p>
4006
4007        
4008
4009        
4010    </div>
4011
4012    <div class="description">
4013        <p>The maximum width for the images (not individual frames) in the generated SpriteSheet. It is recommended to
4014use a power of 2 for this value (ex. 1024, 2048, 4096). If the frames cannot all fit within the max
4015dimensions, then additional images will be created as needed.</p>
4016
4017    </div>
4018
4019    
4020        <p><strong>Default:</strong> 2048</p>
4021    
4022
4023    
4024
4025    
4026</div>
4027
4028                
4029                    <div id="property_padding" class="property item">
4030    <h3 class="name"><code>padding</code></h3>
4031    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4032
4033    
4034
4035    
4036
4037    
4038
4039    
4040
4041    
4042
4043    <div class="meta">
4044        
4045            
4046                
4047                <p>
4048                
4049                Defined in
4050                
4051            
4052        
4053        
4054        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l99"><code>padding:99</code></a>
4055        
4056        </p>
4057
4058        
4059
4060        
4061    </div>
4062
4063    <div class="description">
4064        <p>The padding to use between frames. This is helpful to preserve antialiasing on drawn vector content.</p>
4065
4066    </div>
4067
4068    
4069        <p><strong>Default:</strong> 1</p>
4070    
4071
4072    
4073
4074    
4075</div>
4076
4077                
4078                    <div id="property_progress" class="property item">
4079    <h3 class="name"><code>progress</code></h3>
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
4086    
4087
4088    
4089
4090    
4091        <span class="flag readonly">readonly</span>
4092    
4093
4094    <div class="meta">
4095        
4096            
4097                
4098                <p>
4099                
4100                Defined in
4101                
4102            
4103        
4104        
4105        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l118"><code>progress:118</code></a>
4106        
4107        </p>
4108
4109        
4110
4111        
4112    </div>
4113
4114    <div class="description">
4115        <p>A value between 0 and 1 that indicates the progress of a build, or -1 if a build has not
4116been initiated.</p>
4117
4118    </div>
4119
4120    
4121        <p><strong>Default:</strong> -1</p>
4122    
4123
4124    
4125
4126    
4127</div>
4128
4129                
4130                    <div id="property_scale" class="property item">
4131    <h3 class="name"><code>scale</code></h3>
4132    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4133
4134    
4135
4136    
4137
4138    
4139
4140    
4141
4142    
4143
4144    <div class="meta">
4145        
4146            
4147                
4148                <p>
4149                
4150                Defined in
4151                
4152            
4153        
4154        
4155        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l89"><code>scale:89</code></a>
4156        
4157        </p>
4158
4159        
4160
4161        
4162    </div>
4163
4164    <div class="description">
4165        <p>The scale to apply when drawing all frames to the SpriteSheet. This is multiplied against any scale specified
4166in the addFrame call. This can be used, for example, to generate a SpriteSheet at run time that is tailored
4167to the a specific device resolution (ex. tablet vs mobile).</p>
4168
4169    </div>
4170
4171    
4172        <p><strong>Default:</strong> 1</p>
4173    
4174
4175    
4176
4177    
4178</div>
4179
4180                
4181                    <div id="property_spriteSheet" class="property item">
4182    <h3 class="name"><code>spriteSheet</code></h3>
4183    <span class="type"><a href="../classes/SpriteSheet.html" class="crosslink">SpriteSheet</a></span>
4184
4185    
4186
4187    
4188
4189    
4190
4191    
4192
4193    
4194
4195    <div class="meta">
4196        
4197            
4198                
4199                <p>
4200                
4201                Defined in
4202                
4203            
4204        
4205        
4206        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l82"><code>spriteSheet:82</code></a>
4207        
4208        </p>
4209
4210        
4211
4212        
4213    </div>
4214
4215    <div class="description">
4216        <p>The SpriteSheet that was generated. This will be null before a build is completed successfully.</p>
4217
4218    </div>
4219
4220    
4221
4222    
4223
4224    
4225</div>
4226
4227                
4228                    <div id="property_timeSlice" class="property item">
4229    <h3 class="name"><code>timeSlice</code></h3>
4230    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4231
4232    
4233
4234    
4235
4236    
4237
4238    
4239
4240    
4241
4242    <div class="meta">
4243        
4244            
4245                
4246                <p>
4247                
4248                Defined in
4249                
4250            
4251        
4252        
4253        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l107"><code>timeSlice:107</code></a>
4254        
4255        </p>
4256
4257        
4258
4259        
4260    </div>
4261
4262    <div class="description">
4263        <p>A number from 0.01 to 0.99 that indicates what percentage of time the builder can use. This can be
4264thought of as the number of seconds per second the builder will use. For example, with a timeSlice value of 0.3,
4265the builder will run 20 times per second, using approximately 15ms per build (30% of available time, or 0.3s per second).
4266Defaults to 0.3.</p>
4267
4268    </div>
4269
4270    
4271        <p><strong>Default:</strong> 0.3</p>
4272    
4273
4274    
4275
4276    
4277</div>
4278
4279                
4280            </div>
4281        
4282
4283        
4284
4285        
4286            <div id="events" class="api-class-tabpanel">
4287                <h2 class="off-left">Events</h2>
4288
4289                
4290                    <div id="event_complete" class="events item">
4291    <h3 class="name"><code>complete</code></h3>
4292    <span class="type"></span>
4293
4294    
4295
4296    
4297
4298    
4299
4300    
4301
4302    <div class="meta">
4303        
4304            
4305                
4306                <p>
4307                
4308                Defined in
4309                
4310            
4311        
4312        
4313        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l196"><code>complete:196</code></a>
4314        
4315        </p>
4316
4317        
4318
4319        
4320            <p>Available since 0.6.0</p>
4321        
4322    </div>
4323
4324    <div class="description">
4325        <p>Dispatched when a build completes.</p>
4326
4327    </div>
4328
4329    
4330        <div class="params">
4331            <h4>Event Payload:</h4>
4332
4333            <ul class="params-list">
4334            
4335                <li class="param">
4336                    
4337                        <code class="param-name">target</code>
4338                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
4339                    
4340
4341                    
4342
4343                    <div class="param-description">
4344                        <p>The object that dispatched the event.</p>
4345
4346                    </div>
4347
4348                    
4349                </li>
4350            
4351                <li class="param">
4352                    
4353                        <code class="param-name">type</code>
4354                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
4355                    
4356
4357                    
4358
4359                    <div class="param-description">
4360                        <p>The event type.</p>
4361
4362                    </div>
4363
4364                    
4365                </li>
4366            
4367            </ul>
4368        </div>
4369    
4370
4371
4372    
4373</div>
4374
4375                
4376                    <div id="event_progress" class="events item">
4377    <h3 class="name"><code>progress</code></h3>
4378    <span class="type"></span>
4379
4380    
4381
4382    
4383
4384    
4385
4386    
4387
4388    <div class="meta">
4389        
4390            
4391                
4392                <p>
4393                
4394                Defined in
4395                
4396            
4397        
4398        
4399        <a href="../files/easeljs_utils_SpriteSheetBuilder.js.html#l204"><code>progress:204</code></a>
4400        
4401        </p>
4402
4403        
4404
4405        
4406            <p>Available since 0.6.0</p>
4407        
4408    </div>
4409
4410    <div class="description">
4411        <p>Dispatched when an asynchronous build has progress.</p>
4412
4413    </div>
4414
4415    
4416        <div class="params">
4417            <h4>Event Payload:</h4>
4418
4419            <ul class="params-list">
4420            
4421                <li class="param">
4422                    
4423                        <code class="param-name">target</code>
4424                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
4425                    
4426
4427                    
4428
4429                    <div class="param-description">
4430                        <p>The object that dispatched the event.</p>
4431
4432                    </div>
4433
4434                    
4435                </li>
4436            
4437                <li class="param">
4438                    
4439                        <code class="param-name">type</code>
4440                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
4441                    
4442
4443                    
4444
4445                    <div class="param-description">
4446                        <p>The event type.</p>
4447
4448                    </div>
4449
4450                    
4451                </li>
4452            
4453                <li class="param">
4454                    
4455                        <code class="param-name">progress</code>
4456                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4457                    
4458
4459                    
4460
4461                    <div class="param-description">
4462                        <p>The current progress value (0-1).</p>
4463
4464                    </div>
4465
4466                    
4467                </li>
4468            
4469            </ul>
4470        </div>
4471    
4472
4473
4474    
4475</div>
4476
4477                
4478            </div>
4479        
4480    </div>
4481</div>
4482
4483                    </div>
4484                </div>
4485            </div>
4486        </div>
4487    </div>
4488</div>
4489<script src="../assets/vendor/prettify/prettify-min.js"></script>
4490<script>prettyPrint();</script>
4491<script src="../assets/js/yui-prettify.js"></script>
4492<script src="../assets/../api.js"></script>
4493<script src="../assets/js/api-filter.js"></script>
4494<script src="../assets/js/api-list.js"></script>
4495<script src="../assets/js/api-search.js"></script>
4496<script src="../assets/js/apidocs.js"></script>
4497</body>
4498</html>