libraries/EaselJS_docs/classes/ButtonHelper.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 : ButtonHelper</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>ButtonHelper Class</h1>
199<div class="box meta">
200
201
202
203
204
205 <div class="foundat">
206 Defined in: <a href="../files/easeljs_ui_ButtonHelper.js.html#l41"><code>ButtonHelper:41</code></a>
207 </div>
208
209
210
211
212 Module: <a href="../modules/EaselJS.html">EaselJS</a>
213
214
215
216
217</div>
218
219
220
221<div class="box intro">
222 <p>The ButtonHelper is a helper class to create interactive buttons from <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> or
223<a href="../classes/Sprite.html" class="crosslink">Sprite</a> instances. This class will intercept mouse events from an object, and
224automatically call <a href="../classes/Sprite.html#method_gotoAndStop" class="crosslink">gotoAndStop</a> or <a href="../classes/Sprite.html#method_gotoAndPlay" class="crosslink">gotoAndPlay</a>,
225to the respective animation labels, add a pointer cursor, and allows the user to define a hit state frame.</p>
226<p>The ButtonHelper instance does not need to be added to the stage, but a reference should be maintained to prevent
227garbage collection.</p>
228<p>Note that over states will not work unless you call <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.</p>
229<h4>Example</h4>
230
231<pre class="code prettyprint"><code> var helper = new createjs.ButtonHelper(myInstance, "out", "over", "down", false, myInstance, "hit");
232 myInstance.addEventListener("click", handleClick);
233 function handleClick(event) {
234 // Click Happened.
235 }</code></pre>
236
237</div>
238
239
240 <div class="constructor">
241 <h2>Constructor</h2>
242 <div id="method_ButtonHelper" class="method item">
243 <h3 class="name"><code>ButtonHelper</code></h3>
244
245
246 <div class="args">
247 <span class="paren">(</span><ul class="args-list inline commas">
248
249 <li class="arg">
250
251 <code>target</code>
252
253 </li>
254
255 <li class="arg">
256
257 <code class="optional">[outLabel="out"]</code>
258
259 </li>
260
261 <li class="arg">
262
263 <code class="optional">[overLabel="over"]</code>
264
265 </li>
266
267 <li class="arg">
268
269 <code class="optional">[downLabel="down"]</code>
270
271 </li>
272
273 <li class="arg">
274
275 <code class="optional">[play=false]</code>
276
277 </li>
278
279 <li class="arg">
280
281 <code class="optional">[hitArea]</code>
282
283 </li>
284
285 <li class="arg">
286
287 <code class="optional">[hitLabel]</code>
288
289 </li>
290
291 </ul><span class="paren">)</span>
292 </div>
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309 <div class="meta">
310
311
312
313 <p>
314
315 Defined in
316
317
318
319
320 <a href="../files/easeljs_ui_ButtonHelper.js.html#l41"><code>ButtonHelper:41</code></a>
321
322 </p>
323
324
325
326
327
328 </div>
329
330 <div class="description">
331
332 </div>
333
334
335 <div class="params">
336 <h4>Parameters:</h4>
337
338 <ul class="params-list">
339
340 <li class="param">
341
342 <code class="param-name">target</code>
343 <span class="type"><a href="../classes/Sprite.html" class="crosslink">Sprite</a> | <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a></span>
344
345
346
347
348 <div class="param-description">
349 <p>The instance to manage.</p>
350
351 </div>
352
353
354 </li>
355
356 <li class="param">
357
358 <code class="param-name optional">[outLabel="out"]</code>
359 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
360 <span class="flag optional" title="This parameter is optional.">optional</span>
361
362
363
364
365 <div class="param-description">
366 <p>The label or animation to go to when the user rolls out of the button.</p>
367
368 </div>
369
370
371 </li>
372
373 <li class="param">
374
375 <code class="param-name optional">[overLabel="over"]</code>
376 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
377 <span class="flag optional" title="This parameter is optional.">optional</span>
378
379
380
381
382 <div class="param-description">
383 <p>The label or animation to go to when the user rolls over the button.</p>
384
385 </div>
386
387
388 </li>
389
390 <li class="param">
391
392 <code class="param-name optional">[downLabel="down"]</code>
393 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
394 <span class="flag optional" title="This parameter is optional.">optional</span>
395
396
397
398
399 <div class="param-description">
400 <p>The label or animation to go to when the user presses the button.</p>
401
402 </div>
403
404
405 </li>
406
407 <li class="param">
408
409 <code class="param-name optional">[play=false]</code>
410 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
411 <span class="flag optional" title="This parameter is optional.">optional</span>
412
413
414
415
416 <div class="param-description">
417 <p>If the helper should call "gotoAndPlay" or "gotoAndStop" on the button when changing
418states.</p>
419
420 </div>
421
422
423 </li>
424
425 <li class="param">
426
427 <code class="param-name optional">[hitArea]</code>
428 <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
429 <span class="flag optional" title="This parameter is optional.">optional</span>
430
431
432
433
434 <div class="param-description">
435 <p>An optional item to use as the hit state for the button. If this is not defined,
436then the button's visible states will be used instead. Note that the same instance as the "target" argument can be
437used for the hitState.</p>
438
439 </div>
440
441
442 </li>
443
444 <li class="param">
445
446 <code class="param-name optional">[hitLabel]</code>
447 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
448 <span class="flag optional" title="This parameter is optional.">optional</span>
449
450
451
452
453 <div class="param-description">
454 <p>The label or animation on the hitArea instance that defines the hitArea bounds. If this is
455null, then the default state of the hitArea will be used. *</p>
456
457 </div>
458
459
460 </li>
461
462 </ul>
463 </div>
464
465
466
467
468
469</div>
470
471 </div>
472
473
474<div id="classdocs" class="tabview">
475 <ul class="api-class-tabs">
476 <li class="api-class-tab index"><a href="#index">Index</a></li>
477
478
479 <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
480
481
482 <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
483
484
485
486 </ul>
487
488 <div>
489 <div id="index" class="api-class-tabpanel index">
490 <h2 class="off-left">Item Index</h2>
491
492
493 <div class="index-section methods">
494 <h3>Methods</h3>
495
496 <ul class="index-list methods">
497
498 <li class="index-item method protected">
499 <a href="#method__reset">_reset</a>
500
501
502
503 </li>
504
505 <li class="index-item method protected">
506 <a href="#method_getEnabled">getEnabled</a>
507
508
509
510 </li>
511
512 <li class="index-item method protected">
513 <a href="#method_handleEvent">handleEvent</a>
514
515
516
517 </li>
518
519 <li class="index-item method protected">
520 <a href="#method_setEnabled">setEnabled</a>
521
522
523
524 </li>
525
526 <li class="index-item method">
527 <a href="#method_toString">toString</a>
528
529
530
531 </li>
532
533 </ul>
534 </div>
535
536
537
538 <div class="index-section properties">
539 <h3>Properties</h3>
540
541 <ul class="index-list properties">
542
543 <li class="index-item property protected">
544 <a href="#property__enabled">_enabled</a>
545
546
547
548 </li>
549
550 <li class="index-item property protected">
551 <a href="#property__isOver">_isOver</a>
552
553
554
555 </li>
556
557 <li class="index-item property protected">
558 <a href="#property__isPressed">_isPressed</a>
559
560
561
562 </li>
563
564 <li class="index-item property">
565 <a href="#property_downLabel">downLabel</a>
566
567
568
569 </li>
570
571 <li class="index-item property">
572 <a href="#property_enabled">enabled</a>
573
574
575
576 </li>
577
578 <li class="index-item property">
579 <a href="#property_outLabel">outLabel</a>
580
581
582
583 </li>
584
585 <li class="index-item property">
586 <a href="#property_overLabel">overLabel</a>
587
588
589
590 </li>
591
592 <li class="index-item property">
593 <a href="#property_play">play</a>
594
595
596
597 </li>
598
599 <li class="index-item property">
600 <a href="#property_target">target</a>
601
602
603
604 </li>
605
606 </ul>
607 </div>
608
609
610
611
612
613 </div>
614
615
616 <div id="methods" class="api-class-tabpanel">
617 <h2 class="off-left">Methods</h2>
618
619
620 <div id="method__reset" class="method item protected">
621 <h3 class="name"><code>_reset</code></h3>
622
623
624 <span class="paren">()</span>
625
626
627
628
629
630
631
632 <span class="flag protected">protected</span>
633
634
635
636
637
638
639
640
641
642
643 <div class="meta">
644
645
646
647 <p>
648
649 Defined in
650
651
652
653
654 <a href="../files/easeljs_ui_ButtonHelper.js.html#l247"><code>_reset:247</code></a>
655
656 </p>
657
658
659
660
661
662 </div>
663
664 <div class="description">
665 <p>Injected into target. Preserves the paused state through a reset.</p>
666
667 </div>
668
669
670
671
672
673
674</div>
675
676
677 <div id="method_getEnabled" class="method item protected">
678 <h3 class="name"><code>getEnabled</code></h3>
679
680
681 <span class="paren">()</span>
682
683
684
685 <span class="returns-inline">
686 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
687 </span>
688
689
690
691
692
693 <span class="flag protected">protected</span>
694
695
696
697
698
699
700
701
702
703
704 <div class="meta">
705
706
707
708 <p>
709
710 Defined in
711
712
713
714
715 <a href="../files/easeljs_ui_ButtonHelper.js.html#l184"><code>getEnabled:184</code></a>
716
717 </p>
718
719
720
721
722
723 </div>
724
725 <div class="description">
726 <p>Use the <a href="../classes/ButtonHelper.html#property_enabled" class="crosslink">enabled</a> property instead.</p>
727
728 </div>
729
730
731
732
733 <div class="returns">
734 <h4>Returns:</h4>
735
736 <div class="returns-description">
737
738
739 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
740
741
742 </div>
743 </div>
744
745
746
747</div>
748
749
750 <div id="method_handleEvent" class="method item protected">
751 <h3 class="name"><code>handleEvent</code></h3>
752
753
754 <div class="args">
755 <span class="paren">(</span><ul class="args-list inline commas">
756
757 <li class="arg">
758
759 <code>evt</code>
760
761 </li>
762
763 </ul><span class="paren">)</span>
764 </div>
765
766
767
768
769
770
771
772 <span class="flag protected">protected</span>
773
774
775
776
777
778
779
780
781
782
783 <div class="meta">
784
785
786
787 <p>
788
789 Defined in
790
791
792
793
794 <a href="../files/easeljs_ui_ButtonHelper.js.html#l220"><code>handleEvent:220</code></a>
795
796 </p>
797
798
799
800
801
802 </div>
803
804 <div class="description">
805
806 </div>
807
808
809 <div class="params">
810 <h4>Parameters:</h4>
811
812 <ul class="params-list">
813
814 <li class="param">
815
816 <code class="param-name">evt</code>
817 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
818
819
820
821
822 <div class="param-description">
823 <p>The mouse event to handle.</p>
824
825 </div>
826
827
828 </li>
829
830 </ul>
831 </div>
832
833
834
835
836
837</div>
838
839
840 <div id="method_setEnabled" class="method item protected">
841 <h3 class="name"><code>setEnabled</code></h3>
842
843
844 <div class="args">
845 <span class="paren">(</span><ul class="args-list inline commas">
846
847 <li class="arg">
848
849 <code>value</code>
850
851 </li>
852
853 </ul><span class="paren">)</span>
854 </div>
855
856
857
858
859
860
861
862 <span class="flag protected">protected</span>
863
864
865
866
867
868
869
870
871
872
873 <div class="meta">
874
875
876
877 <p>
878
879 Defined in
880
881
882
883
884 <a href="../files/easeljs_ui_ButtonHelper.js.html#l154"><code>setEnabled:154</code></a>
885
886 </p>
887
888
889
890
891
892 </div>
893
894 <div class="description">
895 <p>Use the <a href="../classes/ButtonHelper.html#property_enabled" class="crosslink">enabled</a> property instead.</p>
896
897 </div>
898
899
900 <div class="params">
901 <h4>Parameters:</h4>
902
903 <ul class="params-list">
904
905 <li class="param">
906
907 <code class="param-name">value</code>
908 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
909
910
911
912
913 <div class="param-description">
914 <p>The enabled property to set the instance to.</p>
915
916 </div>
917
918
919 </li>
920
921 </ul>
922 </div>
923
924
925
926
927
928</div>
929
930
931 <div id="method_toString" class="method item">
932 <h3 class="name"><code>toString</code></h3>
933
934
935 <span class="paren">()</span>
936
937
938
939 <span class="returns-inline">
940 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
941 </span>
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956 <div class="meta">
957
958
959
960 <p>
961
962 Defined in
963
964
965
966
967 <a href="../files/easeljs_ui_ButtonHelper.js.html#l209"><code>toString:209</code></a>
968
969 </p>
970
971
972
973
974
975 </div>
976
977 <div class="description">
978 <p>Returns a string representation of this object.</p>
979
980 </div>
981
982
983
984
985 <div class="returns">
986 <h4>Returns:</h4>
987
988 <div class="returns-description">
989
990
991 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
992
993 <p>a string representation of the instance.</p>
994
995
996 </div>
997 </div>
998
999
1000
1001</div>
1002
1003
1004 </div>
1005
1006
1007
1008 <div id="properties" class="api-class-tabpanel">
1009 <h2 class="off-left">Properties</h2>
1010
1011
1012 <div id="property__enabled" class="property item protected">
1013 <h3 class="name"><code>_enabled</code></h3>
1014 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1015
1016
1017
1018
1019 <span class="flag protected">protected</span>
1020
1021
1022
1023
1024
1025
1026
1027
1028 <div class="meta">
1029
1030
1031
1032 <p>
1033
1034 Defined in
1035
1036
1037
1038
1039 <a href="../files/easeljs_ui_ButtonHelper.js.html#l132"><code>_enabled:132</code></a>
1040
1041 </p>
1042
1043
1044
1045
1046 </div>
1047
1048 <div class="description">
1049
1050 </div>
1051
1052
1053
1054
1055
1056
1057</div>
1058
1059
1060 <div id="property__isOver" class="property item protected">
1061 <h3 class="name"><code>_isOver</code></h3>
1062 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1063
1064
1065
1066
1067 <span class="flag protected">protected</span>
1068
1069
1070
1071
1072
1073
1074
1075
1076 <div class="meta">
1077
1078
1079
1080 <p>
1081
1082 Defined in
1083
1084
1085
1086
1087 <a href="../files/easeljs_ui_ButtonHelper.js.html#l125"><code>_isOver:125</code></a>
1088
1089 </p>
1090
1091
1092
1093
1094 </div>
1095
1096 <div class="description">
1097
1098 </div>
1099
1100
1101
1102
1103
1104
1105</div>
1106
1107
1108 <div id="property__isPressed" class="property item protected">
1109 <h3 class="name"><code>_isPressed</code></h3>
1110 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1111
1112
1113
1114
1115 <span class="flag protected">protected</span>
1116
1117
1118
1119
1120
1121
1122
1123
1124 <div class="meta">
1125
1126
1127
1128 <p>
1129
1130 Defined in
1131
1132
1133
1134
1135 <a href="../files/easeljs_ui_ButtonHelper.js.html#l118"><code>_isPressed:118</code></a>
1136
1137 </p>
1138
1139
1140
1141
1142 </div>
1143
1144 <div class="description">
1145
1146 </div>
1147
1148
1149
1150
1151
1152
1153</div>
1154
1155
1156 <div id="property_downLabel" class="property item">
1157 <h3 class="name"><code>downLabel</code></h3>
1158 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170 <div class="meta">
1171
1172
1173
1174 <p>
1175
1176 Defined in
1177
1178
1179
1180
1181 <a href="../files/easeljs_ui_ButtonHelper.js.html#l101"><code>downLabel:101</code></a>
1182
1183 </p>
1184
1185
1186
1187
1188 </div>
1189
1190 <div class="description">
1191 <p>The label name or frame number to display when the user presses on the target. Defaults to "down".</p>
1192
1193 </div>
1194
1195
1196
1197
1198
1199
1200</div>
1201
1202
1203 <div id="property_enabled" class="property item">
1204 <h3 class="name"><code>enabled</code></h3>
1205 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217 <div class="meta">
1218
1219
1220
1221 <p>
1222
1223 Defined in
1224
1225
1226
1227
1228 <a href="../files/easeljs_ui_ButtonHelper.js.html#l196"><code>enabled:196</code></a>
1229
1230 </p>
1231
1232
1233
1234
1235 </div>
1236
1237 <div class="description">
1238 <p>Enables or disables the button functionality on the target.</p>
1239
1240 </div>
1241
1242
1243
1244
1245
1246
1247</div>
1248
1249
1250 <div id="property_outLabel" class="property item">
1251 <h3 class="name"><code>outLabel</code></h3>
1252 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264 <div class="meta">
1265
1266
1267
1268 <p>
1269
1270 Defined in
1271
1272
1273
1274
1275 <a href="../files/easeljs_ui_ButtonHelper.js.html#l94"><code>outLabel:94</code></a>
1276
1277 </p>
1278
1279
1280
1281
1282 </div>
1283
1284 <div class="description">
1285 <p>The label name or frame number to display when the user mouses over the target. Defaults to "out".</p>
1286
1287 </div>
1288
1289
1290
1291
1292
1293
1294</div>
1295
1296
1297 <div id="property_overLabel" class="property item">
1298 <h3 class="name"><code>overLabel</code></h3>
1299 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311 <div class="meta">
1312
1313
1314
1315 <p>
1316
1317 Defined in
1318
1319
1320
1321
1322 <a href="../files/easeljs_ui_ButtonHelper.js.html#l87"><code>overLabel:87</code></a>
1323
1324 </p>
1325
1326
1327
1328
1329 </div>
1330
1331 <div class="description">
1332 <p>The label name or frame number to display when the user mouses out of the target. Defaults to "over".</p>
1333
1334 </div>
1335
1336
1337
1338
1339
1340
1341</div>
1342
1343
1344 <div id="property_play" class="property item">
1345 <h3 class="name"><code>play</code></h3>
1346 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358 <div class="meta">
1359
1360
1361
1362 <p>
1363
1364 Defined in
1365
1366
1367
1368
1369 <a href="../files/easeljs_ui_ButtonHelper.js.html#l108"><code>play:108</code></a>
1370
1371 </p>
1372
1373
1374
1375
1376 </div>
1377
1378 <div class="description">
1379 <p>If true, then ButtonHelper will call gotoAndPlay, if false, it will use gotoAndStop. Default is false.</p>
1380
1381 </div>
1382
1383
1384 <p><strong>Default:</strong> false</p>
1385
1386
1387
1388
1389
1390</div>
1391
1392
1393 <div id="property_target" class="property item">
1394 <h3 class="name"><code>target</code></h3>
1395 <span class="type"><a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> | <a href="../classes/Sprite.html" class="crosslink">Sprite</a></span>
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406 <span class="flag readonly">readonly</span>
1407
1408
1409 <div class="meta">
1410
1411
1412
1413 <p>
1414
1415 Defined in
1416
1417
1418
1419
1420 <a href="../files/easeljs_ui_ButtonHelper.js.html#l79"><code>target:79</code></a>
1421
1422 </p>
1423
1424
1425
1426
1427 </div>
1428
1429 <div class="description">
1430 <p>The target for this button helper.</p>
1431
1432 </div>
1433
1434
1435
1436
1437
1438
1439</div>
1440
1441
1442 </div>
1443
1444
1445
1446
1447
1448 </div>
1449</div>
1450
1451 </div>
1452 </div>
1453 </div>
1454 </div>
1455 </div>
1456</div>
1457<script src="../assets/vendor/prettify/prettify-min.js"></script>
1458<script>prettyPrint();</script>
1459<script src="../assets/js/yui-prettify.js"></script>
1460<script src="../assets/../api.js"></script>
1461<script src="../assets/js/api-filter.js"></script>
1462<script src="../assets/js/api-list.js"></script>
1463<script src="../assets/js/api-search.js"></script>
1464<script src="../assets/js/apidocs.js"></script>
1465</body>
1466</html>