
222 Use the Data Management Service
2. Save the file.
If you are not using Flex Builder, open the following URL in a browser window:
http://localhost:port/samples/DSLessons/lesson1.mxml
If you are using Flex Builder, run the application from Flex Builder.
The following application appears in the browser window:
Import the required ActionScript classes
In this section, you create a script block and import a set of classes that you will use within the
script block.
1. Create a script block for ActionScript code directly below the <mx:Application> tag in
the lesson1.mxml file:
<mx:Script>
<![CDATA[
]]>
</mx:Script>
2.
Directly below the <![CDATA[ tag, add the following ActionScript import statements:
import mx.data.DataService;
import mx.data.events.*;
import mx.rpc.AsyncToken;
import mx.rpc.events.*;
import mx.messaging.events.*;
import mx.utils.ObjectProxy;
Comentários a estes Manuais