Ángulo

function ggbOnInit() { ggbApplet.registerAddListener("jlmc"); //Creo un escuchador para cuando crean objetos. ggbApplet.registerRemoveListener("removeListener"); //Creo un escuchador para cuando borran objetos. } function jlmc(obj) { //Escuchador //Comprueba el tipo de objetos. // alert(ggbApplet.getObjectType(obj)); if (ggbApplet.getObjectType(obj) == "angle") { ggbApplet.evalCommand("l1=AreEqual(SOLSOL," + obj + ")"); //Creo una variable intermedia var vf = ggbApplet.getValue("l1"); //leo el valor de esa variable ggbApplet.setValue("vf", vf); //la asigno a la variable que va controlar si está bien o no. Esta no se borra. } }