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

    public class Activity extends org.concord.sparks.Activity {

        public var multimeter:DmmCentech2;
                
        public function Activity(name:String, root, topDir):void {
            trace('ENTER Activity: ' + new Date());
            super(name, root, topDir);
            
            Debug.traceDisplayList(root);
            
            multimeter = new DmmCentech2({ activity: this, root: root });
            multimeter.setDisplayText('  9.0 0');

        private function handleMouseUp(event:MouseEvent) {
            //trace('ENTER ResistorColors.handleMouseUp');
        }

        private function getResistor(id:String) {
            return breadboard_mc[id];
        }
    }
}
