MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 295

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
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
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
Version 2 components use a dispatcher/listener event model. When a data provider changes in
some way, it broadcasts a
their displays to reflect the changes in data.
The
Menu.modelChanged
eventName
Data-aware components use this information to avoid completely refreshing the component
instance (view) that is using the data provider. The
values:
updateAll
addItems
modelChanged
event's event object has five additional properties:
The
property is used to subcategorize
eventName
The entire view needs refreshing, excluding scroll position.
A series of items has been added.
data provider to the Output panel:
myArray
property.
dataProvider
event, and data-aware components catch it to update
eventName
events.
modelChanged
property supports the following
DataProvider API
295

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