views:

3694

answers:

3

Does anyone know if it is possible to add other controls to a Flex 3 Alert? What I need is a modal dialoge that allows the user to type in a filename before clicking OK or CANCEL. This seems like it would be best achieved with an Alert but in the documentation I don't see an obvious way to add a TextInput (or any other control except a Button). I'd rather not have to reinvent the wheel but if I have to then hey, I'll do it!

A: 

I believe creating your own component to serve this purpose is your only route. You can always use the styles of the alert dialog though so it will look like all other alerts and keep a similar feel throughout your application.

JustFoo
+2  A: 

I believe you are looking for a flex Title Window. The Alert allows configuring of buttons and text of the buttons. There are some examples of the title window here.

Brandon
Thanks! That is exactly what I was looking for.
defmeta
A: 

You can use "PopUpManager" class to make an Alert as per your requirements, Example here or custom pop up

Chinmay