The reference to the Alert instance you are showing can give you more
control over Alerts position. It (reference) is returned by Alert.show()
method.
E.g.
var alert : Alert = Alert.show("bla-bla-bla");
alert.y /= 2;
R.
On 5/25/07, Marvin Froeder <[EMAIL PROTECTED]> wrote:
Simple...
Lets se
Simple...
Lets see the show method:
public static function show(text:String = "", title:String = "",
flags:uint = 0x4 /* Alert.OK */,
parent:Sprite = null,
closeHandler:Function = null,
How do you control the position of an Alert popup? By default it
appears that the location is centered within the dimensions of the flash
file. The problem is that the current flash file I am working on is
taller than the browsers window. So when I need to show an Alert popup
some users may not
.com>
> Sent: Sunday, February 19, 2006 10:05 PM
> Subject: Re: [flexcoders] Positioning Alert
>
>
> Isn't centerPopUp a method of the PopUpManager?
> such as :
> PopUpManager.centerPopUp(myAlert);
>
> >
> >
> >
> >
> > FYI, using myAlert.cent
; point.x = theX;
> point.y = theY;
> theCanvas.localToGlobal(point);
>
> my_alert.move(point.x, point.y);
> }
>
> - Original Message -
> From: "Daniel Cascais" <[EMAIL PROTECTED]>
> To:
> Sent: Wednesday, February 22, 2006 11:25 AM
>
= {};
point.x = theX;
point.y = theY;
theCanvas.localToGlobal(point);
my_alert.move(point.x, point.y);
}
- Original Message -
From: "Daniel Cascais" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, February 22, 2006 11:25 AM
Subject: Re: [flexcoders] Positioning Alert
O
Ok… sorry for the late reply (my day seems to only have 12 hrs).
I tried using the 4th parameter in show() and the results are exactly
the same. You can see two screenshots here:
http://www.cascais.cl/images/deletable/alertposition1.png
http://www.cascais.cl/images/deletable/alertposition2.png
T
Frikin' 24, and it blows. But, this is what I got, so this is what I'm
gonna use.
- Original Message -
From: "Aldo Bucchi" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, February 21, 2006 8:53 PM
Subject: Re: [flexcoders] Positioning Alert
jesse,
how many hours d
n's alert
> function.
>
> - Original Message -
> From: "Daniel Cascais" <[EMAIL PROTECTED]>
> To:
> Sent: Tuesday, February 21, 2006 10:25 AM
> Subject: Re: [flexcoders] Positioning Alert
>
>
> We tried with the VBox and an Accordion that is
Sent: Tuesday, February 21, 2006 10:25 AM
Subject: Re: [flexcoders] Positioning Alert
We tried with the VBox and an Accordion that is within the VBox.
As a note, vertically the Alert is being correctly positioned, which
means it is having some effect, as it isn't the same as the
Applic
u passing
> in the VBox or the Application?
>
> - Original Message -
> From: "Daniel Cascais" <[EMAIL PROTECTED]>
> To:
> Sent: Tuesday, February 21, 2006 9:24 AM
> Subject: Re: [flexcoders] Positioning Alert
>
>
> Yeah, sorry forgot to mention
Who is the parent of the Alert? You can pass in the parent; are you passing
in the VBox or the Application?
- Original Message -
From: "Daniel Cascais" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, February 21, 2006 9:24 AM
Subject: Re: [flexcoders] Positioning Alert
Yeah,
t
anywhere but the center of it's assigned reference.
On 2/20/06, JesterXL <[EMAIL PROTECTED]> wrote:
> In Flex 2, not 1.5.
>
> ...is the Alert centered yet?
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To:
> Sent: Sunday, February 19, 20
In Flex 2, not 1.5.
...is the Alert centered yet?
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Sunday, February 19, 2006 10:05 PM
Subject: Re: [flexcoders] Positioning Alert
Isn't centerPopUp a method of the PopUpManager?
such as :
PopUpManager.centerPo
Isn't centerPopUp a method of the PopUpManager?
such as :
PopUpManager.centerPopUp(myAlert);
>
>
>
>
> FYI, using myAlert.centerPopUp( blabla ) doesn't do the work either.
>
> alert! something's wrong with alert
>
> On 2/16/06, Daniel Cascais <[EMAIL PROTECTED]> wrote: >
> I'm trying to position a
FYI, using myAlert.centerPopUp( blabla ) doesn't do the work either.
alert! something's wrong with alert
On 2/16/06, Daniel Cascais <[EMAIL PROTECTED]> wrote:
> I'm trying to position an Alert instance, but I'm not getting any
> reaction from the Alert and it always appears in its default locatio
I'm trying to position an Alert instance, but I'm not getting any
reaction from the Alert and it always appears in its default location
in the app.
//Code:
var myAlert:Alert = Alert.show( "Lalalala" );
myAlert.move( 15, 16 );
I have done this quite a lot in Flash, for which I am wondering if
ther
17 matches
Mail list logo