-
Notifications
You must be signed in to change notification settings - Fork 0
/
.FlashDevelop_AS2_cache
8240 lines (8130 loc) · 367 KB
/
.FlashDevelop_AS2_cache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\beyondf1\screensaver\CountDown.as
import com.idescn.Datetime;import mx.events.EventDispatcher;/**
* name: count down 1.0
* author: whohoo
* email: whohoo@21cn.com
* date: Fri Jun 24 23:54:54 2005
*/
public class com.beyondf1.screensaver.CountDown{private var _serv_url : String;private var _curTime : Datetime;private var _endTime : Date;private var _isClientTime : Boolean;public var addEventListener : Function;public var removeEventListener : Function;public var dispatchEvent : Function;private static var __mixinFED;public function set serverURL (url:String) : Void;public function get serverURL () : String;public function set curTime (d:Datetime) : Void;public function get curTime () : Datetime;public function set endTime (d:Date) : Void;public function get endTime () : Date;/**
function set isClientTime(){
}
*/
public function get isClientTime () : Boolean;public function CountDown (endTime:Date, url:String);public function init () : Void;/**
function getCurrentTime():Date{
return
}
*/
public function getServerTime (url) : Void;public function getClientTime () : Void;private function onInterval (eventObj:Object) : Void;public function toString () : String;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\gskinner\geom\ColorMatrix.as
/**
* ColorMatrix by Grant Skinner. August 8, 2005* Visit www.gskinner.com/blog for documentation, updates and more free code.** You may distribute this class freely, provided it is not modified in any way (including* removing this header or changing the package path).** Please contact info@gskinner.com prior to distributing modified versions of this class.
*/
public class com.gskinner.geom.ColorMatrix extends Array{private static var DELTA_INDEX : Array;private static var IDENTITY_MATRIX : Array;private static var LENGTH : Number;public function ColorMatrix (p_matrix:Array);public function adjustColor (p_brightness:Number, p_contrast:Number, p_saturation:Number, p_hue:Number) : Void;public function adjustBrightness (p_val:Number) : Void;public function adjustContrast (p_val:Number) : Void;public function adjustSaturation (p_val:Number) : Void;public function adjustHue (p_val:Number) : Void;public function concat (p_matrix:Array) : Void;public function clone () : ColorMatrix;public function toString () : String;public function toArray () : Array;private function copyMatrix (p_matrix:Array) : Void;private function multiplyMatrix (p_matrix:Array) : Void;private function cleanValue (p_val:Number, p_limit:Number) : Number;private function fixMatrix (p_matrix:Array) : Array;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\Datetime.as
import mx.events.EventDispatcher;/**
* extends Data class.
* <p>
* </p>
*
*/
public class com.idescn.Datetime extends Date{private static var ARGUMENTS;private var _interval : Number;private var _inter : Number;/**
* <b>In fact</b>, addEventListener(event:String, handler) is method.<br></br>
* add a listener for a particular event<br></br>
* parameters event the name of the event ("click", "change", etc)<br></br>
* parameters handler the function or object that should be called
*/
public var addEventListener : Function;/**
* <b>In fact</b>, removeEventListener(event:String, handler) is method.<br></br>
* remove a listener for a particular event<br></br>
* parameters event the name of the event ("click", "change", etc)<br></br>
* parameters handler the function or object that should be called
*/
public var removeEventListener : Function;public var dispatchEvent : Function;private static var __mixinFED;public function set interval (i:Number) : Void;/**
the interval between.
*/
public function get interval () : Number;public static function checkDate (str:String, format:String) : Void;private static function _parseDatetime (str:String, format:String) : Array;private static function _toNumber (arg:Array) : Array;/**
* second to array remain.
*
* @usage
* @param ms
* @return [day, hour, minnute, second]
*/
public static function toArray (ms:Number) : Array;/**
* con
*
* @usage
* @return
*/
public function Datetime ();/**
* start runing time.
*
*/
public function runTime () : Void;/**
* stop runing time
*/
public function stopTime () : Void;/**
* check is number?
*
* @param arg
*/
private function _isNumber (arg:Array) : Void;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\as3d\Vector3D.as
/**
* a 3d vector class.<p>* </p>* create 3d class with this class, so you could render it with those method.<br>* thanks http://www.robertpenner.com/, this class from there.
*/
public class com.idescn.as3d.Vector3D extends Object{/**
x position
*/
public var x : Number;/**
y position
*/
public var y : Number;/**
z position
*/
public var z : Number;/**
the default view distance
*/
public static var defaultViewDist : Number;/**
* create a 3d vector class. * @param x 0 are defalut value * @param y 0 are defalut value * @param z 0 are defalut value
*/
public function Vector3D (x:Number, y:Number, z:Number);/**
* get angle sine value. * @param angle * @return
*/
public static function sinD (angle:Number) : Number;/**
* get angle cosine value. * @param angle * @return
*/
public static function cosD (angle:Number) : Number;/**
* get ratio anti-cosine value. * @param ratio * @return
*/
public static function acosD (ratio:Number) : Number;/**
* reset x, y, z value * @param x * @param y * @param z
*/
public function reset (x:Number, y:Number, z:Number);/**
* clone a new vector. * @return new Vector3D
*/
public function getClone () : Vector3D;/**
* compare two class is equals * @param v * @return true of false
*/
public function equals (v:Vector3D) : Boolean;/**
* plus tow class * @param v
*/
public function plus (v:Vector3D) : Void;/**
* plus and get a new class. * @param v * @return
*/
public function plusNew (v:Vector3D) : Vector3D;/**
* tow class minus. * @param v
*/
public function minus (v:Vector3D) : Void;/**
* minus and get a new class. * @param v * @return
*/
public function minusNew (v:Vector3D) : Vector3D;/**
* negate
*/
public function negate () : Void;/**
* ngate and get a new class. * @return
*/
public function negateNew () : Vector3D;/**
* scale this vector3d * @param s
*/
public function scale (s:Number) : Void;/**
* scale and return a new class * @param s * @return
*/
public function scaleNew (s:Number) : Vector3D;/**
* get vector length. * @return vector length.
*/
public function getLength () : Number;/**
* set vector length. * @param len
*/
public function setLength (len:Number) : Void;/**
* dot * @param v another vector class. * @return
*/
public function dot (v:Vector3D) : Number;/**
* cross and get a new class * @param v another vector class. * @return
*/
public function cross (v:Vector3D) : Vector3D;/**
* the angle of tow class. * @param v * @return angle
*/
public function angleBetween (v:Vector3D) : Number;/**
* get perspective * @param viewDist * @return
*/
public function getPerspective (viewDist:Number) : Number;/**
* * translate 3d to 2d in screen. * @param p perspective value, the default are 300/(z+300).
*/
public function persProject (p:Number) : Void;/**
* translate 3d to2d in screen and return a new Vector3D * @param p perspective value, the default are 300/(z+300). * @return vector3D.
*/
public function persProjectNew (p:Number) : Vector3D;/**
* rotate by X axis. * @param angle
*/
public function rotateX (angle:Number) : Void;/**
* rotate by X axis. * @param ca * @param sa
*/
public function rotateX2 (ca:Number, sa:Number) : Void;/**
* rotate by Y axis. * @param angle
*/
public function rotateY (angle:Number) : Void;/**
* rotate by Y axis. * @param ca * @param sa
*/
public function rotateY2 (ca:Number, sa:Number) : Void;/**
* rotate by Z axis. * @param angle
*/
public function rotateZ (angle:Number) : Void;/**
* rotate by Z axis. * @param ca * @param sa
*/
public function rotateZ2 (ca:Number, sa:Number) : Void;/**
* rotate by XY axis. * @param a X axis * @param b Y axis
*/
public function rotateXY (a:Number, b:Number) : Void;/**
* rotate by XY axis. * @param ca X axis cosine * @param sa X axis sine * @param cb Y axis cosine * @param sb Y axis sine
*/
public function rotateXY2 (ca:Number, sa:Number, cb:Number, sb:Number) : Void;/**
* rotate by XYZ axis. * @param a X axis * @param b Y axis * @param c Z axis
*/
public function rotateXYZ (a:Number, b:Number, c:Number) : Void;/**
* rotate by XYZ axis. * @param ca X axis cosine * @param sa X axis sine * @param cb Y axis cosine * @param sb Y axis sine * @param cc Z axis cosine * @param sc Z axis sine
*/
public function rotateXYZ2 (ca:Number, sa:Number, cb:Number, sb:Number, cc:Number, sc:Number) : Void;/**
* show class name * @return class value
*/
public function toString () : String;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\data\Chart.as
/**
* don't remember what it is ?
*/
public class com.idescn.data.Chart{private var _dataValues : Array;private var _dataSum : Number;private var _dataAddUp : Array;private var _updating : Boolean;private var _needUpdate : Array;public function set dataValues (value:Array) : Void;public function get dataValues () : Array;public function get dataSum () : Number;public function get isUpdating () : Boolean;/**
* 构造函数
*/
public function Chart ();/**
* 初始化
*/
public function init () : Void;/**
* assign data
*/
private function _assignData (name:String, value:Object, type:String) : Void;/**
* pretreat data (add them up by default)
*/
private function _pretreatData () : Void;/**
* update data (for data source callback)
*/
private function updateData (id:Object, column:String) : Void;/**
* begin update settings
*/
public function beginUpdate () : Void;/**
* end update settings and refresh view
*/
public function endUpdate () : Void;/**
* refresh view (virtual, must be overrided)
*/
public function refresh () : Void;/**
* refresh all
*/
public function refreshAll (pretreatData:Boolean) : Void;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\data\Form.as
/**
* form for input textField
* <p>
* </p>
* put all input textfield in form instance, user could press ENTER skip next <br>
* </br>
* input textfield.<br>
* </br>
* email_txt.restrict = "A-Za-z0-9\\-_.@";
* phone_txt.restrict = "0-9\\-" ;
* <pre>
* <b>eg:</b>
* Form.hintText = hints_txt;
* var form = Form.getInstance();
* form.addItem(name_txt);
* form.addItem(password_txt);
* form.build(true);
* </pre>
*
*/
public class com.idescn.data.Form extends Object{/**
* define the shortcut key for switch in all input text field.<br></br>
* the default keyCode [Enter](13)
*/
public var keyCode : Number;private var _item : Array;/**
* set the hint text, when some info wanna hint.<br></br>
* this is a textfield embed font that you wannna hint.
*/
public static var hintText : TextField;private static var interFadeOut : Number;private static var interID : Number;private static var _form : Form;/**
* contruct function.<br></br>
* in stage, it just only one form instance, so you could not create instance
* by this function. you must create instance by Form.getInstance();
*
* @param keyCode [optional]the default is 13[ENTER]
*/
private function Form (keyCode:Number);/**
* create only one form.<br></br>
* this class no contruct function, you only create instance by the method.
* @param keyCode
* @return the only form you could create.
*/
public static function getInstance (keyCode:Number) : Form;/**
*
* when user press keyCode, skip next input textfield or release button.
*/
private function onKeyDown () : Void;/**
* seek next button or input textfield
* @param current text or button
* @return next text or button
*/
private function nextItem (item:Object) : Object;/**
* destroy this Form
*/
private function destroy ();/**
* add textfield or button or movieclip.<br></br>
* if out of textfield or button, it would throw a error.
* @param item textfield or button.
* @throws Error if there is a failure in not textfield or button or movieclip of typeof item.
*/
public function addItem (item:Object) : Void;/**
* build listen event, when add all item in this, you ought to build to start
* listen the user action.
*
* @param enabled if true, could skip next input textfield by press keyCode.
*/
public function build (enabled:Boolean) : Void;/**
* reset all input textfield
*/
public function resetTextField () : Void;/**
* show this class name
* @return class name
*/
public function toString () : String;/**
* check email,<br></br>
* olny [restrict = "A-Za-z0-9\\-_.@"]
* @param mailStr eamil address
* @return true or false
*/
public static function checkEmail (mailStr:String) : Boolean;/**
* check mobile number,<br>
* </br>
* olny for china
* @param mobileNum mobile number
* @return false if invaild.
*/
public static function checkMobile (mobileNum:Object) : Boolean;/**
*
* check date valid
* @param dateStr format[yyy-MM-dd hh:mm:ss]
*/
public static function checkDate (dateStr:String) : Boolean;/**
* check id number valid
* @param id a string of id number.
* @return true if it is valid.
*/
public static function checkID (id:String) : Boolean;/**
*
* hints, you must embed font in that textfield or you would not see the words,<br>
* </br>
* because the textfield display by fade in.
*
* @param text show text
* @param second invisble after second
* @param txt point out another textfiled to show words, the default one is defalut
* by Form.hintText.
*/
public static function showHint (text:String, second:Number, txt:TextField) : Void;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\draw\ExShape.as
/**
* a set of methods of draw in movieclip.* <p>* </p>* there are no instance in this class. you can't create instance by new Shape().<br></br>* <pre>* <b>eg:</b>* blank_mc.beginFill(0x009900,80);* Shape.drawRect(blank_mc, 0, 0, 100, 100, 10);* blank_mc.endFill();* </pre>*
*/
public class com.idescn.draw.ExShape extends Object{/**
* a method for creating regular polygons. <br></br> * Negative values for sides will draw the * polygon in the reverse direction, which allows for * creating knock-outs in masks. * * @param mc a movieclip that drawing shape to * @param x center of polygon * @param y center of polygon * @param sides number of sides (Math.abs(sides) must be > 2) * @param radius radius of the points of the polygon from the center * @param angle [optional] starting angle in degrees. (defaults to 0)
*/
public static function drawPoly (mc:MovieClip, x:Number, y:Number, sides:Number, radius:Number, angle:Number) : Void;/**
* a method for drawing pie shaped wedges. <br></br> * Very useful for creating charts. * * @param mc a movieclip that drawing shape to * @param x center point of the wedge. * @param y center point of the wedge. * @param startAngle starting angle in degrees. * @param arc sweep of the wedge. Negative values draw clockwise. * @param radius radius of wedge. If [optional] yRadius is defined, * then radius is the x radius. * @param yRadius y radius for wedge.
*/
public static function drawWedge (mc, x, y, startAngle, arc, radius, yRadius) : Void;/**
* a method for drawing star shaped polygons.<br></br> * Note that the stars by default 'point' to * the right. This is because the method starts drawing * at 0 degrees by default, putting the first point to * the right of center. Negative values for points * draws the star in reverse direction, allowing for * knock-outs when used as part of a mask. * * @param mc a movieclip that drawing shape to * @param x center of star * @param y center of star * @param points number of points (Math.abs(points) must be > 2) * @param innerRadius radius of the indent of the points * @param outerRadius radius of the tips of the points * @param angle [optional] starting angle in degrees. (defaults to 0)
*/
public static function drawStar (mc:MovieClip, x:Number, y:Number, points:Number, innerRadius:Number, outerRadius:Number, angle:Number) : Void;/**
* a method that draws gears...<br></br> * you know, cogs with teeth and a hole in the middle where * the axle goes? Okay, okay... so nobody *needs* a * method to draw a gear. I know that this is probably * one of my least useful methods. But it was an easy * adaptation of the polygon method so I did it anyway. * Enjoy. FYI: if you modify this to draw the hole * polygon in the opposite direction, it will remain * transparent if the gear is used for a mask. * * @param mc a movieclip that drawing shape to * @param x center of gear. * @param y center of gear. * @param sides number of teeth on gear. (must be > 2) * @param innerRadius radius of the indent of the teeth. * @param outerRadius outer radius of the teeth. * @param angle [optional] starting angle in degrees. Defaults to 0. * @param holeSides [optional] draw a polygonal hole with this many sides (must be > 2) * @param holeRadius [optional] size of hole. Default = innerRadius/3.
*/
public static function drawGear (mc:MovieClip, x:Number, y:Number, sides:Number, innerRadius:Number, outerRadius:Number, angle:Number, holeSides:Number, holeRadius:Number) : Void;/**
* a method for drawing bursts (rounded star shaped ovals often seen in advertising).<br></br> * This seemingly whimsical method actually had a serious * purpose. It was done to accommodate a client that * wanted to have custom bursts for 'NEW!' and * 'IMPROVED!' type elements on their site... * personally I think those look tacky, but it's hard * to argue with a paying client. :) This method also * makes some fun flower shapes if you play with the * input numbers. * * @param mc a movieclip that drawing shape to * @param x center of burst * @param y center of burst * @param sides number of sides or points * @param innerRadius radius of the indent of the curves * @param outerRadius radius of the outermost points * @param angle [optional] starting angle in degrees. (defaults to 0)
*/
public static function drawBurst (mc:MovieClip, x:Number, y:Number, sides:Number, innerRadius:Number, outerRadius:Number, angle:Number) : Void;/**
* method for drawing regular and eliptical * arc segments. <br></br> * This method replaces one I originally * released to the Flash MX beta group titled arcTo and contains * several optimizations based on input from the following * people: Robert Penner, Eric Mueller and Michael Hurwicz. * * @param mc a movieclip that drawing shape to * @param x This must be the current pen position... other values * will look bad * @param y This must be the current pen position... other values * will look bad * @param radius radius of Arc. If [optional] yRadius is defined, * then r is the x radiusarc = sweep of the arc. Negative values draw clockwise. * @param arc sweep of the arc. Negative values draw clockwise. * @param startAngle starting angle in degrees. * @param yRadius [optional] y radius of arc. * @return end point<br></br> * In the native draw methods the user must specify the end point * which means that they always know where they are ending at, but * here the endpoint is unknown unless the user calculates it on their * own. Lets be nice and let save them the hassle by passing it back.
*/
public static function drawArc (mc:MovieClip, x:Number, y:Number, radius:Number, arc:Number, startAngle:Number, yRadius:Number) : Object;/**
* a metod for drawing dashed (and dotted) lines. I made this to extend the * lineTo function because itdoesn have the cutom line types that the in * programline tool has. To make a dotted line, specify a dash length * between .5 and 1. * @param mc a movieclip that drawing shape to * @param startx beginning of dashed line * @param starty beginning of dashed line * @param endx end of dashed line * @param endy end of dashed line * @param len length of dash * @param gap length of gap between dashes
*/
public static function dashTo (mc:MovieClip, startx:Number, starty:Number, endx:Number, endy:Number, len:Number, gap:Number) : Void;/**
* creating circles and ovals.<br></br> * mc.drawOval() - by Ric Ewing (ric@formequalsfunction.com) - version 1.1 - 4.7.2002 * @param mc a movieclip that drawing shape to * @param x center of oval * @param y center of oval * @param radius radius of ovalIf [optional] yRadius is defined, r is the x radius. * @param yRadius [optional] y radius of oval.
*/
public static function drawOval (mc:MovieClip, x:Number, y:Number, radius:Number, yRadius:Number) : Void;/**
* draw path with second or more parameter.<br></br> * if the second parameter are array, it would loop the array draw all. * {x:number, y:number} * @param mc a movieclip that drawing shape to
*/
public static function drawShape (mc:MovieClip) : Void;/**
* draw a curve path.<br></br> * this medthod from Robert Penner. * * @param mc a movieclip that drawing shape to * @param xStart x position * @param yStart y position * @param x x position * @param y y position * @param xEnd x position * @param yEnd y position
*/
public static function drawCurve3Pts (mc:MovieClip, xStart:Number, yStart:Number, x:Number, y:Number, xEnd:Number, yEnd:Number) : Void;/**
* draw a circle in movieclip. * * @param mc a movieclip that drawing shape to * @param x x position * @param y y position * @param r radius
*/
public static function drawCircle (mc:MovieClip, x:Number, y:Number, r:Number) : Void;/**
* draw a rectenge that you could defined contour in half edges on * the boundary of a shape. * * @param mc a movieclip that drawing shape to * @param x x position. left-up point * @param y y position. left-up point * @param w width * @param h height * @param c contour
*/
public static function drawRect (mc:MovieClip, x:Number, y:Number, w:Number, h:Number, c:Number) : Void;/**
* there are not contruct function
*/
private function ExShape ();}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\draw\Shape.as
/**
* a set of methods of draw in movieclip.* <p>* </p>* there are no instance in this class. you can't create instance by new Shape().<br></br>* this is simple shape. the more and advanced method in ExShape.* <pre>* <b>eg:</b>* blank_mc.beginFill(0x009900,80);* Shape.drawRect(blank_mc, 0, 0, 100, 100);* blank_mc.endFill();* </pre>*
*/
public class com.idescn.draw.Shape extends Object{/**
* draw a rectenge that you could defined contour in half edges on * the boundary of a shape. * * @param mc a movieclip that drawing shape to * @param x x position. left-up point * @param y y position. left-up point * @param w width * @param h height
*/
public static function drawRect (mc:MovieClip, x:Number, y:Number, w:Number, h:Number) : Void;/**
* there are not contruct function
*/
private function Shape ();}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\effects\FlipPagesBox.as
import mx.events.EventDispatcher;/**
* component for FlipPagesBox.
* <p></p>
* you could drag FlipPagesBox from component panel(Ctrl+F7) in flash to stage<br></br>
* and define properties in Parameters panel(Alt+F7).<br></br>
* <b>Parameters:</b>
* <ul>
* <li><b>active:</b> if true the flip page would active, or not. default is true</li>
* <li><b>adjustEventPage:</b> if true the flip page would event page, default is false.</li>
* <li><b>autoPage:</b> if true the flip page would automatically go to the definite frame, default is true</li>
* <li><b>multiFlip:</b> if true the flip page would allow few flip page fliping. default is false.</li>
* <li><b>pageId:</b> a identifier of movieclip linkage.</li>
* <li><b>showRearPage:</b> is show rear page?</li>
* <li><b>visiblePages:</b> number of visible pages ?</li>
* <li><b>curPage:</b> a number of current page.</li>
* <li><b>firstPage:</b> a number of first page.</li>
* <li><b>lastPage:</b> a number of first page.</li>
* <li><b>dragAccRatio:</b> drag page ratio of acceleration.</li>
* <li><b>moveAccRatio:</b> move page ratio of acceleration.</li>
* </ul>
* <p></p>
* there are few of dispatchEvents, you could add those events by addEventListener(event,handler)<br>
* <ul>
* <li>onRemovePage({page, state}): if rear page remove, state would be true, or it is null. </li>
* <li>onCreatePage({page, state}): if rear page create, state would be true, or it is null </li>
* <li>onAdjustPage({page, range}): adjust the page when according to its position, </li>
* <li>onSetFlipArea({page}): when set flip area </li>
* <li>onResizePage({page, width, height}): when resize page </li>
* <li>onStopFlip({page}): when stop fliping</li>
* <li>onFinishFlip({page}): after finish fliping</li>
* <li>onMovePage({page}): when moving page</li>
* <li>onDragPage({page}): when draging page</li>
* </ul>
*/
public class com.idescn.effects.FlipPagesBox extends MovieClip{/**
* postion precision when fliping
*/
public var posPrecision : Number;private var _pageWidth : Number;private var _pageHeight : Number;private var _pageId : String;private var _adjustEvenPage : Boolean;private var _autoPage : Boolean;private var _firstPage : Number;private var _lastPage : Number;private var _curPage : Number;private var _visiblePages : Number;private var _showRearPage : Boolean;private var _shade : Object;private var _pageShadow : Object;private var _flipArea : Object;private var _flipSize : Object;private var _dragAccRatio : Number;private var _moveAccRatio : Number;private var _multiFlip : Boolean;private var _active : Boolean;private var _pages : Object;private var _flipPages : Object;private var _flipCount : Number;private var _topPageDepth : Number;private var _shadowDepth : Number;private var _shadowMaskDepth : Number;private var _faceDepth : Number;private var _pageMaskDepth : Number;private var _rearPageDepth : Number;private var _pageDepth : Number;private var _shadeDepth : Number;private var _flipAreaDepth : Number;private var _pretreating : Boolean;/**
* <b>In fact</b>, addEventListener(event:String, handler) is method.<br></br>
* add a listener for a particular event<br></br>
* parameters event the name of the event ("click", "change", etc)<br></br>
* parameters handler the function or object that should be called
*/
public var addEventListener : Function;/**
* <b>In fact</b>, removeEventListener(event:String, handler) is method.<br></br>
* remove a listener for a particular event<br></br>
* parameters event the name of the event ("click", "change", etc)<br></br>
* parameters handler the function or object that should be called
*/
public var removeEventListener : Function;private var dispatchEvent : Function;private static var __mixinFED;public function set pageWidth (value:Number) : Void;/**
the width of the page
*/
public function get pageWidth () : Number;public function set pageHeight (value:Number) : Void;/**
the height of the page
*/
public function get pageHeight () : Number;public function set pageId (value:String) : Void;/**
the linkage id of the page content movie clip
*/
public function get pageId () : String;public function set adjustEvenPage (value:Boolean) : Void;/**
if adjust even page's content position
*/
public function get adjustEvenPage () : Boolean;public function set autoPage (value:Boolean) : Void;/**
automatically go to the definite frame when the page movie clip is created
*/
public function get autoPage () : Boolean;public function set firstPage (value:Number) : Void;/**
first page's index
*/
public function get firstPage () : Number;public function set lastPage (value:Number) : Void;/**
last page's index
*/
public function get lastPage () : Number;public function set curPage (value:Number) : Void;/**
index of the current page
*/
public function get curPage () : Number;public function set visiblePages (value:Number) : Void;/**
max count of the visible pages on one side
*/
public function get visiblePages () : Number;public function set showRearPage (value:Boolean) : Void;/**
if the rear page is shown (used in transparent pages)
*/
public function get showRearPage () : Boolean;public function set shade (value:Object) : Void;/**
the settings of the boundary shade
*/
public function get shade () : Object;public function set pageShadow (value:Object) : Void;/**
the settings of the page shadow
*/
public function get pageShadow () : Object;public function set flipArea (value:Object) : Void;/**
the button areas that can respond to the flip action
*/
public function get flipArea () : Object;public function set flipSize (value:Object) : Void;/**
the size (in percentage of the page width) of the flip areas
*/
public function get flipSize () : Object;public function set dragAccRatio (value:Number) : Void;/**
the dragging accelerate ratio (0~1)
*/
public function get dragAccRatio () : Number;public function set moveAccRatio (value:Number) : Void;/**
the moving accelerate ratio (0~1)
*/
public function get moveAccRatio () : Number;public function set multiFlip (value:Boolean) : Void;/**
if multiple flipping is allowed
*/
public function get multiFlip () : Boolean;public function set active (value:Boolean) : Void;/**
if the pages can response to mouse actions
*/
public function get active () : Boolean;/**
list of the visible page objects
*/
public function get pages () : Object;/**
list of the flipped page objects
*/
public function get flipPages () : Object;/**
the main flipped page's index (nearest to the current page)
*/
public function get flipPage () : Number;/**
count of the flipped pages (<0 means the flipped pages are on the left)
*/
public function get flipCount () : Number;/**
if it is flipping now
*/
public function get flipping () : Boolean;/**
* construct function.<br></br>
* you not use new FlipPagesBox() to constrruct. you ought to drag FlipPagesBox from<br></br>
* Component panel(Ctrl+F7) to stage.
*/
private function FlipPagesBox ();/**
* initialize this class
*/
private function init () : Void;/**
* create a page movie clip and its rear page movie clip
* @param page
*/
private function _createPageMC (page:MovieClip) : Void;/**
* create a page object
* @param index
* @param depth
* @param position
*/
private function _createPage (index:Number, depth:Number, position:Object) : MovieClip;/**
* remove a page object
* @param page
*/
private function _removePage (page:MovieClip) : Void;/**
* adjust the page and its mask and shades according to its position
* @param page
*/
private function _adjustPage (page:MovieClip) : Void;/**
* get the mask range according to the right page's top corner at the specified position
* @param x
* @param y
*/
private function _getMaskRange (x:Number, y:Number) : Object;/**
* draw mask with specified type, a, b is the side width of the corner
* @param mask
* @param type
* @param a
* @param b
*/
private function _drawMask (mask:MovieClip, type:Number, a:Number, b:Number) : Void;/**
* reset the flip areas in the specified page
* @param page
*/
private function _setFlipArea (page:MovieClip) : Void;/**
* adjust the size of the flip areas in the specified page
* @param page
*/
private function _adjustFlipSize (page:Object) : Void;/**
* onPress event handler of flip areas
*/
private function _faPress () : Void;private function _faRelease () : Void;/**
* onMouseMove event handler
*/
private function _onMouseMove () : Void;/**
* adjust position according to the neighbour pages
* @param page
*/
private function _adjustPagePos (page:MovieClip) : Void;/**
* set the settings of boundary shade or page shadow
* @param name
* @param value
*/
private function _shadeSetting (name:String, value:Object) : Void;/**
* resize the page
* @param width
* @param height
*/
public function resizePage (width:Number, height:Number) : Void;/**
* set the sizes of the flip areas
* @param width if width is object, it would ignore other parameters
* @param height
* @param innerWidth
* @param innerHeight
*/
public function setFlipSize (width:Object, height:Number, innerWidth:Number, innerHeight:Number) : Void;/**
* start to flip the page att the specified index by the certain corner
* @param index
* @param corner
* @param aimX
* @param aimY
* @return Boolean
*/
public function startFlip (index:Number, corner:String, aimX:Number, aimY:Number) : Boolean;/**
* stop a flipped page, if index is null, all flipped page will be stoped,
* side can be 'left' or 'right'
* @param index
* @param finish
* @param side
* @return true or false
*/
public function stopFlip (index:Number, finish:Boolean, side:String) : Boolean;/**
* set flipped page's aim position, if not given, it will be set to
* track mouse
* @usage
* @param index
* @param aimX
* @param aimY
* @return true or false
*/
public function setAimPos (index:Number, aimX:Number, aimY:Number) : Boolean;/**
* onEnterFrame event handler
*/
public function onEnterFrame () : Void;/**
* goto the specified page
*
* @param index
* @param rebuildPages
* @return if goto page would return true, or index is null or isn't number.
*/
public function gotoPage (index:Number, rebuildPages:Boolean) : Boolean;/**
* set the index range of the pages
* @param first
* @param last
*/
public function setPageRange (first:Number, last:Number) : Void;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\effects\Strip3Dmap.as
/**
* component for Strip3Dmap.* <p></p>* you could drag FlipPagesBox from component panel(Ctrl+F7) in flash to stage<br></br>* and define properties in Parameters panel(Alt+F7).<br></br>* there are few of dispatchEvents, you could add those events by addEventListener(event,handler)<br>* <ul>* <li>onResizeView({width, height, stripNum, hiddenHeight}): </li>* <li>onRender({}): if rear page create, state would be true, or it is null </li>* <li>onCameraChange({}): adjust the page when according to its position, </li>* </ul>* <b>NOTE:</b> in flash 6, can't visible, in flash 7, there are error in below.* flash 8 are normal.
*/
public class com.idescn.effects.Strip3Dmap extends MovieClip{private var _viewWidth : Number;private var _viewHeight : Number;private var _mapId : String;private var _stripNum : Number;private var _stripMinH : Number;private var _hiddenHeight : Number;private var _perspDistance : Number;private var _xPos : Number;private var _yPos : Number;private var _zPos : Number;private var _direction : Number;private var _stripY : Array;private var _pretreating : Boolean;public var stripIncRatio : Number;/**
* <b>In fact</b>, addEventListener(event:String, handler) is method.<br></br>
* add a listener for a particular event<br></br>
* parameters event the name of the event ("click", "change", etc)<br></br>
* parameters handler the function or object that should be called
*/
public var addEventListener : Function;/**
* <b>In fact</b>, removeEventListener(event:String, handler) is method.<br></br>
* remove a listener for a particular event<br></br>
* parameters event the name of the event ("click", "change", etc)<br></br>
* parameters handler the function or object that should be called
*/
public var removeEventListener : Function;private var dispatchEvent : Function;private static var __mixinFED;/**
[READ|WIDTH]
*/
public function set mapId (value:String) : Void;/**
the map photo Identifier name.
*/
public function get mapId () : String;public function set viewWidth (value:Number) : Void;/**
width of view.
*/
public function get viewWidth () : Number;public function set viewHeight (value:Number) : Void;/**
height of view
*/
public function get viewHeight () : Number;public function set stripNum (value:Number) : Void;/**
strip number
*/
public function get stripNum () : Number;public function set stripMinH (value:Number) : Void;/**
min hieght of strip
*/
public function get stripMinH () : Number;public function set hiddenHeight (value:Number) : Void;/**
hidden's height
*/
public function get hiddenHeight () : Number;public function set perspDistance (value:Number) : Void;/**
persp distance
*/
public function get perspDistance () : Number;public function set xPos (value:Number) : Void;/**
position of x
*/
public function get xPos () : Number;public function set yPos (value:Number) : Void;/**
position of y
*/
public function get yPos () : Number;public function set zPos (value:Number) : Void;/**
position of z
*/
public function get zPos () : Number;public function set direction (value:Number) : Void;/**
direction
*/
public function get direction () : Number;/**
* construction function * you did construction by new Strip3Dmap for this is a component.<br></br> * you just drap this component to stage.
*/
private function Strip3Dmap ();/**
* Initializtion this class *
*/
private function init () : Void;/**
* 生成一个空影片,并带定义的属性 * * @usage * @param mc * @param name * @param depth * @param propObj * @return
*/
private function createEmptyMC (mc:MovieClip, name:String, depth:Number, propObj:Object) : MovieClip;/**
* 使attach进来的影片被定义大小的maskMC所masked * * @usage * @param maskMC * @param target 生成指定大小的maskMC * @param index 层 * @param y 位置 * @param width 变形大小 * @param height * @return
*/
private function maskStrip (maskMC:MovieClip, target:MovieClip, index:Number, y:Number, width:Number, height:Number) : Void;/**
* resize the view * * @usage * @param width * @param height * @param stripNum * @param stripMinH * @param hiddenHeight * @return
*/
public function resizeView (width:Number, height:Number, stripNum:Number, stripMinH:Number, hiddenHeight:Number) : Void;/**
* set the camera position and direction * * @usage * @param x * @param y * @param z * @param direction * @param needRender * @return
*/
public function setCamera (x:Number, y:Number, z:Number, direction:Number, needRender:Boolean) : Void;/**
* render the map view * * @usage * @return
*/
public function render () : Void;/**
* show class name * @return class name
*/
public function toString () : String;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\games\PlayingCard.as
/**
* a base playing card game engine
* <p></p>
* there are not test this class.
*/
public class com.idescn.games.PlayingCard{private var _suits : Array;private var _cardNames : Array;private var _joker : Array;private var _deck : Array;private var _isJoker : Boolean;public function set suits (s:Array) : Void;public function get suits () : String;/**
* contruct function.
*/
public function PlayingCard ();/**
* initialize
*/
private function init () : Void;/**
* shuffle the cards
*
*/
public function shuffle () : Void;/**
* get the card name
* @param index
* @throws Error if there is a failure in not cards in game
* @return card name
*/
public function getCard (index:Number) : String;/**
* list all card name
* @return all card name
*/
public function listAllCard () : String;/**
* show this class name
* @return class name
*/
public function toString () : String;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\games\VehicleEngine.as
import mx.events.EventDispatcher;/**
* vehicle Engine for games.* <p></p>* * <pre>* var testClass:VehicleEngine = new VehicleEngine(vehicle_mc);* </pre>* <p></p>* there are few of dispatchEvents, you could add those events by addEventListener(event,handler)<br>* <ul>* <li>onMove({}): when the vehicle is moved </li>* <li>onRender({}): when the vehicle is rendered </li>* </ul>
*/
public class com.idescn.games.VehicleEngine extends Object{private var _vehicle : MovieClip;private var _power : Number;private var _turning : Number;private var _braking : Number;private var _accLoss : Number;private var _agility : Number;private var _hFriction : Number;private var _vFriction : Number;private var _rFriction : Number;private var _active : Boolean;private var _xPos : Number;private var _yPos : Number;private var _direction : Number;private var _interID : Number;/**
horizontal speed (pix/interval)
*/
public var hSpeed : Number;/**
vertical speed (pix/interval)
*/
public var vSpeed : Number;/**
rotating speed (rad/interval)
*/
public var rSpeed : Number;/**
horizontal acceleration (pix/interval)
*/
public var hAcc : Number;/**
vertical acceleration (pix/interval)
*/
public var vAcc : Number;/**
render beteew in interval
*/
public var interval : Number;/**
* <b>In fact</b>, addEventListener(event:String, handler) is method.<br></br> * add a listener for a particular event<br></br> * parameters event the name of the event ("click", "change", etc)<br></br> * parameters handler the function or object that should be called
*/
public var addEventListener : Function;/**
* <b>In fact</b>, removeEventListener(event:String, handler) is method.<br></br> * remove a listener for a particular event<br></br> * parameters event the name of the event ("click", "change", etc)<br></br> * parameters handler the function or object that should be called
*/
public var removeEventListener : Function;private var dispatchEvent : Function;private static var __mixinFED;/**
[READ|WIDTH]
*/
public function set vehicle (value:MovieClip) : Void;/**
the vehicle movie clip
*/
public function get vehicle () : MovieClip;public function set power (value:Number) : Void;/**
engine power (pix/interval)
*/
public function get power () : Number;public function set turning (value:Number) : Void;/**
turning force (rad/interval)
*/
public function get turning () : Number;public function set braking (value:Number) : Void;/**
braking coefficient (0~1)
*/
public function get braking () : Number;public function set accLoss (value:Number) : Void;/**
acceleration loss coefficient (0~1)
*/
public function get accLoss () : Number;public function set agility (value:Number) : Void;/**
turning agility coefficient (0~1)
*/
public function get agility () : Number;public function set hFriction (value:Number) : Void;/**
horizontal friction coefficient (0~1)
*/
public function get hFriction () : Number;public function set vFriction (value:Number) : Void;/**
vertical friction coefficient (0~1)
*/
public function get vFriction () : Number;public function set rFriction (value:Number) : Void;/**
rotating friction coefficient (0~1)
*/
public function get rFriction () : Number;public function set active (value:Boolean) : Void;/**
if the engine is running
*/
public function get active () : Boolean;public function set xPos (value:Number) : Void;/**
x position of vehicle
*/
public function get xPos () : Number;public function set yPos (value:Number) : Void;/**
y position of vehicle
*/
public function get yPos () : Number;public function set direction (value:Number) : Void;/**
direction of vehicle
*/
public function get direction () : Number;public function set xSpeed (value:Number) : Void;/**
x speed of vehicle
*/
public function get xSpeed () : Number;public function set ySpeed (value:Number) : Void;/**
y speed of vehicle
*/
public function get ySpeed () : Number;/**
the angle between speed direction and body direction (rad)
*/
public function get yaw () : Number;/**
the absolute total speed
*/
public function get totalSpeed () : Number;/**
the direction of the total speed
*/
public function get speedDir () : Number;/**
* construction function * @param target target a movie clip
*/
public function VehicleEngine (target:MovieClip);/**
* Initializtion this class *
*/
private function init () : Void;/**
* reset engine's speed and acceleration *
*/
public function reset () : Void;/**
* set current position * * @param x * @param y * @param direction * @param needRender
*/
public function setPosition (x:Number, y:Number, direction:Number, needRender:Boolean) : Void;/**
* set x and y speed * * @param xSpeed * @param ySpeed
*/
public function setSpeedXY (xSpeed:Number, ySpeed:Number) : Void;/**
* increase or decrease the vertical speed by a specified rate of power * @param rate
*/
public function accelerate (rate:Number) : Void;/**
* decrease the vertical speed by a specified rate of braking coefficient * * @param rate
*/
public function brake (rate:Number) : Void;/**
* brake when vertical speed is positive or reverse when it is negative * * @param brakeRate * @param reverseRate
*/
public function brakeReverse (brakeRate:Number, reverseRate:Number) : Void;/**
* turn by a specified rate of turning force * * @param rate
*/
public function turn (rate:Number) : Void;/**
* run the vehicle
*/
public function run () : Void;/**
* refresh the target's appearence
*/
public function render () : Void;/**
* the default drving controller *
*/
public function driveControl () : Void;/**
* show class name * @return class name
*/
public function toString () : String;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\graphics\Oscillogram.as
import com.idescn.draw.Shape;import mx.events.EventDispatcher;/**
* draw line like oscillogram* <p></p>* * you could drag ImageBox from component panel(Ctrl+F7) in flash to stage<br></br>* and define properties in Parameters panel(Alt+F7).<br></br>* <b>Parameters:</b>* <ul>* <li><b>axisColor:</b> color value, eg: 0xFFFFFF</li>* <li><b>backgroundColor:</b> color value, eg: 0xFFFFFF</li>* <li><b>lineColor:</b> color value, eg: 0xFFFFFF</li>* <li><b>offset:</b> a positive number</li>* <li><b>showGrid:</b> a positive number of alpha</li>* <li><b>showHint:</b> true of false</li>* </ul>* <p></p>* there are few of dispatchEvents, you could add those events by addEventListener(event,handler)<br>* <ul>* <li>onMaxValueInAll({value, position}): the max value in all points </li>* <li>onMinValueInAll({value, position}): the min value in all points </li>* <li>onMaxValue({value}): the max value </li>* <li>onMinValue({value}): the min value </li>* * </ul>*
*/
public class com.idescn.graphics.Oscillogram extends MovieClip{private var _mcBg : MovieClip;private var _mcAxis : MovieClip;private var _mcDraw : MovieClip;private var _mcGrid : MovieClip;private var _mcLine : MovieClip;private var _mcSuper : MovieClip;private var _mcSub : MovieClip;private var _widthBox : Number;private var _heightBox : Number;private var _colBg : Number;private var _colLine : Number;private var _colAxis : Number;private var _showHint : Boolean;private var _gridAlpha : Number;private var _curPoint : Number;private var _data : Array;private var _offset : Number;private var _maxValue : Number;private var _minValue : Number;private var _pointsAxisX : Number;private var _isPoint : Boolean;private var _isLine : Boolean;private var _objAxis : Object;/**
* <b>In fact</b>, addEventListener(event:String, handler) is method.<br></br> * add a listener for a particular event<br></br> * parameters event the name of the event ("click", "change", etc)<br></br> * parameters handler the function or object that should be called
*/
public var addEventListener : Function;/**
* <b>In fact</b>, removeEventListener(event:String, handler) is method.<br></br> * remove a listener for a particular event<br></br> * parameters event the name of the event ("click", "change", etc)<br></br> * parameters handler the function or object that should be called
*/
public var removeEventListener : Function;private var dispatchEvent : Function;private static var __mixinFED;public function set dataProvider (d:Array) : Void;/**
dataProvider is a array include points
*/
public function get dataProvider () : Array;public function set minY (n:Number) : Void;/**
the min Y axis
*/
public function get minY () : Number;public function set maxY (n:Number) : Void;/**
the max Y axis
*/
public function get maxY () : Number;public function set scaleX (n:Number) : Void;/**
the scale of x
*/
public function get scaleX () : Number;public function set scaleY (n:Number) : Void;/**
the scale of y
*/
public function get scaleY () : Number;public function set showGrid (n:Number) : Void;/**
grid alpha value
*/
public function get showGrid () : Number;public function set showHint (n:Boolean) : Void;/**
is show hint when the max or min value are
*/
public function get showHint () : Boolean;public function set axisColor (bc:Number) : Void;/**
the color of axis
*/
public function get axisColor () : Number;public function set lineColor (bc:Number) : Void;/**
the color of line
*/
public function get lineColor () : Number;public function set backgroundColor (bc:Number) : Void;/**
the color of background
*/
public function get backgroundColor () : Number;public function set widthBox (bc:Number) : Void;/**
width of box
*/
public function get widthBox () : Number;public function set heightBox (bc:Number) : Void;/**
height of box
*/
public function get heightBox () : Number;public function set offset (of:Number) : Void;/**
the offset's value
*/
public function get offset () : Number;/**
* contruct function.<br></br> * you not use new Oscillogram() to constrruct. you ought to drag Oscillogram from<br></br> * Component panel(Ctrl+F7) to stage.
*/
public function Oscillogram ();/**
* initialize * @param w width * @param h heihgt *
*/
private function init (w:Number, h:Number) : Void;private function drawLine () : Void;private function dataToPos (d:Array, i:Number, s:Number) : Object;private function drawAxisY (w:Number, h:Number) : Void;private function drawAxisX (w:Number, h:Number) : Void;private function drawGrid (alpha:Number) : Void;private function createHints () : Void;private function setHintsPos (mc:MovieClip, p:Object) : Void;/**
* add data to this oscillogram, and refresh it * @param data data that you want to add *
*/
public function addData (data:Number) : Void;/**
* remove data from this oscillogram, and refresh it * @return the remove data *
*/
public function removeData () : Number;/**
* refresh oscillogram's data *
*/
public function update () : Void;/**
* resize the oscillogram size by this modeth. * @param w w means width * @param h h means height *
*/
public function resize (w:Number, h:Number) : Void;/**
* output this name * @return this name *
*/
public function toString () : String;}
#file-cache D:\my_Documents\works\CODE\AS2\classes\com\idescn\image\CutImage.as
import com.idescn.utils.DynamicRegistration;import mx.transitions.Tween;public class com.idescn.image.CutImage{private var target : MovieClip;private var targetA : MovieClip;private var targetB : MovieClip;private var roll : MovieClip;private var maskA : MovieClip;private var maskAPoints : Object;private var maskB : MovieClip;private var targetBDepth : Number;private var startPoint : Object;private var endPoint : Object;private var lastRip : Array;public static var tt : Function;/**
* 构造函数
* @param target
*/
public function CutImage (target:MovieClip);/**
* 初始化
*/
public function init () : Void;/**
* 捕捉mouse移动
*/
private function onMouseMove () : Void;/**
* 设置当mouse移动到图片上方或移出图片时,
* 捕捉当开始点(startPoint)与结束点(endPoint)
* @param enabled
*/
public function setOnRoll (enabled:Boolean) : Void;/**
* 检查startPoint与endPoint的连线,确定进入点与出来点与哪条边相交
*/
private function checkLine () : Void;/**
* 切割图片
*/
private function cut () : Void;/**
* targetB晃几下后掉下
* @param p0 左上角或右上角的点,如果p0.x大于0,就是右上角的点
* 反之是左上角的点
* @param isDropDown 如果为true,则直接掉下来而不是晃动
*/
private function shakeTargetB (p0:Object, isDropDown:Boolean) : Void;/**
* targetB晃几下后掉下去
*/
private function dropDown (mc:MovieClip) : Void;/**
* 当左右晃结束后,
*/
private function onMotionFinished (tw:Object) : Void;/**
* 画出两个shape,
* @param bound roll的
* @param p2 中间的那两点
* @param p3 中间的那两点
* @param time 如果时间太短,则直接划直线而不是锯齿
* @return 左或右上角的点
*/
public function drawMaskRect (bound:Object, p2:Object, p3:Object, time:Number) : Object;/**
* draw a rect
* @param p0
* @param p1
* @param p2
* @param p3
*/
private function _drawRect (mc:MovieClip, p0:Object, p1:Object, p2:Object, p3:Object) : Void;/**
* draw a rect with rip line
* @param p0
* @param p1
* @param p2
* @param p3
* @param ripPoint
*/
private function _drawRect2 (mc:MovieClip, p0:Object, p1:Object, p2:Object, p3:Object, ripPoint:Array) : Array;/**
* 画带锯齿的线条,给点指定的点
* @param mc
* @param points
*/
private function drawRip3 (mc:MovieClip, points:Array) : Void;/**
* 画带锯齿的线条,随机生成锯齿的点
* @param mc
* @param p0
* @param p1
* @param tolerate
*/
private function drawRip2 (mc:MovieClip, p0:Object, p1:Object, tolerate:Number, pointNum:Number) : Array;/**
* 画一个roll
*/
private function drawRectRoll () : Void;/**
* 显示名称
* @return string