PDA

View Full Version : How to display a custom component on button click in flex


nazmul
05-15-2008, 08:46 PM
I am just starting out programming so my knowledge is very basic, and need help with the following problem.

I am currently learning flex and am working on a sample application, to develop my skills.

I have main mxml file with several custom components that i want to display if the user clicks a button.

Similar to any windows or mac application.

one of the custom component, is an new customer form, which i want to popup in the centre of the screen, and disable all the other controls of the main application, except for the form it self.

The form is built on a title window, so the user could click on close button to close the component.

i am able to display the component in the main.mxml which works fine, but i only want the form to appear if the user clicks on button new.

Thanks

Nazmul