
Chintan Buch
here I m – Chintan Buch from India. I m working as Interactive Media Developer (its a bit longer, plz bear with it) in AOL. probably few people want to know @ my AS exp, so I've to tell u that this is not what I was earlier! started my career with Network Admin with the passion of Digital Art & Animation. I remember it was Flash4 when I was playing with it.. was doing animation stuffs during my college time (yes I was getting paid). after couple of yrs (precisely 3), some1 decided to gamble on me & from that day, I was officially a part of AS community. most of my work is in de area of intranet/remoting, unbelievable huh! oh yes I remember, I did couple of projects with different social networking sites as well ;-)
these days I m playing with Flex & AIR, & you know what!? I m pretty much in good shape (although I make silly mistakes most of the time, but m newbie... ;-).
yes I’ve my site globulous.net, but don’t expect anything there ;-) only my R&D projects & few personal files will be there (don’t try to search for those links, you won’t find it) hopefully I’ll design my site someday & add all favorite things there... but till that time u can reach me through email if u need any help from me : chintanbuch <at> gmail (dot) com. btw don’t try with exact text, change <at> with @ & (dot) with “.” else it’ll bounce back to you ;-)
Ok so we start with the “main-app.xml” file. This is the AIR specific configuration file, where we can change the Application specific parameters like:
- Application Name
- Version
- Description etc...
But we’ll directly move to the following settings which allow us to change the windows related settings. When dealing with custom chrome window, following settings need to keep in mind.
- SystemChrome
- For creating skinnable application, this parameter should be “none”
- Transparent
- This parameter should be “true”
Initially in the configuration file, both the properties (1 & 2) may be commented, so you need to remove the comment for these parameters & then set their values.
There may be a possibility that our Application doesn’t require resizing of the window (because of the odd shape). So we can remove the resizing option by changing the “resizable” parameter value to “false”.
Ok that’s all we need to change in the configuration file.
Now we can move to “main.mxml” file. This is our main UI where we want to set the Application skin. Here we need to set the following properties.
- borderStyle = “none”
- By setting this value, window won’t show the border around it.
- backgroundAlpha = “0”
- This will make windows background transparent. This’ll be helpful when you place an transparent image (PNG file with alpha transparency) on the main Application interface.
- showTitleBar = “false”
- showStatusBar = “false”
- By default Title Window & Status Bar display is true (Even if the background is transparent, because default value is true). We need to set these values to false.
- horizontalScrollPolicy = “off”
- vertical ScrollPolicy = “off”
|
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" width="350" height="350" layout="absolute" borderStyle="none" backgroundAlpha="0" showTitleBar="false" showStatusBar="false" horizontalScrollPolicy="off" verticalScrollPolicy="off" initialize="{evntAppInit()}" applicationComplete="{evntAppComplete()}" > |


