Học Actionscript 3 0 - p 43 doc

Học Actionscript 3.0 - p 43 doc

Học Actionscript 3.0 - p 43 doc

... contains “Learning ActionScript 3. 0. ” The result appears in lines 5 through 7. 1 var las3Data:XML = <book /> 2 las3Data.title = "Learning ActionScript 3. 0& quot;; 3 trace(las3Data); 4 /* 5 ... result appears in lines 13 through 16. 9 las3Data.prependChild(<publisher />); 10 las3Data.publisher.@name = "O'Reilly"; 11 trace(las3Data); 12 /* 13...

Ngày tải lên: 06/07/2014, 18:20

10 227 0
Học Actionscript 3.0 - p 2 doc

Học Actionscript 3.0 - p 2 doc

... 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 (if any) to 3. 0 the ... 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...

Ngày tải lên: 06/07/2014, 18:20

10 338 0
Học Actionscript 3.0 - p 12 docx

Học Actionscript 3.0 - p 12 docx

... depths, no matter what’s in them, using the swapChildrenAt() method. This example snippet will swap which- ever display objects are in display list positions 0 and 10: swapChildrenAt (0, 10) ; Finally, ... theoreti- cally possible to assign a frame rate up to 100 0 fps. Any assignment above that number will fall back to 100 0. N OT E To review the basics of movie clips, con- sult Chapt...

Ngày tải lên: 06/07/2014, 18:20

10 301 0
Học Actionscript 3.0 - p 14 doc

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

10 316 0
Học Actionscript 3.0 - p 16 doc

Học Actionscript 3.0 - p 16 doc

... _compact.x = 0; 16 _compact.y = 20; 17 addChild(_compact); 18 _compact.openSunroof(); 19 20 _pickup = new Truck(16, 23) ; 21 _pickup.x = 0; 22 _pickup.y = 100 ; 23 addChild(_pickup); 24 _pickup.lowerTailgate(); 25 ... onAddedToStage, 28 false, 0, true); 29 } The property names also appear in the onClick() method. 30 private function onClick(evt:MouseEvent):void { 31 _compact.go(...

Ngày tải lên: 06/07/2014, 18:20

10 318 0
Học Actionscript 3.0 - p 21 doc

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 ... = 0xFFFFFF; 30 tf.text = btn.name; 31 btn.addChild(tf); 32 } 33 } 34 positionButtons(); 35 36 function onClick(evt:MouseEvent) { 37 trace(evt.target.name); 38...

Ngày tải lên: 06/07/2014, 18:20

10 267 0
Học Actionscript 3.0 - p 22 docx

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, 255]; 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.endFill(); 1...

Ngày tải lên: 06/07/2014, 18:20

10 287 0
Học Actionscript 3.0 - p 28 docx

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 ... colorPicker.x = colorPicker.y = 10; 5 addChild(colorPicker); 6 7 var canvasBmd:BitmapData = new BitmapData( 100 , 100 , 8 false, 0xFF 000 000 ); 9 var canvasBm:Bitmap = new Bit...

Ngày tải lên: 06/07/2014, 18:20

10 269 0
Học Actionscript 3.0 - p 32 doc

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 ... container1:Sprite = new Sprite(); 28 container1.x = container1.y = 20; 29 addChild(container1); 30 31 var container2:Sprite = new Sprite(); 32 container2.x = 2 50; 33 container...

Ngày tải lên: 06/07/2014, 18:20

10 291 0
Từ khóa:
w