MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 314

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

DataSet.createItem()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.createItem([itemData])
Parameters
Data associated with the item. This parameter is optional.
itemData
Returns
The newly constructed item.
Description
Method; creates an item that isn't associated with the collection. You can specify the class of object
created by using the
specified and the
anonymous object's properties are set to the default values based on the schema currently specified
by
DataSet.schema
When this method is invoked, any listeners for the
able to manipulate the item before it is returned by this method. The optional item data is used to
initialize the class specified with the
DataSet.itemClassName
A
DataSetError
property cannot be loaded.
Example
contact.itemClassName = "Contact";
var itemData = new XML("<contact_info><name>John Smith</
name><phone>555.555.4567</phone><zip><pre>94025</pre><post>0556</post></
zip></contact_info>");
contact.addItem(contact.createItem(itemData));
See also
DataSet.itemClassName
DataSet.currentItem
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
314
Chapter 6: Components Dictionary
DataSet.itemClassName
parameter is omitted, an anonymous object is constructed. This
itemData
.
DataSet.itemClassName
is blank.
exception is thrown when the class specified with the
,
DataSet.newItem
property. If no
DataSet.itemClassName
DataSet.newItem
property or is used as the item if
,
DataSet.schema
value is
event are notified and are
DataSet.itemClassName

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents