Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
None
-
Language Found: English
Description
Assuming three states, "menu", "edit", and "skin", consider the following use case:
<s:transitions>
<s:Transition fromState="menu" toState="skin" autoReverse="true">
<s:Parallel>
<s:Sequence duration="500" target="
<s:SetAction property="includeInLayout"/>
<s:Wipe direction="left"/>
<s:SetAction property="visible"/>
</s:Sequence>
<s:Sequence duration="500" target="{grpControls}">
<s:SetAction property="visible"/>
<s:SetAction property="includeInLayout"/>
<s:Wipe direction="left"/>
</s:Sequence>
</s:Parallel>
</s:Transition>
<s:Transition fromState="edit" toState="skin" autoReverse="true">
<s:Parallel>
<s:Sequence duration="500" target="{grpMenu}
">
<s:SetAction property="includeInLayout"/>
<s:Wipe direction="left"/>
<s:SetAction property="visible"/>
</s:Sequence>
<s:Sequence duration="500" target="
<s:SetAction property="visible"/>
<s:SetAction property="includeInLayout"/>
<s:Wipe direction="left"/>
</s:Sequence>
</s:Parallel>
</s:Transition>
</s:transitions>
Can we change the above to the following?
<s:transitions>
<s:Transition fromState="menu,edit" toState="skin" autoReverse="true">
<s:Parallel>
<s:Sequence duration="500" target="{grpMenu}">
<s:SetAction property="includeInLayout"/>
<s:Wipe direction="left"/>
<s:SetAction property="visible"/>
</s:Sequence>
<s:Sequence duration="500" target="{grpControls}
">
<s:SetAction property="visible"/>
<s:SetAction property="includeInLayout"/>
<s:Wipe direction="left"/>
</s:Sequence>
</s:Parallel>
</s:Transition>
</s:transitions>