Skip navigation
Currently Being Moderated

Dynamic message with Alert popup window?

Feb 28, 2011 2:09 PM

I'm using the simplest form of Alert popup window. Is there a way I can put a dynamic alert message in the window? For example,

the Alert shows the "XYZ" at beginning, and then change to "ABC" by an event before the OK button is clicked.

  • Currently Being Moderated
    Feb 28, 2011 9:03 PM   in reply to Johnking08

    First you need to create a refernce to the Alert window.

    alert  ="Hello");


    To change the text

    alert.mx_internal::alertForm.mx_internal::textField.text = "New Text";


    ( had to use mx_internals because the following code is not updating the text alert.text = "New text"; )

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points