Học Actionscript 3.0 - p 41 docx
... trace(" my parent:", parentLoader); 18 trace(" getting my parent's property:", parentLoader.x); 19 trace(" my parent's parent:", parentApp); 20 parentApp.stringMsg ... INSIDE PARENT"; 21 trace(" my parent's parent's redefined variable:", 22 parentApp.stringMsg); 23 parentApp.parentFunction("message from child"); 2...
Ngày tải lên: 06/07/2014, 18:20
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
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
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 Bitm...
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 ; 132 lPeak.y = 1 10; 133 addChild(lPeak); 134 135 var rPeak:Sprite = drawBar(0x 009 900 ); 136 rPeak.rotation = - 90; 137 rPeak.x ... rPeak.x = 5 20; 138 rPeak.y = 1 10; 139 addChild(rPeak); 1 40 141 function updatePeakMeters():void { 142 lPeak.scaleX = channel.leftPeak * 100 ; 1 43...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 1 ppsx
... eBook <www.wowebook.com>
Ngày tải lên: 06/07/2014, 18:20
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
Học Actionscript 3.0 - p 3 pot
... focused on the object-oriented programming (OOP) capa- bilities of ActionScript 3. 0, and the language’s power really shines in this area. However, embracing ActionScript 3. 0 doesn’t mean that ... ActionScript 3. 0? Chapter 1: What Is ActionScript? 5 • The Document Class. Object-oriented programming is not for every- one, but for those starting on the OOP journey, Flash offe...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 4 doc
... Beginning with Chapter 7, chapters will introduce new concepts using simple timeline syntax and, when appropriate, include an applied OOP example. This is our preferred approach to presenting material ... movie clips, which can be nested within each other. The upper- or outermost movie clip is sometimes referred to as the par- ent (there is even an ActionScript 3. 0 property called...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 5 pptx
... Data Types Chapter 2: Core Language Fundamentals 23 Typing the following into a script, for example, will display “Learning ActionScript 3. 0 Shupe Rosser” in Flash Professional’s Output panel: trace("Learning ... Together What’s Next? ActionScript 3. 0 is a complete rewrite of the language—so much so that ActionScript 3. 0 doesn’t even share the same Flash Player code b...
Ngày tải lên: 06/07/2014, 18:20