?
Solved

Flex Window

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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…
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

765 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