User Guide

332 Chapter 6: Components Dictionary
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.saveToSharedObj(). The
DataSet.loadFromSharedObject() method overwrites any data or pending changes that might
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
DataSetError exception if the specified shared object isnt found or if
there is a problem retrieving the data from it.
Example
This example attempts to load a shared object named webapp/customerInfo associated with the
data set named
myDataSet. The method is called within a try...catch code block.
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
id
A string identifier for the item in the collection to be located.
Returns
A Boolean value.
Description
Method; positions the current iterator on the collection item whose ID matches id. This method
returns
true if the specified ID can be matched to an item in the collection; otherwise, it
returns
false.