Dataprovider.length; Dataprovider.modelchanged - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

DataProvider.length

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDP.length
Description
Property (read-only); the number of items in the data provider.
Example
This example sends the number of items in the
data provider to the Output panel:
myArray
trace(myArray.length);

DataProvider.modelChanged

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
listenerObject = new Object();
listenerObject.modelChanged = function(eventObject){
// Insert your code here.
}
myMenu.addEventListener("modelChanged", listenerObject)
Description
Event; broadcast to all of its view listeners whenever the data provider is modified. You
typically add a listener to a model by assigning its
property.
dataProvider
Version 2 components use a dispatcher/listener event model. When a data provider changes in
some way, it broadcasts a
event, and data-aware components catch it to update
modelChanged
their displays to reflect the changes in data.
DataProvider.modelChanged
323

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents