... 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&...
... 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...
... 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...
... 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...
... (– 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...
... 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...