Solved

Flex Window

Posted on 2010-11-22
1
510 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

6 Experts available now in Live!

Get 1:1 Help Now