Đang chuẩn bị liên kết để tải về tài liệu:
Thiết kế flash với flash cs5 part 73
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Thêm một lưới dữ liệu Các thành phần DataGrid cho phép bạn tạo dữ liệu mạnh mẽ cho phép hiển thị và các ứng dụng. Bạn có thể sử dụng thành phần DataGrid để tạo ra một recordset (lấy từ một truy vấn cơ sở dữ liệu trong Coldfusion, Java, hoặc Net). | Adding a Data Grid The DataGrid component allows you to create strong data-enabled displays and applications. You can use the DataGrid component to create a recordset retrieved from a database query in ColdFusion Java or .Net using Adobe Flash Remoting and display it in columns. You can also use data from a data set or from an array to fill a DataGrid component. The DataGrid component includes horizontal scrolling event support including event support for editable cells sorting capabilities and performance optimizations. The data for a grid can come from a recordset that is fed from a database query in Adobe ColdFusion Java or .Net using Flash Remoting a data set or an array. To pull the information into a DataGrid you set the DataGrid.dataProvider property to the recordset data set or array. Add a DataGrid Component Open the Components panel. Click the User Interface arrow to expand the list. Drag the DataGrid component onto the Stage and then select the component. Enter a unique instance name for the DataGrid component in the Property Inspector. Select Frame 1 in the actions layer in the Timeline. Open the Actions panel and then enter the script as shown in the illustration. The Flash Remoting recordset recordSetInstance is assigned to the dataProvider property of myDataGrid. 1 03 t Lbei bileiTdcc I O Button CheckBox B ColorPidccr Q3 Lombobox DataGrid T Label wH NumericStepper Œ3 PropressBar RadioButton Scrollfane Slider TextArea poll TexlbipuL ii j TileList jEj UILoader UIScrollBar 2 Video DataGrid component Did You Know You can resize or copy the DataGrid. Select the Transform tool from the toolbox and then use the resize nodes to change the width and height. To copy the DataGrid select the Selection tool hold down the Alt key Win Option key Mac and then drag the component. 448 Chapter 18 Modify DataGrid Options Select the DataGrid component. Open the Properties panel and then click the Component Parameters arrow to expand it. Select from the following DataGrid