Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Flex Window

Posted on 2010-11-22
1
Medium Priority
?
519 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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 month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

636 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