---
id: 1833
title: 'by popular demand: The SkinnablePopUpContainer'
slug: by-popular-demand-the-skinnablepopupcontainer
date: '2010-12-26T16:41:36Z'
modified: '2010-12-26T16:41:36Z'
status: publish
type: post
author: pmoelgaard
categories:
  - Uncategorized
tags:
  - Documentation
  - Flex
excerpt: null
canonicalPath: /posts/by-popular-demand-the-skinnablepopupcontainer
featuredImage: null
commentCount: 2
wordCount: 76
readingTimeMinutes: 1
hasMedia: false
hasVideos: false
url: >-
  https://forwardthinking.pemo.me/posts/by-popular-demand-the-skinnablepopupcontainer
---
A frequent question is how to open PopUp windows in a target platform neutral way and in compliance with strict Flex4 coding practices... Here is a quick sample of how to do that...

```xml
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
			   xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
			   xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;&gt;

	&lt;fx:Declarations&gt;
		&lt;fx:Component className=&quot;MyAlert&quot;&gt;
			&lt;s:SkinnablePopUpContainer&gt;
				&lt;s:TitleWindow title=&quot;Launching World Domination...&quot; close=&quot;close()&quot;&gt;
					&lt;s:VGroup horizontalAlign=&quot;center&quot; width=&quot;100%&quot;&gt;
						&lt;s:Label text=&quot;World Domination failed. Sorry!&quot;/&gt;
						&lt;s:Button label=&quot;OK, nevermind&quot; click=&quot;close()&quot;/&gt;
					&lt;/s:VGroup&gt;
				&lt;/s:TitleWindow&gt;
			&lt;/s:SkinnablePopUpContainer&gt;
		&lt;/fx:Component&gt;
	&lt;/fx:Declarations&gt;

	&lt;s:Button label=&quot;Launch World Domination&quot; click=&quot;(new MyAlert()).open(this, false)&quot;/&gt;

&lt;/s:Application&gt;
```
