Snowflake (com.robertpenner.profmx.snow.Snowflake)

com.robertpenner.profmx.snow.Snowflake
class Snowflake

The Snowflake class encapsulates functionality for a falling snow animation. Designed to collaborate with the Snowstorm class.

Availability:

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.

Snowflake(fallSpeed:Number, timeline:MovieClip, depth:Number)

Usage


var flake:Snowflake = new Snowflake(5, this, 1);

Parameters

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.

Description

Creates an instance of the Snowflake class.


xy : Void

Usage


flake.xy = {x:10, y:10};

Description

The x and y properties of the Snowflake.


z : Void

Usage


flake.z = 10;

Description

The z property of the Snowflake.


screenX : Void

Usage


flake.screenX = 10;

Description

The screenX property of the Snowflake.


screenY : Void

Usage


flake.screenY = 10;

Description

The screenY property of the Snowflake.


screenXY : Void

Usage


flake.screenXY = {x:10, y:10};

Description

The screenXY property of the Snowflake.


storm : Snowstorm

Usage


trace (flake.storm);

Description

The storm property of the Snowflake.