topical media & game development
actionscript-wii-Light.ax
actionscript-wii-Light.ax
[swf]
flex
package
{
public class @ax-actionscript-wii-Light
{
public var x:Number;
public var y:Number;
public var z:Number;
private var _brightness:Number;
public function @ax-actionscript-wii-Light(x:Number = -100, y:Number = -100, z:Number = -100, brightness:Number = 1)
{
this.x = x;
this.y = y;
this.z = z;
this.brightness = brightness;
}
public function set brightness(b:Number):void
{
_brightness = Math.max(b, 0);
_brightness = Math.min(_brightness, 1);
}
public function get brightness():Number
{
return _brightness;
}
}
}
(C) Æliens
27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.