Note that there are some explanatory texts on larger screens.

plurals
  1. POFlash Builder 4.5: s:WindowedApplication does not initialize
    primarykey
    data
    text
    <p>There is a really similar question <a href="https://stackoverflow.com/questions/6588657/swindowedapplication-is-empty-and-does-not-initialize-show-child-components">here</a>, but the provided answer does not work for me.</p> <p>This is what I'm doing:</p> <ul> <li>Create a Flex (airTest) project and chose Desktop as application type using 4.5 SKD. </li> <li>Add a Button to the main application and change the background color.</li> <li>Compile the project. I don't see anything. I have to kill adl from the Task Manager.</li> </ul> <p>If I go and edit the airTest-app.xml and change the visible from the default to true, when i compile i get to see the chrome with the correct background color set.</p> <p>If I change the WindowedApplication tag from <code>&lt;s:WindowedApplication</code> to <code>&lt;mx:WindowedApplication</code> it works as it should.</p> <p>The code is pretty simple, but I will paste it just in case:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" backgroundColor="#ff3366" creationComplete="_onCerationComplete();"&gt; &lt;fx:Script&gt; &lt;![CDATA[ /** * Set up the icon and menus. **/ private function _onCerationComplete():void { trace("on creation complete"); } private function _onButtonInitialize():void { trace("Button"); } ]]&gt; &lt;/fx:Script&gt; &lt;s:Button label="Test" initialize="_onButtonInitialize()"/&gt; &lt;/mx:WindowedApplication&gt; </code></pre> <p>And the airTest-app.xml (minus comments and unused stuff )</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="no"?&gt; &lt;application xmlns="http://ns.adobe.com/air/application/2.6"&gt; &lt;id&gt;airTest&lt;/id&gt; &lt;filename&gt;airTest&lt;/filename&gt; &lt;name&gt;airTest&lt;/name&gt; &lt;versionNumber&gt;0.0.0&lt;/versionNumber&gt; &lt;initialWindow&gt; &lt;content&gt;[This value will be overwritten by Flash Builder in the output app.xml]&lt;/content&gt; &lt;autoOrients&gt;false&lt;/autoOrients&gt; &lt;fullScreen&gt;false&lt;/fullScreen&gt; &lt;visible&gt;true&lt;/visible&gt; &lt;/initialWindow&gt; &lt;/application&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload