![]() |
|
||||||||||
|
|||||
|
Регистрация: Sep 2003
Адрес: Новосибирск
Сообщений: 29
|
как поместить компонент datagrid в окно компонента window
|
|
|||||
|
[+] за варез
|
Цитата:
Creating an application with the Window component The following procedure explains how to add a Window component to an application. In this example, the window asks a user to change her password and confirm the new password. To create an application with the Button component, do the following: 1 Create a new movie clip that contains password and password confirmation fields, and OK and Cancel buttons. Name the movie clip PasswordForm. 2 In the library, select the PasswordForm movie clip and select Linkage from the Options menu. 3 Check Export for ActionScript and enter PasswordForm in the Identifier box. 4 Enter mx.core.View in the class field. 5 Drag a Window component from the Components panel to the Stage and delete the component from the Stage. This adds the component to the library. 6 In the library, select the Window SWC and select Linkage from the Options menu. 7 Check Export for ActionScript. 8 Open the Actions panel, and enter the following click handler on Frame 1: buttonListener = new Object(); buttonListener.click = function(){ mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, { title:"Change Password", contentPath:"PasswordForm" }) } button.addEventListener("click", buttonListener); |
![]() |
Часовой пояс GMT +4, время: 18:49. |
|
|
« Предыдущая тема | Следующая тема » |
|
|