<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955" minHeight="600"
initialize="init()"
>
<s:layout>
<s:BasicLayout/>
</s:layout>
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
public function init():void{
var ui:UIComponent = new UIComponent();
var shape:Sprite = new Sprite();
shape.graphics.beginFill( 0XFFCC00 );
shape.graphics.drawCircle( 40, 40, 40 );
shape.graphics.endFill();
ui.addChild( shape );
this.addElement( ui );
}
]]>
</fx:Script>
</s:Application>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955" minHeight="600"
initialize="init()"
>
<s:layout>
<s:BasicLayout/>
</s:layout>
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
public function init():void{
var ui:UIComponent = new UIComponent();
var shape:Sprite = new Sprite();
shape.graphics.beginFill( 0XFFCC00 );
shape.graphics.drawCircle( 40, 40, 40 );
shape.graphics.endFill();
ui.addChild( shape );
this.addElement( ui );
}
]]>
</fx:Script>
</s:Application>