Create Skinnable Application Using Flex + AIR
Published Kamis, 12 Februari 2009 by TB Saepul Anwar in AIROk 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()}"
>
sumber:http://www.actionscript.org/resources/articles/834/1/Create-Skinnable-Application-Using-Flex--AIR/Page1.html
My Profil
- TB Saepul Anwar
- I'm Flex and AIR Fan's also Entrepreneur, I like Flex and AIR because i like make code with MXML and AS 3.0 and enjoy the Flash Output. My backgroud is Multimedia, I Like design, Video, 3D, and animation.
Arsip Blog
-
▼
2009
(16)
-
▼
Februari
(14)
- IDE untuk pengembangan FLEX dan AIR
- Framework MVC di Flex dan AIR
- Mengenal File properties pada .XML pada Project AIR
- Adobe AIR 1.5.1 telah di Rilis
- Mendebug code di Flex dan AIR, Tool tambahan Debug
- Menghubungkan 2 Aplikasi AIR,Tapi Kok Error #2044
- Latihan Membuat Native Window di AIR
- Garbage Collection, Flex Performance, Memory Manag...
- Kumpulan Aplikasi AIR yang keren (2)
- Kumpulan Aplikasi AIR yang Keren
- Create Skinnable Application Using Flex + AIR
- 25 OpenSource PHP Framework
- Membuat add button pada TabNavigator
- XML di Flex
-
▼
Februari
(14)
Label
- AIR (18)
- Android (2)
- BlazeDS (1)
- flex (20)
- my Activities (4)
- php (1)
- Playbook (1)
- Project (1)
- Tutorial AIR (2)
- Tutorial Flex (2)
0 komentar:
Posting Komentar