Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Operators > / division operator | |||
expression1 / expression2
Divides expression1 by expression2. The result of the division operation is a double-precision floating-point number.
Availability: ActionScript 1.0; Flash Player 4
expression : Number - A number or a variable that evaluates to a number.
Number - The floating-point result of the operation.
The following statement divides the current width and height of the Stage, and then displays the result in the Output panel.
trace(Stage.width/2); trace(Stage.height/2);
For a default Stage width and height of 550 x 400, the output is 275 and 150.
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001270.html