Flash Builder 4.5: s: WindowedApplication does not initialize

The question is really similar here, but the answer provided does not work for me.

This is what I do:

  • Create a Flex project (airTest) and select Desktop as the application type using 4.5 ACS.
  • Add a button to the main application and change the background color.
  • Compile the project. I do not see anything. I need to kill adl from task manager.

If I go and edit airTest-app.xml and change the visible default to true, when I compile, I get to see the chrome with the correct background color.

If I changed the WindowedApplication tag from <s:WindowedApplication to <mx:WindowedApplication , it will work as it should.

The code is pretty simple, but paste it just in case:

 <?xml version="1.0" encoding="utf-8"?> <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();"> <fx:Script> <![CDATA[ /** * Set up the icon and menus. **/ private function _onCerationComplete():void { trace("on creation complete"); } private function _onButtonInitialize():void { trace("Button"); } ]]> </fx:Script> <s:Button label="Test" initialize="_onButtonInitialize()"/> </mx:WindowedApplication> 

And airTest-app.xml (minus comments and unused materials)

 <?xml version="1.0" encoding="utf-8" standalone="no"?> <application xmlns="http://ns.adobe.com/air/application/2.6"> <id>airTest</id> <filename>airTest</filename> <name>airTest</name> <versionNumber>0.0.0</versionNumber> <initialWindow> <content>[This value will be overwritten by Flash Builder in the output app.xml]</content> <autoOrients>false</autoOrients> <fullScreen>false</fullScreen> <visible>true</visible> </initialWindow> </application> 
+4
source share
1 answer

I found thread on the Adobe forums that solved the problem.

It turns out there is a file (mm.cfg) that is corrupted in some way. By deleting this file, everything works as expected.

In my Windows 7 window, the file is located at: C: \ Users {UsuarName} \ mm.cfg

The same file got me behind the nuts for another reason not so long ago ...

+4
source

All Articles