Packagewk.example.die
Classpublic class Pip
InheritancePip Inheritance flash.display.MovieClip

Language Version : ActionScript 3.0

This MovieClip displays a pip (of a dice; German: Würfelauge).

A pip has two values: "on" (visible) and "off" (not visible).



Public Properties
 PropertyDefined By
  value : String
The value of the pip: "on" or "off".
Pip
Public Methods
 MethodDefined By
  
Pip(p_value:String = on)
Creates a new pip.
Pip
  
toString():String
[override] Converts a WK_Pip object into a string.
Pip
Property Detail
valueproperty
value:String

The value of the pip: "on" or "off".


Implementation
    public function get value():String
    public function set value(value:String):void
Constructor Detail
Pip()Constructor
public function Pip(p_value:String = on)

Creates a new pip.

Parameters
p_value:String (default = on) — The initial value of the pip: "on" or "off".
Method Detail
toString()method
override public function toString():String

Converts a WK_Pip object into a string.

Returns
String — Returns the class, the object name and the value (on or off) of the current pip.