Alert popup

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Alert popup

T-san

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 | Threaded
Open this post in threaded view
|

Re: Alert popup

Alex Harui-2

Alerts should be centered as of 11/20/2019.  Are you running on the latest sources?

 

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 4:25 AM
To: "[hidden email]" <[hidden email]>
Subject: Alert popup

 


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 | Threaded
Open this post in threaded view
|

Re: Alert popup

T-san
Alex, I was using an old 0.97 version (10/31 build).  I've confirmed that the pop up shows up at center.
I should have checked with the latest version before asking.

Thanks.

ST

On Fri, Dec 6, 2019 at 1:55 AM Alex Harui <[hidden email]> wrote:

Alerts should be centered as of 11/20/2019.  Are you running on the latest sources?

 

-Alex

 

From: Takeshita Shoichiro <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 5, 2019 at 4:25 AM
To: "[hidden email]" <[hidden email]>
Subject: Alert popup

 


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

 

 



--
Shoichiro Takeshita
武下 祥一郎