hi,
i want to use a more dynamic way to add shadow to my thumbs
but i got action overflow warning with this code :
Code
<action name="add_shadows">
for(set(i,0), i LT layer.count, inc(i),
if(layer[get(i)].group == thumbs,
txtadd(NAME, get(layer[get(i)].name),'_shadow');
addplugin(NAME);
set(plugin[NAME].group, shadow);
set(plugin[NAME].scale, 0.5);
set(plugin[NAME].url, %FIRSTXML%/gfx/skin/thumb/thumbstroke.png);
set(plugin[NAME].alturl, %FIRSTXML%/gfx/skin/thumb/thumbstroke.png);
set(plugin[NAME].keep, true);
set(plugin[NAME].preload, true);
set(plugin[NAME].parent, get(layer[get(i)].name));
set(plugin[NAME].zorder, 6);
set(plugin[NAME].enabled, false);
set(plugin[NAME].handcursor, false);
set(plugin[NAME].visible, true);
set(plugin[NAME].alpha, 1);
set(plugin[NAME].blendmode, normal);
set(plugin[NAME].align, leftbottom);
set(plugin[NAME].edge, leftbottom);
set(plugin[NAME].x, -8);
set(plugin[NAME].y, -16);
set(plugin[NAME].autoscale, false);
dec(i);
);
);
</action>
Display More
i know when there action overflow,
we can fix using :
wait(0); or wait(0.001);
delayedcall
asyncloop
but i had tried many different combination with that and always meet the action overflow in error console..
even if i have only 7 thumbs in my group="thumbs"...
help appreciated
thanks
z