Học Actionscript 3.0 - p 2 doc
... for you. Migration from ActionScript 2 . 0- to -ActionScript 3. 0 is not our primary focus, so we want you to be happy with the tone and straightforward approach we’ve adopted before you decide to ... experienced—embrace the power and perfor- mance of ActionScript 3. 0. We hope these pages will ease the transition from whatever prior version of ActionScript you may have used...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 12 docx
... moving the button down 10 / 2, or 5 pixels. 10 10 65 10 65 10 65 10 65 10 106 5 75 1 50 22 5 Figure 4- 10. Object positioning in the dynamic navigation bar N OT E The SimpleButton class, used to ... “clip1,” at position 0, and mc2, or “clip2,” at position 1. 1 var mc1:MovieClip = new MovieClip(); 2 mc1.name = "clip1"; 3 addChild(mc1); 4 var mc2:MovieClip = new...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 14 doc
... for quick experi- ments or proofs of concept. The goal of this chapter is to give you a high-level view of object-oriented principles, as well as supporting examples, to help prepare you to ... meth- ods), and understand the fundamentals of the ActionScript 3. 0 event model. Up to this point, we’ve been focusing primarily on syntax and approaching each task using simple procedural pro...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 16 doc
... 23 ) ; 21 _pickup.x = 0; 22 _pickup.y = 100 ; 23 addChild(_pickup); 24 _pickup.lowerTailgate(); 25 26 this.addEventListener(Event.ADDED_TO_STAGE, 27 onAddedToStage, 28 false, 0, true); 29 } The property ... 12 public function Main() { 13 14 _compact = new Car (21 , 18); 15 _compact.x = 0; 16 _compact.y = 20 ; 17 addChild(_compact); 18 _compact.openSunroof(); 19 20 _pic...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 21 doc
... 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 Line 6 sets ... <www.wowebook.com> Programmatic Tweening Chapter 7: Motion 1 83 Table 7 -3 . 70 values (i) listed by their remainder when dividing by 10 (i % 10) 0...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 22 docx
... g.lineStyle( 20 , 0x 000 000 ); 7 8 var gradType:String = GradientType.LINEAR; 9 var colors:Array = [0xFF 000 0, 0x 000 000 ]; 10 var alphas:Array = [1, 1]; 11 var ratios:Array = [0, 25 5]; 12 13 g.lineGradientStyle(gradType, ... sg:Graphics = shapes.graphics; 8 9 sg.lineStyle(6, 0x 000 0FF, 0. 5); 10 sg.beginFill(0xFF 000 0, 0. 5); 11 sg.drawCircle( 50, 50, 50) ; 12 sg.endFil...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 28 docx
... g.beginFill(0x 000 000 ); 42 g.drawRect (0, 0, 100 , 14); 43 g.endFill(); 44 _chip.y = 114; 45 addChild(_chip); 46 47 var border:MovieClip = new MovieClip(); 48 border.graphics.lineStyle(1, 0x 000 000 ); 49 ... 14; 33 _tf.y = 100 ; 34 _tf.text = " #00 000 0"; 35 _tf.background = true; 36 _tf.mouseEnabled = false; 37 addChild(_tf); 38 39 _chip = new MovieClip(); 40 var...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 32 doc
... borderedBox():Sprite { 58 var sp:Sprite = new Sprite(); 59 var g:Graphics = sp.graphics; 60 g.lineStyle(1, 0x 000 000 ); 61 g.drawRect (0, 0, 2 20 , 2 20 ) ; 62 return sp; 63 } Figure 1 0- 12. Text flowed ... 10; 20 addChild(box1); 21 22 var box2:Sprite = borderedBox(); 23 box2.x = 2 40; 24 box2.y = 10; 25 addChild(box2); Lines 27 through 44 set up containers for the T...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 34 docx
... lPeak:Sprite = drawBar(0x 009 900 ); 1 30 lPeak.rotation = - 90; 131 lPeak.x = 500 ; 1 32 lPeak.y = 1 10; 133 addChild(lPeak); 134 135 var rPeak:Sprite = drawBar(0x 009 900 ); 136 rPeak.rotation = - 90; 137 rPeak.x ... evt.target.id3; 1 23 for (var propertyName:String in id3Properites) { 124 id3Field.appendText("ID3 Tag " + propertyName + " = " + 12...
Ngày tải lên: 06/07/2014, 18:20