         private function handleMouseUp(event:MouseEvent) {
             //trace('ENTER ResistorColors.handleMouseUp');
         }
-        
+
+        private function getResistor(id:String) {
+            return breadboard_mc[id];
+        }
     }
 }

    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.external.ExternalInterface;
    import flash.geom.Point;
    
    import org.concord.sparks.Activity;

            trace('processMessageFromJavaScript args=' + args);
            var command:String = args[0];
            switch (command) {
                case 'set_resistor_colors':
                    var resistor = getResistor(args[1]);
                    resistor.setColorBands(args[2]);
                    return 'OK';
            }
            return 'UNKNOWN';
