Solved

Flex Window

Posted on 2010-11-22
1
513 Views
Last Modified: 2012-05-10
Hi,

How can i disable the chrome window in Flex 4 Window component as it doesn't have any xml to configure.

Source:
<?xml version="1.0" encoding="utf-8"?>
<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009" 
		  xmlns:s="library://ns.adobe.com/flex/spark" 
		  xmlns:mx="library://ns.adobe.com/flex/mx" 
		  width="550" 
		  height="450">

		<mx:Image id="background"
				  width="550"
				  height="450"
				  source="images/back.png"
>
			
</mx:Image>
</s:Window>

Open in new window


Need it to be transparent and without the Chrome window.

Thanks
0
Comment
Question by:VeyronSA
1 Comment
 

Accepted Solution

by:
VeyronSA earned 0 total points
ID: 34186291
Found Solution, but if you have another way please share :)

Here is my solution:
<?xml version="1.0" encoding="utf-8"?>
<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009" 
		  xmlns:s="library://ns.adobe.com/flex/spark" 
		  xmlns:mx="library://ns.adobe.com/flex/mx" 
		  width="565" 
		  height="490"
		  showStatusBar="false"
		  systemChrome="none"
		  transparent="true"
		  creationComplete="init()"
		  backgroundAlpha="0.0" contentBackgroundAlpha="0.0">

		<mx:Image id="background"
				  width="564"
				  height="464"
				  source="images/back.png"
				  mouseDown="moveWindow(event)"
>
</mx:Image>
	<fx:Script>
		<![CDATA[
			private function init():void { 
				// center the window on the screen 
				var screenBounds:Rectangle = Screen.mainScreen.bounds; 
				nativeWindow.x = (screenBounds.width - nativeWindow.width) / 2; 
				nativeWindow.y = (screenBounds.height - nativeWindow.height) / 2; 
			}
			private function moveWindow(event:MouseEvent):void {
				this.stage.nativeWindow.startMove();
			}

		]]>
	</fx:Script>
</s:Window>

Open in new window


Thanks
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now