Menu

[r620]: / cairngorm3 / trunk / libraries / IntegrationTest / src / SimplifiedDMSSample.mxml  Maximize  Restore  History

Download this file

28 lines (24 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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"
creationComplete="doInit()">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
            import mx.data.*;
            import mx.data.events.*;
            import mx.events.FlexEvent;
            
private function doInit() : void
            {
                var service : DataService = new DataService("testintrospection.TestEntity");
                service.addEventListener(DataServiceFaultEvent.FAULT, faultHandler, false, 0, true);
                service.initialize();
            }
            
            private function faultHandler(event: DataServiceFaultEvent):void
            {
               Alert.show("initialization fault : " + event);    
            }
]]>
</fx:Script>
</s:Application>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.