5 Replies Latest reply on Nov 18, 2010 11:52 PM by Flex harUI

    TitleWindow with 7 combobox increase cpu usage at second opening...

    FranciscoSalasHortelano

      Hi flex comunity!!

       

      Here is my code:

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:TitleWindow creationComplete="init()" xmlns:mx="http://www.adobe.com/2006/mxml"
      layout="absolute" width="1124" height="748" close="cerrar()" backgroundColor="#79B86E"
      showCloseButton="true" title="IRI - Interfaz de Registro de Incidencias"
      titleIcon="@Embed(source='images/alarm.png')" xmlns:ns1="*" creationPolicy="auto">

          <mx:Canvas x="10" y="10" width="1084" height="688">
              <mx:Canvas x="6" y="5" width="1074" height="678" backgroundColor="#F3F3F3">
                 
                  <mx:Label x="20" y="10" text="Tipo de incidencia"/>
                  <mx:ComboBox change="cargarSubTipoIncidencia(event)" prompt="Seleccione tipo incidencia..."
                      x="20" y="27" width="424" id="cmbTipoIncidencia" ></mx:ComboBox><!--dataProvider="{listaTiposIncidencias}"-->
                 
                  <mx:Label x="20" y="66" text="Sub-tipo de Incidencia"/>
                  <mx:ComboBox prompt="Seleccione sub-tipo incidencia..." x="20" y="82" width="424" id="cmbSubTipoInci"
                       enabled="false" change="{validaSubTipoInc()}"></mx:ComboBox><!--dataProvider="{listaSubTipoIncidencias}"- ->
                 
                  <mx:Label x="20" y="126" text="Tipo de Localización"/>
                  <mx:ComboBox prompt="Seleccione tipo localización..." x="20" y="142" width="202" id="cmbTipoLocalizacion"
                       change="{validaLocalizacion()}"></mx:ComboBox><!--dataProvider="{listaTipoLocalizaciones} "-->
                 
                  <mx:Canvas x="20" y="206" width="202" height="37" borderColor="#020202" borderStyle="solid">
                  </mx:Canvas>
                 
                  <mx:Label x="255" y="126" text="Ficheros adjuntos"/>
                  <mx:Image x="395" y="113" source="images/FolderDocuments.png" width="34" height="32"/>
                 
                  <mx:TextArea x="255" y="144" width="189" height="197" id="txtFichAdjuntos">
                  </mx:TextArea>
                 
                  <mx:Label x="20" y="188" text="Afecta Circulación"/>
                  <mx:Image x="302" y="347" source="images/document-add.png"/>
                  <mx:Image x="370" y="347" source="images/document-delete.png"/>
                 
                  <mx:Label x="20" y="267" text="Prioridad"/>
                  <mx:Canvas x="20" y="283" width="202" height="37" borderColor="#020202" borderStyle="solid">
                     
                  </mx:Canvas>
                  <mx:Label x="23" y="339" text="Incidencia Asociada"/>
                  <mx:TextInput x="23" y="357" width="158" id="txtIncidAsociada"/>
                  <mx:Label x="23" y="399" text="Descripcion"/>
                  <mx:TextInput change="validarDescripcion()" x="23" y="414" width="421" id="txtDescripcionAlarma"/>
                  <mx:Label x="23" y="458" text="Notas Adicionales"/>
                  <mx:Image x="126" y="443" width="34" height="33" source="images/Notes.png"/>
                  <mx:TextArea x="23" y="476" width="421" height="69" id="txtNotasAdic"/>
                  <mx:Label x="23" y="563" text="Contactos"/>
                  <mx:Image x="87" y="549" source="images/Contacts.png" width="29" height="31"/>
                  <mx:TextArea x="23" y="581" width="391" height="87" id="txtContactos"/>
                  <mx:Image x="422" y="583" width="22" height="20" source="images/Person-group-add.png" toolTip="Agregar contacto..."/>
                  <mx:Image x="422" y="611" width="22" height="20" source="images/Person-group-x.png" toolTip="Eliminar contacto..."/>
                  <mx:Image x="422" y="642" width="22" height="20" source="images/View.png" toolTip="Ver Datos..."/>
                  <mx:Label x="476" y="413" text="Modo de Detección"/>
                  <mx:Label x="799" y="413" text="Grupo/Unidad"/>
                  <mx:ComboBox change="{validaModoDeteccion()}" prompt="Seleccione modo de detección..." x="476"
                      y="432" width="262" id="cmbModoDeteccion"></mx:ComboBox><!--dataProvider="{listaModosDeteccion}"-->
                     
                  <mx:ComboBox change="{validaGrupoUnidad()}" prompt="Seleccione grupo/unidad..." x="799" y="432"
                      width="206" id="cmbGrupoUnidad" ></mx:ComboBox><!--dataProvider="{listaGruposUnidades}"-->
                     
                  <mx:Label x="476" y="477" text="Canal de Comunicación"/>
                  <mx:Label x="800" y="479" text="FH de Detección"/>
                  <mx:Image buttonMode="true" click="generarHora()" x="954" y="465" source="images/chronometer.png" width="27" height="31" toolTip="Generar hora..."/>
                  <mx:Image x="881" y="413" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>
                 
                  <mx:ComboBox change="{validaCanalComunicacion()}" prompt="Seleccione canal de comunicación..." x="476"
                      y="493" width="262" id="cmbCanalComunicacion" ></mx:ComboBox><!--dataProvider="{listaCanalesComunicacion}"-->
                     
                  <mx:TextInput x="799" y="496" width="206" id="txtFHDeteccion" editable="false"/>
                  <mx:Label x="476" y="563" text="Sistema de Origen"/>
                 
                  <mx:ComboBox change="{validaSistemaOrigen()}" prompt="Seleccione sistema origen..." x="476" y="581" width="262"
                       id="cmbSistemaOrigen" ></mx:ComboBox><!--dataProvider="{listaSistemaOrigen}"-->
                      
                  <mx:Image buttonMode="true" x="826" y="593" width="81" height="75" source="images/button_ok.png" click="altaIncidencia()"/>
                  <mx:Image buttonMode="true" x="915" y="600" height="60" width="71" source="images/button_cancel.png" click="cerrar()"/>
                  <mx:Image x="954" y="393" source="images/people.png" width="38" height="34"/>
                  <mx:Image x="671" y="546" source="images/server.png" width="37" height="35"/>
                  <mx:Image x="650" y="381" source="images/Modem_Connection.png" width="67" height="66"/>
                  <mx:Label x="477" y="11" text="Geolocalización"/>
                  <mx:Image x="574" y="4" source="images/worldGlobe.png" width="38" height="25"/>
                  <mx:Image x="1014" y="10" source="images/logoAdifICO.jpg"/>
                 
                  <ns1:GeoLocalizacion x="489" y="36" width="516">
                  </ns1:GeoLocalizacion>
                 
                  <mx:RadioButton x="48" y="214" label="SI" group="{afectaCirc_group}" id="afectaCirculacionSI" />
                  <mx:RadioButton x="157.5" y="215" label="NO" group="{afectaCirc_group}" id="afectaCirculacionNO" />
                 
                  <mx:RadioButton x="30" y="290" label="Alta" group="{impacto_group}" id="prioridadAlta" change="{validaPrioridad()}" />
                  <mx:RadioButton x="92" y="290" label="Media" group="{impacto_group}" id="prioridadMedia" change="{validaPrioridad()}" />
                  <mx:RadioButton x="163" y="290" label="Baja" group="{impacto_group}" id="prioridadBaja" change="{validaPrioridad()}"/>
                 
                  <mx:Image x="127" y="8" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>
                  <mx:Image x="151" y="64" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>
                  <mx:Image x="137" y="124" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>
                  <mx:Image x="78" y="264" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>
                  <mx:Image x="587" y="412" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>
                  <mx:Image x="612" y="474" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>
                  <mx:Image x="587" y="562" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>
                  <mx:Image x="893" y="477" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>
             
                  <mx:RadioButtonGroup id="afectaCirc_group" enabled="false" />
                  <mx:RadioButtonGroup id="impacto_group" enabled="false" />
                  <mx:Button x="185.5" y="357" label="..." width="36.5" toolTip="Asociar incidencia..."/>
                  <mx:Image x="89" y="395" source="images/asterisk_orange.png" toolTip="Campo obligatorio"/>

       

             
              </mx:Canvas>
         
          </mx:Canvas>

       

      </mx:TitleWindow>

       

      I have a titleWindow with seven combobox and anything else, like labels, radios, etc.

       

      The second time I open the titleWindow (the first time works fine), my cpu usage increase at least 50% and my browser became so slowly. I must to re-open the browser to work normally.

      I have tried to delete all the combobox´s and works perfect.

       

      I open and close the titleWIndow with PopUpManager, so I do not understand why the memory is not dispose.

       

      Is there any solution??

      Any idea??

       

      Thanks a lot.