[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Flex Window

Posted on 2010-11-22
1
Medium Priority
?
521 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

834 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