Hm. This does not work as expected, unfortunately.
Adding wait() obviously kills it all, you are right. But adding delayedcall() does not work neither.
I tried this:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<action name="start-ani">
set(plugin[ani-bg].visible,true);
tween(plugin[ani-bg].alpha,1,2);
for(set(i,1), i LT %1, inc(i),
delayedcall
(2,
ani-go(get(i)););
);
stop-ani();
</action>
<action name="ani-go">
txtadd(ani-name,'ani-',%1);
trace(ani-name);
set(plugin[get(ani-name)].zorder,%1);
set(plugin[get(ani-name)].visible,true);
tween(plugin[get(ani-name)].alpha,1,3);
</action>
|
Adding wait() does work, it delays the loop but for the price of a totally passive behavior. Omitting wait results in no visible action at all, the animation elements don't show up, whilst trace shows, that the plug-in name is counted as it should.
Sigh...