MACROMEDIA FLASH 8-USING FLASH Use Manual page 434

Using flash
Table of Contents

Advertisement

Default settings
These settings let you set defaults for various situations. The following list
describes the uses for these settings:
If a field's value is undefined, the default value is used whenever the value of the field is
used as the source of a data binding. For example, the data fields of a DataSet component,
or the
property of a connector component, can have an undefined value.
results
When you create a new row of data in a DataSet component, the default value is used as
the value of newly created records
Using kinds and encoders
Kinds and encoders are drop-in modules that perform additional special processing of the
data of a schema item. They are often used with each other to accomplish common tasks. The
following list describes common uses for kinds and encoders:
Calculated DataSet Fields
underlying data tables. Calculated fields provide developers with the ability to create and
update dynamic field values at runtime. This is convenient for calculating and displaying
values based on calculations or concatenations performed other fields located in a record (for
instance, you can create a calculated field that combines the first and last name fields together
to display the full name to a user).
To set up a calculated field for the DataSet component:
1.
Select the DataSet component, and click the Schema tab in the Component inspector.
2.
Click the Add a Component Property (+) button. This step adds a field to the schema.
3.
Using the Schema Attributes pane, give the new component property a field name, and set
its kind to
calculated
4.
In ActionScript code, use the
field a value at runtime.
You should assign a value to a calculated field only within the DataSet component's
event.
calcFields
For an ActionScript code example, see
Setting up schemas for XML documents
string. Sometimes you want the fields of an XML document to be available as data types other
than String. The following example shows an application that pulls in data from an XML file:
<datapacket>
<row id="1" billable="ON" rate="50" hours="3" />
<row id="2" billable="OFF" rate="50" hours="6" />
</datapacket>
434
Data Integration (Flash Professional Only)
Calculated fields are virtual fields that do not exist in the
.
event of the DataSet component to assign this
calcFields
"Schema kinds" on page
In an XML document, all data is stored as a
436.

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF