Học Actionscript 3.0 - p 20 pps
... updateParticleVelocities(particle); 32 } 33 if (particle.x + particle.velX < 0 + pR || 34 particle.x + particle.velX > stage.stageWidth - pR) { 35 particle.angle = -particle.angle + 1 80; 36 updateParticleVelocities(particle); 37 ... Trigonometry Chapter 7: Motion 175 28 if (particle.y + particle.velY < 0 + pR || 29 particle.y + particle.velY > stage.stageHeight -...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 1 ppsx
... <www.wowebook.com> Learning ActionScript 3. 0, Second Edition by Rich Shupe with Zevan Rosser Copyright © 201 1 Rich Shupe and Zevan Rosser. All rights reserved. Printed in Canada. Published by O’Reilly Media, Inc., 100 5 ... eBook <www.wowebook.com>
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 6 ppsx
... the removed item appears in the Output panel. Finally, the entire array is then traced. trace(cake.pop()); // vanilla appears in the Output panel trace(cake); // the final one-item array, sugar, ... velvet"]; trace(newArray[2]); //"red velvet" appears in the Output panel To determine the number of items in an array, use the length property: trace(newArray.length); //" ;3&...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 8 pps
... at http://www. LearningActionScript3.com. Download from Wow! eBook <www.wowebook.com> Part II: Graphics and Interaction 54 Events Table 3- 1. Movie clip properties Description Property Syntax ... Typically, ActionScript 3. 0 properties will cite the x and y version of a property as a suffix to make referencing the property easier. Table 3- 1 shows syntax only for setting prope...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 9 pps
... toggle_visible_btn.addEventListener(MouseEvent.MOUSE_UP, 28 onToggleVisible); 29 30 function onScaleUp(evt:MouseEvent):void { 31 box.scaleX += 0. 2; 32 box.scaleY += 0. 2; 33 } 34 function onScaleDown(evt:MouseEvent):void { 35 box.scaleX -= 0. 2; 36 ... box.alpha += 0. 2; 48 } Download from Wow! eBook <www.wowebook.com> Event Propagation Chapter 3: Properties, Methods,...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 10 ppsx
... a display object container itself. Sprite New to ActionScript 3. 0, a sprite is simply a movie clip without a timeline. Many ActionScript manipulations typically performed using movie clips require ... introduced by ActionScript 3. 0, par- ticularly for designers accustomed to prior versions of ActionScript, is the way in which visual elements are added to an application at run...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 18 ppsx
... calculate each position.) The effect is that the ball eases in to the final destination. starting point : 100 100 += ( 200 - 100 ) / 2 :1 50 1 50 += ( 200 - 1 50) / 2 :175 175 += ( 200 - 175) / 2 :187.5 You ... property. For example, if a MovieClip starts at an x, y position of ( 100 , 100 ), getting it to move up by 1 0- pixel increments means changing its y property...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 25 ppsx
... drawGradientBox( 100 , colors, 19 alphas, ratios); 20 addChild(spectrum); 21 22 colors = [0x 000 000 , 0x 000 000 ]; 23 alphas = [0, 1]; 24 ratios = [0, 255]; 25 26 var overlay:Sprite = drawGradientBox( 100 , colors, ... import flash.display.Graphics; 7 8 public class ColorPickerGraphics extends Sprite { 9 10 public function ColorPickerGraphics() { 11 12 var colors:Array = [0xFF...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 31 pps
... (– 100 0 to 100 0, with % symbol), or inherit. baselineShift Distance from baseline in pixels (– 100 0 to 100 0) percent of font size (– 100 0 to 100 0 with % sym- bol), subscript, superscript, or inherit. alignmentBaseline ... <www.wowebook.com> Part III: Text 2 80 Loading HTML and CSS CSS (demo.css) body { font-family: Verdana; text-indent: 20px; } .heading { font-size: 18px; fo...
Ngày tải lên: 06/07/2014, 18:20
Học Actionscript 3.0 - p 33 ppsx
... you end up with a fraction. For example, if 500 bytes of a total 1 ,00 0 bytes have loaded, the progress is 500 /1 ,00 0 or 0. 5, indicating that the object is 5 0- percent loaded. By multiplying with ... the progress bar, the bar will increase to the final desired size when the file is 100 -percent loaded. 11 //track loading progress 12 var loadBar:Sprite = drawBar(0x 000 099); 13...
Ngày tải lên: 06/07/2014, 18:20