For the minimize view the code should be as follows.

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" 
showFlexChrome="false" 
creationComplete="creationCompleteHandler(event);" >

<mx:Script>
<![CDATA[



[Bindable]
[Embed(source="images/background.jpg",scaleGridLeft="1",scaleGridRight="2",scaleGridTop="100",scaleGridBottom="200")]
private var background:Class;  // Use any gradient image for the background.

  private function creationCompleteHandler(event: Event): void
        {
            nativeWindow.width = Capabilities.screenResolutionX
            nativeWindow.height = 100;
            nativeWindow.x = 0;
            nativeWindow.y = Capabilities.screenResolutionY - 
nativeWindow.height;
        } 
]]>
</mx:Script>


<mx:Canvas top="0" bottom="0" right="0" left="0" 
backgroundImage="{background}" backgroundSize="100%" /> 
<mx:Canvas left="0" right="0" bottom="0" height="30" 
mouseDown="nativeWindow.startResize()"/>
<mx:Canvas left="0" right="0" bottom="30" top="0" 
mouseDown="nativeWindow.startMove()"/> 
 <mx:Canvas top="0" right="0" width="100" height="28" 
backgroundColor="0xCCCCCC" > 
<mx:Button right="60" top="5" skin="@Embed('images/minimize.png')" 
click="nativeWindow.minimize()" toolTip="Minimize" borderColor="0x000000" />
<mx:Button right="36" top="5" skin="@Embed('images/maximize.png')" 
click="nativeWindow.maximize()" toolTip="Maxmize" />
<mx:Button right="12" top="5" skin="@Embed('images/close.png')" 
click="nativeWindow.close()" toolTip="Close" />
</mx:Canvas>
</mx:WindowedApplication>


and also in the .xml file

change the following 
<!-- The type of system chrome to use (either "standard" or "none"). 
Optional. Default standard. -->
<systemChrome>none</systemChrome>

<!-- Whether the window is transparent. Only applicable when systemChrome is 
false. Optional. Default false. -->
<transparent>false</transparent>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to