Seems like until now, my Alert boxes appear in the center ok.
However, now that I am using a PopUpButton, and in response to one of the menu
item clicks I am calling Alert.show(), the popup box is stuck at the upper left.
My popupbutton handler:
private function itemClickHandler(event:MenuEvent):void {
switch (event.index) {
case 0:
...
case 1:
Alert.show( "Are you sure? \n\n There is no Un-Do",
'Delete *All Completed* ?',
Alert.YES| Alert.NO,
null,
responseToDeleteAllCompletedHandler,
null,
Alert.NO);
default:
}
}
For the parent parameter - which is supposed to be a Sprite - I tried
this.parent, hoping this would fix it, but complained of type mismatch.
Weird that the Alert works fine when calling it in response to normal buttons
on my main panel, but all of a sudden the Alert is confused about the parent
when calling the Alert.show in response to a *popup* type button.
( maybe I should download an updated Flex sdk? it's been a couple of months)
Any advice would help
tx,
Steve