![MACROMEDIA FLASH 8-FLASH Скачать руководство пользователя страница 286](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_tutorials-manual_3348958286.webp)
286 Data Integration: Using XML for a Timesheet (Flash Professional Only)
23.
Using the same method, create the following new fields:
■
Field Name =
billable
, Data Type =
Boolean
■
Field Name =
date
, Data Type =
Date
■
Field Name =
duration
, Data Type =
Number
■
Field Name =
rate
, Data Type =
Number
24.
Select the Date field that you just created. Select the encoder setting and
change it to DateToNumber.
25.
With the Date field still selected, double-click the Formatter field in the
Component inspector and select Date from the pop-up menu.
26.
Double-click the Formatter Options field in the Component inspector.
27.
In the Date Formatter Settings dialog box that appears, enter
MM-DD-
YYYY
in the Format text box.
Add DataGrid and Button components
Next you will add components for displaying the data.
1.
From the Components panel, open the User Interface category and drag
a DataGrid component to the Stage.
2.
In the Property inspector enter the instance name
timeInfo_grd
.
3.
Still in the Property inspector, set the Width to
360
.
NO
TE
The field names must exactly match the names of their corresponding
properties within the XMLConnector component (@date =
date
, @billable
=
billable
, @duration =
duration
), including capitalization.
NO
TE
The DataSet component needs to store date values internally in their
numeric format so that they can be sorted correctly. The DateToNumber
encoder converts a date into a number whenever the value is set. It
converts a number into a date whenever the value is accessed.
Содержание FLASH 8-FLASH
Страница 1: ...Flash Tutorials...
Страница 10: ...10 Contents...
Страница 12: ...12 Introduction...
Страница 42: ...42 Basic Tasks Creating a banner Part 1...
Страница 78: ...78 Basic Tasks Creating a banner Part 3...
Страница 88: ...88 Basic Tasks Create Accessible Flash Content...
Страница 106: ...106 Basic Tasks Create an Application...
Страница 116: ...116 Basic Tasks Use Layout Tools...
Страница 124: ...124 Basic Tasks Create Symbols and Instances...
Страница 134: ...134 Basic Tasks Add Button Animation and Navigation...
Страница 144: ...144 Basic Tasks Create a Presentation with Screens Flash Professional Only...
Страница 192: ...192 Creating Graphics Applying Gradients...
Страница 198: ...198 Creating Graphics Apply Graphic Filters and Blends Flash Professional Only...
Страница 224: ...224 ActionScript Use Script Assist mode...
Страница 268: ...268 ActionScript Work with Objects and Classes...
Страница 270: ...270 Data Integration Overview Flash Professional Only...