                 dialSetting = label;
                 container.dial.rotation = rotationMap[label];
                 if (sendEvent) {
-                    activity.getJavaScript().sendEvent("multimeter_dial", dialSetting);
+					JavaScript.instance().sendEvent("multimeter_dial", dialSetting);
+                   //activity.getJavaScript().sendEvent("multimeter_dial", dialSetting);
                 }
             }
         }

    import org.concord.sparks.util.Assert;
    import org.concord.sparks.util.Geom;
	import ComponentMultimeter;
	
    /*
     * Intended to be flexible enough to be used from multiple activities.

            
            imagePath = '../../../common/images/multimeter/dmm_centech'
            
            //dial = container.dial
            container.dial.addEventListener(MouseEvent.MOUSE_DOWN, handleDialMouseDown);
            container.addEventListener(MouseEvent.MOUSE_MOVE, handleDialMouseMove);
            container.addEventListener(MouseEvent.MOUSE_UP, handleDialMouseUp);			
