I updated from air 3.1 to air 3.7 and seems like now a button that worked fine cannot be clicked.
The button is inside a spark VGroup
.
<s:Group id="noConnection" visible="false" alpha="0.9">
<s:Rect width="{Utils.application.width}" height="{Utils.application.height}">
<s:fill><s:SolidColor color="0xFFFFFF" /></s:fill>
</s:Rect>
<s:VGroup id="vgroup" verticalAlign="middle" verticalCenter="0"
horizontalAlign="center" horizontalCenter="0">
<s:Button label="Try again" click="retry_clickHandler(event)" />
<s:Label text="No connection"/>
</s:VGroup>
</s:Group>
In the code above no MouseEvent
or TouchEvent
is triggered when i press the button. (it also doesn't animate).
However if a remove the verticalAlign" ,
verticalCenterhorizontalAlign
and
horizontalCenter` from VGroup attributes the button works fine again.
Like this:
<s:Group id="noConnection" visible="false" alpha="0.9">
<s:Rect width="{Utils.application.width}" height="{Utils.application.height}">
<s:fill><s:SolidColor color="0xFFFFFF" /></s:fill>
</s:Rect>
<s:VGroup id="vgroup">
<s:Button label="Try again" click="retry_clickHandler(event)" />
<s:Label text="There's no connection" />
</s:VGroup>
</s:Group>
Any idea why this happens?
Thanks