Purpose
Managing
record sets
and data
Importing Flash Remoting ActionScript classes
Before you can import Flash Remoting classes in your application, you must first place the
required Flash Remoting libraries on the Stage. For more information, see
service" on page
Use the
import
eliminate the need for using the fully qualified class name each time you need to refer to the class.
This is typically done in the first frame of the Flash application or at the top of any class files
as required:
Import statement
import mx.remoting.Connection
import mx.remoting.DataGlue;
import mx.rpc.FaultEvent;
Class
Properties
DataGlue
RecordSet
columnNames
items
length
18.
directives from the following table at the top of your ActionScript code to
Purpose
Replaces NetConnection class. Macromedia recommends
that you use the Service class to connect to remote
services and use the methods of the Connection class to
perform connection-related tasks such as authenticating
users.
Use DataGlue methods to simplify providing record set
data to Flash UI components.
Fault handling object that is returned to fault handling
method when an error occurs on a call to a remote service
function.
Flash Remoting ActionScript classes
Methods
bindFormatFunction()
bindFormatStrings()
addItem()
addItemAt()
clear()
contains()
filter()
getColumnNames()
getEditingData()
getItemAt()
getItemID()
getIterator()
getLength()
getLocalLength()
getNumberAvailable()
getRemoteLength()
isEmpty()
isFullyPopulated()
isLocal()
removeAll()
removeItemAt()
replaceItemAt()
setDeliveryMode()
setField()
sort()
sortItems()
sortItemsBy()
"Connecting to a
35
Need help?
Do you have a question about the FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 and is the answer not in the manual?