Guest User

Untitled

a guest
Aug 31st, 2010
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 1.18 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:BasicLayout/>
  8.     </s:layout>
  9.    
  10.     <s:Graphic click="{el1.color=Math.random()*10000}" x="{Math.random()*100}" y="{Math.random()*100}">
  11.         <s:Ellipse width="50" height="50">
  12.             <s:stroke><s:SolidColorStroke scaleMode="normal"/></s:stroke>
  13.             <s:fill><s:SolidColor id="el1" color="0x123456"/></s:fill>
  14.         </s:Ellipse>
  15.     </s:Graphic>
  16.    
  17.     <s:Graphic click="{el2.color=Math.random()*10000}" x="{Math.random()*100}" y="{Math.random()*100}">
  18.         <s:Ellipse width="50" height="50">
  19.             <s:stroke><s:SolidColorStroke scaleMode="normal"/></s:stroke>
  20.             <s:fill><s:SolidColor id="el2" color="0x123456"/></s:fill>
  21.         </s:Ellipse>
  22.     </s:Graphic>
  23.    
  24.     <s:Graphic click="{el3.color=Math.random()*10000}" x="{Math.random()*100}" y="{Math.random()*100}">
  25.         <s:Ellipse width="50" height="50">
  26.             <s:stroke><s:SolidColorStroke scaleMode="normal"/></s:stroke>
  27.             <s:fill><s:SolidColor id="el3" color="0x123456"/></s:fill>
  28.         </s:Ellipse>
  29.     </s:Graphic>
  30.    
  31. </s:Application>
Advertisement
Add Comment
Please, Sign In to add comment