PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/src/com/google/maps/extras/xmlparsers/kml/ColorStyle.as

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 31 lines | 22 code | 6 blank | 3 comment | 0 complexity | 052bd1c4af4bf154d2c7ac2ac4c7c803 MD5 | raw file
 1/* Added by Cecil M. Reid
 2 * cecilmreid@gmail.com	
 3*/
 4
 5package com.google.maps.extras.xmlparsers.kml
 6{
 7	import com.google.maps.extras.xmlparsers.ParsingTools;
 8	
 9	public class ColorStyle extends KmlObject
10	{
11		private var _color:int;
12		private var _colorMode:String;
13		
14		public function ColorStyle(x:XMLList)
15		{
16			super(x);
17			
18			var color:String = ParsingTools.nullCheck(this.x.kml::color);
19			this._color = parseInt("0x" + color);
20			this._colorMode = ParsingTools.nullCheck(this.x.kml::colorMode);
21		}
22		
23		public function get color():int{
24			return this._color;
25		}	
26		
27		public function get colorMode():String{
28			return this._colorMode;
29		}
30	}
31}