The Snowflake class encapsulates functionality for a falling snow animation. Designed to collaborate with the Snowstorm class.
ActionScript 2.0; Flash Player 6
Property summary
Property | Description |
---|---|
xy:Void |
The x and y properties of the Snowflake. |
z:Void |
The z property of the Snowflake. |
screenX:Void |
The screenX property of the Snowflake. |
screenY:Void |
The screenY property of the Snowflake. |
screenXY:Void |
The screenXY property of the Snowflake. |
storm:Snowstorm |
The storm property of the Snowflake. |
var flake:Snowflake = new Snowflake(5, this, 1);
fallSpeed:Number
- The velocity of the Snowflake.
timeline:MovieClip
- A reference to the MovieClip that contains this particular Snowflake.
depth:Number
- An integer specifying the depth level where the Snowflake is placed.
Creates an instance of the Snowflake class.
flake.xy = {x:10, y:10};
The x and y properties of the Snowflake.
flake.z = 10;
The z property of the Snowflake.
flake.screenX = 10;
The screenX property of the Snowflake.
flake.screenY = 10;
The screenY property of the Snowflake.
flake.screenXY = {x:10, y:10};
The screenXY property of the Snowflake.
trace (flake.storm);
The storm property of the Snowflake.