topical media & game development
animation-ch04-TransformColor.ax
animation-ch04-TransformColor.ax
[swf]
[flash]
flex
package
{
import flash.display.Bitmap;
import flash.display.Sprite;
import flash.geom.ColorTransform;
public class @ax-animation-ch04-TransformColor extends Sprite
{
[Embed(source="@logo.jpg")]
public var Picture:Class;
public function @ax-animation-ch04-TransformColor()
{
init();
}
private function init():void
{
var pic:Bitmap = new Picture();
addChild(pic);
pic.transform.colorTransform = new ColorTransform(-1, -1, -1, 1, 255, 255, 255, 0);
}
}
}
(C) Æliens
04/09/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.