1/* color.asc -- written by Alexis WILKE for Made to Order Software Corp. (c) 2005-2009 */
2
3/*
4
5Copyright (c) 2005-2009 Made to Order Software Corp.
6
7Permission is hereby granted, free of charge, to any
8person obtaining a copy of this software and
9associated documentation files (the "Software"), to
10deal in the Software without restriction, including
11without limitation the rights to use, copy, modify,
12merge, publish, distribute, sublicense, and/or sell
13copies of the Software, and to permit persons to whom
14the Software is furnished to do so, subject to the
15following conditions:
16
17The above copyright notice and this permission notice
18shall be included in all copies or substantial
19portions of the Software.
20
21THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
22ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
23LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
24FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
25EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
27WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28ARISING FROM, OUT OF OR IN CONNECTION WITH THE
29SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30SOFTWARE.
31
32*/
33
34
35intrinsic package Native
36{
37	class ColorTransform
38	{
39		function ColorTransform(Void) : Void;
40
41		// Alpha is -100 to +100, color is -255 to +255
42		var ra : Integer;
43		var rb : Integer;
44		var ga : Integer;
45		var gb : Integer;
46		var ba : Integer;
47		var bb : Integer;
48		var aa : Integer;
49		var ab : Integer;
50	}
51
52	class Color
53	{
54		import Native.MovieClip;
55		function Color(const var in target : MovieClip) : Void;
56
57		function getRGB(Void) : Integer;
58		function setRGB(const var in new_color : Integer) : Void;
59
60		function getTransform(Void) : ColorTransform;
61		function setTransform(const var in color_transform : ColorTransform) : Void;
62	}
63}
64
65