You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Justin Mclean <ju...@classsoftware.com> on 2017/02/21 02:25:28 UTC

[Flex JS] Click handler on label fails

Hi,

Any reason why this shouldn’t work? ie clicking on the text does nothing. 

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://ns.apache.org/flexjs/basic">

    <js:valuesImpl>
        <js:SimpleCSSValuesImpl/>
    </js:valuesImpl>

    <fx:Script><![CDATA[
        import org.apache.flex.html.SimpleAlert;

        public function clickMe():void {
            SimpleAlert.show("Clicked!", this) ;
        }
        ]]></fx:Script>
    
    <js:initialView>
        <js:View percentWidth="100" percentHeight="100">
            <js:Container>
                    <js:Label text="Click Me" click="clickMe()" />
            </js:Container>
        </js:View>
    </js:initialView>

</js:Application>

Thanks,
Justin


Re: [Flex JS] Click handler on label fails

Posted by Carlos Rovira <ca...@codeoscopic.com>.
I remember seeing this as well, but maybe no body did a ticket for it

2017-02-21 9:34 GMT+01:00 Justin Mclean <ju...@classsoftware.com>:

> Hi,
>
> > That's been reported before.
>
> I can’t find a JIRA for it. Has one be raised?
>
> > We have to decide whether we want labels to be clickable on SWF and JS
> and make it consistent.
>
> I guess it should not extend UIBase if there no click handler?
>
> Thanks,
> Justin




-- 

Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.

De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.

Re: [Flex JS] Click handler on label fails

Posted by Alex Harui <ah...@adobe.com>.

On 2/21/17, 12:34 AM, "Justin Mclean" <ju...@classsoftware.com> wrote:

>> We have to decide whether we want labels to be clickable on SWF and JS
>>and make it consistent.
>
>I guess it should not extend UIBase if there no click handler?

It can, but in theory in the dual branch, UIBase wouldn't have click
event.  I'll have to try that out.

Thanks,
-Alex


Re: [Flex JS] Click handler on label fails

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> That's been reported before.

I can’t find a JIRA for it. Has one be raised?

> We have to decide whether we want labels to be clickable on SWF and JS and make it consistent.

I guess it should not extend UIBase if there no click handler?

Thanks,
Justin

Re: [Flex JS] Click handler on label fails

Posted by Alex Harui <ah...@adobe.com>.

On 2/20/17, 6:25 PM, "Justin Mclean" <ju...@classsoftware.com> wrote:

>Hi,
>
>Any reason why this shouldn’t work? ie clicking on the text does nothing.

That's been reported before.  We have to decide whether we want labels to
be clickable on SWF and JS and make it consistent.

-Alex