PDA

View Full Version : Alert Component Question


scott_euser
03-07-2008, 03:38 PM
Hi guys,

Cant find it in the documentation of the alert component: how can I set the initial location in this code:

Alert.show ("No data recieved. Please try again.","Login Error",Alert.OK,this);

I tried the alert.move, but the compiler wont let me set that as a dynamic location (I use liquid layout so I want to set it to start at Stage.width/2 and Stage.height/2)

Thank you very much for any helps or tips in the right direction!

Cheers!

Scott

scott_euser
03-07-2008, 03:51 PM
Hey Guys,

I think I accidentally deleted my own question:
Is it possible to define the initial start coordinates of the Alert component (would be the same as window component)...

Right now the alert is popping up in seemingly random places on the screen. I use liquid layout so i want to set it to appear at Stage.width/2 and Stage.height/2

Cheers and thx for the help!

Scott

scott_euser
03-07-2008, 04:10 PM
Apparently its not possible without some workaround...
Thanks Abdul (http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/)for the solution...

CyanBlue
03-07-2008, 04:16 PM
Howdy and Welcome... :)

Thanks for posting the information...

Your post was not deleted... I moved it to the Components forum because that's where your question fit best... Please post your question to the appropriate forum next time... ;)

scott_euser
03-07-2008, 04:22 PM
ahhh woops!
sry :)

CyanBlue
03-07-2008, 04:38 PM
Oh, don't be... I'm happy as long as it does not happen again... ;)