Why does not it work when I call it and if it works in autostart?
Code
<action name="crear_boton" scope="local" args="nombre, horizontal, vertical">
set(plugin[get(nombre)].keep,true);
set(plugin[get(nombre)].visible,true);
set(plugin[get(nombre)].alpha,1);
set(plugin[get(nombre)].scale,1);
set(plugin[get(nombre)].url,img.png);
set(plugin[get(nombre)].origin,center);
set(plugin[get(nombre)].edge,center);
set(plugin[get(nombre)].zorder,1);
set(plugin[get(nombre)].width,100);
set(plugin[get(nombre)].height,100);
set(plugin[get(nombre)].x,get(horizontal));
set(plugin[get(nombre)].y,get(vertical));
set(plugin[get(nombre)].handcursor,true);
set(plugin[get(nombre)].onclick,action(test));
</action>
<action name="test" scope="local">
addplugin(test_03);
crear_boton(test_03, 500, 700);
</action>
<action name="create_plugin" autorun="onstart" scope="local">
addplugin(test_01);
crear_boton(test_01, 100, 200);
addplugin(test_02);
crear_boton(test_02, 200, 700);
</action>
Display More