Skip navigation
ramesh.reddy
Currently Being Moderated

How to position all alert messages in a particular position?

Mar 16, 2013 7:01 AM

Tags: #flex #actionscript #flex-4.6 #actionscript_3.0 #flex4.5

Hi All,

 

        I have developed a Application where it contains so many Alert Messages and i want display All Alert messages in a particular position of respected screen. I have tried the following code but it works for individual alert messages. I don't want to set x and y properties individually, i want set x and y properties globally. Is there any way that i can apply for all the alert messages in my application.

 

 

myAlert = Alert.show('Hello World');
 
PopUpManager.centerPopUp(myAlert);
  myAlert
.x = 0;
  myAlert
.y = 0;

 

 

Thanks in Advance

 
Replies
  • Currently Being Moderated
    Mar 17, 2013 5:47 AM   in reply to ramesh.reddy

    Have you thought about just creating a Panel that is not visible.  Then when you need to display the alert, display the panel and append the text.  You cold then add a button to the panel acknowledging the alert, which would set the panel visible attribute to false and clear the text.  That way you only have one alert window to close.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 18, 2013 5:56 AM   in reply to ramesh.reddy

    You could override the Alert class. This would like something like:

     

     

    public class MyAlert extends Alert {

     

    public get x():void {

    return 0;

    }

    public get y():void {

    return 0;

    }

     
    |
    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