Returns
Nothing.
Description
Method; loads all of the relevant data needed to restore this DataSet collection from a shared
object. To save a DataSet collection to a shared object, use
DataSet.loadFromSharedObject()
exist in this DataSet collection. Note that the instance name of the DataSet collection is used to
identify the data in the specified shared object.
This method throws a
there is a problem retrieving the data from it.
Example
This example attempts to load a shared object named
data set named
myDataSet
try {
myDataSet.loadFromSharedObj("webapp/customerInfo");
}
catch(e:DataSetError) {
trace("Unable to load shared object.");
}
See also
DataSet.saveToSharedObj()
DataSet.locateById()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.locateById(id)
Parameters
A string identifier for the item in the collection to be located.
id
Returns
A Boolean value.
Description
Method; positions the current iterator on the collection item whose ID matches
returns
if the specified ID can be matched to an item in the collection; otherwise, it
true
returns
.
false
332
Chapter 6: Components Dictionary
method overwrites any data or pending changes that might
exception if the specified shared object isn't found or if
DataSetError
. The method is called within a
DataSet.saveToSharedObj()
webapp/customerInfo
code block.
try...catch
. The
associated with the
. This method
id
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers