1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="Home">
<fx:Script>
<![CDATA[
protected function createView(event:MouseEvent):void
{
// TODO Auto-generated method stub
var v:View = new View();
v.title = "Titre";
v.visible = true;
navigator.pushView(View, v);
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Button x="10" y="10" width="460" height="662" label="Button" click="createView(event)"/>
</s:View> |
Partager