3 Replies Latest reply on Oct 14, 2009 11:01 AM by Mukthar

    Example Modal with module

    Mukthar

      Hi guys.

       

      I want use a modal for block all content behind my panel..

       

      the structure is here.

       

      Application ---- > Module (this module have a panel or titlewindow)

       

      I want open this module, block all content same the Alert.

       

      When you use the Alert all cotent stay block. if you click in OK, the content stay normal again.

       

      Any here have a good example ?  i only see examples with popup...  i need a good example with module.

        • 1. Re: Example Modal with module
          TanweerHq Level 2

          1.set the Application.enabled property to false and load the module

          2. take a title window and set the height and width and header height to 0...now load the Module exactly above the title window..The title window hides behind the module.So module will cover the title window and acts as a modal..

          • 2. Re: Example Modal with module
            Mukthar Level 1

            Hi, the Application.enabled is work, but i dont underistand the titlewindow...  lock my code.

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

            public

             

             

             

             

             

             

             

             

            function carregaModuloPes(nType:int):void

            {

             

             

             

             

             

            switch

            (nType){

             

             

             

             

             

            case

            500:

            application.enabled =

             

             

             

             

            false

            ;

            loaderPes.url=

             

             

             

             

            "modules/pesquisas/pes_pedido.swf"

            ;

            loaderPes.addEventListener(ModuleEvent.READY, pesPedidoReady);

            loaderPes.addEventListener(ModuleEvent.ERROR, pesPedidoError);

            loaderPes.loadModule();

             

             

             

             

             

            //loaderBar.visible=true;

             

             

             

             

             

            //loaderBar.source=loader;

             

             

             

             

             

             

            break

            ;

             

             

             

             

             

            case

            23:

             

             

             

             

            //Quando for logof

             

             

             

             

             

             

            this.currentState=''

            ;

             

             

             

             

             

            break

            ;

             

             

             

             

             

            case

            6:

            loaderPes.url=

             

             

             

             

            "modules/pedidoVenda/pedidoVenda.swf"

            ;

            loaderPes.addEventListener(ModuleEvent.READY, funPedidoVenda);

            loaderPes.addEventListener(ModuleEvent.ERROR, funPedidoVendaError);

            loaderPes.loadModule();

             

             

             

             

            //loaderBar.visible=true;

             

             

             

             

             

            //loaderBar.source=loader;

             

             

             

             

             

             

            break

            ;

             

            Well, carregaModuloPes stay in main application but i call it in module.

             

            Now, i desabled the application , is Perfect. i want now load my module but my module stay behind the modal =/

             

             

             

             

             

            • 3. Re: Example Modal with module
              Mukthar Level 1

              I find a simple form...

               

              loader.enabled = false;

               

              Thanks for you help bro....  so mutch