String value
"
"updateField
"updateItems"
Example
In this example, a Delete Item button is disabled if the items have been removed from the
collection and the target DataSet object has no more items.
on(modelChanged) {
delete_btn.enabled = ((eventObj.eventName == "removeItems") &&
(eventObj.target.isEmpty()));
}
See also
DataSet.isEmpty()
DataSet.newItem
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
on(newItem) {
// insert your code here
}
listenerObject = new Object();
listenerObject.newItem = function (eventObj) {
// insert your code here
}
dataSet.addEventListener("newItem", listenerObject)
Description
Event; broadcast when a new transfer object is constructed by means of
A listener for this event can make modifications to the item before it is added to the collection.
The event object (
The DataSet object that generated the event.
target
The string
type
A referenece to the item that was created.
item
Example
This example makes modifications to a newly created item before it's added to the collection.
function newItemEvent(evt:Object):Void {
var employee:Object = evt.item;
Description
A field in an item has been changed and needs refreshing.
A series of items needs refreshing.
) contains the following properties:
eventObj
"iteratorScrolled"
.
DataSet component (Flash Professional only)
DataSet.createItem()
335
.
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