Hi, i have a strange problem:
I have an app with several screens. Now i need a new screen. Then i doubled a file "index.js" and name the new "calefaccion.js", doubled "index.xml" and name the new as "calefaccion.xml". My problem is to open the new screen "calefaccion" from "index". In "index" i can open another screen but "calefaccion" is imposible.
I tried it on Android, (emulator and my smartphone).
The code is
index.js
var programacion = Alloy.createController('programacion').getView(); function AbreProg() { cierroMenulateral(); $.BProg.setOpacity(0.3); setTimeout(function () { $.BProg.setOpacity(1); }, 200); programacion.open(); } var calefaccion = Alloy.createController('calefaccion').getView(); function AbreCalefaccion() { cierroMenulateral(); $.BCalefaccion.setOpacity(0.3); setTimeout(function () { $.BCalefaccion.setOpacity(1); }, 200); Ti.API.info('Abro la cale ' ); calefaccion.open(); }calefaccion.js
Ti.API.info( "Estoy en calefaccion.js 00"); function PosicionaBotones(){ Ti.API.info( "Estoy en calefaccion.js PosicionaBotones"); } $.calefaccion.open();calefaccion.xml
<Alloy> <Window class="container" backgroundColor="#000" onOpen="PosicionaBotones" > <Label id="LConsumos" top="95%" center="87.5%" >Consumos</Label> </Window> </Alloy>When i run "AbreProg", then "programacion" is open. When i run "AbreCalefaccion", then "calefaccion" in don't open.
Why???
Or am I going crazy or Friday the 13th.
Any suggestions??
Thanks