You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Fabio Todaro (JIRA)" <ji...@apache.org> on 2013/02/13 15:08:12 UTC
[jira] [Created] (FLEX-33392) CLONE - Transition to/fromState do
not respect a stateGroup
Fabio Todaro created FLEX-33392:
-----------------------------------
Summary: CLONE - Transition to/fromState do not respect a stateGroup
Key: FLEX-33392
URL: https://issues.apache.org/jira/browse/FLEX-33392
Project: Apache Flex
Issue Type: Improvement
Components: Transitions
Affects Versions: Adobe Flex SDK 4.0 (Release)
Environment: Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Reporter: Fabio Todaro
Assignee: Adobe JIRA
Priority: Minor
Steps to reproduce:
1. Setup a skin for a component
2. Include states and stateGroups for a few of the states
<s:states>
<s:State name="initializing" />
<s:State name="connecting" />
<s:State name="content" stateGroups="playing" />
<s:State name="buffering" stateGroups="playing" />
<s:State name="fallbacksFailed" />
<s:State name="playbackComplete" />
</s:states>
3. Setup transitions
<s:transitions>
<s:Transition fromState="*" toState="play">
<s:Fade target="{videoElement}" duration="2000" />
</s:Transition>
<s:Transition fromState="play" toState="*">
<s:Fade target="{videoElement}" duration="2000" />
</s:Transition>
</s:transitions>
4. From the component, change the skin state (through a button click or otherwise)
Actual Results:
Transition does not play.
Expected Results:
Transition plays.
Workaround (if any):
Explicitly define the toState.
The issue with this is I have to apply a transition for multiple states vs doing a simple * to playing.
<s:transitions>
<s:Transition fromState="connecting" toState="content">
<s:Fade target="{videoElement}" duration="2000" />
</s:Transition>
<s:Transition fromState="content" toState="fallbacksFailed">
<s:Fade target="{videoElement}" duration="2000" />
</s:Transition>
<s:Transition fromState="content" toState="playbackComplete">
<s:Fade target="{videoElement}" duration="2000" />
</s:Transition>
</s:transitions>
These transitions work perfectly. Change "content" to playing and it all fails. Since "buffering" is a state similar to "content" it shouldn't be included in the hiding of the content. If I don't explicitly reference the states, buffering will cause a fade as well.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira