Advertisement
Guest User

Untitled

a guest
Aug 31st, 2010
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 0.95 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  3.                xmlns:s="library://ns.adobe.com/flex/spark"
  4.                xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
  5.    
  6.     <s:layout>
  7.         <s:VerticalLayout/>
  8.     </s:layout>
  9.    
  10.     <s:Group width="200" height="200">
  11.         <s:layout>
  12.             <s:BasicLayout/>
  13.         </s:layout>
  14.        
  15.         <s:Rect id="one" width="100" height="100">
  16.             <s:fill>
  17.                 <s:SolidColor color="0xff0000" alpha=".5"/>
  18.             </s:fill>
  19.         </s:Rect>
  20.        
  21.         <s:Rect id="two" width="100" height="{50}" y="{one.y+one.height-two.height}">
  22.             <s:stroke>
  23.                 <s:SolidColorStroke/>
  24.             </s:stroke>
  25.             <s:fill>
  26.                 <s:SolidColor color="0x00ff00" alpha=".5"/>
  27.             </s:fill>
  28.         </s:Rect>
  29.        
  30.     </s:Group>
  31.    
  32.     <s:HGroup>
  33.         <s:VSlider id="vs" minimum="10" maximum="100" value="50"/>
  34.         <s:Button label="fontChangin" width="{vs.value}" height="{vs.value}" fontSize="{vs.value/10}"/>
  35.     </s:HGroup>
  36.    
  37. </s:Application>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement