 		 * @return A color.
 		 */
 		public function getColorFromNorm(normValue:Number):Number
-		{
+		{
+			validate();
+			
 			if (normValue < 0 || normValue > 1 || _colorNodes.length == 0)
 				return NaN;
 			

						<node color="0x3182BD" position="0.75"/>
						<node color="0x08519C" position="1"/>
					</colorRamp>;
			value = (sessionState is XML) ? (sessionState as XML).toXMLString() : sessionState as String;
		}
		
		private var _isXML:Boolean = false;
		
		private function firstCallback():void
		{
			var i:int;
			var pos:Number;
			var color:Number;

	{
		public function ColorRamp(sessionState:Object = null)
		{
			if (!sessionState)
				sessionState = <colorRamp name="5-Color" source="OIC" category="basic">
						<node color="0xEFF3FF" position="0"/>
