Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4257296
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:28:17+00:00 2026-05-21T05:28:17+00:00

I am making a desktop application and I am exploring different ways to use

  • 0

I am making a desktop application and I am exploring different ways to use application.

When I choose to make an air app it automatically uses WindowApplication but if I want multiple windows in my application, then I need to use Application instead. I was trying to nest WindowApplication inside Application so I can have multiple windows (by Application -> new Window()) and have a chromeless, transparent program in the background. When I nest WindowApplication it works but when I click the WindowApplication (after running debug) it would throw an error: “Argument Error: Error #2025: The supplied DisplayObject must be a child of the caller”.

Here is some code I used. I am using Air 2.5 with Flash Builder 4. (the xml file is default).

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       applicationComplete="main()">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
        <![CDATA[
            import spark.components.Label;
            import spark.components.Window;

            private var windows:Array = new Array();

            private function main():void
            {

                var window:Window;
                var numOfWindows:Number = 2;
                for(var i:Number=0; i<numOfWindows;i++)
                {
                    window = new Window();
                    window.width = 300;                 
                    window.title = "I am Window #"+i;
                    window.height = 200;
                    window.open(true);
                    window.showStatusBar = false;   
                    windows.push(window);
                }
                trace("Complete!");
            }
        ]]>
    </fx:Script>
    <s:WindowedApplication >
    <!-- Compiles, but once I click this, it throws the error. -->
    </s:WindowedApplication>
</s:Application>

How could I have a transparent application that can control a few windows (or at least get rid of the error above)?
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T05:28:17+00:00Added an answer on May 21, 2026 at 5:28 am

    WindowedApplication is not intended to be used as a child element, it is a top level element. You should use Application or WindowedApplication as your root element, and never try to nest them inside each other. More information in the official language reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/core/WindowedApplication.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making desktop application (lets call it app) which uses database (mysql). More app's
I am making adobe air desktop app. I need to figure out how to
I am making a Prism desktop application and intend to use WCF services to
I am creating a NSIS installer for a desktop application. I am making use
I m making Desktop Application in netbeans plpatform in java swing.when i run my
I am making a desktop application and I want to show the NSToolbar of
Is there any way to use MySQL without install? I am making an desktop
I am making a Java desktop application which involves lot of data, state, etc.
I am making a Java Desktop Application using Netbeans. I am new to Desktop
Is there a way to launch a desktop application from a Metro-style app on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.