 				stage.addEventListener(Event.ENTER_FRAME, resistor_rollovers_right_handler);
 				stage.addEventListener(Event.ENTER_FRAME, resistor_rollovers_left_handler);
 			}
-		}
-		
-		private function resistorLocationInitialValues():void
-		{
-			resistorOnBoard();
-			//  replace 'color string' with the actual values of the resistors in ohms.
-			//componentName = ExternalInterface.call('breadModel', 'insert', 'resistor', resistorLeftLocation + ',' + resistorRightLocation, bandOneColor + ',' + bandTwoColor + ',' + bandThreeColor + ',' + bandFourColor);
-		}  
+			
+		}
+		private function breakLeftResistor(event:MouseEvent):void 
+		{
+			this.getChildByName("leftBreak").alpha=0;
+			this.getChildByName("leftRestore").alpha=1;
+			this.getChildByName("leftRestore").addEventListener(MouseEvent.MOUSE_UP, restoreLeftResistor);
+			this.getChildByName("resistorEndLeft").alpha=0;
+			this.getChildByName("resistorEndLeft").x += 1000;
+			this.getChildByName("resistorEndLeftBroken").alpha=1;
+			this.resistorTipLeftX -= 45  ;
+			//this.resistorOnBoard();  This line of code is duplicated in the move resistor function 
+	  	 } 
+		 
+		private function breakRightResistor(event:MouseEvent):void 
+		{
+			this.getChildByName("rightBreak").alpha=0;
+			this.getChildByName("rightRestore").alpha=1;
+			this.getChildByName("rightRestore").addEventListener(MouseEvent.MOUSE_UP, restoreRightResistor);
+			this.getChildByName("resistorEndRight").alpha=0;
+			this.getChildByName("resistorEndRight").x += 1000;
+			this.getChildByName("resistorEndRightBroken").alpha=1;
+			this.resistorTipRightX += 45  ;
+			//this.resistorOnBoard();  This line of code is exectued on resistor_move function
+	  	 } 
+		
+		private function restoreLeftResistor(event:MouseEvent):void 
+		{
+
+			this.getChildByName("leftBreak").alpha=1;
+			this.getChildByName("leftRestore").alpha=0;
+			this.getChildByName("leftRestore").removeEventListener(MouseEvent.MOUSE_UP, restoreLeftResistor);
+			this.getChildByName("resistorEndLeft").alpha=1;
+			this.getChildByName("resistorEndLeft").x -= 1000;
+			this.getChildByName("resistorEndLeftBroken").alpha=0;
+			this.resistorTipLeftX += 45  ;
+			//this.resistorOnBoard();  This line of code is exectued on resistor_move function
+	  	 } 
+		 
+		private function restoreRightResistor(event:MouseEvent):void 
+		{
+		
+			this.getChildByName("rightBreak").alpha=1;
+			this.getChildByName("rightRestore").alpha=0;
+			this.getChildByName("rightRestore").removeEventListener(MouseEvent.MOUSE_UP, restoreRightResistor);
+			this.getChildByName("resistorEndRight").alpha=1;
+			this.getChildByName("resistorEndRight").x -= 1000;
+			this.getChildByName("resistorEndRightBroken").alpha=0;
+			this.resistorTipRightX -= 45  ;
+			//this.resistorOnBoard();  This line of code is exectued on resistor_move function
+	  	 } 
+		
+		
+ 
 		
 		private function added_to_stage_handler(evt:Event):void
 		{

			stage.removeEventListener(MouseEvent.MOUSE_UP, probeQuery_handler);
			stage.removeEventListener(Event.ENTER_FRAME, resistor_rollovers_right_handler);
			stage.removeEventListener(Event.ENTER_FRAME, resistor_rollovers_left_handler);
			
			resistorOnBoard();
		}
		
		private function resistorOnBoard():void
		{
			if (currentHoleOne != null )
			{
				currentHoleOne.gotoAndStop(1);

			
			const toleranceBandName:String = (m_bandCount > 4) ? "band5" : "band4";
			
			var bandObject:Sprite;
			if (m_bandOneLoader != null) {
				bandObject = Sprite(this.getChildByName("band1"));
				bandObject.removeChild(m_bandOneLoader);
			}
			if (m_bandTwoLoader != null) {
				bandObject = Sprite(this.getChildByName("band2"));
				bandObject.removeChild(m_bandTwoLoader);
			}
			if (m_bandThreeLoader != null) {
				bandObject = Sprite(this.getChildByName("band3"));
				bandObject.removeChild(m_bandThreeLoader);
			}
			if (m_bandFourLoader != null) {
				bandObject = Sprite(this.getChildByName("band4"));
				bandObject.removeChild(m_bandFourLoader);
			}
			if (m_bandToleranceLoader != null) {
				bandObject = Sprite(this.getChildByName(toleranceBandName));
				bandObject.removeChild(m_bandToleranceLoader);
			}
		
			//load image into Band1
			m_bandOneLoader = new Loader(); 
