---
id: 1620
title: A fun way to open a native window in AIR with MATE
slug: a-fun-way-to-open-a-native-window-in-air-with-mate
date: '2009-07-18T11:21:56Z'
modified: '2009-07-18T11:21:56Z'
status: publish
type: post
author: pmoelgaard
categories:
  - ActionScript 3.0
tags:
  - Adobe AIR
  - Code
  - Code Design
  - Mate Flex Framework
excerpt: null
canonicalPath: /posts/a-fun-way-to-open-a-native-window-in-air-with-mate
featuredImage: null
commentCount: 1
wordCount: 138
readingTimeMinutes: 1
hasMedia: false
hasVideos: false
url: >-
  https://forwardthinking.pemo.me/posts/a-fun-way-to-open-a-native-window-in-air-with-mate
---
Sometimes when coding it happens that you stumble on something which just strikes you as funny (sometimes for apparently no reason whatsoever). One such experience happened today when I was coding an AIR client with MATE and I had to open a new NativeWindow. It should be noted that I for this implementation am experimenting with ridding myself of using Managers (no other motivation than curiosity about will come out in terms of code design and architecture). Well, the thing that amused me was to use a PropertySetter. This is due to the fact that you have to set the "visible" property in order to actually show the window. However, you also have to pass an object of the type "NativeWindowInitOptions" to the constructor. The code eventually can be written like this...

```jscript

<s>

	<s />

	
		
	

</s>
```
