HTMLText with Alert

116 views
Skip to first unread message

GnanaPrakasam T

unread,
Sep 7, 2008, 10:27:26 AM9/7/08
to flex_...@googlegroups.com
Hi All,

i need to show the html formatted text in Alert box in Flex.
My requirement is ,

in showing "Error in processing " in Alert box i have to show the String
"Error" alone in Red others are in Black

How to do this in Flex.

Can anybody help me

Thanks in advance


GnanaPrakasam T

VPN

unread,
Sep 8, 2008, 2:21:35 AM9/8/08
to Flex India Community
I am not sure how to do this using 'Alert' Control.

You can make a custom alert pop-up message and display it as a modal
pop-up window using PopUpManager class. This custom pop-up window can
be made using any containers and controls, so you have full freedom.

Vipin

GnanaPrakasam T

unread,
Sep 8, 2008, 5:23:43 AM9/8/08
to flex_...@googlegroups.com
I got the solution for this,

            var a:Alert=Alert.show("dump text");
            a.mx_internal::alertForm.mx_internal::textField.htmlText = some HTMl text goes here;

By these line i can disply HTml formated text in Alert

Thanks VPN for your reply


Gnanz../
Reply all
Reply to author
Forward
0 new messages