Unlike Flex, alert pop up does not appear at the center but at the top left
corner.
Is this a spec?  Is there any way to display the pop up at the center?

The following is the markup.

<?xml version = "1.0" encoding = "utf-8"?>
<s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009";
               xmlns:s="library://ns.apache.org/royale/spark"
               xmlns:mx="library://ns.apache.org/royale/mx" minWidth="955"
minHeight="600">

    <fx:Script>
        <![CDATA[
            import mx.controls.Alert;
            protected function
 HelloButton_clickHandler(event:MouseEvent):void
            {
                Alert.show("Hello");
            }
        ]]>
    </fx:Script>

    <s:Button x="17" y="30" label="Greeting" id="HelloButton" click=
"HelloButton_clickHandler(event)"/>
</s:Application>

S. Takeshita

Reply via email to