flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Problem with states not working as before without code change (only SDK)
Date Fri, 03 Jan 2014 18:31:06 GMT
It looks like you are using both visible and includeIn.  It might be that
since 4.1, properties are restored differently and visible is not being
set back to true?

You can use the -keep-generated-actionscript MXMLC option to see if
anything is being generated differently, and if not, see if logic in the
mx/states folder has changed.


On 1/3/14 10:15 AM, "Fr├ęderic Cox" <coxfrederic@gmail.com> wrote:

>I have a confirmed bug in a module of a CMS I worked on in the past 2-3
>years. The only change now is that I use Apache Flex 4.10.
>I use includeIn for showing buttons in states. Since the migration from
>4.1 or 4.6 to 4.10 it is not working anymore. So I am not entirely sure if
>the change in SDK happened between 4.1 and 4.6 or between 4.6 and 4.10.
>The MXML shows different buttons being shown in different states. When I
>from "normal" to "editMode" and then back to "normal" the default buttons
>not show anymore. Anyone can help me?
><controls:EnalityButton id="batchOption"
>enabled="{Boolean(photoCollection.length > 0)}" includeIn="normal"
>'Select multiple..')}" bottom="{adjustBottomPaddingIfNeeded(45)}"
>click="batchOption_clickHandler(event)" />
>	<controls:EnalityButton id="sortOption" visible="{(this.uploadType ==
>'product')}" enabled="{Boolean(photoCollection.length > 0)}"
>includeIn="normal" label="Sorteer per merk"
>bottom="{adjustBottomPaddingIfNeeded(45)}" left="230"
>click="sortOption_clickHandler(event)" />
>	<s:HGroup includeIn="batchMode"
>		<controls:EnalityButton id="btnCancelBatchMode"
>'Cancel')}" click="btnCancelBatchMode_clickHandler(event)" />
>		<controls:EnalityButton id="btnDeleteSelectedPhotos"
>'Delete') + ' (0)'}" enabled="false"
>								styleName="enalityDeleteButton"
>								click="btnDeleteSelectedPhotos_clickHandler(event)" />
>		<controls:EnalityButton id="btnRevokeSelection" visible="false"
>'Unselect all')}" click="btnRevokeSelection_clickHandler(event)" />
>		<controls:EnalityButton id="btnEditAll" visible="false"
>'Edit') + ' (0)'}" click="btnEditAll_clickHandler(event)" />
>	</s:HGroup>
>	<s:HGroup includeIn="batchMode,normal"
>		<mx:Image id="zoomOutButton" source="{CMSData.rootURL +
>'assets/images/zoomout.png'}" buttonMode="{zoomOutButton.enabled}"
>click="zoomOutButton_clickHandler(event)" />
>		<mx:Image id="zoomInButton" source="{CMSData.rootURL +
>'assets/images/zoomin.png'}" buttonMode="{zoomInButton.enabled}"
>click="zoomInButton_clickHandler(event)" />
>	</s:HGroup>
>View this message in context:
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

View raw message