FLV Playback and Seekbar on different native windows in one Air application

Hello Everyone.  I'm trying to make a simple video playback AIR application that utilizes the initial native window to house a transport control with a seekbar on it.  Once the application launches, it creates a second (new) window on my second screen and places a FLVPlayback instance on that new window.  Everything works just like it want it to except for one thing.  When the seekbar and FLVplayback instance are not located on the same window stage, the seekbar handle sticks to the mouse when trying to scrub through the video.
I've added both the transport control and the FLVPlayback instance to the original native window as children and I have also added both of them to the new window as children and everything works just fine.  It's only when they are separated and located on different stages that the seekbar acts up.  When they are on the same stage, I can click on a point on the seekbar and the video jumps to that spot and continues to play and I can also scrub the seekbar, the video updates as I scrub, and when I release the mouse, the seekbar handle stays where I released the mouse.  When they on separate stages, the seekbar handle continues to follow the mouse movement without releasing it.  The video updates as the seekbar handle is moved due to it sticking to the mouse, but if I release the mouse, the handle is still moving with the mouse and the video is still being scrubbed.  Like I said, everything works great except for this and I have reached my limit with time spent on this issue.  Does anyone have any insight into this?
Here's my code for the project.  This is my first AIR application, so I am coding it as I am learning, please be kind.
import fl.video.*;
import flash.display.*;
import flash.desktop.*;
import flash.events.*;
import fl.video.MetadataEvent;
import flash.geom.*;
import flash.ui.Mouse;
import flash.text.*;
GLOBAL SETUP
var flvControl:FLVPlayback;
var MasterWindow = stage.nativeWindow;
var screen1:Screen = Screen.screens[0];
var screen2:Screen = Screen.screens[1];
MASTER WINDOW SETUP
this.loaderInfo.addEventListener(Event.COMPLETE,maximize);
transControl.playPauseButt2.addEventListener(MouseEvent.CLICK, PlayButton);
if (Screen.screens.length > 1){
          createVideoBKG();
          createVideoPlayer();
GENERAL FUNCTIONS
//Maximize the initial screen
function maximize(e:Event) {
          MasterWindow.x = screen1.bounds.left
          MasterWindow.maximize();
          MasterWindow.stage.scaleMode = StageScaleMode.EXACT_FIT;
//Hide Mouse Behind Video Window On Roll-Over
function MouseRollOver(e:MouseEvent):void
          {          Mouse.hide()          }
function MouseRollOut(e:MouseEvent):void
          {          Mouse.show()          }
//Play-Pause Button Control
function PlayButton(event:MouseEvent):void
                    if(transControl.playPauseButt2.currentFrame==1 ){
                              transControl.playPauseButt2.gotoAndPlay(2);
                              flvControl.play();
                    else {
                              transControl.playPauseButt2.gotoAndPlay(1);
                              flvControl.pause();
function CloseWindow(e:MouseEvent):void
                    NativeApplication.nativeApplication.openedWindows[2].close();
VIDEO BKG SETUP
function createVideoBKG(e:Event = null):void{
          var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
          newOptions.type = NativeWindowType.LIGHTWEIGHT;
          newOptions.systemChrome = NativeWindowSystemChrome.NONE;
          newOptions.transparent = true;
          var videoBKG:NativeWindow = new NativeWindow(newOptions);
          if (Screen.screens.length > 1){
                    videoBKG.x = screen2.bounds.left;
          videoBKG.maximize();
          chromeSetup(videoBKG);
          videoBKG.activate();
//Video BKG Chrome Setup
function chromeSetup(currentWindow):void {
          var vidBKG = new video_bkg();
          vidBKG.name = "video_bkg2";
          vidBKG.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
          vidBKG.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
          currentWindow.stage.addChild(vidBKG);
VIDEO Player SETUP
function createVideoPlayer(e:Event = null):void{
          var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
          newOptions.type = NativeWindowType.LIGHTWEIGHT;
          newOptions.systemChrome = NativeWindowSystemChrome.NONE;
          newOptions.transparent = true;
          var videoPlayer:NativeWindow = new NativeWindow(newOptions);
          if (Screen.screens.length > 1){
                    videoPlayer.x = screen2.bounds.left;
                    videoPlayer.y = screen2.bounds.top;
                    videoPlayer.width = screen2.bounds.width;
                    videoPlayer.height = screen2.bounds.height;
                    videoPlayer.stage.scaleMode = StageScaleMode.NO_SCALE;
          videoPlayer.alwaysInFront = true;
          var DVR = new DVR_Player();
          DVR.name = "DVR";
          DVR.x = 0;
          DVR.y = 0;
          DVR.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
          DVR.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
          videoPlayer.stage.addChild(DVR);
            flvControl = DVR.display2;
          flvControl.width = 1280;
          flvControl.height = 720;
          flvControl.skin = null;
          flvControl.autoPlay=false;   
          flvControl.isLive=false;
          flvControl.fullScreenTakeOver = false;
          flvControl.align = VideoAlign.CENTER;
          flvControl.scaleMode = VideoScaleMode.NO_SCALE;
          flvControl.source = "olympics.f4v";
          flvControl.seekBar = transControl.seekbarContainer2.seeker;
          videoPlayer.activate();

Does anyone have any ideas about this?

Similar Messages

  • Adding native menus to an AIR application using ActionScript

    Hi,
    I'm working on Mac and PC with Air application.
    I'd creates a class extends Menu witch goal is to create a nativeMenu.
    My class is
    package
        import flash.desktop.DockIcon;
        import flash.desktop.NativeApplication;
        import flash.desktop.SystemTrayIcon;
        import flash.display.BitmapData;
        import flash.display.Loader;
        import flash.display.NativeMenu;
        import flash.display.NativeMenuItem;
        import flash.display.NativeWindow;
        import flash.display.NativeWindowDisplayState;
        import flash.display.NativeWindowSystemChrome;
        import flash.display.Screen;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.events.NativeWindowDisplayStateEvent;
        import flash.geom.Rectangle;
        import flash.net.URLRequest;
        import flash.sampler.NewObjectSample;
        import mx.controls.Alert;
        import mx.controls.Menu;
        import mx.core.Application;
        import mx.core.FlexGlobals;
        import mx.core.WindowedApplication;
        import spark.components.Application;
        import spark.components.WindowedApplication;
        public class createMenuBar extends Menu
            public function createMenuBar()
             * Initializes the app after loading
            public function initWindow():void{
                // Create root menu
                var rootMenu:NativeMenu = new NativeMenu();
                // Create root submenus
                rootMenu.addSubmenu(creerMenuFichier(),"Fichier");
                rootMenu.addSubmenu(creerMenuEdition(),"Edition");
                // Attach event listener routine to root menu
                rootMenu.addEventListener(Event.SELECT, dispatchMenuCommand);
                // Assign application menu (Mac OS X)
                if(NativeApplication.supportsMenu){
                    NativeApplication.nativeApplication.menu = rootMenu;
                // Assign window menu (MS Windows)
                if(NativeWindow.supportsMenu ){
                    stage.nativeWindow.menu = rootMenu;
             * createMenuCommand()
             * Creates a menu command based on parameters
            public function createMenuCommand(menuContainer:NativeMenu,
                itemLabel: String, itemKey:String,itemModifiers:Array,
                itemMnemonic:int, selectHandler:Function):NativeMenuItem{
                var cmd:NativeMenuItem = NativeMenu(menuContainer).addItem(new NativeMenuItem(itemLabel));
                cmd.mnemonicIndex = itemMnemonic; // index de la lettre de rappel du raccourci par dŽfaut 0
                cmd.keyEquivalent = itemKey;
                if(itemModifiers !=null){
                    cmd.keyEquivalentModifiers = itemModifiers;
                if (selectHandler !=null){
                    cmd.addEventListener(Event.SELECT, selectHandler);
                return cmd;
             * createMenuSeparator()
             * Creates a menu separator
            private function createMenuSeparator(menuContainer:NativeMenu):NativeMenuItem{
                var sep : NativeMenuItem = NativeMenu(menuContainer).addItem(new NativeMenuItem("sep", true));
                return sep;
             * Creates the File menu for app
            private function creerMenuFichier(): NativeMenu{
                var mnu:NativeMenu = new NativeMenu();
                createMenuCommand(mnu, 'Changer Utilisateur','k',null, 0, hChangeUser);
                createMenuCommand(mnu, 'Verrouiller/DŽverrouiller','', null, 0, hLock);
                createMenuCommand(mnu, 'Maintenance','', null, 0, hMaintenance);
                createMenuSeparator(mnu);
                // If Mac OS X, then use Quit label
                if (NativeApplication.supportsMenu) {
                    createMenuCommand( mnu, 'Quitter', 'q', null, 0, hExit); 
                // If Windows, then use Exit
                else {
                    createMenuCommand( mnu, 'Fermer', 'x', null, 0, hExit);
                return mnu; 
            public function creerMenuEdition() : NativeMenu{
                var mnu:NativeMenu = new NativeMenu();
                createMenuCommand( mnu, 'Annuler', 'z', null, 0, null); 
                createMenuCommand( mnu, 'RŽpŽter', 'y', null, 0, null);
                createMenuSeparator(mnu);   
                createMenuCommand( mnu, 'Couper', 'x', null, 2, null); 
                createMenuCommand( mnu, 'Copier', 'c', null, 0, null); 
                createMenuCommand( mnu, 'Coller', 'v', null, 0, null); 
                return mnu;
             * Catch-all menu dispatcher for all menus
            public function dispatchMenuCommand(evt: Event):void {
                var menuItem:NativeMenuItem = evt.target as NativeMenuItem;
                if (!menuItem.hasEventListener('select')) { 
                    Alert.show(menuItem.label + " a ŽtŽ selectionnŽ!");
             * Simple handlers for certain menu commands
            public function hChangeUser(evt: Event):void {
                Alert.show( "Vous allez changer d'utilisateur");
    On main air app.mxml file I create menu with
    var menu : createMenuBar = new createMenuBar();
      menu.initWindow();
    application menu appear but when I work on Windows system, windows menu is not visible.
    Can you help me to solve that?
    Thanks

    I believe you ran into an AIR limitation.  In the class header for NativeMenu it mentions:
    A native menu is a menu that is controlled and drawn by the operating system rather than by your application.       AIR supports the following types of native menus:
    Application menus are supported on OS X. Use the NativeApplication.supportsMenu property to test whether        application menus are supported on the host operating system. An  application menu is displayed on the Menu bar at the top of the        Mac desktop. OS X provides a default menu for every application, but  many of the menu commands are not functional. You can add       event listeners to the default items, replace individual menus and  items, or even replace the default menu entirely.       Access the application menu object using the NativeApplication menu property.
    Window menus are supported on Windows and Linux. Use the NativeWindow.supportsMenu property to       test whether window menus are supported on the host operating system. A  window menu is displayed below the window title bar. The area       occupied by the menu is not part of the window stage. Applications  cannot draw into this area. Assign a menu to a window using the        NativeWindow menu property.
    -ref: http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/display/Nati veMenu.html
    Use the NativeMenu.isSupported property to check if OS supports it.  There is also NativeWindow.supportsMenu property that may help you.  I hope that helps.

  • Opening a finder/windows explorer window from an AIR application?

    I'm evaluating AIR right now and going through as much
    documentation as I can find. Is there a way to open up an OS file
    browsing window? For instance, after writing a file to an arbitrary
    directory, could you open that director (preferably with the file
    selected) in OS X's Finder or Windows Explorer? Obviously this is
    possible in a native application (Lightroom does it, among others),
    but I can't figure out if it's possible with an AIR
    application.

    Take a look at:
    http://livedocs.adobe.com/air/1/devappsflash/help.html?content=splash.html
    http://livedocs.adobe.com/air/1/devappsflash/Filesystem_01.html
    AND
    http://livedocs.adobe.com/labs/air/1/aslr/flash/filesystem/File.html

  • Add more windows buttons to AIR applications.

    Hello, I was downloading a song with the help of Internet Download Manager and saw this extra button on the border of it, is there any way to add  buttons like this on AIR applications?

    you might be able to do that using a 3rd party tool like zinc.

  • Calling and returning to different Vi windows

    Quick question. I want to write a project that has a main window with various buttons and when a button it clicked on i want the vi to call a different window on screen while simultaneously closing the main window. Once i'm finished with the second window and i close it i want the main window to automatically pop back up. how do i go about doing this.
    I also would like the button i previously selected in the main window to now maybe change colour to show that it has been modified and i need some of the changes that were made in the secondary window available in the Main vi.
    Hope i explained this clearly

    You're in luck, I just did this the other day. Here's how I did it. ATP Main is the sub VI I'm calling. Put this into your main VI to close it while you pop up the sub VI. Set the sub VI to show the front panel when called (set its appearance to top level VI). The main VI will hide while the sub VI runs, then when you close the sub VI, the main VI will reappear.
    Edit: forgot to show the reference to the main VI (This VI) connected to those property nodes.
    Message Edited by Marc A on 02-16-2007 08:55 AM
    Message Edited by Marc A on 02-16-2007 08:57 AM
    Attachments:
    Prod_Main.png ‏3 KB

  • Control FLV playback with button on different timeline

    I have an FLVPlayback instance on my stage within a movie
    clip within a movie clip eg.
    _root.showreel_mc.showreelHolder.showreel (where showreel is
    the instance name given to the FLV component itself)
    I already have a button that fades out showreel_mc in order
    to fade other content in but I also need it to pause the FLV so it
    doesn't keep playing in the background. I've tried this...
    _root.showreel_mc.showreelHolder.showreel.pause()
    But it doesn't work - anyone got any ideas? I'm using
    Actionscript 2.0.
    Cheers!

    I found the option to sync with rest of project under the options tab and this solved my problem.

  • OBIEE 11g and Weblogic on different Servers - Windows 2008 R2

    Hi
    Can we install OBIEE 11g(BI Server and Presentation Servers) on one server and weblogic and another server. We have a requirement where we need to differentiate all the components on to its own server for performance reasons. How can we do the configurations if we have installed on how to talk to weblogic after the installations.
    Thanks

    Yes we can do that
    a) Install BIS and BIPS on one server and deploy BIPS plug-in on Weblogic server where it is installed,so the both will talk with the weblogic server.
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e10417.pdf
    Mark if it helps

  • Two different main windows in one form?

    Hello -
    I have a requirement to print a list at the end of an invoice printout.  The invoice can cover multiple pages, and the secondary list can also cover multiple pages, one page per material.  So essentially I need two different definitions of a main window.  I tried defining my form like this:
    Page...............Next Page.......Main Window
    FIRST..............FIRST.............MAIN
    LIST.................LIST...............MAIN_L
    The first part prints fine, but I can't get the second part to print.  I tried adding a command after the first main window to go to page 'LIST', but nothing in window MAIN_L will print.  All the secondary windows on page LIST print, but nothing from MAIN_L. 
    Then I tried changing MAIN_L to be a secondary window and I can see my data, but in this case it will not allow me to enter the command to start a new LIST page. 
    Help!  Is this even possible?
    Edited by: Susanna Kohlmyer on Aug 20, 2008 2:39 PM

    Try to create two Table Nodes in the Same Main window.
    Like:
    FIRST  ... next is FIRST
    .. MAIN
    .... TABLE1
    .......HEADER (table1)
    .......MAIN (table1)
    .......FOOTER (table1)
    .... TABLE2
    .......HEADER (table2)
    .......MAIN (table2)
    .......FOOTER (table2)
    Regards,
    Naimesh Patel

  • I am using apple mail on my Mac and have two different accounts set up, one personal and one business. when i send mail a copy of the message is being saved into my business account swell.

    Both accounts are Imap but the business one is Gmail and the persoanl one is 1and1. when i compose new mail in my personal account I make sure it says its going from my 1and1 account but for some reason the message appears in both sent boxes.
    I need to fix this as I dont want other people using the business account seeing my personal sent emails!
    This has only just started in last couple of days when I did something on accounts but cant think what that would have been.
    hope someone can help.

    I'd like to have one Apple Mail application for my one very important email account while the rest can stay on a different Apple Mail app.
    Consider using Thunderbird for the "rest."

  • Recording two different size windows into one timeline

    Hello, I wonder if anyone can help.
    I'm trying to capture two different size animations, one 900
    x 600 and one much bigger, say 1280 by 700....How can I get them
    into the same timeline? It seems captivate only allows one size
    frame recording per movie.....
    Any hints?
    cheers
    zig

    Hi zig
    The only way I can fathom this happening is to take Captivate
    and record the larger. Then use the Project > Resize option to
    reduce the size of the larger to match the smaller. Then import
    that/those slide(s) into the smaller.
    Or, you could go the other way around. Record at the larger,
    leave it at that size, then import the smaller into the larger via
    File > Import > Slides/Objects.
    Cheers... Rick

  • Reg:Customizing titlebar of a window in desktop air applications

    I am trying to develop a custom component that has to be embeded into the title bar just beside the maximize, minimize, restore buttons on to the top right hand side in a window (air). Could any one help me out how to approach....
    I tried using skins but couldn't succeed.
    thanks,
    Sukumar.

    Hi
    I figured it out. Just in case if anyone is looking for the solution...just create a window skin, and in that add a titlebar and use a custom skin for that title bar to customize it.
    Regards,
    Sukumar.

  • Auto/Hide with Flv playback doesn't work with javascript lightbox, need help?

    Hi everyone,
    i created some swf loading a flv file in a flv playback and
    check on the auto/hide parameter. When i test the movie it works
    very well. BUT, in my website, i put those swf files in Lightbox
    (javascript computed) and when the mouse goes Over the flash video,
    it shows the Skin player and when the mouse goes Out, the Skin
    player stays over the video!? Why? Does someone has an idea on how
    to force the auto/hide paramater in this case?
    Thanks for your help
    Orlenka

    Found this post when searching for an answer, but didn't find much elsewhere so I'll post my quick and ugly solution here. I'm sure it can be vastly improved, but I didn't have much more than 5 minutes. Note - setting .visible to false just ended up causing the autohide transition to occur over and over, so instead I'm just temporarily moving the whole sprite offscreen.
    (AS3, using CS5 component... note that 'player' is the FLVPlayback instance):
    //### force 'autohide' when mouse inactive
    var timer:Timer = new Timer(1500, 0);
    timer.addEventListener(TimerEvent.TIMER, onTimer);
    timer.start();
    var skinSprite:DisplayObject;
    var prevMouseX:Number;
    var prevMouseY:Number;
    function onTimer(e:TimerEvent):void {
      //get skinSprite if we haven't already
      if(!skinSprite) {
        var child:DisplayObject;
        for(var i:Number = 0; i < player.numChildren; i++) {
          child = player.getChildAt(i);
          if(i == 2) { //this is the skinSprite
            skinSprite = child;
      //check to see if mouse hasn't moved since last timer event
      if(skinSprite && mouseX == prevMouseX && mouseY == prevMouseY) {
        skinSprite.y = -1000;
      prevMouseX = mouseX;
      prevMouseY = mouseY;
    stage.addEventListener(MouseEvent.MOUSE_MOVE, stage_onMouseMove);
    function stage_onMouseMove(e:MouseEvent):void {
      if(skinSprite) {
        skinSprite.y = 0;

  • Different browser windows share the same JVM

    Hi there !
    Running the same applet in different browser windows
    (Netscape 4.72 - Plug-in 1.2.2) appears to use the same JVM. When I see the process list from the OS (Windows Task Manager) I see only one Netscape Process.
    This is causing me a lot of problems, because the applet opens a socket connection with the server.
    Since all applet instances running in different browser windows each one, are executing on the same JVM, all messages they send to the server goes through the SAME socket connection, turning the server in an inconsistent state.
    Is it possible to start a completly new browser
    process in order to have each applet instance running in a different JVM ?
    TIA for any help

    Not much help for you but I've had the same problem over here ... and we could find nothing to improve this.

  • Native Windows Authentication in Java?

    I'm maintaining a Java web app that runs on a Windows server and needs to use native Windows authentication to do a pass/fail validation of a client's user/pass/domain credentials.
    Currently, the app uses JNI to make a simple LogonUserW call, however JNI is causing a variety of headaches. I was wondering if Java can do Windows authentication with JAAS or Java SSO technology. I'm new to Java security APIs so any pointers are greatly appreciated.
    Thanks!

    I'm maintaining a Java web app that runs on a Windows server and needs to use native Windows authentication to do a pass/fail validation of a client's user/pass/domain credentials.
    Currently, the app uses JNI to make a simple LogonUserW call, however JNI is causing a variety of headaches. I was wondering if Java can do Windows authentication with JAAS or Java SSO technology. I'm new to Java security APIs so any pointers are greatly appreciated.
    Thanks!

  • Packaging an AIR application in a native installer

    Hi! I'm trying to create a native installer of my AIR Application,  because (I think) it's the only way make the native processes working.  But I have a problem: I used the following command to pack: "adt  -package -storetype pkcs12 -keystore myCert.pfx -target native  -storetype pkcs12 -keystore myCert.pfx myApp.exe myApp-app.xml", but I get  the error: "File myApp-app.xml is not a valid AIRI or AIR file". In the  Flash Builder I use as additional compiler arguments:  "-locale=pt_PT,en_UK,fr_FR,de_DE,ro_RO,es_ES  -allow-source-path-overlap=true -source-path=assets" and I add the  source path "src/locale/{locale}/". What is the sintax for packing my  AIR application in a native installer? Thanks in advance.

    Hi again! Thanks for the reply. I based myself on the link to see what command syntax I should use to pack my Air Windowed Application and it was the command that I presented in the previous post.
    adt version "2.0.1.12090"
                                                  My Descriptor File
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/2.0">
    <!-- Adobe AIR Application Descriptor File Template.
        Specifies parameters for identifying, installing, and launching AIR applications.
        xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/2.0
                The last segment of the namespace specifies the version
                of the AIR runtime required for this application to run.
        minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                the application. Optional.
    -->
        <!-- A universally unique application identifier. Must be unique across all AIR applications.
             Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
        <id>com.MyCompany.Application</id>
        <!-- Used as the filename for the application. Required. -->
        <filename>Production Control System</filename>
        <!-- The name that is displayed in the AIR application installer.
             May have multiple values for each language. See samples or xsd schema file. Optional. -->
        <name>Production Control System</name>
        <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
        <version>2.1.3</version>
        <!-- Description, displayed in the AIR application installer.
             May have multiple values for each language. See samples or xsd schema file. Optional. -->
        <!-- <description></description> -->
        <!-- Copyright information. Optional -->
        <!-- <copyright></copyright> -->
        <!-- Publisher ID. Used if you're updating an application created prior to 1.5.3 -->
        <!-- <publisherID>My Company</publisherID> -->
        <!-- Settings for the application's initial window. Required. -->
        <initialWindow>
            <!-- The main SWF or HTML file of the application. Required. -->
            <!-- Note: In Flash Builder, the SWF reference is set automatically. -->
            <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
            <!-- The title of the main window. Optional. -->
            <!-- <title></title> -->
            <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
            <systemChrome>none</systemChrome>
            <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
            <transparent>true</transparent>
            <!-- Whether the window is initially visible. Optional. Default false. -->
            <!-- <visible></visible> -->
            <!-- Whether the user can minimize the window. Optional. Default true. -->
            <!-- <minimizable></minimizable> -->
            <!-- Whether the user can maximize the window. Optional. Default true. -->
            <!-- <maximizable></maximizable> -->
            <!-- Whether the user can resize the window. Optional. Default true. -->
            <!-- <resizable></resizable> -->
            <!-- The window's initial width in pixels. Optional. -->
            <!-- <width></width> -->
            <!-- The window's initial height in pixels. Optional. -->
            <!-- <height></height> -->
            <!-- The window's initial x position. Optional. -->
            <!-- <x></x> -->
            <!-- The window's initial y position. Optional. -->
            <!-- <y></y> -->
            <!-- The window's minimum size, specified as a width/height pair in pixels, such as "400 200". Optional. -->
            <!-- <minSize></minSize> -->
            <!-- The window's initial maximum size, specified as a width/height pair in pixels, such as "1600 1200". Optional. -->
            <!-- <maxSize></maxSize> -->
        </initialWindow>
        <!-- We recommend omitting the supportedProfiles element, -->
        <!-- which in turn permits your application to be deployed to all -->
        <!-- devices supported by AIR. If you wish to restrict deployment -->
        <!-- (i.e., to only mobile devices) then add this element and list -->
        <!-- only the profiles which your application does support. -->
        <!-- <supportedProfiles>desktop extendedDesktop mobileDevice extendedMobileDevice</supportedProfiles> -->
        <supportedProfiles>extendedDesktop</supportedProfiles>
        <!-- The subpath of the standard default installation location to use. Optional. -->
        <!-- <installFolder></installFolder> -->
        <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
        <!-- <programMenuFolder></programMenuFolder> -->
        <!-- The icon the system uses for the application. For at least one resolution,
             specify the path to a PNG file included in the AIR package. Optional. -->
        <!-- <icon>
            <image16x16></image16x16>
            <image32x32></image32x32>
            <image48x48></image48x48>
            <image128x128></image128x128>
        </icon> -->
        <!-- Whether the application handles the update when a user double-clicks an update version
        of the AIR file (true), or the default AIR application installer handles the update (false).
        Optional. Default false. -->
        <customUpdateUI>true</customUpdateUI>
        <!-- Whether the application can be launched when the user clicks a link in a web browser.
        Optional. Default false. -->
        <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
        <!-- Listing of file types for which the application can register. Optional. -->
        <!-- <fileTypes> -->
            <!-- Defines one file type. Optional. -->
            <!-- <fileType> -->
                <!-- The name that the system displays for the registered file type. Required. -->
                <!-- <name></name> -->
                <!-- The extension to register. Required. -->
                <!-- <extension></extension> -->
                <!-- The description of the file type. Optional. -->
                <!-- <description></description> -->
                <!-- The MIME content type. -->
                <!-- <contentType></contentType> -->
                <!-- The icon to display for the file type. Optional. -->
                <!-- <icon>
                    <image16x16></image16x16>
                    <image32x32></image32x32>
                    <image48x48></image48x48>
                    <image128x128></image128x128>
                </icon> -->
            <!-- </fileType> -->
        <!-- </fileTypes> -->
        <!-- iPhone/iPad -specific capabilities -->
        <!-- <iPhone> -->
            <!-- A list of plist key/value pairs to be added to the application Info.plist -->
            <!-- <InfoAdditions>
                <![CDATA[
                    <key>UIDeviceFamily</key>
                    <array>
                        <string>1</string>
                        <string>2</string>
                    </array>
                    <key>UIStatusBarStyle</key>
                    <string>UIStatusBarStyleBlackOpaque</string>
                    <key>UIRequiresPersistentWiFi</key>
                    <string>YES</string>
                ]]>
            </InfoAdditions> -->
        <!-- </iPhone> -->
    </application>

Maybe you are looking for