This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new c878328 handle more than one transition. Fixes #485
c878328 is described below
commit c8783287c3e37658ef942d81797eb5337025c127
Author: Alex Harui <[email protected]>
AuthorDate: Thu Oct 24 22:11:29 2019 -0700
handle more than one transition. Fixes #485
---
.../royale/org/apache/royale/core/StatesWithTransitionsImpl.as | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/frameworks/projects/Effects/src/main/royale/org/apache/royale/core/StatesWithTransitionsImpl.as
b/frameworks/projects/Effects/src/main/royale/org/apache/royale/core/StatesWithTransitionsImpl.as
index 0269a0e..519f486 100644
---
a/frameworks/projects/Effects/src/main/royale/org/apache/royale/core/StatesWithTransitionsImpl.as
+++
b/frameworks/projects/Effects/src/main/royale/org/apache/royale/core/StatesWithTransitionsImpl.as
@@ -102,6 +102,8 @@ package org.apache.royale.core
if (!sawInitComplete)
return;
+ transitionEffects = [];
+
var doc:IStatesObject = _strand as IStatesObject;
var transitions:Array = doc.transitions;
if (transitions && transitions.length > 0)
@@ -112,12 +114,12 @@ package org.apache.royale.core
{
if (t.toState == "*" || t.toState == event.newValue)
{
- transitionEffects = t.effects.slice();
- for each (var e:Effect in transitionEffects)
+ var theseEffects:Array = t.effects.slice();
+ for each (var e:Effect in theseEffects)
{
e.captureStartValues();
}
- break;
+ transitionEffects =
transitionEffects.concat.apply(transitionEffects, theseEffects);
}
}
}