Pixelbox

Welcome to Pixelbox. Thursday the 20 of November 2008

Skip to content >>

No Chrome in Apollo!

There are lots of examples out there on the web of how to make you application window have no system chrome (the default system window close, minimise etc), but I was having problems getting it to work with my Flex project. Most advice tells you to change some settings in the yourAppName-app.xml file:


<rootcontent systemchrome="none" transparent="true" visible="true">yourAppName.swf</rootcontent>

and then add some mx css:


	
   Application
   {
      background-color: "";
      background-image: "";
      padding: 0px;
   }
	

However this wasn't removing the default Flex system chrome that you get when developing in MXML and ActionScript3. I managed to find a comment on theflexblog which pointed out that you need to make sure you don't use the ApolloApplication mxml tag and instead just use the Application tag. This took me a while to discover, especially with the Adobe live docs being very much dead... especially for Alpha Apollo. To make it worse all my code is behind the main mxml file in an AS class (Aral like) so I had to make sure my main class extended Application and not ApolloApplication... So anyway, hope that helps someone out there!

2 comments

Why not leave your own!

  1. Very useful, I ran into the exact same thing.
  2. Man, I was losing my mind. In Flex 3, this also works...dont use WindowedApplication, but simply Application, and for me I made sure the CSS mas in the mx:Style as well as shown above in your post! Thanks man!

Add your own comment