Advertisement
Guest User

Untitled

a guest
Feb 26th, 2014
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:SkinnablePopUpContainer
  3.     xmlns:fx="http://ns.adobe.com/mxml/2009"
  4.     xmlns:s="library://ns.adobe.com/flex/spark"
  5.     width="300"
  6.     height="200"
  7.     backgroundAlpha="0.0"
  8.     creationComplete="init()">
  9.    
  10.     <fx:Script>
  11.         <![CDATA[
  12.             import mx.core.FlexGlobals;        
  13.             [Bindable] private var application:Object = FlexGlobals.topLevelApplication;
  14.            
  15.             public function init():void
  16.             {
  17.                 this.x = ( application.width / 2 ) - ( this.width / 2 );
  18.                 this.y = ( application.height / 2 ) - ( this.height / 2 );
  19.             }
  20.         ]]>
  21.     </fx:Script>
  22.    
  23.     // Your content
  24.    
  25. </s:SkinnablePopUpContainer>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement