|
|
| |
|
|
| |
Posted by Jon at 11:06 AM
Labels: Flex Panel Container, Penel and Windows
|
|
| <?xml version="1.0" encoding="utf-8"?> |
Posted by Jon at 10:44 AM
|
|
Flex Panels and Windows Sample Source Code:
Create a file:
AlertDemo.mxml
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundAlpha="0" xmlns="*"> <mx:Script> import mx.controls.Alert; </mx:Script> <mx:Panel width="100%" height="100%" horizontalAlign="center" paddingTop="20"> <mx:Text text="Click the button below to display an Alert window and capture the button pressed by the user" width="100%" textAlign="center"/> </mx:Application> |
Posted by Jon at 9:34 AM
Labels: Penel and Windows
|
|
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundAlpha="0"> <mx:Script> import mx.managers.PopUpManager; private function showWindow(modal:Boolean):void public function logonHandler(event:LogonEvent):void </mx:Script> <mx:Label id="status"/> </mx:Application> |
| LogonWindow.mxml |
<?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" title="Logon" borderAlpha="1.0"> <mx:Script> import mx.managers.PopUpManager; private function logon():void </mx:Script> <mx:Metadata> <mx:Form> <mx:FormItem label="UserId" required="true"> <mx:FormItem label="Password" required="true"> <mx:FormItem> </mx:Form> </mx:TitleWindow> |
Posted by Jon at 9:27 AM
Labels: Penel and Windows
|
|
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" <mx:Script> [Bindable] private function deleteItem() : void <mx:HTTPService id="srv" url="../assets/employees.xml" useProxy="false" <mx:Panel title="Employee List" width="100%" height="100%"> <mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{employees}"> <mx:ControlBar> </mx:Panel> </mx:Application> |
| employees.xml |
<?xml version="1.0" encoding="utf-8"?> <list> <employee> </list> |
Posted by Jon at 9:24 AM
Labels: Penel and Windows
|
|
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" <mx:Script> import mx.collections.ArrayCollection; [Bindable] </mx:Script> <mx:HTTPService id="srv" url="../assets/employees.xml" useProxy="false" <mx:Panel title="Employee List" width="100%" height="100%"> <mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{employees}"> </mx:Panel> </mx:Application> |
| employees.xml |
| <?xml version="1.0" encoding="utf-8"?> <list> <employee> </list> |
Posted by Jon at 9:20 AM
Labels: Penel and Windows