Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-27739

Allow multiple state declarations in the fromState and toState attributes of a s:Transition element

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • States
    • 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="

      {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: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="

      {grpControls}">
      <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>

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: