4 Replies Latest reply on May 12, 2010 3:57 PM by ^^GOUST^^

    flex application running in a popup

    ^^GOUST^^ Level 1

      hi guys
      I've seen in many applications in the following flex.

      It has applications for example do not run in the browser,  they call a popup window and application in flex wheel in this popup.

      Does anyone know what should I implement the code for my  application run in a popup window?

        • 1. Re: flex application running in a popup
          TeotiGraphix Level 3

          Hi,

           

          Adobe AIR uses the native os's Window system.

           

          This might be what you are reffering to.

           

          You would need to add the AIR library to your flex project to gain access to the window classes.

           

          Mike

          • 2. Re: flex application running in a popup
            ^^GOUST^^ Level 1

            ok, the way you told me I've been searching,  be a solution.

            However, there is a manual step by step to do this?

            Well in my case I  have an application that makes database access using the eclipse.
            Project Dynamic  Web Project - with flex project nature
            In this case I  was not sure how to proceed.

            • 3. Re: flex application running in a popup
              TeotiGraphix Level 3

              Hi,

               

              Creating a new project it's

               

              - File -> New -> Flex Project

              - Application Type -> Desktop

               

              Setting this will create the descriptor file and create the WindowedApplication as the root. This application will startup in a native os window.

               

              Here is an example of creating a simple os child window;

               

              <?xml version="1.0" encoding="utf-8"?>
              <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx">

               

                  <fx:Script>
                      <![CDATA[
                         
                          import spark.components.Window;
                         
                          protected function button_clickHandler(event:MouseEvent):void
                          {
                              var window:Window = new Window();
                              window.title = "Hello Window";
                              window.width = 200;
                              window.height = 200;
                              window.open();
                          }
                         
                      ]]>
                  </fx:Script>
                 
                  <s:Button label="Open Window"
                            click="button_clickHandler(event)"/>
                 
              </s:WindowedApplication>

               

              The documentation will guide you the rest of the way.

               

              Mike

              1 person found this helpful
              • 4. Re: flex application running in a popup
                ^^GOUST^^ Level 1

                the air is for desktop applications, but  web is to make a popup open?