class ct.WeatherTempLine extends MovieClip {
	private var currentClip:MovieClip;
	private var colorList:Array = [0x00AAFF, 0xFFAA00];
	private var currentColor:Number;
	static var depthCnt:Number = 1; // statische Variable um alle Instanzen zu "zaehlen"
	
	function WeatherTempLine (myName:String, myColor:Number) {
		// Die Linie initialisieren
		currentClip = _root.createEmptyMovieClip(myName, depthCnt);
		currentColor = colorList[myColor];
		depthCnt++; // neue Instanz
	}
	
	function moveTempLine (myY:Number) {
		// Die Linie zeichnen
		currentClip.clear();
		currentClip.lineStyle(2, currentColor, 100);
		currentClip.moveTo(51, myY);
		currentClip.lineTo(149, myY);
	}
}

